Ignore:
Timestamp:
Feb 16, 2006, 3:41:21 PM (19 years ago)
Author:
nicholas
Message:

Creation of looped friction to auto generate multiple friction blocks. CCS.py created as modified copy of PCS.py ( plots cross section at various times of buildings and friction blocks)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • development/momentum_sink/create_buildings.py

    r2415 r2417  
    77
    88
     9WidtH = 200 # width of boudary in metres
     10depth = 20 # depth of building side to oncoming wave
     11breadth = 20 # breadth of building
     12print "building footprint"
     13print depth * breadth , "m^2"
     14block = 625
     15BL = block**0.5
     16
     17porosity = breadth/BL
     18print porosity, " Building porosity"
    919
    1020def create_mesh(maximum_triangle_area,
     
    1828    m = Mesh()
    1929    # Boundary of problem
    20     WidtH = 200 # width of boudary in metres
     30   
    2131    #W = WidtH/8
    2232    #L = W
     
    2636
    2737    # inner polygons => building boundaries
    28     depth = 4 # depth of building side to oncoming wave
     38   
    2939    wh = depth/2
    30     breadth = 4 # breadth of building
     40   
    3141    lh = breadth/2
    3242         
    33     print "building footprint"
    34     print depth * breadth , "m^2"
    35     block = 625
    36     BL = block**0.5
    3743    ForDep = (0.2*WidtH) + (BL/2)
    3844    RearDep = 1.2*WidtH
    39     porosity = breadth/BL
    40     print porosity, " Building porosity"
    4145       
    4246    Breadths = Numeric.arrayrange( (BL/2), WidtH, (BL))
Note: See TracChangeset for help on using the changeset viewer.