Ignore:
Timestamp:
Jan 30, 2013, 7:34:10 PM (12 years ago)
Author:
steve
Message:

Pressure now calculated via 1/2 g h2 \rho_w

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  
    5555from anuga.utilities.argparsing import parse_standard_args
    5656alg, cfl = parse_standard_args()
    57 domain.set_flow_algorithm(alg)
     57
     58alg = '2_0_limited'
     59cfl = 0.9
     60print alg, cfl
     61domain.set_flow_algorithm('2_0_limited')
    5862domain.set_CFL(cfl)
    5963domain.set_minimum_allowed_height(0.01)
     
    8791domain.set_quantity('stage', stage)
    8892domain.set_quantity('elevation',elevation)
    89 domain.set_quantity('friction', 0.0)
     93domain.set_quantity('friction', 0.03)
    9094
    9195#-----------------------------------------------------------------------------
  • trunk/anuga_core/validation_tests/Tests/Experimental_data/dam_break_Yeh_Petroff/plot_results_force.py

    r8673 r8683  
    113113for i in range(N):
    114114    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
     118fudge_factor = 1.0
     119length = 0.12
     120g = 9.8
     121rho_w = 1024
     122average_pressure = 0.5*g*Sh/len(indicesL)*rho_w
     123
     124force = fudge_factor*average_pressure*length
    118125   
    119126
Note: See TracChangeset for help on using the changeset viewer.