Changeset 5774


Ignore:
Timestamp:
Sep 19, 2008, 2:31:13 PM (17 years ago)
Author:
ole
Message:

Added new culvert to Rudy's test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/culvert_flows/Test_Culvert_Flat_Water_Lev.py

    r5773 r5774  
    2121     Transmissive_boundary, Time_boundary
    2222
     23from anuga.culvert_flows.culvert_class import Culvert_flow
     24from anuga.culvert_flows.culvert_routines import boyd_generalised_culvert_model
     25     
    2326from math import pi,pow,sqrt
    2427from Numeric import choose, greater, ones, sin, exp, cosh
     
    6265   
    6366        # Changing Slopes in the X- Direction
    64    # N = len(x)
    65    # for i in range(N):
    66    #     if 0 <x[i] < 5.1:
    67    #         z[i] -= -x[i]/10
    68    #     if 5 <x[i] < 10.1:
    69    #         z[i] -= -x[i]/100                             
    70    #     if 10 <x[i]:
    71    #         z[i] -= -x[i]/20                           
    72    # return z
     67    # N = len(x)
     68    # for i in range(N):
     69    #     if 0 <x[i] < 5.1:
     70    #         z[i] -= -x[i]/10
     71    #     if 5 <x[i] < 10.1:
     72    #         z[i] -= -x[i]/100                             
     73    #     if 10 <x[i]:
     74    #         z[i] -= -x[i]/20                           
     75    # return z
    7376
    74    #       NOW Add bits and Pieces to topography
     77    #       NOW Add bits and Pieces to topography
    7578    N = len(x)
    7679    for i in range(N):
     
    126129#------------------------------------------------------------------------------
    127130print 'DEFINING any Structures if Required'
    128 #   ++++++++    Ole I do not have Latest installe don this machine.... YET !!!    Will Do IT
    129131
    130132#  DEFINE CULVERT INLET AND OUTLETS
    131 #culvert = Culvert_flow(domain,
    132 #                       center0=[9.0, 2.5], radius0=1.00,    #  U/S Opening
    133 #                       center1=[13.0, 2.5], radius1=1.00,     #  D/S  Opening
    134 #                      transfer_flow=None) # Hardwired for now
    135                        
    136 #domain.forcing_terms.append(culvert)
     133
     134
     135culvert = Culvert_flow(domain,
     136                       label='Culvert No. 1',
     137                       description='This culvert is a test unit 1.2m Wide by 0.75m High',   
     138                       end_point0=[9.0, 2.5],
     139                       end_point1=[13.0, 2.5],
     140                       width=1.20,height=0.75,
     141                       culvert_routine=boyd_generalised_culvert_model,       
     142                       number_of_barrels=1,
     143                       verbose=True)
     144
     145domain.forcing_terms.append(culvert)
    137146
    138147#------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.