Ignore:
Timestamp:
Oct 22, 2010, 5:10:19 PM (12 years ago)
Author:
steve
Message:

Added in an inlet_operator class to implement inflow "boundary condition" by setting up a inlet defined by a line close to the boundary. Look at testing_culvert_inlet.py as an example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/structures/structure_operator.py

    r8049 r8050  
    22import numpy as num
    33import math
    4 import inlet
     4import inlet_enquiry
    55
    66from anuga.utilities.system_tools import log_to_file
     
    8989        enquiry_point0 = self.inlet_equiry_points[0]
    9090        outward_vector0 = self.culvert_vector
    91         self.inlets.append(inlet.Inlet(self.domain, polyline0, enquiry_point0, outward_vector0))
     91        self.inlets.append(inlet_enquiry.Inlet_enquiry(self.domain, polyline0,
     92                           enquiry_point0, outward_vector0, self.verbose))
    9293
    9394        polyline1 = self.inlet_polylines[1]
    9495        enquiry_point1 = self.inlet_equiry_points[1]
    9596        outward_vector1  = - self.culvert_vector
    96         self.inlets.append(inlet.Inlet(self.domain, polyline1, enquiry_point1, outward_vector1))
     97        self.inlets.append(inlet_enquiry.Inlet_enquiry(self.domain, polyline1,
     98                           enquiry_point1, outward_vector1, self.verbose))
    9799
    98100        self.set_logging(logging)
Note: See TracChangeset for help on using the changeset viewer.