---
title: Parameterized PINNs with FDM (P2F)
url: https://www.emergentmind.com/topics/parameterized-pinns-coupled-with-fdm-p2f
type: topic
---

# Parameterized PINNs with FDM (P2F)

Searching arXiv for the cited papers to ground the article in current records.
arXiv search: 2604.02663 Parameterized PINNs coupled with FDM MELCOR CVH/FP
Parameterized PINNs coupled with FDM (P2F) is a hybrid numerical framework in which a parameterized physics-informed neural network (PINN) is coupled to a finite difference method (FDM) time-marching solver so that a single trained network can act as a data-free surrogate over a family of operating conditions while the discrete solver retains conservation properties. In the formulation introduced for MELCOR’s Control Volume Hydrodynamics/Flow Path (CVH/FP) module, the parameterized Node-Assigned PINN (NA-PINN) learns the momentum response manifold as a function of water-level difference, initial velocity, and time, and an FDM solver advances the mass conservation equation at each time step, thereby preserving exact discrete mass conservation while replacing the iterative nonlinear momentum solve with a single forward pass [2604.02663]. Related research places this method at the intersection of parameterized PINNs, data-free surrogate modeling, and PINN–discretization hybrids, but P2F is distinct both from parameterized PINNs that remain fully neural and from FDM-based PINNs in which finite-difference stencils replace automatic differentiation inside the PINN loss [2109.11313], [2602.21590], [2602.04670].

## 1. Definition and conceptual scope

P2F was developed to address two limitations identified in accelerated thermal-hydraulic simulation. First, data-driven surrogates can be fast and parametric, but they require large amounts of MELCOR-generated training data. Second, standard PINNs are data-free, but they are typically trained for one fixed scenario; if initial or boundary conditions change, they must be retrained [2604.02663].

A second issue is the long-horizon stability problem. Standalone PINNs can accumulate error over long time intervals, which is problematic because severe-accident simulations may span hours or days. P2F responds by combining a parameterized NA-PINN with a conventional FDM solver in a time-marching loop. The network is not used as a full-horizon predictor. Instead, it predicts one short step at a time, and the FDM component updates the state variables through the mass equation. This coupling is intended to provide no training data requirement, no retraining for new initial conditions within the trained range, exact discrete mass conservation, and stable short-step prediction inside a conventional solver loop [2604.02663].

The defining conceptual split is therefore not merely “PINN plus discretization,” but a role-specific decomposition of the governing physics. The PINN handles momentum, which is the nonlinear part and, in conventional MELCOR treatment, requires iterative solution. The FDM component handles mass conservation, which can be advanced once flow velocities are known. This division distinguishes P2F from a pure parameterized PINN, which would attempt to represent the full spatiotemporal solution directly, and from an FDM-PINN, in which the discrete stencil is embedded into the PINN loss rather than coupled as an external marching solver [2602.21590].

## 2. Parameterized NA-PINN formulation

The parameterized NA-PINN in P2F is assigned to a single flow-path node and accepts water-level difference $\Delta h$, initial velocity $v_0$, and time $t$ as inputs, returning the flow-path velocity $v(t)$. The surrogate map is written as
$$
v = \mathrm{NN}_{\boldsymbol{\theta}}(\Delta h, v_0, t).
$$
The inputs are normalized as
$$
\bar{h} = \frac{\Delta h}{\Delta h_{\mathrm{train}}}, \qquad
\bar{t} = \frac{t}{T}, \qquad
\bar{v}_0 = \frac{v_0}{v_{0,\max}},
$$
where $\Delta h_{\mathrm{train}}$ is the maximum training head difference, $T$ is the training time horizon, and $v_{0,\max}$ is the maximum initial velocity in training [2604.02663].

A notable design choice is the hard enforcement of the initial condition. Rather than adding an initial-condition penalty term to the loss, the method defines
$$
\hat{v}(t) = v_0 + t \cdot \mathrm{NN}_{\boldsymbol{\theta}}(\bar{h}, \bar{t}, \bar{v}_0),
$$
which guarantees
$$
\hat{v}(0) = v_0
$$
exactly. Because the initial condition is imposed structurally, there is no IC loss term in training [2604.02663].

