Ignore:
Timestamp:
Feb 14, 2006, 1:43:12 PM (19 years ago)
Author:
nicholas
Message:

Updated compare_sww.py. Increased distance of rear boundary and changed to dirichlet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • development/momentum_sink/run_friction.py

    r2379 r2395  
    2626t0 = time.time()
    2727
     28#meshname, triagle_count =create_mesh(100,mesh_file=meshname,triangles_in_name=True)
     29
    2830meshname, triagle_count = cache(create_mesh,(100),
    2931                                {'mesh_file':meshname,
     
    5052domain.set_datadir(project_friction.outputdir)
    5153domain.store = True
    52 domain.quantities_to_be_stored = ['stage']
     54domain.quantities_to_be_stored = ['stage','xmomentum','ymomentum']
    5355
    5456print 'Number of triangles = ', len(domain)
     
    5860domain.set_quantity('friction', 0.01)
    5961domain.set_quantity('stage', 0)
    60 domain.set_region(Set_region('mound', 'friction', 0.8)) #, location='unique vertices'))
     62domain.set_region(Set_region('mound', 'friction', 3)) #, location='unique vertices'))
    6163#Setup Boundary Conditions
    6264print domain.get_boundary_tags()
     
    6668Br = Reflective_boundary(domain)
    6769Bt = Transmissive_boundary(domain)
    68 Bd = Dirichlet_boundary([36,0,0])
     70Bdw = Dirichlet_boundary([36,0,0])
     71Bdb = Dirichlet_boundary([0,0,0])
    6972Bw = Time_boundary(domain=domain,
    7073                   f=lambda t: [(60<t<660)*4, 0, 0])
    7174
    72 domain.set_boundary( {'wall': Br,'wave': Bd, 'back': Bt, 'exterior':Bd} )
     75domain.set_boundary( {'wall': Br,'wave': Bdw, 'back': Bdb, 'exterior':Bdw} )
    7376
    7477#Evolve
    7578t0 = time.time()
    7679
    77 for t in domain.evolve(yieldstep = 1, finaltime = 80):
     80for t in domain.evolve(yieldstep = 4, finaltime = 400):
    7881    domain.write_time()     
    7982
Note: See TracChangeset for help on using the changeset viewer.