Changeset 924
- Timestamp:
- Feb 18, 2005, 2:52:59 PM (20 years ago)
- Location:
- inundation/ga/storm_surge/examples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/examples/run_gong.py
r898 r924 25 25 26 26 import time 27 28 from config import default_datadir29 27 30 28 ###################### … … 63 61 file_path, filename = path.split(filename) 64 62 filename, ext = path.splitext(filename) 65 if domain.smooth is True: 66 s = 'smooth' 67 else: 68 s = 'nonsmooth' 69 domain.filename = filename + '_' + s + '_ys'+ str(yieldstep) + \ 63 domain.filename = filename + '_' + '_ys'+ str(yieldstep) + \ 70 64 '_ft' + str(finaltime) 71 print "Output being written to " + d efault_datadir+ sep + \65 print "Output being written to " + domain.get_datadir() + sep + \ 72 66 domain.filename + "." + domain.format 73 67 … … 86 80 87 81 #Constant inflow 88 Bd = Dirichlet_boundary(array([ 10, 0.0, 0.0]))82 Bd = Dirichlet_boundary(array([inflow_stage, 0.0, 0.0])) 89 83 90 84 #Time dependent inflow … … 94 88 (inflow_stage*(sin(2.5*x*pi)+0.7)),0,0])) 95 89 90 boundary_file = 'kermadec2.sww' 91 92 Fb = File_boundary(boundary_file, domain, verbose=True) 96 93 97 94 print 'Available boundary tags are', domain.get_boundary_tags() 95 print 'The extent is ', domain.get_extent() 98 96 99 97 #Set the ocean... … … 103 101 104 102 tags = {} 105 tsunami = Time_boundary(domain=domain, 106 f=lambda x: array([(1 + sin(x*pi/4))*\ 107 (0.15*(sin(2.5*x*pi)+0.7)),0,0])) 103 104 tsunami = Bw 108 105 tags['w1'] = tsunami 109 106 tags['w2'] = tsunami -
inundation/ga/storm_surge/examples/run_tsh.py
r885 r924 26 26 import time 27 27 28 from config import default_datadir28 #from config import default_datadir 29 29 30 30 ###################### … … 69 69 domain.filename = filename + '_' + s + '_ys'+ str(yieldstep) + \ 70 70 '_ft' + str(finaltime) 71 print "Output being written to " + d efault_datadir+ sep + \71 print "Output being written to " + domain.get_datadir() + sep + \ 72 72 domain.filename + "." + domain.format 73 73
Note: See TracChangeset
for help on using the changeset viewer.