Changeset 8668


Ignore:
Timestamp:
Dec 8, 2012, 8:26:13 PM (12 years ago)
Author:
mungkasi
Message:

Adding radial_dam_break_dry and modifying the wet one.

Location:
trunk/anuga_core/validation_tests/Tests/Other_References
Files:
6 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/validation_tests/Tests/Other_References/radial_dam_break_wet/radial_dam_break.py

    r8666 r8668  
    4444
    4545#------------------------------------------------------------------------------
    46 # Setup Algorithm
     46# Setup Algorithm, either using command line arguments
     47# or override manually yourself
    4748#------------------------------------------------------------------------------
    48 domain.set_timestepping_method('rk2')
    49 domain.set_default_order(2)
    50 print domain.get_timestepping_method()
     49from anuga.utilities.argparsing import parse_standard_args
     50alg, cfl = parse_standard_args()
     51domain.set_flow_algorithm(alg)
     52domain.set_CFL(cfl)
    5153
    5254#------------------------------------------------------------------------------
     
    7981Br = anuga.Reflective_boundary(domain)      # Solid reflective wall
    8082
    81 
    82 
    8383# Associate boundary tags with boundary objects
    8484domain.set_boundary({'left': Br, 'right': Br, 'top': Br, 'bottom': Br})
    85 
    8685
    8786#===============================================================================
     
    9796# and print to file
    9897#---------------------------------------------
    99 Point = (0.0, 0.0)
    100 for n in range(len(domain.triangles)):
    101     tri = domain.get_vertex_coordinates(n)
    102     if is_inside_triangle(Point,tri):
    103         #print 'Point is within triangle with vertices '+'%s'%tri
    104         n_point = n
    105         break
    106 print 'The triangle ID containing the point of origin is = ',n_point
     98##Point = (0.0, 0.0)
     99##for n in range(len(domain.triangles)):
     100##    tri = domain.get_vertex_coordinates(n)
     101##    if is_inside_triangle(Point,tri):
     102##        #print 'Point is within triangle with vertices '+'%s'%tri
     103##        n_point = n
     104##        break
     105##print 'The triangle ID containing the point of origin is = ',n_point
    107106
    108107
Note: See TracChangeset for help on using the changeset viewer.