2.2.4.1. Boundary conditions

class opentidalfarm.boundary_conditions.BoundaryConditionSet(iterable=(), /)[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=None, facet_id=None, bctype='strong_dirichlet')[source]

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

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