Changeset 6443


Ignore:
Timestamp:
Mar 4, 2009, 12:48:51 PM (15 years ago)
Author:
kristy
Message:

New boundary created through one csv time series file

Location:
anuga_work/production/australia_ph2/dampier
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/australia_ph2/dampier/export_results_max.py

    r6395 r6443  
    2323
    2424time_dir1 = '20090130_165532_run_final_0.6_27255_extend_dt_kvanputt'
    25 ##time_dir2 = ''
    26 ##time_dir3 = ''
    27 ##time_dir4 = ''
    28 ##time_dir5 = ''
    29 ##time_dir6 = ''
    30 ##
    31 time_dirs = [time_dir1] #5, time_dir4]# , time_dir4, time_dir5, time_dir6]
    32  
     25time_dirs = [time_dir1] 
    3326
    3427cellsize = 250
  • anuga_work/production/australia_ph2/dampier/project.py

    r6408 r6443  
    88from time import localtime, strftime, gmtime
    99from os.path import join, exists
     10from os import sep
    1011
    1112
     
    2930zone = 50               # specify zone of model
    3031event_number = 70028    # the event number or the mux file name
     32index = 1203
    3133alpha = 0.1             # smoothing parameter for mesh
    3234friction=0.01           # manning's friction coefficient
    3335starttime=0             # start time for simulation
    34 finaltime=1000          # final time for simulation
     36finaltime=80000          # final time for simulation
    3537
    3638setup = 'trial'         # This can be one of three values
     
    115117mux_input_filename = 'event.list'
    116118multi_mux = True
     119
     120
    117121
    118122
     
    215219mux_input = join(event_folder, mux_input_filename)
    216220
     221boundary_csv = event_folder + sep + 'sts_gauge_' + str(index) +'.csv'
  • anuga_work/production/australia_ph2/dampier/run_model.py

    r6394 r6443  
    3535from anuga.interface import Reflective_boundary
    3636from anuga.interface import Field_boundary
     37from anuga.interface import Time_boundary
     38from anuga.interface import file_function
     39
    3740from anuga.interface import create_sts_boundary
    3841from anuga.interface import csv2building_polygons
     
    4750from setup_model import project
    4851import build_urs_boundary as bub
     52import prepare_timeboundary as TB
    4953
    5054#-------------------------------------------------------------------------------
     
    135139print 'Set boundary - available tags:', domain.get_boundary_tags()
    136140
     141# Prepare time boundary
     142TB.prepare_timeboundary(project.boundary_csv)
     143f = file_function(project.boundary_csv[:-4] + '.tms')
     144
    137145Br = Reflective_boundary(domain)
    138146Bt = Transmissive_stage_zero_momentum_boundary(domain)
     
    145153                    use_cache=True,
    146154                    verbose=True)
     155Tb = Time_boundary(domain,f)
    147156
    148157domain.set_boundary({'back': Br,
    149158                     'side': Bd,
    150                      'ocean': Bf})
     159                     'ocean': Tb})
    151160
    152161#-------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.