Changeset 4748


Ignore:
Timestamp:
Oct 23, 2007, 2:49:17 PM (17 years ago)
Author:
duncan
Message:

changes to matts script

Location:
anuga_validation/UQ_runup_2006
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/UQ_runup_2006/create_mesh.py

    r4680 r4748  
    5252        m.generate_mesh(maximum_triangle_area=0.01)
    5353    else:
    54         m.generate_mesh(maximum_triangle_area=0.001)
     54        m.generate_mesh(maximum_triangle_area=0.001) 
    5555
    5656    m.export_mesh_file(mesh_filename)
  • anuga_validation/UQ_runup_2006/project.py

    r4680 r4748  
    99               
    1010#Making assumptions about the location of scenario data
    11 scenario_dir_name = 'dam_2006'
     11scenario_dir_name = 'data'+sep+'flumes'+sep+'dam_2007'
    1212
    1313#swollen/ all data output
     
    2828#Derive subdirectories and filenames
    2929time = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir
     30# time = "boom"
    3031scenariodir =  home+sep+scenario_dir_name
    3132outputdir = scenariodir+sep+'output'+sep
     
    5960outputname = outputtimedir + basename  #Used by post processing
    6061
    61 mesh_filename = meshname+'.msh'
     62mesh_filename = meshname+'.tsh'
    6263
  • anuga_validation/UQ_runup_2006/run_dam.py

    r4678 r4748  
    3131     
    3232    slopes = [0]
    33     frictions = [0.005, 0.01, 0.03] #can enter multiple frictions eg [0.00, 0.01]
     33    frictions = [0.01] #can enter multiple frictions eg [0.00, 0.01]
    3434    inital_depths = [0.2] #can enter multiple initial depths eg [0.1, 0.2]
    3535    gate_positions = [0.75]
    3636    flume_lengths = [3] #can enter multiple flume lengths eg [3.0, 5.0]
     37    # NOTE flume_lengths is not used.  It's hardcoded into create_mesh
    3738   
    3839    for slope in slopes:
     
    6162          project.outputtimedir + 'create_mesh.py')
    6263    print'output dir', project.outputtimedir
    63 
    64     #FIXME this isn't working
    65     #normal screen output is stored in
    66     screen_output_name = project.outputtimedir + "screen_output.txt"
    67     screen_error_name = project.outputtimedir + "screen_error.txt"
    6864
    6965    #-------------------------------------------------------------------------
     
    126122        print 'That took %.2f seconds' %(time.time()-t0)
    127123        print 'finished'
    128 
    129     points = [[0.45, 0.2]]
    130              
    131 
     124       
     125    points = [[gate_position - 0.65,0.2],
     126              [gate_position - 0.55,0.2],
     127              [gate_position - 0.45,0.2],
     128              [gate_position - 0.35,0.2],
     129              [0.45,0.2],
     130              [gate_position - 0.25,0.2]
     131              ]
    132132    #-------------------------------------------------------------------------
    133133    # Calculate gauge info
    134134    #-------------------------------------------------------------------------
    135     #interpolate_sww2csv(project.outputtimedir + project.basename \
    136      #              + id+".sww",
    137       #                  points,
    138        #                 project.depth_filename + id + '.csv',
    139         #                project.velocity_x_filename + id + '.csv',
    140          #               project.velocity_y_filename + id + '.csv')
     135    print "name", project.outputtimedir + project.basename \
     136                   + id+".sww"
     137    interpolate_sww2csv(project.outputtimedir + project.basename \
     138                   + id+".sww",
     139                        points,
     140                        project.depth_filename + id + '.csv',
     141                        project.velocity_x_filename + id + '.csv',
     142                        project.velocity_y_filename + id + '.csv')
     143
    141144
    142145#-------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.