Changeset 2395 for development/momentum_sink/run_friction.py
- Timestamp:
- Feb 14, 2006, 1:43:12 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
development/momentum_sink/run_friction.py
r2379 r2395 26 26 t0 = time.time() 27 27 28 #meshname, triagle_count =create_mesh(100,mesh_file=meshname,triangles_in_name=True) 29 28 30 meshname, triagle_count = cache(create_mesh,(100), 29 31 {'mesh_file':meshname, … … 50 52 domain.set_datadir(project_friction.outputdir) 51 53 domain.store = True 52 domain.quantities_to_be_stored = ['stage' ]54 domain.quantities_to_be_stored = ['stage','xmomentum','ymomentum'] 53 55 54 56 print 'Number of triangles = ', len(domain) … … 58 60 domain.set_quantity('friction', 0.01) 59 61 domain.set_quantity('stage', 0) 60 domain.set_region(Set_region('mound', 'friction', 0.8)) #, location='unique vertices'))62 domain.set_region(Set_region('mound', 'friction', 3)) #, location='unique vertices')) 61 63 #Setup Boundary Conditions 62 64 print domain.get_boundary_tags() … … 66 68 Br = Reflective_boundary(domain) 67 69 Bt = Transmissive_boundary(domain) 68 Bd = Dirichlet_boundary([36,0,0]) 70 Bdw = Dirichlet_boundary([36,0,0]) 71 Bdb = Dirichlet_boundary([0,0,0]) 69 72 Bw = Time_boundary(domain=domain, 70 73 f=lambda t: [(60<t<660)*4, 0, 0]) 71 74 72 domain.set_boundary( {'wall': Br,'wave': Bd , 'back': Bt, 'exterior':Bd} )75 domain.set_boundary( {'wall': Br,'wave': Bdw, 'back': Bdb, 'exterior':Bdw} ) 73 76 74 77 #Evolve 75 78 t0 = time.time() 76 79 77 for t in domain.evolve(yieldstep = 1, finaltime = 80):80 for t in domain.evolve(yieldstep = 4, finaltime = 400): 78 81 domain.write_time() 79 82
Note: See TracChangeset
for help on using the changeset viewer.