Changeset 3145


Ignore:
Timestamp:
Jun 13, 2006, 2:38:59 PM (19 years ago)
Author:
duncan
Message:

minor streamlining

Location:
development/dam_2006
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • development/dam_2006/create_mesh.py

    r3125 r3145  
    4949                            'wall',
    5050                            'wall',
    51                             'wave',
     51                            'wall', #back of the dam
    5252                            'wall',
    5353                            'wall',
     
    6060    dam.setTag("dam")
    6161    #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)
    6364
    6465    m.export_mesh_file(project.mesh_filename)
  • development/dam_2006/run_dam.py

    r3125 r3145  
    3131import create_mesh
    3232
     33
     34#-------------------------------------------------------------------------------                                 
     35# Setup archiving of simulations
     36#-------------------------------------------------------------------------------   
     37
    3338copy (project.codedirname, project.outputtimedir + 'project.py')
    3439copy (project.codedir + 'run_dam.py', project.outputtimedir + 'run_dam.py')
     
    4045screen_error_name = project.outputtimedir + "screen_error.txt"
    4146
    42 #used to catch screen output to file
    43 #sys.stdout = Screen_Catcher(screen_output_name)
    44 #sys.stderr = Screen_Catcher(screen_error_name)
    45 
    46 '''
    47 copied_files = False
    48 
    49 # files to be used
    50 files_used = [onshore_dem_name, offshore_points,]
    51 
    52 if sys.platform != 'win32':   
    53     copied_files = True
    54     for name in file_list:
    55         copy(name, )
    56 '''
    5747#-------------------------------------------------------------------------------                                 
    5848# Create the triangular mesh
    5949#-------------------------------------------------------------------------------
    60 #from pmesh.pmesh import mesh
    6150
    6251create_mesh.generate() # this creates the mesh
     
    9685Bd = Dirichlet_boundary([tide,0,0])
    9786
    98 
    99 # 7 min square wave starting at 0 min, 6m high
    100 Bw = Time_boundary(domain = domain,
    101                    f=lambda t: [(0<t<480)*1, 0, 0])
    102 
    10387#domain.set_boundary( {'wall': Br, 'wave': Bw} )
    10488domain.set_boundary( {'wall': Br, 'wave': Br} )
     
    11094t0 = time.time()
    11195
    112 for t in domain.evolve(yieldstep = 0.02, finaltime = 10):
     96for t in domain.evolve(yieldstep = 0.1, finaltime = 5):
    11397    domain.write_time()
    11498   
Note: See TracChangeset for help on using the changeset viewer.