Changeset 4258
- Timestamp:
- Feb 14, 2007, 3:03:11 PM (18 years ago)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/anuga_user_manual.tex
r4209 r4258 1726 1726 \code{config.py}. 1727 1727 \end{methoddesc} 1728 1729 1730 \begin{methoddesc} {set\_minimum_allowed_height}{} 1731 Module: \module{shallow\_water.shallow\_water\_domain} 1732 1733 Set the minimum depth (in meters) that will be recognised in 1734 the numerical scheme (including limiters and flux computations) 1735 1736 Default value is $10^{-3}$ m, but by setting this to a greater value, 1737 e.g.\ for large scale simulations, the computation time can be 1738 significantly reduced. 1739 \end{methoddesc} 1740 1728 1741 1729 1742 \begin{methoddesc} {set\_minimum_storable_height}{} -
anuga_core/source/anuga/shallow_water/shallow_water_domain.py
r4254 r4258 146 146 number_of_full_triangles=number_of_full_triangles) 147 147 148 self.minimum_allowed_height = minimum_allowed_height 149 self.H0 = minimum_allowed_height # Minimal height for flux computation 148 #self.minimum_allowed_height = minimum_allowed_height 149 #self.H0 = minimum_allowed_height 150 self.set_minimum_allowed_height(minimum_allowed_height) 151 150 152 self.maximum_allowed_speed = maximum_allowed_speed 151 153 self.g = g … … 214 216 """ 215 217 self.minimum_storable_height = minimum_storable_height 218 219 220 def set_minimum_allowed_height(self, minimum_allowed_height): 221 """ 222 Set the minimum depth that will be recognised in the numerical 223 scheme 224 225 The minimum allowed depth is in meters. 226 227 The parameter H0 (Minimal height for flux computation) 228 is also set by this function 229 """ 230 231 self.minimum_allowed_height = minimum_allowed_height 232 self.H0 = minimum_allowed_height 216 233 217 234 -
anuga_work/development/dam_test_from_brad_2007/dam_sample.py
r4250 r4258 28 28 domain = Domain(points, vertices, boundary) # Create domain 29 29 domain.set_name('dam_sample') # Output name 30 domain.set_store_vertices_uniquely(True) # Look at the 'real' triangles31 domain.beta_h = 0 30 #domain.set_store_vertices_uniquely(True) # Look at the 'real' triangles 31 domain.beta_h = 0.0 32 32 domain.limit2007 = 1 33 domain.set_minimum_allowed_height(0.01) 33 34 34 35 #------------------------------------------------------------------------------ … … 92 93 #------------------------------------------------------------------------------ 93 94 for t in domain.evolve(yieldstep = 0.2, finaltime = 20): 94 domain.write_time(track_speeds= True)95 domain.write_time(track_speeds=False) 95 96
Note: See TracChangeset
for help on using the changeset viewer.