anuga.Transmissive_momentum_set_stage_boundary
- class anuga.Transmissive_momentum_set_stage_boundary(domain=None, function=None)[source]
Bounday condition object that returns transmissive momentum and sets stage
Returns same momentum conserved quantities as those present in its neighbour volume. Sets stage by specifying a function f of time which may either be a vector function or a scalar function
- __init__(domain=None, function=None)[source]
Create boundary condition object.
- Parameters:
domain – domain on which to apply BC
function – function to set stage
Example: Set all the tagged boundaries to use the
>>> domain = anuga.rectangular_cross_domain(10, 10) >>> def waveform(t): >>> return sea_level + normalized_amplitude/cosh(t-25)**2 >>> BC = anuga.Transmissive_momentum_set_stage_boundary(domain, waveform) >>> domain.set_boundary({'left': BC, 'right': BC, 'top': BC, 'bottom': BC})
Methods
__init__
([domain, function])Create boundary condition object.
evaluate
(vol_id, edge_id)Transmissive momentum set stage boundaries return the edge momentum values of the volume they serve.
evaluate_segment
([domain, segment_edges])Evaluate boundary condition at edges of a domain in a list defined by segment_edges
get_boundary_values
([t])get_time
()