Changeset 6342


Ignore:
Timestamp:
Feb 16, 2009, 8:56:21 AM (16 years ago)
Author:
myall
Message:
 
Location:
anuga_work/production
Files:
2 added
10 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/australia_ph2/ceduna/build_boundary_27255.py

    r6291 r6342  
    55Input: order_filename from project.py
    66       event_number needs to be reflected in the project file
    7 Output: creates a sts file and csv files stored in project.boundaries_dir_event.
     7Output: creates a sts file and csv files stored in project.event_folder.
    88The run_busselton.py is reliant on the output of this script.
    99"""
     
    9595
    9696    maxname = 'max_sts_stage.csv'
    97     fid_max = open(project.boundaries_dir_event+sep+maxname,'w')
     97    fid_max = open(project.event_folder+sep+maxname,'w')
    9898    s = 'index, x, y, max_stage \n'
    9999    fid_max.write(s)   
     
    112112
    113113    minname = 'min_sts_stage.csv'
    114     fid_min = open(project.boundaries_dir_event+sep+minname,'w')
     114    fid_min = open(project.event_folder+sep+minname,'w')
    115115    s = 'index, x, y, max_stage \n'
    116116    fid_min.write(s)   
     
    126126
    127127
    128         fid_sts = open(project.boundaries_dir_event+sep+basename+'_'+ str(index)+'.csv', 'w')
     128        fid_sts = open(project.event_folder+sep+basename+'_'+ str(index)+'.csv', 'w')
    129129        s = 'time, stage, xmomentum, ymomentum \n'
    130130        fid_sts.write(s)
     
    144144    return quantities,elevation,time
    145145
    146 quantities,elevation,time=get_sts_gauge_data(os.path.join(project.boundaries_dir_event,project.scenario_name),verbose=False)
     146quantities,elevation,time=get_sts_gauge_data(project.event_sts,verbose=False)
    147147
    148148print len(elevation), len(quantities['stage'][0,:])
  • anuga_work/production/australia_ph2/ceduna/project.py

    r6293 r6342  
    4444friction = 0.01           # manning's friction coefficient
    4545starttime = 0             
    46 finaltime = 80000         # final time for simulation
     46finaltime = 1000 #80000         # final time for simulation
    4747
    48 setup = 'trial'  # Final can be replaced with trial or basic.
     48setup = 'final'  # Final can be replaced with trial or basic.
    4949               # Either will result in a coarser mesh that will allow a
    5050               # faster, but less accurate, simulation.
     
    156156event_sts = join(boundaries_folder, str(event_number), scenario_name)
    157157
     158# The absolute pathname of the event folder
     159event_folder = join(boundaries_folder, str(event_number))
     160
    158161# The absolute pathname for the output folder names
    159162# Used for build_elevation.py
  • anuga_work/production/australia_ph2/ceduna/run_model.py

    r6291 r6342  
    2626# Related major packages
    2727from anuga.interface import create_domain_from_regions
    28 from anuga.interface import Transmissive_stage_zero_momentum_boundary
    2928from anuga.interface import Dirichlet_boundary
    3029from anuga.interface import Reflective_boundary
     
    3231from anuga.interface import create_sts_boundary
    3332from anuga.interface import csv2building_polygons
     33from file_length import file_length
    3434
    3535from anuga.shallow_water.data_manager import start_screen_catcher
     
    7070# Number of boundary segments
    7171N = len(event_sts)-1
     72# Number of landward_boundary points
     73M = file_length(project.landward_boundary)
    7274
    7375# Boundary tags refer to project.landward_boundary
    7476# 4 points equals 5 segments start at N
    75 boundary_tags={'back': [N+1, N+2, N+3, N+4, N+5, N+6, N+7],
    76                'side': [N, N+8],
     77boundary_tags={'back': range(N+1,N+M),
     78               'side': [N,N+M],
    7779               'ocean': range(N)}
    7880
     
    101103                      default=project.tide,
    102104                      geo_reference=domain.geo_reference)
    103 domain.set_quantity('stage', IC, use_cache=True, verbose=True)
     105domain.set_quantity('stage', 0, use_cache=True, verbose=True)
    104106domain.set_quantity('friction', project.friction)
    105107domain.set_quantity('elevation',
     
    116118
    117119Br = Reflective_boundary(domain)
    118 Bt = Transmissive_stage_zero_momentum_boundary(domain)
     120Bd = Dirichlet_boundary([project.tide,0,0])
    119121Bf = Field_boundary(project.event_sts+'.sts',
    120122                    domain, mean_stage=project.tide,
     
    125127                    verbose=True)
    126128
     129
    127130domain.set_boundary({'back': Br,
    128                      'side': Bt,
     131                     'side': Bd,
    129132                     'ocean': Bf})
    130133
  • anuga_work/production/australia_ph2/eucla_motel/run_model.py

    r6315 r6342  
    103103                      default=project.tide,
    104104                      geo_reference=domain.geo_reference)
    105 domain.set_quantity('stage', IC, use_cache=True, verbose=True)
     105domain.set_quantity('stage', 0, use_cache=True, verbose=True)
    106106domain.set_quantity('friction', project.friction)
    107107domain.set_quantity('elevation',
  • anuga_work/production/busselton/get_timeseries.py

    r6201 r6342  
    2727##time_dirs = [time_dir1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6]
    2828
    29 time_dir1 = '20081217_115336_run_final_0_27283_250m_none_dp_kvanputt'
     29##time_dir1 = '20081217_115336_run_final_0_27283_250m_none_dp_kvanputt'
     30time_dir6 = '20081111_113832_run_final_0.6_27255_alpha0.1_kvanputt'
    3031
    31 time_dirs = [time_dir1]
     32time_dirs = [time_dir6]
    3233
    3334for time_dir in time_dirs:
  • anuga_work/production/busselton/project.py

    r6201 r6342  
    118118# gauges - used in get_timeseries.py
    119119#gauge_name = scenario_name+'.txt'
    120 gauge_name = 'Gauges.csv'
     120#gauge_name = 'Gauges.csv'
     121gauge_name = 'MH_gauges.csv'
    121122# buildings - used in run_building_inundation.py
    122123building = 'busselton_res_clip'
  • anuga_work/production/geraldton/get_timeseries.py

    r6202 r6342  
    1818directory = project.output_dir
    1919
    20 time_dir1 = '20081117_141353_run_final_0_27283_alpha0.1_kvanputt'+sep+'gauge'
    21 time_dir2 = '20081117_141443_run_final_0.6_27283_alpha0.1_kvanputt'+sep+'gauge'
    22 time_dir3 = '20081117_141520_run_final_0_27255_alpha0.1_kvanputt'+sep+'gauge'
    23 time_dir4 = '20081117_141558_run_final_0.6_27255_alpha0.1_kvanputt'+sep+'gauge'
    24 time_dir5 = '20081117_141634_run_final_0_68693_alpha0.1_kvanputt'+sep+'gauge'
    25 time_dir6 = '20081117_141717_run_final_0.6_68693_alpha0.1_kvanputt'+sep+'gauge'
     20##time_dir1 = '20081117_141353_run_final_0_27283_alpha0.1_kvanputt'+sep+'gauge'
     21##time_dir2 = '20081117_141443_run_final_0.6_27283_alpha0.1_kvanputt'+sep+'gauge'
     22##time_dir3 = '20081117_141520_run_final_0_27255_alpha0.1_kvanputt'+sep+'gauge'
     23time_dir4 = '20081117_141558_run_final_0.6_27255_alpha0.1_kvanputt'
     24##time_dir5 = '20081117_141634_run_final_0_68693_alpha0.1_kvanputt'+sep+'gauge'
     25##time_dir6 = '20081117_141717_run_final_0.6_68693_alpha0.1_kvanputt'+sep+'gauge'
    2626
    27 time_dirs = [time_dir1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6]
     27time_dirs = [time_dir4] #[time_dir1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6]
    2828
    2929for time_dir in time_dirs:
  • anuga_work/production/geraldton/project.py

    r6027 r6342  
    102102
    103103# gauges - used in get_timeseries.py
    104 gauge_name = 'geraldton.csv'
     104gauge_name = 'MH_gauges.csv'  #'geraldton.csv'
    105105gauge_name2 = 'thinned_MGA50.csv'
    106106
  • anuga_work/production/perth/get_timeseries.py

    r6067 r6342  
    1818directory = project.output_dir
    1919
    20 time_dir1 = '20081031_133353_run_final_0.6_68693_alpha0.1_kvanputt'+sep+'gauge'
    21 time_dir2 = '20081031_133511_run_final_0_68693_alpha0.1_kvanputt'+sep+'gauge'
    22 time_dir3 = '20081031_133624_run_final_0_27255_alpha0.1_kvanputt'+sep+'gauge'
    23 time_dir4 = '20081031_133735_run_final_0.6_27255_alpha0.1_kvanputt'+sep+'gauge'
    24 time_dir5 = '20081031_133841_run_final_0_27283_alpha0.1_kvanputt'+sep+'gauge'
    25 time_dir6 = '20081031_133925_run_final_0.6_27283_alpha0.1_kvanputt'+sep+'gauge'
     20##time_dir1 = '20081031_133353_run_final_0.6_68693_alpha0.1_kvanputt'+sep+'gauge'
     21##time_dir2 = '20081031_133511_run_final_0_68693_alpha0.1_kvanputt'+sep+'gauge'
     22##time_dir3 = '20081031_133624_run_final_0_27255_alpha0.1_kvanputt'+sep+'gauge'
     23time_dir4 = '20081031_133735_run_final_0.6_27255_alpha0.1_kvanputt'
     24##time_dir5 = '20081031_133841_run_final_0_27283_alpha0.1_kvanputt'+sep+'gauge'
     25##time_dir6 = '20081031_133925_run_final_0.6_27283_alpha0.1_kvanputt'+sep+'gauge'
    2626
    27 time_dirs = [time_dir1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6]
     27time_dirs = [time_dir4] #[time_dir1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6]
    2828
    2929for time_dir in time_dirs:
  • anuga_work/production/perth/project.py

    r6067 r6342  
    100100
    101101# gauges - used in get_timeseries.py
    102 gauge_name = 'perth.csv'
     102##gauge_name = 'perth.csv'
     103gauge_name = 'MH_gauges.csv'
    103104
    104105#buildings - used in run_building_inundation.py
Note: See TracChangeset for help on using the changeset viewer.