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

New boundary created through one csv time series file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.