Ignore:
Timestamp:
Jul 30, 2008, 4:06:55 PM (14 years ago)
Author:
ole
Message:

Multibarrel culvert functionality.

File:
1 edited

Legend:

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

    r5301 r5585  
    1010                            width, height=None,
    1111                            enquiry_gap_factor=1.0,
    12                             enquiry_shape_factor=2.0):
     12                            enquiry_shape_factor=2.0,
     13                            number_of_barrels=1):
    1314    """Create polygons at the end of a culvert inlet and outlet.
    1415    At either end two polygons will be created; one for the actual flow to pass through and one a little further away
     
    2627                               (large value widens polygon but reduces height
    2728                               to preserve same area as exchange polygon)
     29        number_of_barrels - number of identical pipes.
    2830       
    2931    Output:
     
    5557    length = sqrt(sum(vector**2))
    5658
     59    # Adjust polygon width to number of barrels in this culvert
     60    width *= number_of_barrels
     61   
     62   
    5763    # Unit direction vector and normal
    5864    vector /= length
Note: See TracChangeset for help on using the changeset viewer.