Changeset 3408


Ignore:
Timestamp:
Jul 24, 2006, 11:49:21 AM (19 years ago)
Author:
duncan
Message:

setting up a new simulation

Location:
development/dam_2006
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • development/dam_2006/create_mesh.py

    r3226 r3408  
    1313    #Basic geometry
    1414   
    15     xleft   = -5.4
    16     xright  = .4
     15    xleft   = -2.25
     16    xright  = .75
    1717    ybottom = 0
    1818    ytop    = 0.4
     
    5656       
    5757    m.addVertsSegs(dict)
    58 
    59     dam = m.add_region(0.2,0.2)
     58   
     59    dam = m.add_region(0.2,0.2) # this is the location of the region.
    6060    dam.setTag("dam")
    61     #m.generate_mesh(maximum_triangle_area=0.01)
    62     m.generate_mesh(maximum_triangle_area=0.0001)
     61    m.generate_mesh(maximum_triangle_area=0.01)
     62    #m.generate_mesh(maximum_triangle_area=0.0001)
    6363
    6464    m.export_mesh_file(project.mesh_filename)
  • development/dam_2006/run_dam.py

    r3227 r3408  
    7575
    7676tide = 0.0
     77slope = -0.05
    7778
    7879def elevation_tilt(x, y):
    79     return -x*0.15
     80    return x*slope
    8081       
    8182domain.set_quantity('stage', elevation_tilt)
     
    8586print 'Available boundary tags', domain.get_boundary_tags()
    8687
    87 domain.set_region(Set_region('dam','stage',0.4,location = 'unique vertices'))
     88domain.set_region(Set_region('dam','stage',0.2,location = 'unique vertices'))
    8889
    8990Br = Reflective_boundary(domain)
Note: See TracChangeset for help on using the changeset viewer.