.. docmeta:: :last_reviewed: 2026-06-24 Code Documentation ================== Welcome to PINA documentation! Here you can find the modules of the package divided in different sections. The high-level structure of the package is depicted in our API. .. figure:: ../index_files/PINA_API.png :alt: PINA application program interface :align: center :width: 400 The pipeline to solve differential equations with PINA follows just five steps: 1. Define the `Problems`_ the user aim to solve 2. Generate data using built in `Geometrical Domains`_, or load high level simulation results as :doc:`LabelTensor ` 3. Choose or build one or more `Models`_ to solve the problem 4. Choose a solver across PINA available `Solvers`_, or build one using the :doc:`SolverInterface ` 5. Train the model with the PINA :doc:`Trainer `, enhance the train with `Callbacks`_ Trainer, Data Loader and Data Module ---------------------------------------- .. toctree:: :titlesonly: Trainer Data Module Single-Batch Data Loader Aggregator Creator Condition Subset Data Types ------------ .. toctree:: :titlesonly: LabelTensor Graph LabelBatch Graphs Structures ------------------ .. toctree:: :titlesonly: GraphBuilder RadiusGraph KNNGraph Conditions ------------- .. toctree:: :titlesonly: Condition Interface Base Condition Condition Data Condition Domain Equation Condition Graph Time Series Condition Input Equation Condition Input Target Condition Time Series Condition Batch and Data Managers -------------------------- .. toctree:: :titlesonly: Batch Manager Data Manager Interface Data Manager Graph Data Manager Tensor Data Manager Solvers ------------------------ .. toctree:: :titlesonly: Solver Interface Base Solver Single-Model Solver Multi-Model Solver Ensemble Solver Supervised Single-Model Solver Supervised Ensemble Solver Physics-Informed Single-Model Solver Physics-Informed Ensemble Solver Autoregressive Single-Model Solver Autoregressive Ensemble Solver Self-Adaptive Physics-Informed Solver Competitive Physics-Informed Solver Gradient Physics-Informed Single-Model Solver RBA Physics-Informed Single-Model Solver Causal Physics-Informed Single-Model Solver Mixins ------------------------ .. toctree:: :titlesonly: Single-Model Mixin Multi-Model Mixin Ensemble Mixin Condition Aggregator Mixin Manual Optimization Mixin Physics-Informed Mixin Autoregressive Mixin Gradient-Enhanced Mixin Residual-Based Attention Mixin Models ------------ .. toctree:: :titlesonly: :maxdepth: 5 FeedForward MultiFeedForward ResidualFeedForward Spline SplineSurface DeepONet MIONet KernelNeuralOperator FourierIntegralKernel FNO AveragingNeuralOperator LowRankNeuralOperator GraphNeuralOperator GraphNeuralKernel PirateNet EquivariantGraphNeuralOperator SINDy Vectorized Spline Kolmogorov-Arnold Network Blocks ------------- .. toctree:: :titlesonly: Residual Block EnhancedLinear Block Spectral Convolution Block Fourier Block Averaging Block Low Rank Block Graph Neural Operator Block Continuous Convolution Interface Continuous Convolution Block Orthogonal Block PirateNet Block KAN Block Message Passing ------------------- .. toctree:: :titlesonly: Deep Tensor Network Block E(n) Equivariant Network Block Interaction Network Block Radial Field Network Block EquivariantGraphNeuralOperatorBlock Reduction and Embeddings -------------------------- .. toctree:: :titlesonly: Proper Orthogonal Decomposition Periodic Boundary Condition Embedding Fourier Feature Embedding Radial Basis Function Interpolation Optimizers and Schedulers -------------------------- .. toctree:: :titlesonly: Optimizer Interface Scheduler Interface Torch Optimizer Torch Scheduler Adaptive Functions ------------------------------- .. toctree:: :titlesonly: Adaptive Function Interface Base Adaptive Function Adaptive CELU Adaptive ELU Adaptive Exp Adaptive GELU Adaptive Mish Adaptive ReLU Adaptive Sigmoid Adaptive SiLU Adaptive SIREN Adaptive Softmax Adaptive Softmin Adaptive Tanh Equations and Differential Operators --------------------------------------- .. toctree:: :titlesonly: Equation Interface Base Equation Equation System Equation Differential Operators Equation Zoo --------------------------------------- .. toctree:: :titlesonly: Acoustic Wave Equation Advection Equation Allen-Cahn Equation Burgers' Equation Diffusion-Reaction Equation Fixed Flux Fixed Gradient Fixed Laplacian Fixed Value Helmholtz Equation Poisson Equation Problems -------------- .. toctree:: :titlesonly: ProblemInterface BaseProblem InverseProblem ParametricProblem SpatialProblem TimeDependentProblem Problem Zoo -------------- .. toctree:: :titlesonly: Acoustic Wave Problem Advection Problem Allen-Cahn Problem Burgers' Problem Diffusion-Reaction Problem Helmholtz Problem Inverse Poisson 2D Square Problem Poisson 2D Square Problem Supervised Problem Geometrical Domains -------------------- .. toctree:: :titlesonly: DomainInterface BaseDomain CartesianDomain EllipsoidDomain SimplexDomain Domain Operations ------------------ .. toctree:: :titlesonly: OperationInterface BaseOperation Union Intersection Difference Exclusion Callbacks ----------- .. toctree:: :titlesonly: Switch Optimizer Switch Scheduler Refinement Interface Base Refinement R3 Refinement Data Normalizer Metric Tracker PINA Progress Bar Losses --------- .. toctree:: :titlesonly: DualLossInterface BaseDualLoss LpLoss PowerLoss SinkhornLoss Weighting Schemas -------------------- .. toctree:: :titlesonly: Weighting Interface Base Weighting Linear Weighting Neural-Tangent-Kernel Weighting No Weighting Scalar Weighting Self-Adaptive Weighting