Changeset 8668
- Timestamp:
- Dec 8, 2012, 8:26:13 PM (12 years ago)
- 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 44 44 45 45 #------------------------------------------------------------------------------ 46 # Setup Algorithm 46 # Setup Algorithm, either using command line arguments 47 # or override manually yourself 47 48 #------------------------------------------------------------------------------ 48 domain.set_timestepping_method('rk2') 49 domain.set_default_order(2) 50 print domain.get_timestepping_method() 49 from anuga.utilities.argparsing import parse_standard_args 50 alg, cfl = parse_standard_args() 51 domain.set_flow_algorithm(alg) 52 domain.set_CFL(cfl) 51 53 52 54 #------------------------------------------------------------------------------ … … 79 81 Br = anuga.Reflective_boundary(domain) # Solid reflective wall 80 82 81 82 83 83 # Associate boundary tags with boundary objects 84 84 domain.set_boundary({'left': Br, 'right': Br, 'top': Br, 'bottom': Br}) 85 86 85 87 86 #=============================================================================== … … 97 96 # and print to file 98 97 #--------------------------------------------- 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'%tri104 n_point = n105 break106 print 'The triangle ID containing the point of origin is = ',n_point98 ##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 107 106 108 107
Note: See TracChangeset
for help on using the changeset viewer.