Changeset 8548


Ignore:
Timestamp:
Sep 1, 2012, 1:58:45 PM (12 years ago)
Author:
davies
Message:

Minor updates to validation test code

Location:
trunk/anuga_core
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/shallow_water/okada_tsunami.py

    r8467 r8548  
    2323"""
    2424import numpy
    25 import okada_tsunami_fortran
     25
     26try:
     27    import okada_tsunami_fortran
     28except:
     29    raise Exception,\
     30    'okada_tsunami_fortran does not appear to be compiled.\n \
     31    You can compile it by running the command:\n \
     32    "f2py -c okada_tsunami_fortran.f -m okada_tsunami_fortran"\n \
     33    in the shallow_water directory'
     34 
    2635from pyproj import Proj
    2736import copy
  • trunk/anuga_core/validation_tests/Tests/Benchmarks/Isolated_Building/results.tex

    r8523 r8548  
    33
    44Herein \anuga{} is tested against the isolated obstacle test, which involves a dam-break flow past an isolated building. This benchmark experiment is reported in:
    5 
    6 Soares-Frazao, S. and Zech, Y. (2007) Experimental study of dam-break flow against an isolated obstacle. Journal of Hydraulic Resaerch 45(Extra Issue):27-36
     5\begin{verbatim}
     6Soares-Frazao, S. and Zech, Y. (2007)
     7Experimental study of dam-break flow against an isolated obstacle. Journal of
     8Hydraulic Resaerch 45(Extra Issue):27-36
     9\end{verbatim}
    710
    811The data is provided in a DVD-ROM associated with the above JHR issue.
    912
    10 Note that many models have been applied to this problem, and their performance is reviewed in Soares Frazao, S., Noel, B., Spinewine, B., and Zech, Y. (YEAR) The isolated building test case: results from the IMPACT benchmark. At the time of writing, the performance of \anuga{} on this problem is qualitatively similar to the performance of most other models -- i.e. it simulates the main aspects of the flow, but often not the details. It seems likely that these experimental flows may well partly violate the shallow water approximations, and to the extent that this is true, we would not expect perfect agreement.
     13Note that many models have been applied to this problem, and their performance is reviewed in:
     14\begin{verbatim}
     15 Soares Frazao, S., Noel, B., Spinewine, B., and Zech, Y. (YEAR) The isolated
     16building test case: results from the IMPACT benchmark.
     17\end{verbatim}
     18 At the time of writing, the performance of \anuga{} on this problem is qualitatively similar to the performance of most other models -- i.e. it simulates the main aspects of the flow, but often not the details. It seems likely that these experimental flows may well partly violate the shallow water approximations, and to the extent that this is true, we would not expect perfect agreement.
    1119
    1220\subsection{Results}
  • trunk/anuga_core/validation_tests/Tests/Simple/parabolic_basin_1D/parabolic.py

    r8468 r8548  
    1515domain.set_name('parabola_v2')                         # Output to file runup.sww
    1616domain.set_datadir('.')                          # Use current folder
    17 domain.set_minimum_allowed_height(0.01)
     17#domain.set_minimum_allowed_height(0.01)
    1818
    1919
  • trunk/anuga_core/validation_tests/Tests/Simple/runup_sinusoid/runup_sinusoid.py

    r8468 r8548  
    2525domain.set_quantities_to_be_stored({'stage': 2, 'xmomentum': 2, 'ymomentum': 2, 'elevation': 1})
    2626#domain.set_store_vertices_uniquely(True)
    27 domain.minimum_allowed_height=0.001
     27#domain.minimum_allowed_height=0.001
    2828
    2929#------------------------------------------------------------------------------
  • trunk/anuga_core/validation_tests/__init__.py

    r8527 r8548  
    11"""
    2     A set of modules which is used to build a geometrical representation
    3     of the test scenario domain.
    4    
    5     It contains functions for fitting data across an arbitrary terrain height
    6     mesh.
     2    Validation tests
    73"""
    84
     
    128
    139
    14 
  • trunk/anuga_core/validation_tests/produce_results.py

    r8533 r8548  
    2020timestamp = time.asctime()
    2121major_revision = anuga.config.major_revision
    22 minor_revision = anuga.utilities.system_tools.get_revision_number()
     22try:
     23    # This fails if using git for version control
     24    minor_revision = anuga.utilities.system_tools.get_revision_number()
     25except:
     26    try:
     27        # This works when using git on unix
     28        minor_revision=os.popen("git show-ref --head -s | head -n1").read().strip()
     29    except:
     30        # This is a fallback position
     31        minor_revision='unknown'
    2332
    2433#---------------------------------
  • trunk/anuga_core/validation_tests/report.tex

    r8533 r8548  
    5050%======================
    5151
    52 %\inputresults{Tests/Benchmarks/Isolated_Building}
     52\inputresults{Tests/Benchmarks/Isolated_Building}
    5353
    5454\inputresults{Tests/Benchmarks/Okushiri}
Note: See TracChangeset for help on using the changeset viewer.