Changeset 624


Ignore:
Timestamp:
Nov 24, 2004, 4:56:52 PM (20 years ago)
Author:
ole
Message:
 
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  
    4747                   f=lambda t: [(1*sin(t*pi/20)), 0.0, 0.0])
    4848
    49 Bf = File_boundary(domain, filename)
     49Bf = File_boundary(filename, domain)
    5050
    5151#domain.set_boundary({'left': Bw, 'right': Br, 'top': Br, 'bottom': Br})
  • inundation/ga/storm_surge/pyvolution/bed_w_file_boundary.py

    r324 r624  
    2020domain.smooth = False
    2121domain.visualise = True
    22 domain.newstyle = False #(Better in this case)
    2322domain.default_order=2
    2423
     
    6362                   f=lambda t: [(10*sin(t*0.1*pi)), 0.0, 0.0])
    6463
    65 Bf = File_boundary(domain, filename)
     64Bf = File_boundary(filename, domain)
    6665
    6766#domain.set_boundary({'left': Bw, 'right': Br, 'top': Br, 'bottom': Br})
  • inundation/ga/storm_surge/pyvolution/util.py

    r623 r624  
    9696        from config import time_format
    9797
     98        assert type(filename) == type(''),\
     99               'First argument to File_function must be a string'
     100
     101
    98102        try:
    99103            fid = open(filename)
    100104        except Exception, e:
    101             msg = 'File %s could not be opened: %s\n'\
     105            msg = 'File "%s" could not be opened: Error="%s"'\
    102106                  %(filename, e)
    103107            raise msg
  • inundation/ga/storm_surge/pyvolution/wiki/issues.txt

    r544 r624  
    22OPEN ISSUES:
    33------------
     4
     5Issue (Malpasset example):
     6Pmesh no longer takes care of attributes but still accepts xya with attributes.
     7
     8Background:
     9Chris imported xya file into pmesh. It contained x, y, bed elevation
     10The tsh thus generated did add bed elevation, but didn't produce the proper
     11tsh file.
     12
     13Importance: mid
     14Suggested actions: Either spit out an error message or generate a proper
     15tsh-header.
     16
     17 
     18
     19
    420
    521Issue: Exceptions thrown by Python functions called from C don't get caughts
  • inundation/ga/storm_surge/pyvolution/wind_example_variable.py

    r614 r624  
    1212
    1313#Create basic mesh
    14 N = 120
     14N = 20
    1515length = 200
    1616points, vertices, boundary = rectangular(N, N, length, length)
     
    3232
    3333#Variable windfield implemented using functions
    34 def speed(x,y,t):
     34def speed(t,x,y):
    3535    """Large speeds halfway between center and edges
    3636    Low speeds at center and edges
     
    4848
    4949
    50 def phi(x,y,t):
     50def phi(t,x,y):
    5151    """Rotating field
    5252    """
     
    7676
    7777#Add lateral wind gusts bearing 25 deg
    78 def gust(x,y,t):
     78def gust(t,x,y):
    7979    from math import sin, pi
    8080    from Numeric import zeros, ones, Float
Note: See TracChangeset for help on using the changeset viewer.