Ignore:
Timestamp:
Feb 15, 2006, 4:47:01 PM (19 years ago)
Author:
nicholas
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • development/momentum_sink/create_buildings.py

    r2395 r2415  
    55from pmesh.mesh import Mesh
    66from coordinate_transforms.geo_reference import Geo_reference
     7
    78
    89
     
    1617    # create a mesh instance of class Mesh
    1718    m = Mesh()
    18 
    1919    # Boundary of problem
    2020    WidtH = 200 # width of boudary in metres
     
    2323    outer_polygon = [[0,0],[5*WidtH,0],[5*WidtH,WidtH],[0,WidtH]]
    2424    print outer_polygon
    25     m.add_region_from_polygon(outer_polygon, tags={'wall':[0,1,2], 'wave':[3]})
     25    m.add_region_from_polygon(outer_polygon, tags={'wall':[0,2], 'wave':[3], 'back':[1]})
    2626
    2727    # inner polygons => building boundaries
    28     depth = 20 # depth of building side to oncoming wave
     28    depth = 4 # depth of building side to oncoming wave
    2929    wh = depth/2
    30     breadth = 20 # breadth of building
     30    breadth = 4 # breadth of building
    3131    lh = breadth/2
    32      
     32         
    3333    print "building footprint"
    3434    print depth * breadth , "m^2"
     
    3939    porosity = breadth/BL
    4040    print porosity, " Building porosity"
    41    
     41       
    4242    Breadths = Numeric.arrayrange( (BL/2), WidtH, (BL))
    4343    print Breadths, "Breadths"
Note: See TracChangeset for help on using the changeset viewer.