- Timestamp:
- Jan 30, 2013, 7:34:10 PM (12 years ago)
- Location:
- trunk/anuga_core/validation_tests/Tests/Experimental_data/dam_break_Yeh_Petroff
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/validation_tests/Tests/Experimental_data/dam_break_Yeh_Petroff/numerical_Yeh_Petroff.py
r8673 r8683 55 55 from anuga.utilities.argparsing import parse_standard_args 56 56 alg, cfl = parse_standard_args() 57 domain.set_flow_algorithm(alg) 57 58 alg = '2_0_limited' 59 cfl = 0.9 60 print alg, cfl 61 domain.set_flow_algorithm('2_0_limited') 58 62 domain.set_CFL(cfl) 59 63 domain.set_minimum_allowed_height(0.01) … … 87 91 domain.set_quantity('stage', stage) 88 92 domain.set_quantity('elevation',elevation) 89 domain.set_quantity('friction', 0.0 )93 domain.set_quantity('friction', 0.03) 90 94 91 95 #----------------------------------------------------------------------------- -
trunk/anuga_core/validation_tests/Tests/Experimental_data/dam_break_Yeh_Petroff/plot_results_force.py
r8673 r8683 113 113 for i in range(N): 114 114 for k in range(len(indicesL)): 115 Sh[i] += p2.stage[i,indicesL[k]] 116 Sh[i] -= p2.stage[i,indicesR[k]] 117 force = 9.8*Sh 115 Sh[i] += p2.stage[i,indicesL[k]]**2 116 Sh[i] -= p2.stage[i,indicesR[k]]**2 117 118 fudge_factor = 1.0 119 length = 0.12 120 g = 9.8 121 rho_w = 1024 122 average_pressure = 0.5*g*Sh/len(indicesL)*rho_w 123 124 force = fudge_factor*average_pressure*length 118 125 119 126
Note: See TracChangeset
for help on using the changeset viewer.