Changeset 624
- Timestamp:
- Nov 24, 2004, 4:56:52 PM (20 years ago)
- Location:
- inundation/ga/storm_surge/pyvolution
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/bed_w_eden_boundary.py
r340 r624 47 47 f=lambda t: [(1*sin(t*pi/20)), 0.0, 0.0]) 48 48 49 Bf = File_boundary( domain, filename)49 Bf = File_boundary(filename, domain) 50 50 51 51 #domain.set_boundary({'left': Bw, 'right': Br, 'top': Br, 'bottom': Br}) -
inundation/ga/storm_surge/pyvolution/bed_w_file_boundary.py
r324 r624 20 20 domain.smooth = False 21 21 domain.visualise = True 22 domain.newstyle = False #(Better in this case)23 22 domain.default_order=2 24 23 … … 63 62 f=lambda t: [(10*sin(t*0.1*pi)), 0.0, 0.0]) 64 63 65 Bf = File_boundary( domain, filename)64 Bf = File_boundary(filename, domain) 66 65 67 66 #domain.set_boundary({'left': Bw, 'right': Br, 'top': Br, 'bottom': Br}) -
inundation/ga/storm_surge/pyvolution/util.py
r623 r624 96 96 from config import time_format 97 97 98 assert type(filename) == type(''),\ 99 'First argument to File_function must be a string' 100 101 98 102 try: 99 103 fid = open(filename) 100 104 except Exception, e: 101 msg = 'File %s could not be opened: %s\n'\105 msg = 'File "%s" could not be opened: Error="%s"'\ 102 106 %(filename, e) 103 107 raise msg -
inundation/ga/storm_surge/pyvolution/wiki/issues.txt
r544 r624 2 2 OPEN ISSUES: 3 3 ------------ 4 5 Issue (Malpasset example): 6 Pmesh no longer takes care of attributes but still accepts xya with attributes. 7 8 Background: 9 Chris imported xya file into pmesh. It contained x, y, bed elevation 10 The tsh thus generated did add bed elevation, but didn't produce the proper 11 tsh file. 12 13 Importance: mid 14 Suggested actions: Either spit out an error message or generate a proper 15 tsh-header. 16 17 18 19 4 20 5 21 Issue: Exceptions thrown by Python functions called from C don't get caughts -
inundation/ga/storm_surge/pyvolution/wind_example_variable.py
r614 r624 12 12 13 13 #Create basic mesh 14 N = 12014 N = 20 15 15 length = 200 16 16 points, vertices, boundary = rectangular(N, N, length, length) … … 32 32 33 33 #Variable windfield implemented using functions 34 def speed( x,y,t):34 def speed(t,x,y): 35 35 """Large speeds halfway between center and edges 36 36 Low speeds at center and edges … … 48 48 49 49 50 def phi( x,y,t):50 def phi(t,x,y): 51 51 """Rotating field 52 52 """ … … 76 76 77 77 #Add lateral wind gusts bearing 25 deg 78 def gust( x,y,t):78 def gust(t,x,y): 79 79 from math import sin, pi 80 80 from Numeric import zeros, ones, Float
Note: See TracChangeset
for help on using the changeset viewer.