Interface BoundaryCondition
- All Known Implementing Classes:
StandardBoundaryCondition
public interface BoundaryCondition
Boundary condition for one boundary component of a finite-difference problem.
A boundary condition consists of a type and, if needed, a numerical value.
For BoundaryConditionType.NONE, the value is ignored.
- Author:
- Alessandro Gnoatto
-
Method Details
-
getType
BoundaryConditionType getType()Returns the type of boundary condition.- Returns:
- The boundary condition type.
-
getValue
double getValue()Returns the boundary value.This is used only when the type is
BoundaryConditionType.DIRICHLET.- Returns:
- The boundary value.
-
isDirichlet
default boolean isDirichlet()Returns true if the condition is of Dirichlet type.- Returns:
- True if Dirichlet.
-
isNone
default boolean isNone()Returns true if no boundary row should be enforced.- Returns:
- True if no boundary condition is imposed.
-