anuga.Time_space_boundary
- class anuga.Time_space_boundary(domain=None, function=None, default_boundary=None, verbose=False)[source]
Time and spatially dependent boundary returns values for the conserved quantities as a function of time and space. Must specify domain to get access to model time and a function of t,x,y which must return conserved quantities at specified time and location.
- Example:
- B = Time_space_boundary(domain,
function=lambda t,x,y: [(60<t<3660)*2, 0, 0])
This will produce a boundary condition with is a 2m high square wave starting 60 seconds into the simulation and lasting one hour. Momentum applied will be 0 at all times.
Methods
__init__
([domain, function, ...])evaluate
([vol_id, edge_id])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
()