IMultiScalePDE<T>

Interfaces · AiDotNet.PhysicsInformed.Interfaces

Defines the interface for multi-scale Partial Differential Equations.

Implements: IPDESpecification<T>

Known implementations: IMultiScalePDEGradient<T>, MultiScaleReactionDiffusion<T>

How It Works

For Beginners: Multi-scale PDEs describe phenomena that occur across multiple length or time scales. Examples include:

  • Turbulent flows (large eddies to small vortices)
  • Materials science (atomic to macroscopic behavior)
  • Climate modeling (local weather to global patterns)
  • Biological systems (molecular to tissue level)

Why Multi-scale is Challenging: Traditional single-scale methods struggle because:

  1. Fine scale requires tiny mesh elements (expensive)
  2. Coarse scale misses important details
  3. Different scales have different time dynamics

Multi-scale Solution Strategy:

  1. Decompose solution into scale components: u = u_coarse + u_fine
  2. Learn each scale with appropriate resolution
  3. Couple scales through cross-scale interactions
  4. Use appropriate loss weights for each scale

Key Concepts:

  • Characteristic Length Scale: The typical size of features at each scale
  • Scale Separation: When scales are well-separated (e.g., 10x ratio)
  • Cross-scale Coupling: How different scales interact
  • Homogenization: Averaging fine-scale behavior for coarse-scale equations

Properties

Property Summary
T[] ScaleCharacteristicLengths { get; } Gets the characteristic length scales of the problem.
int NumberOfScales { get; } Gets the number of scales in the problem.

Methods

Method Summary
T GetScaleLossWeight(int scaleIndex) Gets the recommended loss weight for each scale.
Tensor<T> ComputeScaleCoupling(int coarseIndex, int fineIndex, Tensor<T> inputs, Tensor<T> coarseOutputs, Tensor<T> fineOutputs, PDEDerivatives<T> coarseDerivatives, PDEDerivatives<T> fineDerivatives) Computes the coupling term between two scales.
Tensor<T> ComputeScaleResidual(int scaleIndex, Tensor<T> inputs, Tensor<T> outputs, PDEDerivatives<T> derivatives) Computes the PDE residual at a specific scale.
int GetScaleOutputDimension(int scaleIndex) Gets the output dimension for a specific scale.