Changeset 6315


Ignore:
Timestamp:
Feb 12, 2009, 12:34:41 PM (16 years ago)
Author:
myall
Message:

in run_model.py, removed transmissive boundary and used Dirichlet instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/australia_ph2/eucla_motel/run_model.py

    r6294 r6315  
    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
     
    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
Note: See TracChangeset for help on using the changeset viewer.