Changeset 7492 for anuga_validation/okushiri_2005
- Timestamp:
- Sep 7, 2009, 4:19:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/okushiri_2005/run_okushiri.py
r6046 r7492 22 22 23 23 # Module imports 24 from anuga.shallow_water import Domain 25 from anuga.shallow_water import Reflective_boundary 26 from anuga.shallow_water import Transmissive_momentum_set_stage_boundary 27 from anuga.abstract_2d_finite_volumes.util import file_function 24 from anuga.interface import Domain 25 from anuga.interface import Reflective_boundary 26 from anuga.interface import Time_boundary 27 from anuga.interface import Transmissive_momentum_set_stage_boundary 28 from anuga.interface import Transmissive_n_momentum_zero_t_momentum_set_stage_boundary 29 from anuga.interface import file_function 28 30 29 31 import project … … 82 84 triangle_id = domain.get_triangle_containing_point([4.521, 1.196]) 83 85 # This should get triangle id 32833 with centroid (4.5244, 1.1972) 86 bdry_id = domain.get_triangle_containing_point([0.000, 1.696]) 87 print 'bdry_id = ',bdry_id 84 88 85 89 … … 92 96 for t in domain.evolve(yieldstep = 0.05, finaltime = 22.5): 93 97 domain.write_time() 98 print function(domain.get_time())[0],' bdry_d = ',bdry_id,' ',\ 99 domain.get_conserved_quantities(bdry_id, edge=0)[0],' ',\ 100 domain.get_conserved_quantities(bdry_id, edge=1)[0],' ',\ 101 domain.get_conserved_quantities(bdry_id, edge=2)[0] 102 94 103 95 104 print 'That took %.2f seconds' %(time.time()-t0)
Note: See TracChangeset
for help on using the changeset viewer.