Changeset 8803
- Timestamp:
- Apr 2, 2013, 1:30:17 PM (12 years ago)
- Location:
- trunk/anuga_core/source/anuga_validation_tests/Behaviour_only/lid_driven_cavity
- Files:
-
- 5 added
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_validation_tests/Behaviour_only/lid_driven_cavity/numerical_lid_driven_cavity.py
r8802 r8803 22 22 from anuga.utilities.argparsing import parse_standard_args 23 23 alg, cfl = parse_standard_args() 24 alg = '2_0'25 24 domain.set_flow_algorithm(alg) 26 25 domain.set_CFL(cfl) 27 domain.set_name('dimensional_lid_driven _') # Output to file runup.sww26 domain.set_name('dimensional_lid_driven') # Output to file runup.sww 28 27 domain.set_datadir('.') # Use current folder 29 28 domain.set_quantities_to_be_stored({'stage': 2, 'xmomentum': 2, 'ymomentum': 2, 'elevation': 1}) … … 50 49 domain.set_boundary({'left': Br, 'right': Br, 'top': Bd, 'bottom':Br}) 51 50 51 52 #------------------------------------------------------------------------------ 53 # Produce a documentation of parameters 54 #------------------------------------------------------------------------------ 55 parameter_file=open('parameters.tex', 'w') 56 parameter_file.write('\\begin{verbatim}\n') 57 from pprint import pprint 58 pprint(domain.get_algorithm_parameters(),parameter_file,indent=4) 59 parameter_file.write('\\end{verbatim}\n') 60 parameter_file.close() 61 52 62 #------------------------------ 53 63 #Evolve the system through time
Note: See TracChangeset
for help on using the changeset viewer.