anuga.Dirichlet_boundary

class anuga.Dirichlet_boundary(dirichlet_values=None)[source]

Bases: Boundary

Dirichlet boundary returns constant values for the conserved quantities

__init__(dirichlet_values=None)[source]

Methods

__init__([dirichlet_values])

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()

evaluate_segment(domain, segment_edges)[source]

Evaluate boundary condition at edges of a domain in a list defined by segment_edges

segment_edges are a sublist of the list of edges definded by the arrays domain.boundary_cells and domain.boundary_edges

Go through list of boundary objects and update boundary values for all conserved quantities on boundary. It is assumed that the ordering of conserved quantities is consistent between the domain and the boundary object, i.e. the jth element of vector q must correspond to the jth conserved quantity in domain.

This implementation uses the evaluate proceudure, but for efficiency it is recommended to overload this procedure with a numpy or C based implementation.