Changeset 1736
- Timestamp:
- Aug 20, 2005, 5:57:06 PM (20 years ago)
- Location:
- inundation/validation/LWRU2
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/validation/LWRU2/extract_timeseries.py
r1697 r1736 11 11 #gauges = [[4.521, 1.196], [4.521, 1.696], [4.521, 2.196]] #Ch 5-7-9 12 12 13 gauge_names = ['Boundary gauge', 'ch5', 'ch7', 'ch9']13 gauge_names = ['Boundary', 'ch5', 'ch7', 'ch9'] 14 14 #gauge_names = ['ch5', 'ch7', 'ch9'] 15 15 -
inundation/validation/LWRU2/lwru2.py
r1734 r1736 9 9 Depth at western boundary is d = 13.5 cm 10 10 """ 11 12 13 read_mesh = False 11 14 12 15 import sys … … 78 81 from cPickle import dump, load 79 82 80 N = 5083 N = 100 81 84 82 85 try: … … 99 102 ####################### 100 103 # Domain 101 #print 'Creating domain' 102 #points, vertices, boundary = rectangular(N, N/5*3, 103 # len1=5.448, len2=3.402) 104 #domain = Domain(points, vertices, boundary) 104 105 if read_mesh is True: 106 print 'Creating domain from', filenames.mesh_filename 107 domain = pmesh_to_domain_instance(filenames.mesh_filename, Domain) 108 else: 109 print 'Creating regular domain' 110 points, vertices, boundary = rectangular(N, N/5*3, 111 len1=5.448, len2=3.402) 112 domain = Domain(points, vertices, boundary) 105 113 106 print 'Creating domain from', filenames.mesh_filename 107 domain = pmesh_to_domain_instance(filenames.mesh_filename, Domain) 114 108 115 109 116 print "Number of triangles = ", len(domain) … … 159 166 160 167 #Set boundary conditions 161 #domain.set_boundary({'left': Bts, 'right': Br, 'bottom': Br, 'top': Br}) 162 domain.set_boundary({'wave': Bts, 'wall': Br}) 168 169 if read_mesh is True: 170 domain.set_boundary({'wave': Bts, 'wall': Br}) 171 else: 172 domain.set_boundary({'left': Bts, 'right': Br, 'bottom': Br, 'top': Br}) 173 163 174 164 175 #Evolve
Note: See TracChangeset
for help on using the changeset viewer.