Changeset 2938
- Timestamp:
- May 22, 2006, 10:29:14 AM (18 years ago)
- Location:
- development/momentum_sink
- Files:
-
- 98 added
- 26 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
development/momentum_sink/scripts/loop_buildings.py
r2927 r2938 1 """ File used for looping create_buildings script to create many 2 building scenarios with variations in building width """ 3 1 4 2 5 #Convention for strings representing files … … 20 23 21 24 22 23 DR = list(Numeric.arange(3,7,1)) 25 # creates buildign scenarios from widths A to B in steps of n >> list(Numeric.arange(A,B,n)) 26 DR = list(Numeric.arange(3,7,1)) 24 27 #DR = [4,5] #[3,5,7,9,11,13,15,17,19,21,23] 25 28 for depth in DR: … … 43 46 ) 44 47 45 48 # Building scenario name with width and traingle count added. 46 49 domain.set_name(project.basename + '_Rot(45)_5_D_%s_%d' %(str(depth), triagle_count)) 47 50 domain.set_datadir(project.outputdir) … … 64 67 Br = Reflective_boundary(domain) 65 68 Bt = Transmissive_boundary(domain) 66 Bdw = Dirichlet_boundary([5,0,0]) 67 Bdb = Dirichlet_boundary([0,0,0]) 69 Bdw = Dirichlet_boundary([5,0,0]) # wave height # <<<<<<<<< CHANGE WAVE DEPTH HERE >>>>>>>>>>>> 70 Bdb = Dirichlet_boundary([0,0,0]) # rear boundary, keep at zero. 68 71 Bw = Time_boundary(domain=domain, 69 72 f=lambda t: [(60<t<660)*4, 0, 0])
Note: See TracChangeset
for help on using the changeset viewer.