Package by.andd3dfx.math.pde.border
Class DirichletBorderCondition
java.lang.Object
by.andd3dfx.math.pde.border.DirichletBorderCondition
- All Implemented Interfaces:
BorderCondition
Represents a Dirichlet boundary condition for partial differential equations.
This condition specifies the value of the solution at the boundary:
U(x,t) = U(t) at x = x₁ or x = x₂
where U(t) is a prescribed function of time. This is the simplest type of boundary condition, commonly used when the boundary value is known or controlled.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
gU
(double t) Returns the prescribed value of the solution at the boundary at time t.
-
Constructor Details
-
DirichletBorderCondition
public DirichletBorderCondition()
-
-
Method Details
-
gU
public double gU(double t) Returns the prescribed value of the solution at the boundary at time t. This method should be overridden to provide the actual boundary value function.- Parameters:
t
- time coordinate- Returns:
- prescribed value U(t) at the boundary
-