HeatEquation<T>

Models & Types · AiDotNet.PhysicsInformed.PDEs

Represents the Heat Equation (or Diffusion Equation): ∂u/∂t = α ∂²u/∂x²

Inheritance: PDESpecificationBase<T> → HeatEquation<T>

Implements: IPDEResidualGradient<T>

How It Works

For Beginners: The Heat Equation models how heat diffuses through a material over time.

  • u(x,t) is the temperature at position x and time t
  • α (alpha) is the thermal diffusivity, which controls how fast heat spreads
  • The equation says: The rate of temperature change equals how curved the temperature profile is

Physical Interpretation:

  • If the temperature profile is concave (curves down), heat flows in → temperature increases
  • If the temperature profile is convex (curves up), heat flows out → temperature decreases
  • At inflection points (no curvature), temperature stays constant

Example: A metal rod with one end heated - the heat gradually spreads along the rod.

Constructors

Constructor Summary
HeatEquation(T thermalDiffusivity) Initializes a new instance of the Heat Equation with double parameter.
HeatEquation(double thermalDiffusivity) Initializes a new instance of the Heat Equation with double parameter.

Properties

Property Summary
int InputDimension { get; }
int OutputDimension { get; }
string Name { get; }

Methods

Method Summary
PDEResidualGradient<T> ComputeResidualGradient(Vector<T> inputs, Vector<T> outputs, PDEDerivatives<T> derivatives)
T ComputeResidual(Vector<T> inputs, Vector<T> outputs, PDEDerivatives<T> derivatives)
Tensor<T> ComputeTapeResidual(Tensor<T> inputs, Tensor<T> outputs, PDEDerivatives<T> derivatives)