The governing residual used during training is the simplified momentum equation for each flow path,
$$
\mathcal{R}_{\mathrm{momentum},\,i}
= L \frac{\partial \hat{v}_i}{\partial t}
- g \, \Delta h_i
+ \frac{K^*}{2} |\hat{v}_i| \hat{v}_i,
$$
where $L$ is the inertial length of the flow path, $g \Delta h_i$ is the gravity-driven head term, and $\frac{K^*}{2} |\hat{v}_i| \hat{v}_i$ is the quadratic friction loss. The total loss is the mean squared momentum residual over collocation points,
$$
\mathcal{L}_{\mathrm{total}} = \frac{1}{N_b}\sum_{i=1}^{N_b} \mathcal{R}_{\mathrm{momentum},\,i}^{\,2}.
$$

Training uses fixed collocation points sampled over $\Delta h \in [0,\Delta h_{\mathrm{train}}]$, $v_0 \in [0,v_{0,\max}]$, and $t \in [0,T]$, with extra samples at $\Delta h = 0$ and $v_0 = 0$ to better learn the zero-flow regime. The optimization procedure uses first-order gradient-based training, a piecewise learning-rate schedule, gradient clipping, and fixed validation with best-model retention [2604.02663].

## 3. Coupling mechanism with the finite difference solver

The P2F framework couples the parameterized NA-PINN to an FDM solver by assigning distinct numerical roles to the two components. The PINN handles the momentum equation, while the FDM solver advances the mass conservation equation. This is the central numerical architecture of the method [2604.02663].

At time level $n$, the coupling procedure is:
1. compute the head difference $\Delta h_j^n$ from the current control-volume water levels;
2. feed $(\Delta h_j^n, v_j^n, \Delta t)$ into the trained NA-PINN;
3. obtain $v_j^{n+1}$ in one forward pass;
4. use the predicted velocities in the FDM discretization of the mass equation to update water levels $h_i^{n+1}$.

In the online hybrid simulation, the workflow is described in more detail as state evaluation, PINN inference, FDM mass update, and state advancement. During state evaluation, current head differences $\Delta h_j^n$ are computed from control-volume water levels and local void fractions $\alpha_j^n$ are determined. During inference, each flow path receives the tuple $(\Delta h_j^n, v_j^n, \Delta t)$ and returns an updated velocity. During the FDM update, those velocities advance each control volume using the discretized mass balance. The process is repeated until final time [2604.02663].

The principal numerical significance of this arrangement is that the mass equation is advanced with FDM so that the discrete mass balance is maintained at every step. The method therefore preserves exact discrete mass conservation, unlike a fully neural surrogate that might drift. At the same time, the iterative nonlinear momentum solve of a conventional FDM-based system code is replaced by one PINN inference per flow path per step [2604.02663].

A common misunderstanding is to treat P2F as a standard PINN with a modified residual evaluation. That characterization does not fit the method’s actual construction. In P2F, finite differences are used as a solver component for the mass update in a time-stepping loop, whereas the momentum equation is represented by a trained parameterized surrogate. By contrast, in FDM-PINN formulations the finite-difference residual itself becomes the PINN’s physics loss [2602.21590].

## 4. Governing equations and verification problem

The verification study for P2F uses a six-tank gravity-driven draining problem with six open tanks, denoted CV01–CV06, and five connecting flow paths, denoted FL01–FL05. Each tank has cross-sectional area $50\,\mathrm{m}^2$ and height $2\,\mathrm{m}$; each flow path has diameter $0.2\,\mathrm{m}$ and length $0.1\,\mathrm{m}$; and the elevation drop between tanks is $1.8\,\mathrm{m}$. All tanks are open to atmosphere, water drains from the upper tank to the lower ones under gravity, and the case is idealized so that flow direction is fixed and sequential [2604.02663].

