Changeset 718 for inundation/ga/storm_surge/examples/run_tsh.py
- Timestamp:
- Dec 22, 2004, 2:58:16 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/examples/run_tsh.py
r514 r718 18 18 19 19 from shallow_water import Domain, Reflective_boundary, Dirichlet_boundary,\ 20 Transmissive_boundary, Time_boundary, Constant_height, Weir 21 20 Transmissive_boundary, Time_boundary, Set_region, Add_value_to_region 22 21 from mesh_factory import rectangular 23 22 from pmesh2domain import pmesh_to_domain, pmesh_to_domain_instance … … 80 79 # 81 80 print 'Boundaries' 82 Br= Reflective_boundary(domain)81 reflective = Reflective_boundary(domain) 83 82 Bt = Transmissive_boundary(domain) 84 83 85 84 #Constant inflow 86 Bd = Dirichlet_boundary(array([ inflow_stage, 0.0, 0.0]))85 Bd = Dirichlet_boundary(array([7, 0.0, 0.0])) 87 86 88 87 #Time dependent inflow … … 105 104 tags['internal'] = None 106 105 tags['levee'] = None 107 tags['0'] = Br 108 tags['wall'] = Br 109 tags['external'] = Br 110 tags['open'] = Bd 106 tags['0'] = reflective 107 tags['wall'] = reflective 108 tags['external'] = reflective 109 tags['open'] = Bd 110 tags['opening'] = None 111 111 112 112 domain.set_boundary(tags) 113 113 114 114 # region tags 115 #domain.set_region(Set_region('mound', 'elevation', 100, location='unique vertices')) 116 domain.set_region(Add_value_to_region('mound', 'elevation', 100, location='unique vertices', initial_quantity='elevation')) 117 domain.set_region(Add_value_to_region('reservoir', 'level', 100.0,initial_quantity='elevation')) 118 115 119 #print domain.quantities['elevation'].vertex_values 116 120 #print domain.quantities['level'].vertex_values
Note: See TracChangeset
for help on using the changeset viewer.