Changeset 3533
- Timestamp:
- Aug 25, 2006, 4:51:49 PM (19 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/pyvolution/shallow_water.py
r3532 r3533 142 142 #self.reduction = min #Looks better near steep slopes 143 143 144 145 def set_minimum_sww_depth(self, minimum_sww_depth): 146 """ 147 Set the minimum depth that will be recognised when writing 148 to an sww file. This is useful for removing thin water layers 149 that seems to be caused by friction creep. 150 151 The minimum allowed sww depth is in meters. 152 """ 153 self.minimum_sww_depth = minimum_sww_depth 144 154 145 155 -
development/dam_2006/project.py
r3456 r3533 15 15 16 16 if sys.platform == 'win32': 17 home = environ['INUNDATIONHOME'] #Sandpit's parent dir 17 try: 18 home = environ['INUNDATIONHOME'] #Sandpit's parent dir 19 except: 20 home = '.' 18 21 else: 19 22 home = getenv('INUNDATIONHOME', sep+'d'+sep+'cit'+sep+'1'+sep+'cit'+sep+'risk_assessment_methods_project'+sep+'inundation') 20 23 24 25 if not access(home, F_OK): 26 home = '.' 27 21 28 #Derive subdirectories and filenames 22 29 time = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir … … 25 32 outputtimedir = outputdir+time+sep 26 33 meshdir = scenariodir+sep+'meshes'+sep 27 datadir = scenariodir+sep+'topographies'+sep28 gaugedir = scenariodir+sep+'gauges'+sep29 polygondir = scenariodir+sep+'polygons'+sep30 boundarydir = scenariodir+sep+'boundaries'+sep31 #output dir without time32 outputdir = scenariodir+sep+'output'+sep33 tidedir = scenariodir+sep+'tide_data'+sep34 34 35 gauge_filename = gaugedir + 'gauge_location_dam.xya'36 #buildings_filename = gaugedir + 'onslow_res.csv'37 #community_filename = gaugedir + 'CHINS_v2.csv'38 #community_scenario = gaugedir + 'community_onslow.csv'39 #gaugetimeseries = gaugedir + 'onslow'40 35 depth_filename = outputtimedir + "depth.csv" 41 36 velocity_x_filename = outputtimedir + "velocity_x.csv" … … 56 51 mkdir (outputtimedir) 57 52 58 if not access(gaugedir,F_OK):59 mkdir (gaugedir)60 61 # boundary source data62 #MOST_dir = 'f:'+sep+'3'+sep+'ehn'+sep+'users'+sep+'davidb'+sep+'tsunami'+sep+'WA_project'+sep+'SU-AU_90'+sep+'most_2'+sep+'detailed'+sep63 64 53 codedir = getcwd()+sep 65 54 -
development/dam_2006/run_dam.py
r3514 r3533 1 """Script for running a tsunami inundation scenario for Onslow, WA, Australia.1 """Script for running a dam break simulation of UQ's dam break tank. 2 2 3 Source data such as elevation and boundary data is assumed to be available in4 directories specified by project.py5 The output sww file is stored in project.outputtimedir6 3 7 The scenario is defined by a triangular mesh created from project.polygon, 8 the elevation data and a simulated submarine landslide. 9 10 Ole Nielsen and Duncan Gray, GA - 2005 and Nick Bartzis, GA - 2006 4 Ole Nielsen and Duncan Gray, GA - 2006 11 5 """ 12 6 … … 20 14 import sys 21 15 from shutil import copy 22 from os import mkdir, access, F_OK,path16 from os import path 23 17 24 18 # Related major packages … … 72 66 print domain.statistics() 73 67 68 74 69 domain.set_name(project.basename) 75 70 domain.set_datadir(project.outputtimedir) 76 71 domain.set_quantities_to_be_stored(['stage', 'xmomentum', 'ymomentum']) 72 domain.set_minimum_sww_depth(0.01) 77 73 78 74 #------------------------------------------------------------------------- … … 80 76 #------------------------------------------------------------------------- 81 77 82 tide = 0.083 78 slope = 0.05 84 79 -
documentation/user_manual/anuga_user_manual.tex
r3499 r3533 1388 1388 been run, returns the value \code{default\_datadir} specified in 1389 1389 \code{config.py}. 1390 \end{methoddesc} 1391 1392 \begin{methoddesc} {set\_minimum_sww_depth}{time=0.0} 1393 Module: \module{pyvolution.domain} 1394 1395 Sets the minimum depth that will be recognised when writing 1396 to an sww file. This is useful for removing thin water layers 1397 that seems to be caused by friction creep. 1390 1398 \end{methoddesc} 1391 1399
Note: See TracChangeset
for help on using the changeset viewer.