Changeset 8248
- Timestamp:
- Nov 15, 2011, 4:36:00 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/compile_all.py
r8129 r8248 28 28 29 29 os.chdir('..') 30 os.chdir('geometry') 31 execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py') 32 33 os.chdir('..') 30 34 os.chdir('structures') 31 35 execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py') … … 43 47 execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py') 44 48 45 os.chdir('..')46 os.chdir('shallow_water_balanced')47 execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')48 49 49 50 os.chdir('..') -
trunk/anuga_core/source/anuga/__init__.py
r8226 r8248 305 305 """ 306 306 307 from anuga.shallow_water.shallow_water_domain import Domain307 #from anuga.shallow_water.shallow_water_domain import Domain 308 308 from anuga.pmesh.mesh_interface import create_mesh_from_regions 309 309 … … 321 321 use_cache=False, 322 322 verbose=verbose) 323 323 324 domain = Domain(mesh_filename, use_cache=False, verbose=verbose) 324 325 -
trunk/anuga_core/source/anuga/compile_all.py
r8129 r8248 10 10 execfile('compile.py') 11 11 12 os.chdir('..')13 os.chdir('advection')14 execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')12 #os.chdir('..') 13 #os.chdir('advection') 14 #execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py') 15 15 16 16 os.chdir('..') 17 17 os.chdir('operators') 18 execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py') 19 20 21 os.chdir('..') 22 os.chdir('geometry') 18 23 execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py') 19 24 … … 34 39 execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py') 35 40 36 os.chdir('..')37 os.chdir('shallow_water_balanced')38 execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')41 #os.chdir('..') 42 #os.chdir('shallow_water_balanced') 43 #execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py') 39 44 40 45 os.chdir('..') -
trunk/anuga_core/source/anuga/operators/base_operator.py
r8228 r8248 28 28 29 29 def __parallel_safe(self): 30 31 return True 30 """By default an operator is not parallel safe 31 """ 32 return False 32 33 33 34 def statistics(self): … … 35 36 message = 'You need to implement operator statistics for your operator' 36 37 return message 38 37 39 38 40 def print_statistics(self): -
trunk/anuga_validation/okushiri_2005/run_okushiri.py
r7492 r8248 22 22 23 23 # Module imports 24 from anuga .interfaceimport Domain25 from anuga .interfaceimport Reflective_boundary26 from anuga .interfaceimport Time_boundary27 from anuga .interfaceimport Transmissive_momentum_set_stage_boundary28 from anuga .interfaceimport Transmissive_n_momentum_zero_t_momentum_set_stage_boundary29 from anuga .interfaceimport file_function24 from anuga import Domain 25 from anuga import Reflective_boundary 26 from anuga import Time_boundary 27 from anuga import Transmissive_momentum_set_stage_boundary 28 from anuga import Transmissive_n_momentum_zero_t_momentum_set_stage_boundary 29 from anuga import file_function 30 30 31 31 import project … … 84 84 triangle_id = domain.get_triangle_containing_point([4.521, 1.196]) 85 85 # This should get triangle id 32833 with centroid (4.5244, 1.1972) 86 print 'triangle_id = ',triangle_id 86 87 bdry_id = domain.get_triangle_containing_point([0.000, 1.696]) 88 # This should get triangle id 56474 87 89 print 'bdry_id = ',bdry_id 88 90 … … 96 98 for t in domain.evolve(yieldstep = 0.05, finaltime = 22.5): 97 99 domain.write_time() 98 print 100 print ' ',function(domain.get_time())[0],' bdry_d = ',bdry_id,' ',\ 99 101 domain.get_conserved_quantities(bdry_id, edge=0)[0],' ',\ 100 102 domain.get_conserved_quantities(bdry_id, edge=1)[0],' ',\ -
trunk/anuga_work/shallow_water_balanced_steve/run_step.py
r8202 r8248 12 12 import sys 13 13 import anuga 14 #from anuga import Domain 14 15 from swb_domain import * 15 16 … … 46 47 # structured mesh 47 48 points, vertices, boundary = anuga.rectangular_cross(int(L/dx), int(W/dy), L, W, (0.0, -W/2)) 49 50 51 create_mesh_from_regions(bounding_polygon, 52 boundary_tags, 53 maximum_triangle_area=maximum_triangle_area, 54 interior_regions=interior_regions, 55 filename=mesh_filename, 56 interior_holes=interior_holes, 57 hole_tags=hole_tags, 58 poly_geo_reference=poly_geo_reference, 59 mesh_geo_reference=mesh_geo_reference, 60 minimum_triangle_angle=minimum_triangle_angle, 61 fail_if_polygons_outside=fail_if_polygons_outside, 62 use_cache=False, 63 verbose=verbose) 48 64 49 65 domain = Domain(points, vertices, boundary) -
trunk/anuga_work/shallow_water_balanced_steve/run_wave.py
r8202 r8248 12 12 import sys 13 13 import anuga 14 from swb_domain import * 14 from anuga import Domain 15 #from swb_domain import * 15 16 16 17 from math import cos … … 56 57 domain.set_timestepping_method('rk2') 57 58 domain.set_default_order(2) 59 domain.set_beta(2.0) 58 60 59 61 print domain.get_timestepping_method() … … 79 81 Bd = anuga.Dirichlet_boundary([1,0.,0.]) # Constant boundary values 80 82 amplitude = 1 81 wave_length = 1000.083 wave_length = 300.0 82 84 Bw = anuga.Time_boundary(domain=domain, # Time dependent boundary 83 85 ## Sine wave -
trunk/anuga_work/shallow_water_balanced_steve/swb_domain.py
r8206 r8248 77 77 self.forcing_terms[1] = swb_gravity 78 78 79 print "Swb_domain" 79 80 80 81 def check_integrity(self):
Note: See TracChangeset
for help on using the changeset viewer.