Class NeumannBorderCondition

java.lang.Object
by.andd3dfx.math.pde.border.NeumannBorderCondition
All Implemented Interfaces:
BorderCondition

public class NeumannBorderCondition extends Object implements BorderCondition
Represents a Neumann boundary condition for partial differential equations. This condition specifies the value of the spatial derivative at the boundary:

∂U/∂x(x,t) = ∂U/∂x(t) at x = x₁ or x = x₂

where ∂U/∂x(t) is a prescribed function of time. This type of boundary condition is commonly used when the flux or gradient at the boundary is known or controlled.

See Also:
  • Constructor Details

    • NeumannBorderCondition

      public NeumannBorderCondition()
  • Method Details

    • gdU_dx

      public double gdU_dx(double t)
      Returns the prescribed value of the spatial derivative at the boundary at time t. This method should be overridden to provide the actual derivative value function.
      Parameters:
      t - time coordinate
      Returns:
      prescribed value of ∂U/∂x(t) at the boundary