Interface IMultiScalePDEGradient<T>
- Namespace
- AiDotNet.PhysicsInformed.Interfaces
- Assembly
- AiDotNet.dll
Provides gradient information for multi-scale PDE residuals.
public interface IMultiScalePDEGradient<T> : IMultiScalePDE<T>, IPDESpecification<T>
Type Parameters
TThe numeric type.
- Inherited Members
Methods
ComputeScaleCouplingGradient(int, int, T[], T[], T[], PDEDerivatives<T>, PDEDerivatives<T>)
Computes gradients of the coupling term.
(PDEResidualGradient<T> coarseGradient, PDEResidualGradient<T> fineGradient) ComputeScaleCouplingGradient(int coarseIndex, int fineIndex, T[] inputs, T[] coarseOutputs, T[] fineOutputs, PDEDerivatives<T> coarseDerivatives, PDEDerivatives<T> fineDerivatives)
Parameters
coarseIndexintThe coarser scale index.
fineIndexintThe finer scale index.
inputsT[]The coordinates.
coarseOutputsT[]Solution at coarse scale.
fineOutputsT[]Solution at fine scale.
coarseDerivativesPDEDerivatives<T>Derivatives at coarse scale.
fineDerivativesPDEDerivatives<T>Derivatives at fine scale.
Returns
- (PDEResidualGradient<T> coarseGradient, PDEResidualGradient<T> fineGradient)
Tuple of gradients for (coarse scale, fine scale).
ComputeScaleResidualGradient(int, T[], T[], PDEDerivatives<T>)
Computes gradients of the scale residual with respect to outputs and derivatives.
PDEResidualGradient<T> ComputeScaleResidualGradient(int scaleIndex, T[] inputs, T[] outputs, PDEDerivatives<T> derivatives)
Parameters
scaleIndexintThe scale index.
inputsT[]The coordinates.
outputsT[]The solution at this scale.
derivativesPDEDerivatives<T>The derivatives at this scale.
Returns
- PDEResidualGradient<T>
Gradients for backpropagation.