5 Numerical Approach
5.1 Cell-centred finite-volume discretization
For each control volume
The steady nonlinear problem is
5.2 Implicit pseudo-time stabilization
The steady solver may add a local pseudo-time mass matrix to improve
nonlinear robustness,
For compressible calculations,
The pseudo time step is local and is selected from a characteristic spectral scale and the requested CFL number. Increasing CFL reduces the diagonal pseudo-time stabilization and moves the iteration toward a Newton solve; decreasing CFL increases diagonal dominance and generally improves robustness at the cost of more nonlinear iterations. Automatic CFL logic should therefore be interpreted as nonlinear continuation rather than as physical time integration.
5.2.1 Isentropic-Mach preconditioning accelerator
The low-Mach preconditioner uses a local reference velocity
A reference total pressure
where
Before the isentropic limiter is applied, the local reference scale is assembled from the acoustic floor, the largest local or neighboring velocity, pressure jumps, diffusion and, when selected, a global reference Mach number. Its structure can be summarized as
with the global term present only when global preconditioning is enabled. The isentropic pressure ratio is then
and the corresponding isentropic Mach estimate is
The preconditioning reference velocity is raised according to
For transient calculations the physical-time scale supplies an additional lower bound,
and, when a finite acoustic speed exists, NeuralFlow finally limits the reference velocity by
Stiffened-gas treatment. In the local isentropic limiter,
VOF simulation note. When homogeneous VOF is enabled, the current local limiter sets
5.3 5.3 Consistent residual linearization
NeuralFlow forms the implicit face Jacobians from the same numerical expressions used in the finite-volume residual. For an interior face, the linearized flux is
5.4 Reconstruction and order of accuracy
A face state may be written generically as
For an implicit iteration, the reconstructed residual and the Jacobian must represent the same frozen reconstruction state used in that assembly. Deferred-correction or frozen-gradient strategies are valid only when their lagging is deliberate and consistently reflected in the nonlinear iteration.
5.5 Convective and pressure fluxes
The compressible path uses the selected Riemann/AUSM-family carrier flux. For AUSM+-up, a face flux may be represented schematically as
The constant-density incompressible path uses the same general split
structure with
5.6 Viscous and diffusive terms
Viscous stresses, heat conduction, turbulence diffusion and species diffusion are assembled as face fluxes. A typical scalar contribution is
5.7 Species admissibility and coupled relaxation
The
5.8 Physical transient discretization
For transient calculations, the physical-time residual is Eq. (3.4). BDF1 is first-order accurate and requires one previous accepted physical state. BDF2 is second-order accurate and requires two historical states. The spatial residual at the new physical time is solved implicitly through pseudo-time iterations.
The dual-time nonlinear problem at physical step
For constant-density artificial-compressibility flow, the pressure
row has no physical
5.9 Residual monitoring
A raw residual component has physical units and depends on equation
scaling, mesh area/volume, and state magnitude. NeuralFlow therefore monitors
scaled residual quantities in addition to the nonlinear update history.
A generic normalized component may be written as
5.10 Relation between nonlinear and linear convergence
The Krylov solve in Eq. (3.3) is an inner problem. Driving it far below the accuracy justified by the current nonlinear linearization wastes work, whereas stopping it too early can destroy the intended Newton correction. The appropriate linear tolerance therefore depends on nonlinear stage, pseudo-time stabilization, and preconditioner quality. NeuralFlow exposes the matrix-solver options separately from the nonlinear CFL/relaxation controls for this reason.
5.11 Coupled correction admissibility
The linear correction is not committed blindly. NeuralFlow scales the complete cell correction when temperature, species or VOF bounds would be crossed, preserving the coupled direction rather than clipping individual solved variables independently. The exact temperature, species and VOF fraction-to-boundary equations are given in Nonlinear Correction, Relaxation and Admissibility.