Ignore:
Timestamp:
Mar 11, 2008, 7:00:24 PM (17 years ago)
Author:
steve
Message:
 
Location:
anuga_work/development/attenuation_near_shore
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/attenuation_near_shore/create_mesh.py

    r5101 r5161  
    6565    print "mesh created"
    6666
     67
     68def generate_structured():
     69    """
     70    """
     71    from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross
     72    from anuga.shallow_water import Domain
     73    #------------------------------------------------------------------------------
     74    # Setup domain
     75    #------------------------------------------------------------------------------
     76    dx = 10.
     77    dy = dx
     78    L = 2080.
     79    W = 2000.
     80
     81    # structured mesh
     82    points, vertices, boundary = rectangular_cross(int(L/dx), int(W/dy), L, W, (-80.0, -1000.0))
     83
     84    domain = Domain(points, vertices, boundary)
     85
     86    print "domain created"
     87    return domain
     88
     89
    6790   
    6891#-------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.