Changeset 3145
- Timestamp:
- Jun 13, 2006, 2:38:59 PM (19 years ago)
- Location:
- development/dam_2006
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
development/dam_2006/create_mesh.py
r3125 r3145 49 49 'wall', 50 50 'wall', 51 'wa ve',51 'wall', #back of the dam 52 52 'wall', 53 53 'wall', … … 60 60 dam.setTag("dam") 61 61 #m.generateMesh('pzq28.0za0.01a') 62 m.generateMesh('pzq28.0za0.0001a') 62 #m.generate_mesh('pzq28.0za0.0001) 63 m.generate_mesh(maximum_triangle_area=0.0001) 63 64 64 65 m.export_mesh_file(project.mesh_filename) -
development/dam_2006/run_dam.py
r3125 r3145 31 31 import create_mesh 32 32 33 34 #------------------------------------------------------------------------------- 35 # Setup archiving of simulations 36 #------------------------------------------------------------------------------- 37 33 38 copy (project.codedirname, project.outputtimedir + 'project.py') 34 39 copy (project.codedir + 'run_dam.py', project.outputtimedir + 'run_dam.py') … … 40 45 screen_error_name = project.outputtimedir + "screen_error.txt" 41 46 42 #used to catch screen output to file43 #sys.stdout = Screen_Catcher(screen_output_name)44 #sys.stderr = Screen_Catcher(screen_error_name)45 46 '''47 copied_files = False48 49 # files to be used50 files_used = [onshore_dem_name, offshore_points,]51 52 if sys.platform != 'win32':53 copied_files = True54 for name in file_list:55 copy(name, )56 '''57 47 #------------------------------------------------------------------------------- 58 48 # Create the triangular mesh 59 49 #------------------------------------------------------------------------------- 60 #from pmesh.pmesh import mesh61 50 62 51 create_mesh.generate() # this creates the mesh … … 96 85 Bd = Dirichlet_boundary([tide,0,0]) 97 86 98 99 # 7 min square wave starting at 0 min, 6m high100 Bw = Time_boundary(domain = domain,101 f=lambda t: [(0<t<480)*1, 0, 0])102 103 87 #domain.set_boundary( {'wall': Br, 'wave': Bw} ) 104 88 domain.set_boundary( {'wall': Br, 'wave': Br} ) … … 110 94 t0 = time.time() 111 95 112 for t in domain.evolve(yieldstep = 0. 02, finaltime = 10):96 for t in domain.evolve(yieldstep = 0.1, finaltime = 5): 113 97 domain.write_time() 114 98
Note: See TracChangeset
for help on using the changeset viewer.