Changeset 2076
- Timestamp:
- Nov 25, 2005, 2:47:32 PM (19 years ago)
- Location:
- production/gippsland_2005
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
production/gippsland_2005/create_mesh.py
r2059 r2076 10 10 from coordinate_transforms.geo_reference import Geo_reference 11 11 12 def create_mesh(max_area ):12 def create_mesh(max_area, mesh_file=None): 13 13 #Lower left corner 14 14 xllcorner = 570066 … … 53 53 54 54 m.generateMesh('q28.0z', maxArea = max_area) 55 #m.export_mesh_file('lakes_small_100_test.tsh') 56 return m, len(m.getTriangulation()) 55 if mesh_file is None: 56 return m, len(m.getTriangulation()) 57 else: 58 m.export_mesh_file(mesh_file) 59 return len(m.getTriangulation()) 60 57 61 58 62 #------------------------------------------------------------- -
production/gippsland_2005/project.py
r2058 r2076 10 10 #Making assumptions about the location of scenario data 11 11 # Assumes the INUNDATIONHOME environ variable exists 12 12 13 scenario_dir_name = 'gippsland_storm_surge_scenario_2005' 13 14 basename = 'test' 15 14 basename = 'lakes_100' 16 15 boundary_basename = 'csiro_bondary' 17 16 … … 32 31 vcur_dir = boundarydir + 'vcur_expanded' 33 32 34 meshname = meshdir + basename 35 demname = datadir + basename 36 boundaryname = boundarydir + boundary_basename 37 outputname = outputdir + basename #Used by post processing 33 meshname = meshdir + basename + '.tsh' 34 mesh_elevname = meshdir + basename + '_elev' + '.tsh' 35 demname = datadir + basename + '.dem' 36 #demname = datadir + 'lakes_100' 37 pointname = datadir + basename + '.pts' 38 boundaryname = boundarydir + boundary_basename + '.sww' 39 outputname = outputdir + basename + '.sww' #Used by post processing 38 40 39 41 gauge_filename = 'all_bld_ind.csv' -
production/gippsland_2005/run_small_gippsland.py
r2063 r2076 44 44 # NOTE: This function is dependent on a lot of files, and I haven't listed 45 45 # them, since there is so many and I don't think they will be changing. 46 47 print "project.boundaryname + '.sww'",project.boundaryname + '.sww' 46 48 cache(asc_csiro2sww, 47 49 (project.bath_dir, … … 58 60 'zscale': 1, #Enhance tsunami 59 61 'fail_on_NaN': False}, 60 #evaluate = True, 62 #evaluate = True, 61 63 verbose = True) 62 63 64 64 65 #Create the mesh .. 65 66 66 67 #cache this, with dependancy on create_mesh.py 67 mesh, triagle_count = create_mesh(100000 00)68 68 mesh, triagle_count = create_mesh(100000) 69 #mesh..export_mesh_file(meshname + '.tsh') 69 70 70 71 #meshname = project.meshname + '_%d.msh' %resolution … … 74 75 #Setup domain 75 76 76 domain = cache(pmesh_instance_to_domain_instance, (mesh, Domain), 77 #dependencies = [meshname], 78 verbose = True) 77 domain = pmesh_instance_to_domain_instance(mesh, Domain) 78 79 # this was crashing outside of python 80 #domain = cache(pmesh_instance_to_domain_instance, (mesh, Domain), 81 # #dependencies = [meshname], 82 # evaluate = True, 83 # verbose = True) 79 84 80 85 … … 116 121 Br = Reflective_boundary(domain) 117 122 Bt = Transmissive_boundary(domain) 118 Bd = Dirichlet_boundary([ tide,0,0])123 Bd = Dirichlet_boundary([project.tide,0,0]) 119 124 Bw = Time_boundary(domain=domain, 120 125 f=lambda t: [(60<t<660)*4, 0, 0])
Note: See TracChangeset
for help on using the changeset viewer.