Changeset 8803


Ignore:
Timestamp:
Apr 2, 2013, 1:30:17 PM (12 years ago)
Author:
mungkasi
Message:

Adding automated report for lid-driven cavity flow.

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  
    2222from anuga.utilities.argparsing import parse_standard_args
    2323alg, cfl = parse_standard_args()
    24 alg = '2_0'
    2524domain.set_flow_algorithm(alg)
    2625domain.set_CFL(cfl)
    27 domain.set_name('dimensional_lid_driven_')   # Output to file runup.sww
     26domain.set_name('dimensional_lid_driven')   # Output to file runup.sww
    2827domain.set_datadir('.')         # Use current folder
    2928domain.set_quantities_to_be_stored({'stage': 2, 'xmomentum': 2, 'ymomentum': 2, 'elevation': 1})
     
    5049domain.set_boundary({'left': Br, 'right': Br, 'top': Bd, 'bottom':Br})
    5150
     51
     52#------------------------------------------------------------------------------
     53# Produce a documentation of parameters
     54#------------------------------------------------------------------------------
     55parameter_file=open('parameters.tex', 'w')
     56parameter_file.write('\\begin{verbatim}\n')
     57from pprint import pprint
     58pprint(domain.get_algorithm_parameters(),parameter_file,indent=4)
     59parameter_file.write('\\end{verbatim}\n')
     60parameter_file.close()
     61
    5262#------------------------------
    5363#Evolve the system through time
Note: See TracChangeset for help on using the changeset viewer.