AllenCahnEquation<T>
Models & Types ยท AiDotNet.PhysicsInformed.PDEs
Represents the Allen-Cahn equation: u_t - epsilon^2 * u_xx + u^3 - u = 0.
Inheritance: PDESpecificationBase<T> โ AllenCahnEquation<T>
Implements: IPDEResidualGradient<T>
How It Works
For Beginners: The Allen-Cahn equation models phase separation and interface motion. It combines diffusion (smoothing) with a nonlinear reaction term.
Constructors
| Constructor | Summary |
|---|---|
AllenCahnEquation(T epsilon) |
Initializes a new instance of the Allen-Cahn equation with double parameter. |
AllenCahnEquation(double epsilon) |
Initializes a new instance of the Allen-Cahn 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) |