Changeset 2417 for development/momentum_sink/create_buildings.py
- Timestamp:
- Feb 16, 2006, 3:41:21 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
development/momentum_sink/create_buildings.py
r2415 r2417 7 7 8 8 9 WidtH = 200 # width of boudary in metres 10 depth = 20 # depth of building side to oncoming wave 11 breadth = 20 # breadth of building 12 print "building footprint" 13 print depth * breadth , "m^2" 14 block = 625 15 BL = block**0.5 16 17 porosity = breadth/BL 18 print porosity, " Building porosity" 9 19 10 20 def create_mesh(maximum_triangle_area, … … 18 28 m = Mesh() 19 29 # Boundary of problem 20 WidtH = 200 # width of boudary in metres30 21 31 #W = WidtH/8 22 32 #L = W … … 26 36 27 37 # inner polygons => building boundaries 28 depth = 4 # depth of building side to oncoming wave38 29 39 wh = depth/2 30 breadth = 4 # breadth of building40 31 41 lh = breadth/2 32 42 33 print "building footprint"34 print depth * breadth , "m^2"35 block = 62536 BL = block**0.537 43 ForDep = (0.2*WidtH) + (BL/2) 38 44 RearDep = 1.2*WidtH 39 porosity = breadth/BL40 print porosity, " Building porosity"41 45 42 46 Breadths = Numeric.arrayrange( (BL/2), WidtH, (BL))
Note: See TracChangeset
for help on using the changeset viewer.