anuga.Reflective_boundary
- class anuga.Reflective_boundary(domain=None)[source]
Reflective boundary condition object
Reflective boundary returns same conserved quantities as those present in its neighbour volume but with normal momentum reflected.
- __init__(domain=None)[source]
Create boundary condition object
- Parameters
domain – domain on which to apply BC
Example:
Set all the tagged boundaries to use the Reflective boundaries
>>> domain = anuga.rectangular_cross_domain(10, 10) >>> BC = anuga.Reflective_boundary(domain) >>> domain.set_boundary({'left': BC, 'right': BC, 'top': BC, 'bottom': BC})
Methods
__init__
([domain])Create boundary condition object
evaluate
(vol_id, edge_id)Calculate BC associated to specified edge
evaluate_segment
(domain, segment_edges)Apply BC on the boundary edges defined by segment_edges
get_boundary_values
([t])get_time
()