Changeset 7735 for anuga_core/source/anuga/shallow_water/boundaries.py
- Timestamp:
- May 20, 2010, 12:36:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/boundaries.py
r7732 r7735 188 188 189 189 def __init__(self, domain=None, function=None): 190 """ Instantiate a Transmissive_n_momentum_zero_t_momentum_set_stage_boundary. 190 """ Instantiate a 191 Transmissive_n_momentum_zero_t_momentum_set_stage_boundary. 191 192 domain is the domain containing the boundary 192 193 function is the function to apply … … 209 210 def __repr__(self): 210 211 """ Return a representation of this instance. """ 211 return 'Transmissive_n_momentum_zero_t_momentum_set_stage_boundary(%s)' %self.domain 212 msg='Transmissive_n_momentum_zero_t_momentum_set_stage_boundary' 213 msg+='(%s)' %self.domain 214 return msg 212 215 213 216 … … 393 396 394 397 # Compute depth based on Manning's formula v = 1/n h^{2/3} sqrt(S) 395 # Where v is velocity, n is manning's coefficient, h is depth and S is the slope into the domain. 398 # Where v is velocity, n is manning's coefficient, h is depth 399 # and S is the slope into the domain. 396 400 # Let mu be the momentum (vh), then this equation becomes: mu = 1/n h^{5/3} sqrt(S) 397 401 # from which we can isolate depth to get
Note: See TracChangeset
for help on using the changeset viewer.