Changeset 558
- Timestamp:
- Nov 16, 2004, 3:04:04 PM (20 years ago)
- Location:
- inundation/ga/storm_surge
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/analytical solutions/Analytical_solution_Sampson_import_mesh.py
r555 r558 26 26 from math import sqrt, cos, sin, pi, exp 27 27 from mesh_factory import strang_mesh 28 from quantity import Quantity 28 29 29 30 … … 39 40 domain.default_order = 2 40 41 domain.smooth = True 42 43 domain.quantities['linear_friction'] = Quantity(domain) 44 domain.set_quantity('friction', 0.0) 45 #del domain.quantities['friction'] 46 41 47 42 48 # Provide file name for storing output … … 79 85 80 86 domain.set_quantity('elevation', x_slope) 87 domain.set_quantity('linear_friction', tau) 88 81 89 82 90 #Set the water level -
inundation/ga/storm_surge/pyvolution/shallow_water.py
r557 r558 877 877 uh = domain.quantities['xmomentum'].centroid_values 878 878 vh = domain.quantities['ymomentum'].centroid_values 879 eta= domain.quantities['linear_friction'].centroid_values879 tau = domain.quantities['linear_friction'].centroid_values 880 880 881 881 xmom_update = domain.quantities['xmomentum'].semi_implicit_update … … 886 886 887 887 for k in range(N): 888 if eta[k] >= eps:888 if tau[k] >= eps: 889 889 if h[k] >= eps: 890 S = - eta[k]/h[k]890 S = -tau[k]/h[k] 891 891 892 892 #Update momentum
Note: See TracChangeset
for help on using the changeset viewer.