Changeset 268 for inundation/ga/storm_surge/pyvolution/shallow_water.py
- Timestamp:
- Sep 2, 2004, 3:40:28 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/shallow_water.py
r267 r268 37 37 self.forcing_terms.append(manning_friction) 38 38 39 #Fixme: Perhaps establish shortcuts tp relevant quantities 40 #once and for all (for efficiency) 39 #Establish shortcuts to relevant quantities (for efficiency) 40 self.w = self.quantities['level'] 41 self.uh = self.quantities['xmomentum'] 42 self.vh = self.quantities['ymomentum'] 43 self.z = self.quantities['elevation'] 44 self.eta = self.quantities['friction'] 45 41 46 42 47 def check_integrity(self): … … 334 339 Xmom.explicit_update, 335 340 Ymom.explicit_update) 336 341 337 342 338 343 #################################### … … 352 357 for name in domain.conserved_quantities: 353 358 Q = domain.quantities[name] 354 Q.interpolate_from_vertices_to_edges() 355 359 Q.interpolate_from_vertices_to_edges() 360 361 #domain.w.interpolate_from_vertices_to_edges() 362 #domain.uh.interpolate_from_vertices_to_edges() 363 #domain.vh.interpolate_from_vertices_to_edges() 364 356 365 357 366 … … 373 382 if hc[k] < 0.0: 374 383 #Control level and height 375 wc[k] = zc[k] ; hc[k] = 0.0384 wc[k] = zc[k] #; hc[k] = 0.0 376 385 377 386 #Control momentum … … 380 389 if hc[k] < 0.0: 381 390 #Control level and height 382 wc[k] = zc[k] ; hc[k] = 0.0391 wc[k] = zc[k] #; hc[k] = 0.0 383 392 384 393 #Control momentum
Note: See TracChangeset
for help on using the changeset viewer.