Changeset 2715
- Timestamp:
- Apr 13, 2006, 1:28:12 PM (18 years ago)
- Location:
- inundation/pyvolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/shallow_water.py
r2689 r2715 69 69 class Domain(Generic_Domain): 70 70 71 def __init__(self, coordinates=None, vertices=None, boundary =None,72 tagged_elements = None, geo_reference =None,71 def __init__(self, coordinates=None, vertices=None, boundary=None, 72 tagged_elements=None, geo_reference=None, 73 73 use_inscribed_circle=False, 74 74 mesh_filename=None): … … 1154 1154 def manning_friction(domain): 1155 1155 """Apply (Manning) friction to water momentum 1156 (Python version) 1156 1157 """ 1157 1158 … … 1189 1190 1190 1191 1192 #print 'Implicit friction' 1193 1191 1194 xmom = domain.quantities['xmomentum'] 1192 1195 ymom = domain.quantities['ymomentum'] … … 1214 1217 """ 1215 1218 1219 #print 'Explicit friction' 1220 1216 1221 xmom = domain.quantities['xmomentum'] 1217 1222 ymom = domain.quantities['ymomentum'] -
inundation/pyvolution/shallow_water_ext.c
r2649 r2715 260 260 261 261 262 /* 262 263 void _manning_friction_explicit(double g, double eps, int N, 263 264 double* w, double* z, … … 285 286 } 286 287 } 287 288 */ 288 289 289 290 int _balance_deep_and_shallow(int N, … … 557 558 558 559 560 /* 559 561 PyObject *manning_friction_explicit(PyObject *self, PyObject *args) { 560 562 // … … 584 586 return Py_BuildValue(""); 585 587 } 588 */ 589 586 590 PyObject *extrapolate_second_order_sw(PyObject *self, PyObject *args) { 587 591 /*Compute the vertex values based on a linear reconstruction on each triangle
Note: See TracChangeset
for help on using the changeset viewer.