4.2.4.1. Boundary conditions

class opentidalfarm.boundary_conditions.BoundaryConditionSet[source]

Stores a list of boundary conditions. Expression with an attribute named t will be automatically updated to the current timestep during the simultion.

add_bc(function_name, expression, facet_id, bctype='strong_dirichlet')[source]

Valid choices for bctype: “weak_dirichlet”, “strong_dirichlet”, “flather”

filter(function_name=None, bctype=None)[source]

Return a list of boundary conditions that satisfy the given criteria.

update_time(t, only_type=None, exclude_type=None)[source]

Update the time attribute for all boundary conditions