Changeset 8527


Ignore:
Timestamp:
Aug 21, 2012, 7:43:27 AM (13 years ago)
Author:
steve
Message:

Adding fabricate to the validation tests (like make files)

Location:
trunk/anuga_core/validation_tests
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/validation_tests/Tests/Simple/deep_wave

    • Property svn:ignore set to
      .deps
  • trunk/anuga_core/validation_tests/Tests/Simple/deep_wave/produce_results.py

    r8468 r8527  
    1 
    2 from anuga.utilities.argparsing import run_validation_script
    31
    42
    5 run_validation_script('run_wave.py')
    6 run_validation_script('plotme.py')
     3from fabricate import *
    74
     5# Get the values of alg and cfl and any other
     6# paarameters set for these validation tests
     7from validation_tests.parameters import *
     8
     9
     10# Setup the python scripts which produce the output for this
     11# validation test
     12def build():
     13    run('python', 'run_wave.py',  '-alg', alg, '-cfl', cfl)
     14    run('python', 'plotme.py', '-alg', alg, '-cfl', cfl )
     15
     16def clean():
     17    autoclean()
     18
     19main()
  • trunk/anuga_core/validation_tests/Tests/Simple/deep_wave/run_wave.py

    r8468 r8527  
    9090Bw = anuga.Time_boundary(domain=domain,     # Time dependent boundary
    9191## Sine wave
    92                   f=lambda t: [(-amplitude*sin((1./wave_length)*t*2*pi)), 0.0, 0.0])
     92                  function=lambda t: [(-amplitude*sin((1./wave_length)*t*2*pi)), 0.0, 0.0])
    9393## Sawtooth?
    94 #                   f=lambda t: [(-8.0*(sin((1./180.)*t*2*pi))+(1./2.)*sin((2./180.)*t*2*pi)+(1./3.)*sin((3./180.)*t*2*pi)), 0.0, 0.0])
     94#                   function=lambda t: [(-8.0*(sin((1./180.)*t*2*pi))+(1./2.)*sin((2./180.)*t*2*pi)+(1./3.)*sin((3./180.)*t*2*pi)), 0.0, 0.0])
    9595## Sharp rise, linear fall
    96 #                   f=lambda t: [(5.0*(-((t-0.)/300.)*(t<300.)-cos((t-300.)*2.*pi*(1./240.))*(t>=300. and t<420.)+(1.-(t-420.)/300.)*(t>=420. and t <720.))), 0.0, 0.0])
    97 #                   f=lambda t: [amplitude*(1.-2.*(pi*(1./720.)*(t-720.))**2)/exp((pi*(1./720.)*(t-720.))**2) , 0.0, 0.0])
    98 #                   f=lambda t: [(-8.0*sin((1./720.)*t*2*pi))*((t<720.)-0.5*(t<360.)), 0.0, 0.0])
     96#                   function=lambda t: [(5.0*(-((t-0.)/300.)*(t<300.)-cos((t-300.)*2.*pi*(1./240.))*(t>=300. and t<420.)+(1.-(t-420.)/300.)*(t>=420. and t <720.))), 0.0, 0.0])
     97#                   function=lambda t: [amplitude*(1.-2.*(pi*(1./720.)*(t-720.))**2)/exp((pi*(1./720.)*(t-720.))**2) , 0.0, 0.0])
     98#                   function=lambda t: [(-8.0*sin((1./720.)*t*2*pi))*((t<720.)-0.5*(t<360.)), 0.0, 0.0])
    9999def waveform(t):
    100100    return -amplitude*sin((1./wave_length)*t*2*pi)
  • trunk/anuga_core/validation_tests/Tests/Simple/runup1/runup.py

    r8468 r8527  
    6262Bd=anuga.Dirichlet_boundary([-0.2,0.,0.])       # Constant boundary values -- not used in this example
    6363Bw=anuga.Time_boundary(domain=domain,
    64         f=lambda t: [(0.0*sin(t*2*pi)-0.1)*exp(-t)-0.1,0.0,0.0]) # Time varying boundary -- get rid of the 0.0 to do a runup.
     64        function=lambda t: [(0.0*sin(t*2*pi)-0.1)*exp(-t)-0.1,0.0,0.0]) # Time varying boundary -- get rid of the 0.0 to do a runup.
    6565
    6666#----------------------------------------------
  • trunk/anuga_core/validation_tests/report.tex

    r8468 r8527  
    1616%=========================================
    1717
    18 \title{Automated Report on the Performance of \anuga ~on Various Test Problems}
     18\title{Automated Report on the Performance of \anuga on Various Test Problems}
    1919\maketitle
    2020\tableofcontents
     
    5050%======================
    5151
    52 %\inputresults{Tests/Experimental/Isolated_Building}
     52%\inputresults{Tests/Benchmarks/Isolated_Building}
    5353
    54 \inputresults{Tests/Experimental/Okushiri}
     54\inputresults{Tests/Benchmarks/Okushiri}
    5555
    5656%======================
Note: See TracChangeset for help on using the changeset viewer.