The mass conservation equation used in the CVH/FP setting is
$$
\frac{\partial M_{i,m}}{\partial t}
=
\sum_{j} \sigma_{ij}\alpha_{j,\phi}\rho^d_{j,m} v_{j,\phi} F_j A_j
+
\dot{M}_{i,m},
$$
and the momentum conservation equation is
$$
\alpha_{j,\phi}\rho_{j,\phi} L_j \frac{\partial v_{j,\phi}}{\partial t}
=
\alpha_{j,\phi}(P_i-P_k)
+
\alpha_{j,\phi}(\rho g \Delta z)_{j,\phi}
+
\alpha_{j,\phi}\Delta P_j
+
\alpha_{j,\phi}\rho_{j,\phi}v_{j,\phi}(\Delta v_{j,\phi})
-
\frac{1}{2}K_{j,\phi}^*\alpha_{j,\phi}\rho_{j,\phi}|v_{j,\phi}|v_{j,\phi}
-
\alpha_{j,\phi}\alpha_{j,-\phi}f_{2,j}L_{2,j}(v_{j,\phi}-v_{j,-\phi}).
$$
For the simplified open-tank problem, the model is reduced so that the neural surrogate depends on the local $\Delta h$ and $v_0$ [2604.02663].

The standalone parameterized NA-PINN verification uses three representative inputs:
1. $(\Delta h, v_0) = (1.0, 0)$,
2. $(\Delta h, v_0) = (2.0, 3.0)$,
3. $(\Delta h, v_0) = (1.0, 6.0)$.

These are described as spanning quiescent start-up, moderate head with initial velocity, and an over-velocity deceleration regime. For the hybrid P2F simulation, the nominal initial condition is
$$
H_{\mathrm{init}} = [2,0,0,0,0,0]\,\mathrm{m},
$$
and the time-step study is performed at $\Delta t = 0.2$ s, $0.5$ s, and $1.0$ s [2604.02663].

## 5. Accuracy, generalization, and computational behavior

For the standalone parameterized NA-PINN surrogate of the momentum equation, the reported mean absolute errors are $7.30 \times 10^{-3}\,\mathrm{m/s}$ for $(1.0,0)$, $6.71 \times 10^{-3}\,\mathrm{m/s}$ for $(2.0,3.0)$, and $4.10 \times 10^{-3}\,\mathrm{m/s}$ for $(1.0,6.0)$. The standalone surrogate therefore achieves $O(10^{-3})\,\mathrm{m/s}$ accuracy on the stated verification points [2604.02663].

Under the nominal initial condition in the hybrid P2F setting, the water level MAE is $9.32 \times 10^{-5}$ m at $\Delta t = 0.2$ s, $1.01 \times 10^{-4}$ m at $\Delta t = 0.5$ s, and $7.85 \times 10^{-5}$ m at $\Delta t = 1.0$ s. The corresponding velocity MAEs are $3.08 \times 10^{-3}$ m/s, $5.55 \times 10^{-3}$ m/s, and $3.21 \times 10^{-3}$ m/s. The reported interpretation is that accuracy remains consistently high across time steps ranging from $0.2$ to $1.0$ s, with water-level errors on the order of $10^{-5}$ m and velocity errors on the order of $10^{-3}$ m/s [2604.02663].

The framework also generalizes to five distinct unseen initial conditions without retraining. At $\Delta t = 1.0$ s, the reported water level MAE ranges from about $9.05 \times 10^{-5}$ to $9.43 \times 10^{-5}$ m, while the velocity MAE ranges from about $3.24 \times 10^{-3}$ to $4.17 \times 10^{-3}$ m/s. Within the scope of the trained parameter range, this indicates that one trained network can be reused across multiple initial conditions rather than retrained case by case [2604.02663].

The computational picture is more mixed. Relative to conventional iterative FDM solvers, P2F replaces the nonlinear momentum equation by a single network forward pass, introduces no retraining for new initial conditions within the training range, and remains compatible with existing node-based system-code structure. However, in the simplified verification case the hybrid P2F implementation is actually slower than the reference FDM solver, with about $0.04\times$ speedup ratio, or roughly $25\times$ slower. The explanation given is that the simplified FDM problem is already relatively cheap, so neural inference and data-transfer overhead dominate. The paper therefore presents the current result not as a universal runtime advantage, but as a coupling methodology whose benefit may emerge more clearly in more complex nonlinear and strongly coupled settings [2604.02663].

