Changeset 2772


Ignore:
Timestamp:
Apr 27, 2006, 11:10:38 AM (19 years ago)
Author:
nick
Message:

small changes

Location:
inundation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/examples/bedslope.py

    r2619 r2772  
    11"""Simple example of shallow water wave equation using Pyvolution
    22
    3 Water driven by linear slope and Dirichlet boundary
     3Water driven up a linear slope with a time varying boundary,
     4similar to beach environment
    45
    56"""
     
    1213
    1314#Create basic triangular mesh
    14 points, vertices, boundary = rectangular(2, 1)
     15points, vertices, boundary = rectangular(10, 10)
    1516
    1617#Create shallow water domain
     
    3031domain.set_quantity('friction', 0.1)
    3132
    32 h = 0.05  # Constant depth
    33 domain.set_quantity('stage', expression = 'elevation + %f' %h)
     33h = 0.00               # Constant depth over elevation
     34domain.set_quantity('stage', -.4)
    3435
    3536
     
    4142Bd = Dirichlet_boundary([0.2,0.,0.])
    4243Bw = Time_boundary(domain=domain,
    43                    f=lambda t: [(0.1*sin(t*2*pi)), 0.0, 0.0])
     44                   f=lambda t: [(0.1*sin(t*2*pi)-0.3), 0.0, 0.0])
    4445
    4546
    4647print 'Tags are ', domain.get_boundary_tags()
    4748
    48 domain.set_boundary({'left': Bd, 'right': Br, 'top': Br, 'bottom': Br})
    49 #domain.set_boundary({'left': Bw, 'right': Br, 'top': Br, 'bottom': Br})
     49domain.set_boundary({'left': Br, 'right': Bw, 'top': Br, 'bottom': Br})
    5050
    5151
     
    5454domain.check_integrity()
    5555
    56 for t in domain.evolve(yieldstep = 0.1, finaltime = 0.2):
     56for t in domain.evolve(yieldstep = 0.1, finaltime = 4.0):
    5757    domain.write_time()
    5858
  • inundation/geospatial_data/geospatial_data.py

    r2711 r2772  
    443443        ofile is the file name, including the extension
    444444        The point_dict is defined at the top of this file.
     445       
     446        If absolute is True data points at returned added to the xll and yll
     447        and geo_reference as None
     448       
     449        If absolute is False data points at returned as relative to the xll
     450        and yll and geo_reference remains uneffected
    445451        """
    446452   
    447         #this was done for all keys in the mesh file.
    448         #if not mesh_dict.has_key('points'):
    449         #    mesh_dict['points'] = []
    450            
    451453        if (ofile[-4:] == ".xya"):
    452454            if absolute is True:         
Note: See TracChangeset for help on using the changeset viewer.