Changeset 3112
- Timestamp:
- Jun 8, 2006, 11:56:20 AM (19 years ago)
- Location:
- development/momentum_sink
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
development/momentum_sink/scripts/loop_buildings.py
r2938 r3112 23 23 24 24 25 # creates buildign scenarios from widths A to B in steps of n >> list(Numeric.arange(A,B,n)) 25 # creates buildign scenarios from widths A to B in steps of n >> 26 # >> list(Numeric.arange(A,B,n)) 26 27 DR = list(Numeric.arange(3,7,1)) 27 28 #DR = [4,5] #[3,5,7,9,11,13,15,17,19,21,23] … … 67 68 Br = Reflective_boundary(domain) 68 69 Bt = Transmissive_boundary(domain) 69 Bdw = Dirichlet_boundary([5,0,0]) # wave height # <<<<<<<<< CHANGE WAVE DEPTH HERE >>>>>>>>>>>> 70 # <<<<<<<<< CHANGE WAVE DEPTH HERE >>>>>>>>>>>> 71 Bdw = Dirichlet_boundary([5,0,0]) # inundating wave height 70 72 Bdb = Dirichlet_boundary([0,0,0]) # rear boundary, keep at zero. 71 73 Bw = Time_boundary(domain=domain, -
development/momentum_sink/scripts/loop_friction.py
r2927 r3112 1 """ File used for looping 'friction block.py' script to create many 2 friction scenarios with variations in Manning's n """ 1 3 2 4 #Convention for strings representing files … … 4 6 # #name does not have the extension 5 7 6 7 # set friction value for zone8 8 9 9 import time … … 17 17 from region import Set_region 18 18 from pyvolution.least_squares import fit_to_mesh_file, DEFAULT_ALPHA 19 20 21 19 from friction_block import create_mesh 22 #from building_generator import create_mesh23 24 20 from pmesh.mesh import importMeshFromFile 25 21 22 # generation of friction value list 26 23 Friction_large = list(Numeric.arange(1,120,1)) 27 24 Friction = list(Numeric.arange(0.025,1,0.025)) … … 41 38 print "-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-" 42 39 t0 = time.time() 43 44 40 #meshname, triagle_count =create_mesh(100,mesh_file=meshname,triangles_in_name=True) 45 46 41 meshname, triagle_count = cache(create_mesh,(100), 47 42 {'mesh_file':meshname, … … 52 47 #meshname = 'build.tsh' 53 48 #outputname = outputname[:-4] + '_' + str(triagle_count) + outputname[-4:] 54 55 49 print 'Initialising the mesh took %.2f seconds' %(time.time()-t0) 56 57 58 50 #meshname = importMeshFromFile('build.tsh') 59 60 51 #Setup domain 61 52 domain = cache(pmesh_to_domain_instance, (meshname, Domain),
Note: See TracChangeset
for help on using the changeset viewer.