Ignore:
Timestamp:
Jul 1, 2008, 3:48:00 PM (16 years ago)
Author:
duncan
Message:

Current Hinwood scenario - cropping the flume length

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/Hinwood_2008/run_dam.py

    r5449 r5455  
    6666    basename = 'zz_' + metadata_dic['scenario_id']
    6767    if run_type == 1:
    68         outputdir_name += '_test'
     68        outputdir_name += '_test_C'
    6969        yieldstep = 1.0
    7070        finaltime = 15.
     
    8383        maximum_triangle_area=0.001
    8484    elif run_type == 4:
    85         outputdir_name += '_good_tri_area_0.01_A'
     85        outputdir_name += '_good_tri_area_0.01_C'
    8686        # this is not a test
    8787        # Output will go to a file
     
    9191        maximum_triangle_area=0.01
    9292    elif run_type == 5:
    93         outputdir_name += '_good_tri_area_0.001_A'
     93        outputdir_name += '_good_tri_area_0.001_C'
    9494        # this is not a test
    9595        # Output will go to a file
     
    9898        finaltime = None       
    9999        maximum_triangle_area=0.001
    100     elif run_type == 6:
    101         outputdir_name += '_good_tri_area_0.0001_A'
    102         # this is not a test
    103         # Output will go to a file
    104         # The sww file will be interpolated
    105         yieldstep = 0.01
    106         finaltime = None       
    107         maximum_triangle_area=0.0001
    108100     
    109101    metadata_dic = set_z_origin_to_water_depth(metadata_dic)   
     
    231223
    232224    if run_type >= 1:
    233         id = metadata_dic['scenario_id']
     225        id = metadata_dic['scenario_id'] + ".csv"
    234226        interpolate_sww2csv(pro_instance.outputdir + basename +".sww",
    235227                            points,
    236                             pro_instance.outputdir + "depth_" + id + ".csv",
    237                             pro_instance.outputdir + "velocity_x_" + id + ".csv",
    238                             pro_instance.outputdir + "velocity_y_" + id + ".csv")
     228                            pro_instance.outputdir + "depth_" + id,
     229                            pro_instance.outputdir + "velocity_x_" + id,
     230                            pro_instance.outputdir + "velocity_y_" + id,
     231                            pro_instance.outputdir + "stage_" + id)
    239232 
    240233    return pro_instance
     
    254247
    255248
    256     #4 is 0.01 5 is 0.001
    257     run_type = 5
     249    # 4 is 0.01
     250    # 5 is 0.001
     251    run_type = 1
    258252    #for run_data in [scenarios[5]]:
    259253    for run_data in scenarios:
    260         main( run_data['scenario_id'] + '_boundary.tsm'  , run_data,
    261               run_type = run_type,
    262               outputdir_name=run_data['scenario_id'])
    263     gauges_for_slope()
    264     #plot()
     254        pro_instance = main( run_data['scenario_id'] + '_boundary.tsm'  ,
     255                             run_data,
     256                             run_type = run_type,
     257                             outputdir_name=run_data['scenario_id'])
     258        gauges_for_slope(pro_instance.outputdir,[run_data])
Note: See TracChangeset for help on using the changeset viewer.