## 6. Relation to adjacent PINN–solver paradigms

P2F belongs to a broader trend in which governing parameters are embedded directly into PINNs so that a single network represents a family of solutions. In one-dimensional acoustics, a parameterized PINN was constructed by treating source location $x_0$ as an input and learning $p(x,t,x_0)$ under wave-equation, initial-condition, and impedance-boundary constraints. In that formulation, the network learns a family of solutions rather than one solution per source location, and the authors explicitly note that this is closely aligned with the broader idea of parameterized PINNs and coupled physics systems [2109.11313].

A second nearby line of work replaces automatic differentiation in the PINN loss with finite-difference stencils on a grid. For Laplace’s equation and Burgers’ equation, the FDM-PINN approach computes the physics loss from a discrete residual $\Gamma$ rather than from an AD-derived continuous operator, making the training resemble a numerical PDE solver operating on network predictions. This method is described as faster to compute than AD-based PINNs and on par in terms of error reduction in the reported experiments. That architecture is related to P2F in spirit but not identical in mechanism: FDM-PINN modifies how the residual is evaluated inside the neural loss, whereas P2F uses a parameterized PINN as a surrogate for one equation and couples it to an external FDM solver for another equation [2602.21590].

Parameterized PINNs for incompressible flow provide a further point of comparison. In the lid-driven cavity problem, Reynolds number was treated as an explicit input so that a single network represented $(x,y,Re)\mapsto(u,v,p)$. That work showed that pure parameterized PINNs are effective at low $Re$, but that hybridization with transfer learning and sparse CFD supervision becomes necessary as convection dominance increases and optimization imbalance worsens. This comparison is relevant because it illustrates a general limitation of pure parameterized PINNs: the parameterized manifold can be learned robustly only within regimes where training remains stable [2602.04670].

These comparisons clarify a recurring misconception. “Parameterized PINNs coupled with FDM” does not simply mean any PINN that uses finite differences somewhere in its workflow. In the specific sense established by P2F, the defining features are a parameterized, data-free surrogate for a selected subsystem, solver-level coupling in a time-marching loop, and exact discrete mass conservation supplied by the FDM component [2604.02663].

## 7. Limitations, assumptions, and prospective extensions

The current P2F demonstration is subject to explicit assumptions. The verification problem is an idealized open-tank system, flow direction is fixed and sequential, pressure coupling between control volumes is negligible, and the momentum equation is simplified enough to allow node-wise sequential evaluation. The scope is currently limited to the CVH/FP module and has not yet been extended to MELCOR’s other major modules such as Heat Structure (HS) and Radionuclide (RN) [2604.02663].

The paper identifies several directions for future work: extension to closed systems with non-negligible pressure differences, bidirectional flow, the full matrix-based implicit momentum coupling used in MELCOR, integration with additional MELCOR packages for full multi-physics simulation, and performance studies under more complex regimes where the hybrid approach may become cost-competitive. These are stated research directions rather than established capabilities [2604.02663].

A broader implication is suggested by adjacent work. Parameterization by source position in acoustics and by Reynolds number in incompressible flow both indicate that a single PINN can learn a continuous solution manifold across a controlled parameter range [2109.11313], [2602.04670]. Coupling that parametric surrogate to a discrete conservation update, as P2F does for thermal hydraulics, suggests a general strategy for problems in which one subset of equations is expensive and nonlinear while another must retain exact discrete conservation. This suggests a family resemblance among parameterized PINNs, hybrid PINN–solver frameworks, and classical reduced-order or surrogate-assisted simulation, while leaving open the question of when the hybrid overhead is justified by system-level complexity rather than by isolated benchmark cost.

Within its stated scope, P2F is therefore best understood as a numerical coupling methodology: a node-assigned hybrid framework in which a parameterized, data-free PINN learns the momentum response manifold over $(\Delta h, v_0, t)$, and an FDM solver advances the conserved state. Its significance lies less in replacing conventional solvers outright than in specifying a reusable, conservation-aware interface between parameterized PINN inference and time-marching thermal-hydraulic simulation [2604.02663].

Source: https://www.emergentmind.com/topics/parameterized-pinns-coupled-with-fdm-p2f