Changeset 7846
- Timestamp:
- Jun 16, 2010, 8:23:42 AM (15 years ago)
- Location:
- anuga_validation
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/automated_validation_tests/flow_tests/test_inflow_using_flowline.py
r7774 r7846 28 28 length = 400. 29 29 width = 20. 30 dx = dy = 2# Resolution: of grid on both axes30 dx = dy = 1.25 # Resolution: of grid on both axes 31 31 32 32 points, vertices, boundary = anuga.rectangular_cross(int(length/dx), \ … … 138 138 139 139 msg = 'Predicted depth of flow at 200m was %f, should have been %f' % (normal_depth, domain_depth) 140 msg = 'Mannings n = %s, slope = %s' % (mannings_n, slope)140 msg += 'Mannings n = %s, slope = %s' % (mannings_n, slope) 141 141 if verbose: 142 142 print 'Depth at 200m: ANUGA = %f, Mannings = %f' % (domain_depth, normal_depth) -
anuga_validation/convergence_study/dam_break.py
r5442 r7846 10 10 11 11 import sys 12 from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross 13 from anuga.shallow_water import Domain 14 from anuga.shallow_water import Reflective_boundary 15 from anuga.shallow_water import Dirichlet_boundary 16 from anuga.shallow_water import Time_boundary 17 from anuga.shallow_water import Transmissive_boundary 18 from anuga.shallow_water import Transmissive_Momentum_Set_Stage_boundary 19 from anuga.shallow_water.data_manager import start_screen_catcher, copy_code_files 12 import anuga 20 13 21 14 from math import cos 22 from Numeric import zeros, Float15 from numpy import zeros, float 23 16 from time import localtime, strftime, gmtime 24 17 … … 34 27 output_file = 'dam_break' 35 28 36 copy_code_files(output_dir,__file__)29 anuga.copy_code_files(output_dir,__file__) 37 30 #start_screen_catcher(output_dir+'_') 38 31 … … 47 40 48 41 # structured mesh 49 points, vertices, boundary = rectangular_cross(int(L/dx), int(W/dy), L, W, (0.0, -W/2))42 points, vertices, boundary = anuga.rectangular_cross(int(L/dx), int(W/dy), L, W, (0.0, -W/2)) 50 43 51 domain = Domain(points, vertices, boundary)44 domain = anuga.Domain(points, vertices, boundary) 52 45 53 46 domain.set_name(output_file) … … 97 90 #------------------------------------------------------------------------------ 98 91 from math import sin, pi, exp 99 Br = Reflective_boundary(domain) # Solid reflective wall100 Bt = Transmissive_boundary(domain) # Continue all values on boundary101 Bd = Dirichlet_boundary([1,0.,0.]) # Constant boundary values92 Br = anuga.Reflective_boundary(domain) # Solid reflective wall 93 Bt = anuga.Transmissive_boundary(domain) # Continue all values on boundary 94 Bd = anuga.Dirichlet_boundary([1,0.,0.]) # Constant boundary values 102 95 103 96 -
anuga_validation/performance_tests/run_profile.py
r7276 r7846 6 6 ###################### 7 7 # Module imports 8 from anuga.shallow_water import Domain, Reflective_boundary 9 from mesh_factory import rectangular 10 #import numpy as num # not used? 11 8 import anuga 12 9 13 10 ###################### … … 21 18 print 'Creating domain' 22 19 #Create basic mesh 23 points, vertices, boundary = rectangular(N, N)20 points, vertices, boundary = anuga.rectangular(N, N) 24 21 25 22 #Create shallow water domain 26 domain = Domain(points, vertices, boundary)23 domain = anuga.Domain(points, vertices, boundary) 27 24 domain.set_default_order(2) 28 25 domain.set_quantities_to_be_stored(None) … … 41 38 42 39 print 'Setting boundary conditions' 43 Br = Reflective_boundary(domain)40 Br = anuga.Reflective_boundary(domain) 44 41 domain.set_boundary({'left': Br, 'right': Br, 'bottom': Br, 'top': Br}) 45 42 -
anuga_validation/performance_tests/run_profile2.py
r5320 r7846 11 11 # Module imports 12 12 # 13 from anuga.shallow_water import Domain, Reflective_boundary,\ 14 Dirichlet_boundary,\ 15 Transmissive_boundary, Time_boundary 16 17 from mesh_factory import rectangular 18 from Numeric import array 13 import anuga 14 from numpy import array 19 15 20 16 … … 27 23 print 'Creating domain' 28 24 #Create basic mesh 29 points, vertices, boundary = rectangular(N, N)25 points, vertices, boundary = anuga.rectangular(N, N) 30 26 31 27 #Create shallow water domain 32 domain = Domain(points, vertices, boundary)28 domain = anuga.Domain(points, vertices, boundary) 33 29 domain.default_order = 2 34 30 domain.set_quantities_to_be_stored(None) … … 46 42 # Boundary conditions 47 43 # 48 Br = Reflective_boundary(domain)44 Br = anuga.Reflective_boundary(domain) 49 45 domain.set_boundary({'left': Br, 'right': Br, 'bottom': Br, 'top': Br}) 50 46
Note: See TracChangeset
for help on using the changeset viewer.