Manuscript Offprint
arXiv:2610.33925Neural Eigenfluid Bases: Spectral Objectives, Gauge, and Topology
Abstract
Reduced-order models simplify fluid simulation by representing complex flows with a small number of spatial modes. Building on Laplacian Eigenfluids, we introduce Neural Eigenfluid Bases (NEB), a neural representation whose basis functions can be evaluated anywhere in space. We enforce incompressibility and impermeable boundaries directly through differential lifts and potential boundary conditions. Geometry-local orthogonalization and Rayleigh minimization then learn an ordered basis. We connect learning in potential and velocity spaces, and derive a spectral-variance relation explaining why these objectives weight approximate modes differently, even though their exact positive spectra agree. Gauge fixing reduces the number of spatial derivatives needed for potential learning, while a Dirichlet energy loss learns independent circulation fields around obstacles. With 1024 modes, both objectives keep velocity errors below 1% in periodic vortex merger. For random flows around obstacles, potential-based learning captures more initial energy and gives lower final errors than numerical Laplacian bases of the same size. The reduced state is about a thousand times smaller than the full reference model. Three-dimensional tests separate spatial reconstruction errors from errors in coefficient evolution. Precomputed Galerkin operators allow millisecond-scale updates when the same basis is reused across simulations. This provides a physically constrained basis for continuous flow reconstruction and efficient reduced-order simulation. Code and models are available at https://github.com/baiming-zhang/NEB.
1 Introduction
Interactive simulation, initial-condition studies, and geometry design often require solving similar flow problems many times. In airfoil design, engineers may repeatedly adjust shape parameters to identify the dominant flow modes associated with candidate geometries. In games, moving obstacles continually reshape the fluid domain and demand rapid visual feedback. Recomputing numerical bases and flow solutions for each configuration can make this interactive exploration costly. Reduced-order models (ROMs) reduce this cost by representing complex flows with a small set of spatial basis functions. A trained geometry-conditioned neural representation queries these eigenmodes directly. Once the modes and reduced operators are available, the flow evolves in a low-dimensional coefficient space, exploiting the greatly reduced number of degrees of freedom to achieve millisecond-scale updates and support near-real-time flow previews (Section 3.4). The choice of basis determines what the reduced model can represent, how physical constraints are handled, and which computations can be reused. A useful fluid basis should therefore capture the main flow structures while supporting dynamics from different initial conditions.
Corresponding author.
For conventional spectral ROMs, however, the basis is usually computed by solving a Laplacian eigenvalue problem on a specific domain. Even a small change in the boundary or the position of an obstacle can change the eigenfunctions and require a new numerical solve. Analytical solutions are available for a few simple geometries, such as rectangles and circles, but are generally difficult to obtain for more complex shapes. This becomes a practical limitation during early-stage design, where geometry parameters may change repeatedly. Neural networks offer another approach. Instead of solving a separate eigenvalue problem for each geometry, we can learn a mapping from shape space to eigenspace, allowing basis functions to be evaluated at arbitrary spatial locations within a family of geometries. Our goal is to preserve the physical structure and accuracy of Laplacian Eigenfluids while reducing the need for repeated numerical solves. Our experiments show that learned bases can achieve accuracy comparable to numerical Laplacian bases, and sometimes perform better in selected cases. For repeated queries, the cost of training can also be shared across many evaluations.
Fluid model reduction has developed along two main directions: data-driven and operator-based methods. Snapshot-based approaches extract a low-dimensional space from existing simulations. Treuille et al. (2006) demonstrated interactive reduced fluid simulation, including interactions with moving obstacles. Kim and Delaney (2013) combined subspace integration with cubature to efficiently simulate variations of high-resolution flows. These methods use patterns in simulation data to reduce spatial computation and time-stepping costs. Spectral methods instead construct basis functions from differential operators. Laplacian Eigenfluids (De Witt et al., 2012) organizes flow structures by eigenvalues and provides a modal interpretation of viscous decay. Model-Reduced Variational Fluid Simulation (Liu et al., 2015) further connects spectral reduction with geometric structure and harmonic fields. Unlike bases extracted from specific flow trajectories, operator-based modes are ordered by differential energy and have a clear physical interpretation. These properties provide a natural starting point for our neural representation.
Neural networks have introduced several other ways to reuse computations in fluid simulation. Deep Fluids learns a parameterized velocity generator and latent dynamics from simulation data (Kim et al., 2019). DeepONet and Fourier Neural Operators learn mappings between function spaces (Lu et al., 2021; Li et al., 2021), while Geo-FNO extends this approach to general geometries through learned deformations (Li et al., 2023). These methods mainly focus on learning how physical inputs map to flow solutions. We take a different approach: rather than learning the flow solution directly, we learn the spatial basis used to represent it. Once the basis and its reduced operators are prepared for a given geometry, they can be reused across different initial conditions by changing only the coefficient state. This also allows us to study spatial representation error and reduced dynamics error separately.
Coordinate-based neural fields provide continuous function values and spatial derivatives. Periodic activation functions help represent differentiable signals (Sitzmann et al., 2020), while Fourier features improve the learning of high-frequency variations (Tancik et al., 2020). Variational methods can then use physical energy to learn eigenfunctions. The Deep Ritz method minimizes energy functionals (E and Yu, 2018), Spectral Inference Networks learns multiple eigenfunctions through stochastic optimization (Pfau et al., 2019), and neural Rayleigh methods apply similar ideas to engineering eigenvalue problems (Rowan et al., 2025). More recently, Shape Space Spectra extended neural eigenfunction learning to parameterized geometries, using geometry-local sorting and causal orthogonalization to handle changes in spectral ordering (Chang et al., 2025). These works show that neural networks can learn bases defined by differential operators. For incompressible fluids, however, minimizing spectral energy alone is not enough. The basis must also satisfy incompressibility and wall impermeability, account for gauge freedom in the potential representation, and include the independent circulation fields introduced by domain topology.
Physical constraints can be built directly into neural representations. Neural Conservation Laws (NCL) constructs divergence-free fields through differential lifts of antisymmetric potentials (Richter-Powell et al., 2022), and other constrained neural basis methods use similar ideas for incompressible flows (Cheng et al., 2026). Neural Kinematic Bases (NKB) learns velocity basis functions directly, using losses for smoothness, divergence, wall alignment, and orthogonality to support mesh-free flow fitting and animation (Liu et al., 2025). These studies show that learning fluid bases with neural networks is feasible. However, soft penalties do not strictly enforce all physical constraints, and they do not directly organize the learned functions according to the spectrum of a differential operator.
We aim to reduce how much of the physics the network must learn from penalties. Instead of relying on the loss function to enforce incompressibility, we build it into the representation and use energy minimization to learn the spectral modes. In two dimensions, a scalar streamfunction generates a divergence-free velocity field; in three dimensions, we use a vector potential. Potential boundary conditions enforce wall impermeability, geometry-local orthogonalization separates the modes, and Rayleigh minimization determines their spectral ordering. The training does not require flow snapshots, since the basis is defined by the geometry and differential operator. The neural network provides continuous spatial functions, the physical construction restricts the space of possible solutions, and the energy objective selects the low-frequency modes. We also compare our approach with NKB under the same training budget and Galerkin evolution framework to examine how these structural choices affect accuracy.
Learning in potential space offers another advantage: it can reduce the number of spatial derivatives needed during training. However, this requires a consistent treatment of gauge freedom. For example, adding a constant to a periodic streamfunction in two dimensions does not change the velocity. In three dimensions, certain curl-free components can also be added to a vector potential without changing its curl. Although these changes leave the physical velocity unchanged, they affect the potential mass norm and can therefore distort the Rayleigh objective. We address this by selecting a suitable gauge representative before normalization and optimization. Using the classical compatible positive-spectrum correspondence (Arnold et al., 2006), we connect the potential-space and velocity-space objectives and derive a spectral-variance relation that explains why they assign different weights to high-frequency components in approximate modes.
Our experiments also reveal a practical difference between two- and three-dimensional learning. In 2D, the potential objective requires fewer spatial derivatives and reduces training time while maintaining good accuracy. In 3D, however, selecting a consistent vector-potential gauge introduces a substantial computational cost, while the accuracy gains over numerical Laplacian bases are relatively small in our tests. We therefore view potential-space learning as an alternative with a clear mathematical basis, rather than an objective that is always preferable. Its usefulness depends on the problem and the cost of gauge selection. We examine auxiliary solvers to understand how gauge accuracy depends on spatial resolution and operator consistency.
Beyond the positive spectral modes, flow in complex domains contains independent circulation fields determined by topology. Hodge theory shows that harmonic velocity fields can carry circulation around obstacles without introducing vorticity (Arnold et al., 2006). This structure has been studied in spectral variational ROMs (Liu et al., 2015), Fluid Cohomology (Yin et al., 2023), and Hodge-based neural operator learning (Zheng et al., 2026). In our framework, we learn these harmonic fields through fixed boundary traces and Dirichlet energy minimization, then convert them into velocity fields through differential lifts. Together, the positive modes and harmonic coordinates represent both vortical motion and independent circulation around obstacles.
Circulation is especially important in flow around lifting airfoils. In idealized airfoil flow, it is closely related to the Kutta condition and the generation of lift. A basis containing only positive spectral modes cannot represent the independent circulation needed for such a flow, regardless of how accurately those modes are learned. Harmonic completion therefore provides more than a mathematical correction; it adds degrees of freedom needed to describe certain physical phenomena. However, when the total number of modes is fixed, adding harmonic fields also means removing the same number of positive modes. Although this makes the representation topologically complete, it does not always improve energy capture. The benefit depends on how much of the target flow lies in the vortical and harmonic sectors.
Our main contributions are as follows:
-
Physically constrained neural eigenfluid bases. We introduce a continuous, geometry-conditioned spectral representation that combines differential lifts, impermeable boundary conditions, and geometry-local orthogonalization. The resulting basis satisfies key kinematic constraints by construction. For a selected geometry, reusable Galerkin operators support autonomous coefficient evolution and flow reconstruction at arbitrary spatial locations.
-
Potential-space spectral learning with gauge selection. We formulate a Rayleigh learning objective on selected potential representatives and derive a spectral-variance relation connecting potential-space and velocity-space objectives through their shared positive spectrum. We also examine the accuracy and computational cost of both approaches in two and three dimensions.
-
Neural harmonic circulation fields. We learn independent harmonic coordinates using fixed boundary traces and Dirichlet energy minimization, completing the flow representation in multiply connected domains. Through fixed-capacity comparisons and controlled tests of boundary-lift conditioning, we study how these coordinates affect energy capture and flow evolution.
2.1 The velocity space: positive modes and harmonic circulation
Let be a connected fluid domain of spatial dimension , indexed by geometry parameters , with outward unit normal . Here is the real number space, is a spatial point, written in 2D or in 3D, and denotes velocity. For scalar or vector fields , we use the geometry-local mass inner product
The dot is the Euclidean inner product (ordinary multiplication for scalars); dx is volume measure. For a fixed domain we write and suppress the geometry subscript on the inner product and norm. The operators div and curl denote spatial divergence and curl. An admissible velocity satisfies div and : the wall is impermeable and tangential motion is permitted. We order this space by vorticity energy in 2D and curl energy in 3D, giving the divergence-free absolute Hodge problem (Arnold et al., 2006). Its zero-energy fields form the harmonic sector; its positive-energy eigenfields form the positive sector. To express both dimensions together, write for the velocity one-form, with b the metric dual, d for exterior differentiation, for its Hilbert adjoint, and for the Hodge star. The contraction extracts the normal trace. The subscript A denotes absolute boundary conditions; the space of harmonic velocity one-forms is
(2) a Training

Divergence-free
Boundary
Trained neural map
Geometry parameters
Geometry-dependent domains
Rayleigh objective
Geometry to basis
b Inference
Geometry-specific basis
Preassembled operators

Harmonic circulation
Initial velocity
Selected-frame reconstruction
Coefficient-space ROM
Figure 1. Shape-dependent training and coefficient-only inference. (a) Geometry parameters vary obstacle position, scale and orientation within a fixed rounded-square outer boundary. A hard boundary envelope acts on geometry-conditioned potentials. Paired, oppositely oriented red and blue marks depict the antisymmetric tensor in the Neural Conservation Laws (NCL) construction (Richter-Powell et al., 2022); its row-wise divergence generates divergence-free velocities. Gauge fixing and geometry-local causal orthogonalization produce normalized candidates within the divergence-free, impermeable trial space; the Rayleigh contours depict their energy minimization. Training yields the parameter-to-basis neural map. (b) For a selected geometry, the map supplies positive modes, completed by harmonic circulation fields. Initial projection and geometry-specific preassembled mass, linear and quadratic operators support coefficient-only ROM stepping; spatial fields are reconstructed at selected times. The schematic uses M for the velocity mass matrix, A for the reduced linear operator, Q for the quadratic advection tensor, and for selected output times.
These fields have zero Hodge energy but can carry circulation. For positive mode index i, let be a normalized velocity eigenfield and its eigenvalue. On admissible velocities orthogonal to the harmonic sector, they satisfy the weak eigenproblem for every admissible test field :
The absolute Hodge realization has and ; the latter is zero boundary vorticity in 2D and in 3D. These are the natural Hodge slip conditions of the spectral problem. The envelope imposes impermeability directly; the energy determines the natural eigenfield condition.
2.2 Admissible neural potentials and the differential lift
Geometry determines the domain, quadrature and boundary envelope. Following the geometry-conditioned spectral representation of Chang et al. (2025), the network has trainable parameters and outputs
K potential candidates , indexed by , one per mode. The symbol denotes the enveloped candidate before gauge selection and normalization: a scalar streamfunction in 2D and a vector potential in 3D. Geometry-family training samples g during optimization; fixed-domain training specializes this map to one geometry.
On a bounded domain we multiply each candidate by a differentiable geometry envelope that vanishes on the domain boundary ,
The zero envelope enforces a sufficient relative potential trace: zero streamfunction trace in 2D and zero tangential vector-potential trace in 3D. The periodic benchmark uses a periodic encoding and identity envelope. For a potential , write for its scalar streamfunction in 2D and for its vector potential in 3D. With the spatial gradient, , coordinate derivatives, and the rotated gradient, the potential-to-velocity map specializes to
Equivalently, the Neural Conservation Laws (NCL) construction represents velocity as the row-wise divergence of an antisymmetric matrix field (Richter-Powell et al., 2022): with . Here is velocity component , differentiates coordinate , the component indices run from 1 to , and denotes transpose. For smooth fields, antisymmetry and commutation of mixed derivatives give
In 3D the equivalent antisymmetric potential is the tensor S. With the Levi–Civita symbol, normalized by , its entries are . In 2D, and .
These yield the rotated gradient and curl in Eq. (5), respectively. This cancellation is the coordinate form of . In 2D a constant streamfunction trace has zero tangential derivative and hence zero normal velocity. In 3D the relative trace gives a curl with zero normal component. Linear combinations preserve these identities, so the parameterization builds the kinematic constraints into the spectral trial space.
Several potentials generate the same velocity. Gauge fixing chooses one representative so that its mass norm, orthogonalization and Rayleigh objective measure the flow-producing coordinates consistently.
2.3 Gauge representatives and the potential metric
Scalar constants in 2D. Periodic streamfunctions admit the constant freedom . Here is an arbitrary scalar constant. We select the centered representative by subtracting the area-weighted mean . Its quadrature approximation uses the node–weight set , with node index and positive weights :
This centering removes the constant null coordinate before normalization, ordering, and Gram–Schmidt, and is differentiated during training. It makes the potential norm measure the spatially varying field: an unconstrained constant could otherwise lower the Rayleigh ratio arbitrarily without changing velocity.
For the bounded scalar Dirichlet problem, on the boundary selects the representative. The multi-hole experiment uses this boundary-pinned mass norm. Scalar-field displays subtract one global spatial mean, preserving derivatives and circulation while giving the plots a common gauge. Appendix A.1 details the distinction between the boundary-pinned training metric and the centered display convention.
Curl-free directions in 3D. The vector-potential gauge kernel contains admissible gradients and may also contain relative harmonic fields. We first remove the gradients with a Coulomb projection, as also used in vector-potential fluid editing (Chen and Kanai, 2026). Let be the raw potential, its scalar gauge correction, the Laplacian, and the gradient-corrected field:
We then obtain the canonical potential using the identity operator and the mass-orthogonal projector onto the relative harmonic potential space (the subscript denotes relative boundary conditions):
The exact representative is orthogonal to the kernel of C, has zero divergence, and preserves curl and the relative boundary trace. A geometry-dependent solve handles all mode right-hand sides together. For the Metaball Potential objective (the canonical curl quotient), the full relative compatible curl complex selects the mass-orthogonal canonical representative, with physical solve actions in FP64. The Potential-AL and Potential-FG controls use augmented-Lagrangian constraints and finite scalar/harmonic projection, respectively, as detailed in Appendix A.3. The removed relative harmonic potential fields belong to the gauge kernel. The absolute harmonic velocity fields carry physical circulation and enter the completed velocity basis.
2.4 Rayleigh learning and the effect of objective choice
Denote the selected potential representative by : canonical for the periodic/vector quotient and boundary-pinned for the scalar Dirichlet experiment. Following variational neural eigenfunction learning (E and Yu, 2018; Pfau et al., 2019; Rowan et al., 2025), the potential Rayleigh ratio and its Hodge velocity counterpart are
For a streamfunction these are and . For a canonical vector potential they are and . We call our family of geometry-based neural spectral methods Neural Eigenfluid Bases (NEB). Velocity uses a velocity-space Rayleigh objective, optimizing the energy and mass of the lifted velocity; its network can still parameterize a potential before the differential lift. Potential uses a potential-space Rayleigh objective, with a scalar streamfunction in 2D and a mass-orthogonal canonical vector potential in 3D. Its control variants are Potential-FG, with finite scalar/harmonic gauge projection, and Potential-AL, with augmented-Lagrangian constraints. The potential-space objective uses one fewer spatial derivative. We also explored a vorticity-space objective, but its slower training brought little gain in accuracy in our preliminary tests. It may have advantages in particular settings, though we do not pursue it further here. Our baselines are Laplacian, the numerically solved spectral basis (De Witt et al., 2012), and NKB, the direct-velocity Neural Kinematic Basis (Liu et al., 2025).
The lower-order objective is linked to the velocity spectrum by the differential lift. Write for the mass-inner-product adjoint of , and for a normalized potential eigenmode. If with and , then
Under compatible relative/absolute domains, is the positive Hodge velocity operator. The classical Hodge pairing gives the same exact nonzero spectrum, including multiplicities (Arnold et al., 2006). This includes mean-zero periodic fields and decaying free-space fields when integration by parts has no boundary contribution. The equivalence concerns eigenvalues and their lifted eigenspaces; for arbitrary approximate candidates the objectives obey Eq. (13). Appendix B gives the operator proof and its free-space specialization.
The objectives still differ away from an exact eigenspace. For a potential expansion , with spectral coefficients and mode index in an orthonormal potential eigenbasis,
Writing defines probability weights on the eigenvalues. With and denoting their weighted mean and variance, the difference is
Velocity learning places extra weight on high-frequency content in an approximate mode. This changes the optimization of a finite neural representation even though the exact spectra agree. The periodic experiment measures the resulting cost–accuracy tradeoff. Appendix B derives the correspondence and the boundary term relating componentwise gradient energy to curl energy in 3D.
2.5 Geometry-local ordering and causal orthogonalization
Multiple independent outputs must span distinct low-frequency directions. For quadrature points with , define
At each sampled geometry we select representatives, normalize them in the chosen metric, and sort detached preliminary Rayleigh values. The geometry-local permutation adapts the ordering to that domain. Let be preliminary normalized representatives, their orthogonalization residuals, and the resulting unit-norm candidates, where . The operator sg stops differentiation through its argument. The training loss averages the quadrature Rayleigh ratio over the sampled geometry distribution, denoted by . For the potential objective, causal orthogonalization follows Shape Space Spectra (Chang et al., 2025) and treats lower-ranked modes as fixed when learning the next mode:
A second orthogonalization pass reduces accumulated projection error. The causal gradient prevents a higher mode from changing a lower mode merely to simplify its own residual. Because gauge selection and the boundary constraints define linear spaces, the subsequent linear combinations preserve them.
The velocity objective uses the velocity inner product and corresponding energy, applying the same coefficient transform to every derivative channel. Spatial derivatives and parameter adjoints use an analytic CuPy implementation. At repeated eigenvalues, the identifiable object is the eigenspace; the mode atlas is interpreted up to signs and orthogonal rotations within that space.
(a)
Base flow
Positive modes
Incorrect flow

(b)
Incorrect flow
Harmonic modes
Correct flow
Figure 2. Harmonic circulation completes the flow representation. (a) A base flow combined with positive modes gives an incomplete, zero-circulation description of a lifting airfoil, with an incorrect sharp-trailing-edge flow. (b) Adding harmonic circulation permits smooth outflow satisfying the Kutta condition and generates lift in the presence of the base flow. Streamlines schematically illustrate the decomposition in Eq. (19).
2.6 Harmonic completion at fixed capacity
Harmonic zero-frequency fields complete the spectral ROM basis in Liu et al. (2015). We construct their neural counterparts with a dedicated boundary-value objective. Zero-trace positive streamfunctions describe the vortical sector; independent curl-free circulation is supplied by differences between boundary constants. Let be the number of holes, the outer boundary, and the boundary of obstacle . For obstacle , its harmonic measure solves the following problem, where is the Kronecker delta:
The velocities are divergence-free, curl-free, and tangent to every boundary. Their span has one independent coordinate per hole. Cardinal boundary values are convenient coordinates; a further invertible circulation matrix can convert them into unit-period coordinates.
Let be a fixed lift of the cardinal boundary traces and a neural correction. The parameterization gives the correction zero trace. The harmonic training loss therefore minimizes Dirichlet energy within this prescribed boundary-value space:
Fixed traces determine the scale of a harmonic measure, so this numerator-only objective directly realizes the Dirichlet principle through neural energy minimization (E and Yu, 2018). Appendix C.2 gives the variational derivation. Raw and scaled lifts parameterize the same boundary-value problem and correction space with different optimization coordinates. Holding the positive checkpoint fixed while changing the lift isolates this conditioning effect.
With holes and total dimension , the completed representation contains positive modes and harmonic modes. Let supply any prescribed base flow, and be the positive and harmonic coefficients:
The prescribed base flow carries nonhomogeneous data when present. Writing and , the comparison versus changes the allocation of coordinates while keeping their total number fixed. We abbreviate these allocations as P and P+H (or PH). They test topological completeness at the same capacity. Appendix C illustrates this distinction on an annulus and gives the circulation normalization.
Circulation is particularly important in lifting-airfoil flow. In the ideal slip-flow illustration of Figure 2, the Kutta condition selects a circulation and the classical Kutta–Joukowski lift per unit span has magnitude , where is fluid density and the freestream speed (Batchelor, 2000). The harmonic coordinate permits that circulation to be represented alongside the base flow and positive modes. This motivates including the sector whenever the target physics requires it; the multi-hole experiments quantify its allocation at a fixed coordinate budget.
2.7 From the learned span to autonomous dynamics
Write the reduced velocity as , where column is basis field and is the coefficient state. Following spectral fluid Galerkin reduction (De Witt et al., 2012; Liu et al., 2015), let denote simulation time and . The full velocity mass matrix defines the coefficient metric, the vorticity/curl stiffness matrix supplies viscous dissipation, is kinematic viscosity, and is the quadratic advective load. Projection of the homogeneous unforced Hodge model gives
For indices , advection gives the quadratic load , with .
A base flow or force contributes the corresponding constant and linear terms. Exact orthonormal eigenfields make M the identity and S diagonal. For the learned span, retaining the full operators incorporates its measured metric and energy couplings into the dynamics.
For initial velocity , the initial coefficients solve , where the vector inner product has entry . This initializes an autonomous coefficient trajectory. Numerical reference states enter the subsequent error measurement. Learned and numerical bases use the same stated discrete generator within each matched comparison, including the normal-penalty grid generator in 3D.
Offline assembly and coefficient-only integration. For a fixed span and a quadratic discrete fluid generator, preassembled reduced operators (Treuille et al., 2006; De Witt et al., 2012; Liu et al., 2015) move full-field evaluation offline. Here denotes the specified linear fluid generator (viscosity and any linear penalty or base-flow terms), while denotes its bilinear advective part. Writing the generator as gives the reduced linear matrix A and quadratic tensor Q below. The subscript h denotes the discrete spatial quadrature:
The same quadrature defines and the two assembled operators. During inference, each time-integration stage contracts these fixed operators with the current coefficient vector and solves the full mass system using its cached Cholesky factor. The recurrent state is therefore the reduced vector throughout the trajectory. Spatial reconstruction is performed only at requested output times, as illustrated in Figure 1. This is an algebraic reorganization of the chosen Galerkin system. Appendix D.1 measures operator equivalence, integration time, offline cost, and flow error separately.
3 Experiments
We evaluate spectral objectives, harmonic completion, and reduced dynamics through the controlled comparisons in Table 1.
Table 1. Validation goals and controlled comparisons.
| Case | Comparison | Validation |
|---|---|---|
| Periodic | Learned spectral and kinematic bases; same-capacity Laplacian | Neural eigenfluid and potential-space feasibility; autonomous accuracy and decay. |
| Multi-hole | Random small-scale fields and large-scale vortices; fixed-budget allocation and lift conditioning | Topology-aware circulation completion, energy capture and harmonic conditioning. |
| Metaball | Velocity-basis capacity; full-grid and assembled coefficient operators | 3D feasibility, capacity-dependent representation and coefficient-space acceleration. |
The field comparisons show the numerical ground-truth flow reference (Numerical GT), a same-capacity Laplacian basis, a potential-trained basis, and a velocity-trained basis. Let be a reduced velocity and the numerical reference at time . Annotations give relative velocity error , where is the spatial mass norm over the full assessment domain and plotted percentages are ; we also write . A subscript GT denotes a reference quantity; shared color scales preserve amplitude differences. Appendix E gives discretizations and convergence checks. Figure 7 compares the multiply connected modes, complemented by the periodic and three-dimensional atlases in Appendix F.
A fixed-case adaptation of Neural Kinematic Bases (Liu et al., 2025) provides an additional direct-velocity comparison under the stated training budget and common Galerkin evolution (Appendix G). Experiments are conducted on a workstation with an Intel Core i9-14900K CPU and an NVIDIA GeForce RTX 4080 SUPER GPU.
3.1 Case 1: Periodic vortex merger
The periodic domain admits an analytic Fourier basis and a mean-zero scalar gauge, providing a controlled setting for autonomous flow with learned spatial coordinates. The vortex pair has separation , with modes and a final simulation time . All methods project the same initial velocity with the full mass matrix and retain every basis coordinate during evolution. The Laplacian (Fourier) basis supplies the same-capacity numerical control, following Laplacian Eigenfluids (De Witt et al., 2012).
Autonomous evolution. Figure 3 shows the potential-trained seed-0 trajectory through . Figure 4 measures velocity and vorticity errors, kinetic-energy decay, and enstrophy decay on the same case. The spatial basis is reused throughout the trajectory. Both learned spectral objectives sustain sub-percent velocity error. Velocity learning gives the higher accuracy, while potential learning reduces training cost, matching the cost–accuracy tradeoff predicted by the objective analysis (Figure 4; Table 22). The potential and NKB trajectories have nearly identical synchronized integration times, yet the spectral span gives substantially smaller flow error (Table 27). Spectral organization therefore improves autonomous accuracy at comparable recurrent cost under this matched protocol. The absolute mean squared velocity error is reported in Table 2.
Table 2. Periodic vortex merger, , , . Velocity mean squared error (MSE) averages squared velocity-component errors over all 241 saved observation-grid states. Learned entries then average three seeds. Relative errors are visualized in Figure 4; spectral training costs appear in Table 22, and NKB costs in Table 24. NKB uses the 2000-update adaptation in Appendix G.
| Basis | Velocity MSE |
|---|---|
| Laplacian | |
| Velocity | |
| Potential | |
| NKB |
t = 0

t = 9π

t = 18π

Figure 3. Potential: periodic vortex merger. Panels show the , seed-0 Potential trajectory with vortex separation , from left to right at . Surface relief encodes smoothed vorticity magnitude on a common scale; white accents trace vortex structure. Height is a display coordinate for the two-dimensional flow.
3.2 Case 2: Multiply connected flow—energy compression and circulation
Each obstacle introduces an independent circulation coordinate. We consider two random flow ensembles: streamfunctions with many small-scale vortical structures, and combinations of a few smooth, large-scale vortices. Together they test energy compression, harmonic completion, and lift conditioning. The small-scale random-field comparison uses total throughout: and exchange positive and harmonic coordinates within the same state budget.
Energy captured per reduced coordinate. We sample streamfunctions in physical space from Gaussian lattice values and a quintic spline, then condition each draw to impermeability and zero boundary vorticity before analytic differentiation. Boundary constants are derived from the same draw, so its vortical and circulation content arise together. Frozen seeds [20260928, topology index, field index] define 20 reproducible fields per topology; indices 0 and 1 supply the six-field all-method dynamic comparison. Appendix E.4 specifies the generator, conditioning, and reference construction.
Let be the positive assessment quadrature matrix, with for sampled velocity , and let be the full-mass projection of , with initial coefficient vector . The captured kinetic-energy fraction is . Potential bases capture more initial kinetic energy than equal-capacity Laplacian controls across all three topologies, with the largest gains in the two- and three-hole domains, while compressing the reference state by roughly three orders of magnitude (Figure 5). Most energy in these small-scale random fields lies in the vortical sector, represented by the spectrally ordered modes. Harmonic coordinates lift independent obstacle-boundary constants into circulation-carrying velocities (Arnold et al., 2006; Liu et al., 2015). At fixed , their added harmonic energy competes with the energy of the displaced positive modes. This energy allocation favors positive coordinates for the

Laplacian Velocity Potential NKB Numerical GT
Figure 4. Autonomous accuracy and decay in vortex merger. All panels use , , . (a) Relative velocity (top) and vorticity (bottom) errors against Numerical GT, normalized by the corresponding time-dependent observation-grid norm. Learned curves show three-seed means with one sample standard deviation (SD), on a symmetric-log scale with a linear interval below 0.01%. Open and filled markers indicate initial and final states. (b) Kinetic energy, . (c) Enstrophy, , where is scalar vorticity, , are velocity components, and denotes the spatial mean. All five methods appear in the upper decay panels, using seed-0 learned trajectories and common initial GT normalization. Distinct line styles and sampled markers distinguish nearly overlapping curves. The lower panels of (b,c) show and for Laplacian, velocity and potential bases. Curves use all 241 saved states from operator quadrature and maximum step 0.005.
small-scale ensemble, while harmonic coordinates provide its independent circulation sector (Appendix E.4).

Figure 5. Initial energy captured by the original representations. Circles and squares denote the two predetermined physical fields in each topology; vertical ticks denote their mean. The annotations give mean captured-energy percentages and state-coordinate compression , where is the number of independent coordinates of the reference state. The complete set of learned branches, raw/scaled harmonic coordinates, numerical controls, and NKBs use the same analytic initial fields.
Autonomous dynamics at the same capacity. Each representation evolves from its analytic-field projection using the full Galerkin operators, , and . The Potential P span combines higher initial energy capture with lower final trajectory error than the same-capacity Laplacian P control in every topology. Table 3 quantifies the paired effects of coordinate allocation on energy capture and trajectory accuracy. The nonlinear evolution couples these coordinates within the retained span. With and denoting the errors and energy fractions under the two allocations, its gains are and , with positive values denoting improvement. Appendix E.4.5 gives the full method–field curves, reference checks, energy histories, and circulation diagnostics; Appendix E.4 provides the broader numerical capacity and low-dimensional allocation studies.
Table 3. Paired changes under harmonic allocation on the six qualified random fields at total . Each entry averages the two fixed fields in its topology. Initial capture uses the analytic-target full-mass projection; final velocity error uses the qualified numerical trajectory. Gains are and in percentage points, so positive values favor completion. Absolute capture and trajectories are shown in Figures 5 and 12.
| Holes | Basis | ||
|---|---|---|---|
| 1 | Laplacian | +0.004 | +0.020 |
| 1 | Potential | -0.045 | +0.092 |
| 2 | Laplacian | +0.018 | +0.087 |
| 2 | Potential | +0.102 | -0.243 |
| 3 | Laplacian | -0.014 | +0.021 |
| 3 | Potential | +0.305 | +0.942 |
Completion and conditioning in random large-vortex flows. We randomly construct flows from a few smooth, large-scale vortices, with random locations, signs, and strengths. These flows combine local vorticity with motion around the obstacles. At , harmonic completion consistently lowers final error across all three obstacle configurations and brings the learned completed bases close to the numerical completed controls (Table 13). The boundary lifts make the independent circulation component accessible within a fixed-size reduced state. The two ensembles thus expose complementary demands on the basis: small-scale random fields emphasize vortical energy capture, while random large-vortex flows make topological completion and lift conditioning visible.
At , raw/scaled pairs share the positive checkpoint, boundary traces, Dirichlet objective, initialization, and training budget. Scaling substantially lowers the multi-hole trajectory errors (Figure 17), whereas changing the spectral objective in the raw two-hole control has little effect. The paired comparison identifies harmonic-lift conditioning as the main source of this improvement. Table 4 gives the corresponding positive-only controls.
Table 4. Positive-only controls for the random large-vortex ensemble: final relative velocity error (%), total , , averaged over 20 initial states. Learned positive modes use potential training, seed 1. Completed bases and raw/scaled lift comparisons are visualized in Figure 17.
| Holes | Numerical | Learned |
|---|---|---|
| 1 | 32.542 | 32.124 |
| 2 | 34.197 | 33.963 |
| 3 | 36.685 | 36.707 |
Once the harmonic fields are consistently conditioned, potential and velocity learning produce similar trajectory errors. Figure 6 shows the resulting flow, and Appendix H gives the matched-objective and conditioning comparisons.
Numerical GT
One hole
Laplacian
(6.70%)

Potential
(5.59%)

Velocity
(5.54%)
(7.94%)

(7.24%)

(7.09%)
Two holes


(7.72%)

(8.57%)

(8.81%)
Three holes




Figure 6. Random large-vortex flow at K = 1024. Rows: one-, two-, and three-hole domains. Columns: numerical reference, Laplacian, potential- and velocity-trained bases at t = 1, seed 1, state 00. Reduced bases have 1024 - h positive and h harmonic coordinates; the learned objectives share raw and scaled , . Errors use the common level-2 reference. Overhead views share height and foam mappings within each geometry (Appendix H).
Topology-dependent spectral modes. Figure 7 compares the first eight positive modes of the Laplacian and both learned constructions across three obstacle configurations. The aligned panels show each basis's spatial structure and ordering; independent harmonic coordinates complete the span.
3.3 Case 3: 3D Metaball—representation and autonomous evolution
The three-dimensional domain tests how a learned span supports autonomous dynamics. We separate the error due to spatial representation from the error in coefficient evolution, then measure the cost of evaluating the same reduced generator entirely in coefficient space.
Autonomous flow at 1024 modes. Figure 8 compares a velocity-trained basis with same-capacity Laplacian and NKB bases against the common independent normal-penalty Navier–Stokes (NS) reference. All three evolve autonomously from full-mass projections of the same initial field. Eigenfluid and Laplacian begin with comparable reconstruction quality and develop similar relative errors during autonomous evolution. The vector-error panels in Figure 8 also highlight similar regions of elevated error. Their agreement in error
(a) One-hole domain

(b) Two-hole domain
(c) Three-hole domain
Mean-zero streamfunction / mode maximum
Figure 7. Positive spectral modes across obstacle topologies. Panels (a–c) show one-, two-, and three-hole domains. Within each panel, rows compare Laplacian, potential-trained, and velocity-trained fields; columns show modes 1–8. Learned fields follow the positive-mode selection order in the total-32 continuous piecewise-linear finite-element (P1) basis, whose h harmonic coordinates are separate. The shared color scale shows area-centered streamfunction divided by its per-mode maximum magnitude. Signs and rotations within repeated eigenspaces preserve the span.
magnitude and spatial structure identifies the shared role of truncated Galerkin dynamics. Both methods compress the flow into the same number of coordinates, with nonlinear interactions resolved within that span. This correspondence connects the learned continuous basis to the established spectral ROM behavior at the same compression level. Figure 9(b) examines the joint contributions of spatial capacity and coefficient dynamics.

Figure 8. Three-dimensional autonomous flow at K = 1024. Rows show Numerical GT, Laplacian, Velocity, and NKB; columns show t = 0, 0.60, 1.16. Each time pairs speed (blue) with pointwise vector error (orange–red) on the offset z = 0.31640625 slice, which exposes the fused Metaball silhouette. Filled contours interpolate the saved nodal values and are clipped to the original geometry’s smooth boundary. Speed, error, and in-plane arrow lengths use separate fixed scales across all methods and times. Percentages in the upper-left corner of the vector-error panels denote full-volume relative velocity error, evaluated on all 1.6 M fluid nodes. Here is the integration time step; ROM trajectories use and the common NS reference uses .
Spatial capacity. Increasing capacity improves both initial reconstruction and autonomous accuracy under the same training budget, full-volume reference, and assessment times (Figure 9(b)). At K = 1024, the learned velocity span has lower initial projection error than the Laplacian control. Table 6 gives the original-field projection errors, and Appendix D.3 reports training costs.
Representation of randomized 3D large-eddy fields. Figure 9(a) compares the frozen Metaball spans on 20 independently randomized large-eddy initial states. A case-local Philox stream draws 96 independent standard-Gaussian sine and cosine coefficients for a three-component vector potential over 16 representatives of the integer wavevector pairs with . Coefficients are scaled by ; the raw potential wavelengths range from 0.5 to 1 unit-domain length. The analytic curl follows the common Metaball incompressibility projection and boundary conditioning, RMS normalization to 0.32, and four warm-up substeps. Each frozen basis projects the same states using the full physical mass matrix, all 1.6 M fluid nodes, and all K retained coordinates. Errors decrease with capacity. At K = 512, Potential has lower error than Laplacian in 15 of the same 20 states. This paired assessment measures representation of independently sampled large eddies with each training checkpoint held fixed; the autonomous-flow study evaluates evolution on its trajectory initial condition. Assessment states are separate from basis training and selection, and NKB uses geometry alone. The K = 1024 results for Velocity, Laplacian, and NKB are reported separately in Appendix D.2. The modest reconstruction gain of Potential over Laplacian comes at a substantial training cost; the cost–accuracy comparison in Appendix D.2 favors Velocity or Laplacian at larger capacities in this case. Appendix A.3 documents the Potential-FG and Potential-AL configurations; Appendix D.3 reports preparation costs.
(a) 20 randomized fields

(b) One-flow evolution

Figure 9. Spatial representation and autonomous evolution in the three-dimensional Metaball domain. (a) Frozen-basis reconstruction on 20 independently randomized large-eddy initial fields, with 400 paired measurements across four methods and K = 32, 64, 128, 256, 512. Shaded rectangles show mean ± sample standard deviation (n = 20, ddof = 1); whiskers show minima and maxima. The K = 1024 randomized-field results are in Appendix D.2. (b) A separate, fixed initial field is used for the autonomous-flow comparison of Laplacian, Velocity, and NKB. Initial full-mass projection error (open circles, t = 0) and final autonomous error (filled circles, T = 1.16) at K = 128, 256, 512, 1024, with arrows connecting the two times. The three methods are offset horizontally in this left-to-right order within each capacity. All capacities use the same method colors. Both panels report relative velocity errors in percent using all retained modes and all 1.6 M fluid nodes. Autonomous trajectories store 30 states, with ROM step 0.000625 and common NS reference step 0.0025; training costs appear in Tables 10 and 24 and the error decomposition in Appendix E.5.
Separating the two error sources. Projection onto each frozen span separates autonomous error into orthogonal representation and in-span coefficient terms (Eq. (51)). The extended decomposition shows the same pattern through 1024 modes: a richer span lowers the best-projection error, while the coefficient term remains nearly unchanged at the upper capacities (Table 18). Spatial refinement and coefficient evolution thus control complementary parts of the reduced model. The decomposition makes the representation gain explicit and connects the common evolution pattern to the retained-coordinate dynamics.
Exact coefficient-space execution. Preassembling the full quadratic Galerkin operator moves spatial evaluation out of recurrent time stepping. The resulting integration is faster than the matched-step NS control at both tested capacities, with assembled and direct reduced right-hand sides agreeing to numerical precision. This acceleration comes from executing the same reduced generator in coefficient space. Figure 11 shows the associated flow errors and timings; Appendix I separates one-time preparation from online costs. Repeated initial-condition queries reuse that assembly, motivating the amortization analysis below.
Continuous reconstruction across query domains. The same frozen neural map can be evaluated at held-out points and on three unseen domains. Appendix D.5 reports these reconstruction measurements together with target-specific numerical controls. This assessment complements the capacity study by examining how the continuous coordinates respond to changes in query location and geometry.
3.4 Continuous basis queries and amortized inference
The learned object is the map from spatial coordinates and geometry parameters to a vector-valued basis. Once trained, this map supplies basis values and analytic spatial derivatives at newly requested locations without repeating variational optimization or solving a new eigenproblem. It supports arbitrarily dense spatial resampling: there is no fixed output lattice or discrete set of admissible query points. For a geometry-conditioned model, geometry parameters can likewise be queried continuously within its learned family. The three-dimensional capacity experiment uses a fixed-domain checkpoint; the continuous geometry-family construction is exercised in the planar cases.
Online latency and numerical comparison. The map supplies spatial fields once a geometry is selected; operator assembly then prepares their recurrent coefficient dynamics. Synchronized measurements give mean RK4 update times of 3.79 ms at K = 512 and 26.18 ms at K = 1024, with field reconstruction charged at requested outputs. Figure 11 places integration costs alongside flow errors. This cost separation makes reuse explicit: trajectories on one geometry share the basis and assembled operators, while initial projection and selected field outputs belong to each query.
When repeated inference recovers training cost. For trajectories on one geometry, let denote training, the reusable preparation cost, and , the per-trajectory integration costs. The smallest integration-only break-even count is given below, with denoting rounding up to an integer:
Repeated initial-condition queries amortize both training and reusable operator preparation. Table 30 gives the counts and exact timer boundaries. Projection and requested field output enter the per-query cost when included in the workload. For a parameterized family, training is shared across geometry queries, while each geometry’s basis generation and operator preparation are charged to that query (Appendix I.5).
4 Conclusion
Neural eigenfluids express a physically structured fluid spectrum through a continuous spatial basis. Differential lifts and potential traces define admissible velocities; geometry-local orthogonalization and Rayleigh minimization organize their positive modes. Canonical gauge selection gives potential-space learning a lower-derivative formulation, with the spectral-variance relation explaining its weighting of approximate modes. A neural Dirichlet construction supplies the independent harmonic circulation coordinates.
The experiments connect this structure to representation and dynamics. Learned spectral spans sustain accurate periodic vortex merger and improve energy capture and autonomous accuracy over equal-capacity Laplacian controls on directly sampled random fields. Completed bases express obstacle-scale circulation, and matched conditioning tests identify how harmonic coordinates affect evolution. In three dimensions, increasing capacity reduces spatial representation error while exposing the contribution of coefficient dynamics to total flow error. Full quadratic assembly moves the same reduced generator into coefficient space, allowing repeated initial states to share their spatial basis and operators. Continuous evaluation, physical spectral organization, and reusable autonomous computation are thus realized within one reduced representation.
References
Douglas N. Arnold, Richard S. Falk, and Ragnar Winther. Finite element exterior calculus, homological techniques, and applications. Acta Numerica, 15:1–155, 2006. doi: 10.1017/S0962492906210018.
George K. Batchelor. An Introduction to Fluid Dynamics. Cambridge University Press, 2000. doi: 10.1017/CBO9780511800955.
William L. Briggs, Van Emden Henson, and Steve F. McCormick. A Multigrid Tutorial. Society for Industrial and Applied Mathematics, 2 edition, 2000. doi: 10.1137/1.9780898719505.
John C. Butcher. Numerical Methods for Ordinary Differential Equations. Wiley, 2 edition, 2008. doi: 10.1002/9780470753767.
Yue Chang, Otman Benchekroun, Maurizio M. Chiaramonte, Peter Yichen Chen, and Eitan Grinspun. Shape space spectra. ACM Transactions on Graphics, 44(4):121:1–121:16, 2025. doi: 10.1145/3731148.
Yizhang Chen and Takashi Kanai. Obstacle-aware fluid control via vector potential editing. Computer Animation and Virtual Worlds, 37(3):e70131, 2026. doi: 10.1002/cav.70131.
Jinbao Cheng, Jianguo Huang, Haoqin Wang, and Tao Zhou. Decoupled divergence-free neural networks basis method for incompressible fluid problems. arXiv preprint arXiv:2603.17906, 2026. URL https://arxiv.org/abs/2603.17906.
Steven M. Cox and Paul C. Matthews. Exponential time differencing for stiff systems. Journal of Computational Physics, 176(2):430–455, 2002. doi: 10.1006/jcph.2002.6995.
Carl de Boor. A Practical Guide to Splines, volume 27 of Applied Mathematical Sciences. Springer, 1978. doi:10.1007/978-1-4612-6333-3.
Tyler De Witt, Christian Lessig, and Eugene Fiume. Fluid simulation using laplacian eigenfunctions. ACM Transactions on Graphics, 31(1):10:1–10:11, 2012. doi: 10.1145/2077341.2077351.
Weinan E and Bing Yu. The deep ritz method: A deep learning-based numerical algorithm for solving variational problems. Communications in Mathematics and Statistics, 6(1):1–12, 2018. doi: 10.1007/s40304-018-0127-z.
Graeme Fairweather and Andreas Karageorghis. The method of fundamental solutions for elliptic boundary value problems. Advances in Computational Mathematics, 9:69–95, 1998.
Leslie Greengard and Vladimir Rokhlin. A fast algorithm for particle simulations. Journal of Computational Physics, 73(2):325–348, 1987. doi: 10.1016/0021-9991(87)90140-9.
Magnus R. Hestenes and Eduard Stiefel. Methods of conjugate gradients for solving linear systems. Journal of Research of the National Bureau of Standards, 49(6):409–436, 1952. doi: 10.6028/jres.049.044.
Aly-Khan Kassam and Lloyd N. Trefethen. Fourth-order time-stepping for stiff PDEs. SIAM Journal on Scientific Computing, 26(4):1214–1233, 2005. doi: 10.1137/S1064827502410633.
Byungsoo Kim, Vinicius C. Azevedo, Nils Thuerey, Theodore Kim, Markus Gross, and Barbara Solenthaler. Deep fluids: A generative network for parameterized fluid simulations. Computer Graphics Forum, 38(2):59–70, 2019. doi: 10.1111/cgf.13619. URL https://arxiv.org/abs/1806.02071.
Theodore Kim and John Delaney. Subspace fluid re-simulation. ACM Transactions on Graphics, 32(4):62:1–62:9, 2013. doi: 10.1145/2461912.2461987. URL https://www.tkim.graphics/RESIM/KimDelaney2013.pdf.
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015. URL https://arxiv.org/abs/1412.6980.
Zongyi Li, Nikola Kovachki, Kamyar Azizzadenesheli, Burigede Liu, Kaushik Bhattacharya, Andrew Stuart, and Anima Anandkumar. Fourier neural operator for parametric partial differential equations. In International Conference on Learning Representations, 2021. URL https://arxiv.org/abs/2010.08895.
Zongyi Li, Daniel Zhengyu Huang, Burigede Liu, and Anima Anandkumar. Fourier neural operator with learned deformations for PDEs on general geometries. Journal of Machine Learning Research, 24(388):1–26, 2023. URL https://jmlr.org/papers/v24/23-0064.html.
Beibei Liu, Gemma Mason, Julian Hodgson, Yiying Tong, and Mathieu Desbrun. Model-reduced variational fluid simulation. ACM Transactions on Graphics, 34(6):244:1–244:12, 2015. doi: 10.1145/2816795.2818130.
Yibo Liu, Zhixin Fang, Sune Darkner, Noam Aigerman, Kenny Erleben, Paul Kry, and Teseo Schneider. Neural kinematic bases for fluids. In SIGGRAPH Asia 2025 Conference Papers, 2025. doi: 10.1145/3757377.3763925. URL https://arxiv.org/abs/2504.15657v2.
Lu Lu, Pengzhan Jin, Guofei Pang, Zhongqiang Zhang, and George Em Karniadakis. Learning nonlinear operators via DeepONet based on the universal approximation theorem of operators. Nature Machine Intelligence, 3:218–229, 2021. doi: 10.1038/s42256-021-00302-5. URL https://www.nature.com/articles/s42256-021-00302-5.
Dhairya Malhotra and George Biros. Algorithm 967: A distributed-memory fast multipole method for volume potentials. ACM Transactions on Mathematical Software, 43(2), 2016. doi: 10.1145/2898349.
Jean-Claude Nédélec. Mixed finite elements in . Numerische Mathematik, 35:315–341, 1980. doi: 10.1007/BF01396415.
David Pfau, Stig Petersen, Ashish Agarwal, David G. T. Barrett, and Kimberly L. Stachenfeld. Spectral inference networks: Unifying deep and spectral learning. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=SJzqpj09YQ.
Jack Richter-Powell, Yaron Lipman, and Ricky T. Q. Chen. Neural conservation laws: A divergence-free perspective. In Advances in Neural Information Processing Systems, volume 35, pages 38075–38088, 2022.
Conor Rowan, John Evans, Kurt Maute, and Alireza Doostan. Solving engineering eigenvalue problems with neural networks using the rayleigh quotient. arXiv preprint arXiv:2506.04375, 2025. URL https://arxiv.org/abs/2506.04375.
Vincent Sitzmann, Julien N. P. Martel, Alexander W. Bergman, David B. Lindell, and Gordon Wetzstein. Implicit neural representations with periodic activation functions. In Advances in Neural Information Processing Systems, volume 33, 2020. URL https://arxiv.org/abs/2006.09661.
Matthew Tancik, Pratul P. Srinivasan, Ben Mildenhall, Sara Fridovich-Keil, Nithin Raghavan, Utkarsh Singhal, Ravi Ramamoorthi, Jonathan T. Barron, and Ren Ng. Fourier features let networks learn high frequency functions in low dimensional domains. In Advances in Neural Information Processing Systems, volume 33, 2020. URL https://arxiv.org/abs/2006.10739.
Adrien Treuille, Andrew Lewis, and Zoran Popović. Model reduction for real-time fluids. ACM Transactions on Graphics, 25(3):826–834, 2006. doi: 10.1145/1141911.1141962. URL https://grail.cs.washington.edu/projects/model-reduction/41-treuille.pdf.
Hang Yin, Mohammad Sina Nabizadeh, Baichuan Wu, Stephanie Wang, and Albert Chern. Fluid cohomology. ACM Transactions on Graphics, 42(4):126:1–126:25, 2023. doi: 10.1145/3592402.
Dongzhe Zheng, Tao Zhong, and Christine Allen-Blanchette. Topology-preserving neural operator learning via hodge decomposition. arXiv preprint arXiv:2605.13834, 2026. URL https://arxiv.org/abs/2605.13834.
A Gauge representatives, projection, and controls
This appendix develops the gauge projection and the Potential-AL and Potential-FG controls used in the construction. The spectral correspondence and harmonic completion follow, together with three-dimensional comparisons, experimental protocols, mode atlases, NKB comparisons, flow visualizations, and computational costs.
A.1 Scalar constants and boundary-pinned representatives
For a connected domain, . The mean-zero projection is invariant to a constant shift, preserves all spatial derivatives, and selects a unique representative. Let be the column vector of positive quadrature weights, the all-ones vector, and . The discrete projector is ; backpropagation uses its transpose in Euclidean coordinates. In particular,
For a periodic scalar potential, this removes the constant kernel before the spectral mass is formed. Without removal, as , although the physical velocity is unchanged.
For a homogeneous Dirichlet scalar eigenproblem, on the boundary excludes nonzero constant shifts from the admissible space and fixes the representative used in its mass form. Centering this function changes the mass form and is therefore used here for display only: it changes the common boundary value to while preserving velocity. Finite-element scalar displays use area-weighted means, and periodic displays use uniform-grid means.
On a multiply connected domain, independent boundary constants encode physical harmonic velocities. Subtracting one global constant preserves their differences. It therefore fixes scalar gauge without deleting circulation degrees of freedom. Each connected component requires its own additive convention if the fluid domain itself is disconnected.
A.2 Vector gauge as a quotient-space projection
Let denote exterior differentiation of degree- forms with relative boundary trace; its adjoint is . The closed potential-to-velocity operator is . Writing ker for the nullspace and for mass-orthogonal complement, the canonical potential space is . In 3D, exact-gradient removal is the orthogonal projection defined using scalar test functions , where is the Sobolev space of functions with square-integrable first derivatives and zero boundary trace:
Integration by parts gives Eq. (8). Removing the remaining relative harmonic kernel completes the projection. Both corrections have zero curl, and a Dirichlet scalar has no tangential derivative on the boundary, so curl and the relative tangential trace are preserved.
To see why this operation belongs before the loss, choose a nonzero . The family represents exactly the same velocity for every real scalar , yet
The unprojected quotient can therefore decrease without improving a physical mode. On the canonical space this ambiguity disappears. Write for square-integrable degree-k forms, Ran for operator range, an overline for closure, and for orthogonal direct sum. The relative harmonic space contains the closed, coclosed forms with relative boundary trace. With the orthogonal Hodge decomposition (Arnold et al., 2006)
(24) the last summand is . Let be the positive Hodge Laplacian and its relative-boundary Green pseudoinverse. The exact projector is , and it satisfies
Normalization and Gram–Schmidt consequently act on physical equivalence classes. In a finite auxiliary space, the invariance identity applies to the resolved kernel directions; Appendix A.3 quantifies the residual for the three-dimensional implementation.
A.3 Potential-AL and Potential-FG controls and capacity
Potential-AL and Potential-FG are the noncanonical 3D potential controls. The Potential-AL models at use divergence and wall constraints with an augmented-Lagrangian objective. The seed-0 Potential-FG model uses finite scalar/harmonic gauge projection. Their original-field reconstruction results appear in Table 6. A separately trained, matched Potential-FG family spans , with the results below.
The matched finite-gauge family completes 2000 training epochs and 80 scheduled validations at each capacity. Every model reconstructs the same 20 independent random large-eddy fields with all retained modes and all 1.6 M fluid points (Table 5). Preparation costs, including geometry and streamed basis-output I/O, appear in Table 10.
Table 5. Matched Potential-FG reconstruction on the same 20 independent random large-eddy fields, after 2000 epochs and 80 scheduled validations. Relative velocity errors are reported as mean sample standard deviation (%); all 1.6 M points and all modes are retained. The Laplacian entries use the same fields and capacity.
| Matched Potential-FG | Laplacian | |
|---|---|---|
| 32 | ||
| 64 | ||
| 128 | ||
| 256 |
Table 6. Initial relative velocity errors on the original common initial field ( per method and capacity), using all retained modes and all 1.6 M fluid nodes. Potential completes 2000 epochs and 80 scheduled validations through . The controls use Potential-AL at and Potential-FG at . The Potential training run completes 25 optimizer updates; its update count is reported separately from the full-training representation results.
| Potential | Velocity | Laplacian | Potential-AL/FG | |
|---|---|---|---|---|
| 32 | ||||
| 64 | ||||
| 128 | ||||
| 256 | ||||
| 512 | — | |||
| 1024 | — | — |
The finite projection leaves gradient directions in the curl kernel. For the admissible analytic potential , where is the boundary envelope, curl vanishes and is zero on the boundary. At , the scalar and harmonic correction leaves of its source-point mass, despite a scalar-system residual below . Residual gradient content can enlarge the potential quotient's denominator without adding velocity energy. On the frozen 256-mode model, replacing 441 scalar directions with a nonnested 1392-direction space changes retained potential mass by 44.91% and the mean orthogonalized quotient by a factor of 4.62, while preserving each raw curl. This measures representative sensitivity rather than auxiliary-space convergence. The measured FP32/FP64 analytic-curl discrepancy is 0.0111%. For the Potential-FG seed-0 control, these probes connect finite-gauge sensitivity to its velocity representation; they are not diagnostics of the distinct Potential-AL loss. Full-mass best projection is invariant to nonzero column scaling, so reduced curl amplitude alone does not explain the reconstruction error. Resolving gradient content is the necessary qualification for this 3D potential objective.
A.4 Differentiable auxiliary gauge projection
The Potential-FG configuration uses 441 effective scalar gauge directions for differentiable representative selection. A pure-gauge injection diagnostic quantifies the resolved gradient content, with 43.80% amplitude retained after projection. Scalar corrections preserve the analytic curl exactly. The solver comparison below separately examines refinement, harmonic orthogonality, and derivative consistency using a frozen 32-network auxiliary-solver checkpoint after five updates; it is not the full-training Potential or Potential-FG capacity checkpoint.
A.5 Accuracy and cost of the auxiliary gauge solve
The auxiliary solve selects the potential representative entering the Rayleigh quotient. Its accuracy depends on the space used to represent the Poisson correction as well as on the precision of the linear algebra. We compare these effects on a fixed 32-network checkpoint obtained after five updates with Fourier projection and a method-of-fundamental-solutions (MFS) boundary correction. All methods use the same smooth Metaball geometry, neural parameters, analytic derivatives, and relative harmonic field, isolating representative selection from learning.
Common assessment. Let denote the neural vector potential, with raw column . Its scalar divergence forcing is , and denotes its numerical scalar correction. We define as the maximum relative Poisson residual over columns ; the sums below use unit weights on independent points . On 8192 identical independent fluid points, we report
The residual measures the fraction of divergence forcing left after the scalar correction, since . Relative harmonic overlap is measured on a disjoint 110592-node volume rule after the column transform, and tangential trace on 8192 independent points per wall. Columnwise diagnostics characterize gradient correction, harmonic orthogonality, and boundary trace across all 32 modes. Setup, forward, reverse, and assessment times are measured separately on an RTX 4080 SUPER using native CuPy. Forward/reverse measurements use a 4 GiB allocation pool; the R-marked synchronized setup and assessment measurements use a 12 GiB pool with the same complete workload.
Fourier particular solution and boundary correction. On an auxiliary box of side , an exterior continuation agrees with the original neural potential throughout the fluid. Its divergence is sampled on nodes. Let be an integer wavevector ( denotes integers), its physical frequency, the box origin, and the Fourier coefficients of the sampled forcing. The scalar particular solution is
The mean term preserves nonzero-mean forcing. The represented Laplacian is the Fourier interpolant with nodes per axis. The independent residual measures the source representation at this resolution. A Laplace method-of-fundamental-solutions (MFS) correction with 6144 exterior sources and 18432 boundary collocation nodes enforces the zero Dirichlet trace in least squares (Fairweather and Karageorghis, 1998). This harmonic boundary correction complements the volume particular solution. We separately test the training arithmetic, FP64 fast Fourier transforms (FFTs) on the same FP32 samples, and an FP64 source/FFT path. A reuse control combines repeated source FFTs and accumulates spectral cotangents before the source-grid inverse FFT, keeping the represented operator unchanged.
Smooth weak projection. For a scalar test function , integration by parts gives the same continuous Dirichlet problem in the form
We use tensor cubic B-splines (de Boor, 1978) multiplied by the original analytic zero-trace envelope. Let be the enveloped spline basis functions, their coefficients in , their coefficient vector, the gradient stiffness matrix, and the load vector. The discretization is
The neural right-hand side and its parameter reverse require potential values rather than divergence derivatives. Basis gradients and Laplacians are analytic, including across spline knots. Resolution-12, -20, and -24 spaces use 32768, 110592, and 262144 fitting quadrature points. Matrix-free conjugate gradients (Hestenes and Stiefel, 1952) apply the weighted gradient Gram operator; a standard two-level construction (Briggs et al., 2000) uses cubic refinement prolongation, symmetric smoothing, and a factored coarse solve. Severely cut supports are removed when their quadrature gradient-energy diagonal is at most of the maximum. The selection and quadrature remain fixed during differentiation. The algebraic solve residual measures convergence within this space, while Eq. (26) measures the resolved neural forcing.
Volume potential with multipole acceleration. The alternative particular solution follows volume-potential methods (Malhotra and Biros, 2016) and uses the Newton potential of the piecewise-constant source density over the auxiliary box B, with y the integration point:
The volume representation uses constant cuboid densities in , with the same interior forcing and exterior continuation. Near cuboids, including self interactions, are integrated analytically. Degree-six Cartesian multipole-to-multipole, multipole-to-local, and local-to-local translations follow the fast multipole method (FMM) (Greengard and Rokhlin, 1987) to evaluate the far field, whose local Taylor polynomials are harmonic. The same MFS correction enforces the boundary trace. A source-adaptation variant refines coarse cells when a neighboring density difference, normalized by the per-column coarse-source root mean square (RMS) and maximized over the 32 columns, exceeds 0.5. The sampling map is fixed for the adjoint, and evaluation uses a uniform tree. The fixed sampling map permits consistent differentiation through the adaptive piecewise-constant representation, following the volume-potential construction (Malhotra and Biros, 2016).
Table 7. Gauge-solver accuracy and cost at the fixed checkpoint. Figure 10 plots the Poisson residual . Harmonic overlap and tangential trace are percentages; all four timing columns are seconds. Size denotes grid size or retained spline degrees of freedom. Setup and assessment are excluded from forward/reverse. Superscript R denotes a synchronized measurement of the complete workload; forward/reverse columns exclude setup and assessment.
| Method | Size | Harm. | Wall tan. | Forward | Reverse | Setup | Assess. |
|---|---|---|---|---|---|---|---|
| Fourier–MFS | 0.0177 | 0.6904 | 49.07 | 138.60 | |||
| Fourier–MFS, reuse | 0.0177 | 0.6904 | 48.28 | 136.12 | |||
| Spline 12 | 3,106 | 0.0181 | 0.0012 | 6.63 | 6.98 | 1.98 | 5.90 |
| Spline 20 | 10,648 | 0.0015 | 0.0012 | 15.40 | 16.60 | 4.75 | 5.91 |
| Spline 24 + two-level | 17,086 | 0.0036 | 0.0012 | 71.00 | 78.96 | 11.69 | 5.84 |
| Volume FMM 32 | 0.0242 | 4.8727 | 12.15 | 13.43 | 22.99 | 61.76 | |
| Volume FMM 64 | 0.0261 | 3.6399 | 14.23 | 17.66 | 22.82 | 60.63 | |
| Volume FMM 64 adaptive | 0.0261 | 3.6399 | 14.53 | 17.96 | 23.71 | 60.51 |
Forward and reverse totals include synchronized component measurements; one-time setup and independent assessment are separate columns. Setup combines spline space/quadrature and optional multigrid construction, or the FMM and fixed harmonic moments; assessment combines independent residual, harmonic, and wall checks. Spline forward timing includes query-point construction. The Fourier and Fourier-reuse measurements share identical neural passes and include source-array export, while spline and volume methods use in-memory sources. Both particular-solution families reuse the geometry-dependent MFS factors.
Table 8. Floating-point precision on the same grid. The first two rows use identical source samples. Source time measures one all-32 forward pass, including export.
| Arithmetic | (%) | Source forward (s) |
|---|---|---|
| Training arithmetic | 7.989593 | 37.24 |
| FP32 source, FP64 FFT | 7.989595 | 37.24 |
| FP64 source and FFT | 7.989582 | 266.41 |
Representation and arithmetic. The precision controls yield nearly identical forcing residuals (Table 8). With identical source samples, changing FFT precision produces a relative Laplacian difference of . Source-space resolution therefore provides the effective control over representative selection at this checkpoint.
Transform reuse preserves forward outputs to the reported precision and changes the source cotangent by a relative . It reduces the three-evaluation Fourier stage from 9.91 to 8.99 seconds and the source-grid transpose from 12.96 to 10.48 seconds. Total component time decreases from 187.67 to 184.40 seconds (1.74%); neural source evaluation and parameter differentiation account for 85.5% of the original total.
Auxiliary-space resolution. Refinement systematically improves the spline and volume corrections (Figure 10), while the harmonic projection maintains small overlap across the solver family (Table 7). These complementary diagnostics identify two controls for representative selection: the approximation space resolves gradient content, and the mass projection selects harmonic coordinates. Source adaptation refines
31,432 of 32,768 coarse cells (95.9%), with 284,224 source evaluations including the coarse pass, compared with 262,144 for the uniform rule. This distribution favors uniform refinement for the present forcing.
Operator consistency. FMM evaluation and transpose consistency are tested using cuboids, 48 query points, and two random right-hand sides. The analytic cuboid kernel agrees with nonsingular Gauss integration to relative . Against direct cuboid integration, increasing the far expansion degree from four to six reduces relative gradient error from to ; the degree-six transpose discrepancy is . These comparisons isolate evaluation of the chosen density from density approximation. For the manufactured scalar , the refined spline method gives relative gradient and Poisson errors of and , with linear residual . Together with Figure 10 and Table 7, these checks connect accurate operator evaluation to systematic control through auxiliary-space refinement.
a

b

Figure 10. Gauge-solver accuracy and cost. Left: all-32 forward-plus-reverse time versus independent Poisson residual. Right: per-column residuals for Fourier–MFS and the finest tested spline and volume spaces. All methods evaluate the same fixed neural checkpoint.
Connection to the velocity span. At a fixed network, each scalar correction has zero curl, so all solvers retain the same 32-dimensional analytic velocity span. The solver comparison therefore measures representative selection for the potential objective; changes to the learned velocity span arise through subsequent optimization.
B Spectral correspondence, objective weighting, and boundaries
B.1 Pairing the nonzero spectrum
Take C to be a densely defined closed operator between the potential and velocity Hilbert spaces, with Hilbert adjoint . The classical spectral relationship follows from the paired normal operators of the differential complex (Arnold et al., 2006), with the differential-complex domains determining which physical boundary problem they realize.
Proposition 1 (Positive-spectrum correspondence). If with and , then has unit norm and satisfies . Conversely, maps a positive eigenfield back to the canonical potential space.
Proof. The norm identity is . Applying to the potential eigenproblem gives the velocity equation. Applying gives the converse. Positive eigenvectors are orthogonal to the corresponding kernels. With the relative/absolute Hodge domains, the range of the lift is the coexact absolute velocity sector; physical harmonic velocities form its orthogonal complement.
For the absolute Hodge domain, smooth velocities obey and in 3D (zero boundary vorticity in 2D). These boundary conditions, together with the differential energy, identify the physical realization of the paired normal operators.
B.2 Periodic and decaying free-space specialization
For periodic zero-mean potentials, in 2D and on divergence-free canonical vector potentials in 3D commute with . The positive eigenspaces are therefore related by the normalized lift in the proposition above.
On , smooth fields with sufficient decay give the same identities without a wall boundary contribution. In Fourier coordinates, let be spatial frequency, the imaginary unit, a hat the Fourier transform, and in 2D. The positive symbol is ; in 2D and with in 3D. For , these maps pair the potential and divergence-free velocity spectral sectors. Free space generally has continuous spectrum, so this statement is a spectral correspondence rather than a discrete list of square-integrable eigenmodes. For either periodic cancellation or decay at infinity, integration by parts also gives for divergence-free velocity. A bounded curved-wall problem requires its specified boundary domain. Even when the positive spectra agree, and coincide on exact eigenspaces and differ on mixtures according to Eq. (13).
B.3 Weak formulation and its 2D specialization
For scalar Dirichlet trial functions ,
Stationarity of therefore yields
The first-derivative form realizes , where is the positive Dirichlet Laplacian. If and , then
The boundary vorticity vanishes because the streamfunction trace does. This explicitly identifies the compatible 2D Hodge problem. On the periodic domain, the same calculation uses mean-zero periodic functions in place of Dirichlet trial functions.
For compatible form domains, the general calculation is the commutation identity , which follows from , together with . It yields for a potential eigenform. The absolute harmonic velocities remain outside the positive lifted sector and must be supplied independently.
B.4 Spectral moments and the choice of velocity energy
For nonnegative integer , define the spectral moment in an orthonormal canonical eigenbasis. Potential and velocity Rayleigh ratios are and . In 2D, a direct-vorticity objective gives . Cauchy–Schwarz gives , hence
Equality holds when the nonzero coefficients occupy one eigenvalue eigenspace. At repeated eigenvalues the eigenspace, rather than the phase or orientation of individual modes, is identifiable.
The Hodge velocity form is , reducing to curl energy on divergence-free fields. The componentwise Dirichlet form coincides with it on a periodic domain and differs by boundary terms on a general bounded domain. The 3D velocity experiments use the componentwise Dirichlet quotient during training and the common discrete NS generator during evolution. Their boundary-energy relation is given below.
B.5 The boundary term in gradient and curl energy
For a smooth vector field on a Euclidean domain, with dS denoting boundary surface measure, integration by parts gives
Periodic faces cancel, and a strong componentwise-zero trace also eliminates the right-hand side. For a tangent field on a curved wall, the remaining term depends on the wall geometry. Thus a bounded-domain spectral problem is specified jointly by its energy and boundary domain.
C Topology completion and reduced evolution
C.1 One scalar gauge constant versus physical boundary differences
Let be radial distance, the inner and outer radii, and the azimuthal unit vector. The annulus provides a concrete example; is a counterclockwise loop around its hole and its oriented line element. The streamfunction has
for a counterclockwise loop around the hole. Subtracting the spatial mean of leaves this circulation unchanged. Setting both boundary values to the same constant would instead remove this harmonic component. The former changes only the representative; the latter changes the physical field.
For holes, the harmonic measures of Eq. (17) form convenient independent coordinates. Let and let encircle hole counterclockwise. Define the period matrix . If unit-circulation coordinates are desired, set . Then . This invertible change of coordinates preserves the span. The reduced mass matrix accounts for the actual harmonic basis used in computation.
C.2 Harmonic training with a numerator-only Rayleigh energy
The harmonic sector already appears in the spectral ROM of Liu et al. (2015), whose Section 3.1 includes the zero-frequency vector fields and whose Appendix A discusses both kernel eigenvectors and sparse harmonic solves. Our construction learns this sector through geometry-conditioned potentials. Each harmonic measure is learned in the affine admissible space below, where is a trial scalar field and is the Sobolev space without a zero-trace restriction:
The prescribed boundary differences fix the amplitude and circulation coordinate. The Dirichlet principle therefore supplies the unnormalized potential Rayleigh numerator in Eq. (18), rather than a spectral quotient (E and Yu, 2018). For Dirichlet energy and any admissible variation with real variation parameter ,
Thus the minimizer solves with the cardinal traces, giving a curl-free velocity . The traces exclude the trivial zero field, and the energy is strictly convex in the zero-trace correction. If is the harmonic extension, then
which identifies the unique energy minimizer.
A potential-mass denominator would change this boundary-value problem. Setting and yields the stationarity condition
or , instead of the required harmonic equation. The positive-mode quotient determines an eigenvalue with free amplitude; the harmonic loss determines the minimum-energy extension of fixed, nonhomogeneous traces. Zero Hodge energy of the resulting velocity refers to its curl, while the training energy is nonzero for a nontrivial circulation coordinate. The implementation averages over uniformly sampled interior points for each output and differentiates these per-output energies; on a fixed geometry their sum differs from Eq. (18) by the constant factor , where is the domain volume. Validation additionally averages over the outputs. Subsequent mass or circulation normalization is a change of basis after learning and leaves the harmonic span unchanged.
C.3 Conditioning the harmonic coordinates
In the neural parameterization , the lift fixes the cardinal traces before training. Rescaling its interior construction changes optimization gradients while preserving the boundary-value problem. The raw/scaled comparison holds the positive modes, cardinal traces, correction envelope, initialization protocol, and epoch budget fixed, isolating conditioning at finite optimization accuracy.
C.4 Full reduced operators and physical initialization
Following the spectral Galerkin fluid operators of De Witt et al. (2012); Liu et al. (2015), for a static geometry and basis U define
Equation (20) is the homogeneous unforced form. Substituting adds constant and linear terms, the base-flow time derivative, and projected external forcing. A full-mass initial projection minimizes using the assembled physical velocity metric.
For exact normalized positive Hodge eigenfields, is diagonal with entries , so viscosity alone gives . Ideal harmonic modes occupy the zero Hodge sector. The actual experiments retain assembled operators; in 3D they project the stated grid generator, including its normal penalty. The exact-mode identity gives the spectral interpretation of viscous decay; the assembled operators realize the measured dynamics.
C.5 Invariant subspaces and the mode atlas
An eigenvalue multiplicity identifies an eigenspace whose basis can rotate. For mass-orthonormal subspace matrices V and W, the singular values of are cosines of their principal angles, providing a basis-independent comparison. The atlases retain each method's ordering and display normalization. Across topologies, the harmonic dimension changes with the first Betti number; this changes the physical space itself.
D Three-dimensional capacity, computation, and transfer
D.1 Coefficient-only acceleration of the 3D Galerkin system
For the original normal-penalty generator, let denote a sampled learned velocity field, extended by zero outside the fluid nodes, and let be the original self-adjoint Leray, dealiasing, and zero-mean projector. Here is the set of fluid grid nodes, the Cartesian grid spacing, and the grid spectral gradient and Laplacian. The spatial weight and positive penalty timescale specify the original normal penalty along wall normal . The operators in Eq. (21) are
The full-grid projector and derivatives act before restriction to the fluid nodes. The adjoint projector in the last line moves the output projection onto the test field, permitting blocked matrix products without changing the nonlinear operator. Input pairs are stored as , summing for . This stores FP64 entries, occupying 0.501 and 4.004 GiB at and 1024, respectively; both remain on the GPU during integration. All 1.6 M fluid nodes and all modes are retained; the sampled basis cache remains at its original FP32 precision, with operator construction and coefficient arithmetic in FP64.
At , native CuPy evaluation of two production right-hand sides agrees with full-grid projection to relative error; one RK4 step differs by in relative mass norm. The complete coarse-step trajectory agrees with the full-grid Galerkin trajectory to . These comparisons verify that tensor assembly preserves the selected reduced dynamics.
On an NVIDIA RTX 4080 SUPER, the assembled ROM is faster than the matched-step numerical NS solver over 1856 steps to . This ratio compares synchronized online integration. The NS solver retains its split viscosity and normal-penalty integrator; the ROM integrates the projected unsplit generator using RK4. Appendix I separates training, field preparation, assembly, initial projection, and requested output from integration.
Halving the ROM time step changes the trajectory by at most in relative mass norm, confirming temporal convergence of the assembled dynamics. Refining the NS reference from 0.0025 to 0.000625 changes its final velocity by . Figure 11 presents the flow error and kinetic energy alongside the measured online and preparation costs, characterizing the accuracy–cost tradeoff of coefficient-space execution.



Figure 11. Accuracy, energy, and cost of coefficient-space dynamics. Red and blue denote and 1024. (a) Autonomous velocity errors against the shared refined NS reference on all 1.6 M fluid nodes; the dotted gray curve assesses against the original reference. (b) Fluid kinetic energy. (c) Synchronized NS/ROM online integration, offline tensor assembly, and three-frame output times. Both 2000-epoch models use full-mass initial projection, all retained coordinates, and . Time-step checks and online speed ratios are given in the adjacent text.
At , coefficient-space execution gives a synchronized online speedup of over the matched-step NS control. Figure 11 compares its error, energy, and timing with . All trained coordinates are retained.
Operator agreement and stage costs. At , assembled and direct full-grid right-hand sides agree to relative error; the one-step RK4 discrepancy is in relative mass norm. Halving the ROM step changes the trajectory by at most . Appendix I collects field preparation, tensor assembly, loading, full-grid checks, projection, and output costs alongside the NKB and Laplacian comparisons. The agreement measurements show that assembly preserves the reduced generator, connecting the online cost directly to the learned span and projected dynamics assessed above.
D.2 Randomized-field representation at
Table 9. Randomized-field representation at . Each frozen basis projects the same 20 independent fields used in Figure 9(a), with all 1.6 M fluid points and all retained modes. Entries are relative velocity error in percent, reported as mean sample standard deviation.
| Method | Relative error (%) |
|---|---|
| Laplacian | 23.00 ± 4.11 |
| Velocity | 23.03 ± 4.46 |
| NKB | 27.77 ± 1.82 |
At , Velocity and Laplacian have nearly identical mean reconstruction error, while NKB has higher error. Potential is assessed through on this ensemble. Its training takes 140.20 hours, compared with 3.99 hours for Velocity; the Potential and Laplacian mean errors differ by 0.17 percentage points. This cost–accuracy comparison motivates Velocity or Laplacian bases at larger capacities in this three-dimensional case.
D.3 Training and boundary-to-basis costs
Table 10. Three-dimensional preparation costs in seconds. Training totals cover 2000 updates, scheduled validation and checkpoint I/O. Basis generation runs from the original parameterized boundary to all 1.6 M points and all K fields, including streamed-output I/O; Laplacian also includes coefficient construction, interstage waits, setup, paging and background load. A dash means that the stage is not applicable. Superscript * marks an estimate, not a completed run; projected runs assume uninterrupted execution. “incl.” means recovery is already included in the training total and was not timed separately; † marks these inclusive counters. Estimates and the measured short K = 1024 endpoint are explained below. Matched Potential-FG rows use the same training protocol.
| K | Method | Normal training | State recovery | Boundary to all basis |
|---|---|---|---|---|
| 32 | Laplacian | — | — | 3467.56 |
| 32 | Velocity | 3042.38 | 0.00 | 267.91 |
| 32 | Potential | 8170.08 | 200.31 | 255.50 |
| 32 | Potential-AL | 6316.24 | 0.00 | 259.52 |
| 32 | Potential-FG (matched) | 7332.09 | 0.00 | 291.39 |
| 64 | Laplacian | — | — | 2545.51 |
| 64 | Velocity | incl. | 307.32 | |
| 64 | Potential | 14404.07 | 0.00 | 269.28 |
| 64 | Potential-AL | incl. | 273.65 | |
| 64 | Potential-FG (matched) | 11924.79 | 0.00 | 346.78 |
| 128 | Laplacian | — | — | 3576.89 |
| 128 | Velocity | incl. | 295.34 | |
| 128 | Potential | 26569.77 | 0.00 | 281.03 |
| 128 | Potential-AL | 18887.93 | 4036.51 | 281.98 |
| 128 | Potential-FG (matched) | 20862.81 | 0.00 | 451.21 |
| 256 | Laplacian | — | — | 5548.86 |
| 256 | Velocity | incl. | 310.61 | |
| 256 | Potential | 59879.95 | 717.31 | 291.56 |
| 256 | Potential-FG (seed 0) | incl. | 469.61 | |
| 256 | Potential-FG (matched) | 39108.35 | 0.00 | 665.15 |
| 512 | Laplacian | — | — | 9246.67 |
| 512 | Velocity | incl. | 488.29 | |
| 512 | Potential | 504713.77 | 106.03 | 348.12 |
| 512 | Potential-AL | |||
| 512 | Potential-FG (matched) | |||
| 1024 | Laplacian | — | — | 22049.01 |
| 1024 | Velocity | incl. | 747.68 | |
| 1024 | Potential | |||
| 1024 | Potential-AL | |||
| 1024 | Potential-FG (matched) |
Initial-field evaluation is separate from training and basis generation: Potential takes 655.76 seconds at and 1182.42 seconds at . At , the saved-basis assessment of 20 independent random fields takes 123.32 seconds. Potential training at completes 25 updates, with zero scheduled validations, the original 2000-epoch learning-rate horizon, and a full model/Adam endpoint checkpoint.
At , Laplacian construction from raw geometry (marching-cubes resolution 80, mesh size 0.025) through the full spectrum and coefficient archive takes 18769.83 seconds. The sampled-basis stage takes 477.10 seconds and writes all three FP64 velocity components for 1.6 M fluid nodes and 1024 modes (39,315,554,304 payload bytes). The raw-geometry-to-output interval is 22049.01 seconds, including interstage waits, setup, paging, I/O, and background load. CPU construction uses one BLAS thread, a 7 GiB resident limit, and an 8 GiB resident-peak guard; GPU basis output reuses the completed analytic geometry prefix.
Measured short run and cost estimates. The completed Potential endpoint contains 25 optimizer updates and no scheduled validation; its 13267.46-second elapsed interval includes failed attempts, repairs, waits and atomic publication of the full model/Adam state. This short-run elapsed interval is separate from the projected full-training cost in Table 10.
The Potential training estimate uses 22 measured updates (epochs 3–24; mean 430.68 seconds) and 166 ordinary updates from the completed run (mean 250.78 seconds). Their ratio scales the measured -update total of 504713.77 seconds, retaining its validation and checkpoint allowance. The resulting estimate is about 866800 seconds (240.8 hours); validation and checkpoint costs are assumed to scale by the same factor as the update workload. Potential-AL training costs are extrapolated from measured runs and matched Potential-FG costs from runs using a least-squares power law in . Basis-generation estimates use an affine fit in to the measured lower-capacity full-point intervals for the same method. Estimated training and basis times are rounded to 100 and 10 seconds, respectively. These projections assume the same implementation, hardware, sampling and output boundary, with no recovery event. They do not imply trained high-capacity checkpoints or measured reconstruction accuracy.
D.4 Training geometry and frequency
The full 2000-epoch Potential and three-dimensional velocity runs use the original sampling and optimization computations: 6144 query points and eight 4096-point validation geometries every 25 epochs (80 scheduled validations). The Potential training run retains the original sampling and learning-rate horizon and completes 25 optimizer updates with zero scheduled validations. Potential retains the established canonical objective and two-pass causal Gram–Schmidt; its canonical physical actions use FP64, while ANN parameters and analytic derivatives use FP32. The three-dimensional velocity capacity family uses a fixed training domain, first-layer frequency 40, and cosine learning-rate endpoints scaled by 0.1 relative to the original velocity configuration. Its reported checkpoints complete 2000 epochs with the original sampling and scheduled validation. The Potential-AL models at use seed 20260823, frequencies 40/36, and cosine learning-rate endpoints and . The Potential-FG model instead uses seed 0, frequencies 160/36, and endpoints and ; it is not a matched cross-method control. Geometry-conditioned evaluation on other domains is reported separately below.
D.5 Capacity and unseen-geometry reconstruction
Table 11. Held-out velocity reconstruction on disjoint 16,384-point assessment sets. Fixed-domain learned checkpoints complete 2000 epochs. Numerical bases use the same capacity, fit and assessment point sets, and target fields. Geometries 2 and 3 use radial Piola transport; geometry 4 uses a globally qualified quadratic approximation of its original smooth boundary and consistent physical finite-element matrices.
| K | Geometry | Learned | Numerical |
|---|---|---|---|
| 128 | Training geometry, independent points | .398468 | .346917 |
| 256 | Training geometry, independent points | .281388 | .241861 |
| 256 | Unseen geometry 2 | .751690 | .222570 |
| 256 | Unseen geometry 3 | .744673 | .254720 |
| 256 | Unseen geometry 4 | .770144 | .230048 |
The geometry-2 numerical basis uses a fitted mesh with 80,890 vertices and 354,108 tetrahedra, the relative-potential finite-element method (FEM) with consistent mass, and radial Piola transport onto the smooth target domain. Geometry 3 uses the same construction on its own fitted mesh. Each reconstruction uses all 256 positive modes and the identical 16,384 fit points, disjoint assessment points, and target velocities. Solution and reconstruction take 687.17 and 1061.51 seconds for geometries 2 and 3, after mesh and point-map preparation. Geometry 4 retains all 320,815 tetrahedra and uses a quadratic physical Nédélec chart: positive cell determinants, the entire 95,296-face boundary homotopy, and the boundary degree qualify its global map. This chart approximates the original smooth geometry. Its consistent stiffness/mass eigensolve obtains 264 Ritz vectors with maximum relative residual ; the reconstruction retains 256 positive modes. Assembly, solve, and evaluation total 1054.85 seconds. The disjoint error is .230048, while the fit-point error is .227943. All three learned transfer measurements use the unchanged frozen checkpoint.
E Experimental protocols and measurements
E.1 Shared initialization, error, and timing definitions
Each autonomous trajectory begins with a full-mass projection of the prescribed initial velocity and evolves all basis coordinates. Writing , reference states supply subsequent error measurements, , on a common assessment domain. Numerical controls use the same mode count wherever reported. Training uses analytic derivatives and native CuPy; operator contraction and reduced evolution use 64-bit floating-point arithmetic (FP64) where specified; FP32 denotes 32-bit floating-point arithmetic. Timings are measured wall times with training, assembly, integration, and output reported as separate stages.
Table 12. Primary comparison protocols. DNS denotes direct numerical simulation. The multi-hole P1 and analytic high-capacity stages are separate discretizations.
| Case | Capacity | Reference / assessment | Autonomous horizon |
|---|---|---|---|
| Periodic | 1024 | DNS / observations | 241 frames, |
| Multi-hole P1 | 32 | Common circulation-aware P1 mesh | 51 frames, |
| Multi-hole analytic | 1024 | Finest level-2 reference, common points | 51 frames, |
| Metaball | 128–1024 | , 1.6 M fluid nodes | 30 frames, |
E.2 Periodic flow protocol
The periodic domain is . The vortex separation is , core size , circulation per vortex, and viscosity . The numerical reference, same-capacity Laplacian control, and learned trajectories share 241 observation times through . Full mass and curl-stiffness matrices and matrix-free rotational loads use quadrature points; errors are measured on the same uniform observation grid. With the integer Fourier wavevector, Fourier uses 512 conjugate wave pairs ordered by , with complete sine/cosine pairs and zero constant-velocity coefficients. The learned spectral models retain frozen epoch-2000 checkpoints and analytic spatial derivatives. Initial projection uses the physical velocity alone; subsequent reference states do not enter the evolution. Figure 3 shows saved states 1, 121, and 241. Energy and enstrophy use the same initial reference normalization for all methods. All nine learned full-mass matrices have rank 1024 without ridge or mode deletion. Each frozen span is advanced at maximum steps 0.005 and 0.0025; the largest relative mass-norm trajectory difference is . An independent implementation check against the inherited exponential time-differencing fourth-order Runge–Kutta (ETDRK4) equations (Cox and Matthews, 2002; Kassam and Trefethen, 2005) precedes each trajectory.
E.3 Topology allocation and harmonic conditioning
The random large-vortex ensemble combines three to seven smooth Wendland vortices, where denotes fields with continuous derivatives through order . Centers, signs, and amplitudes are random; support radii lie in [0.65, 0.95]. Random obstacle-boundary streamfunction constants complete each initial field. Their direction is sampled from a normalized Gaussian vector, and the energy of its harmonic lift relative to the zero-trace vortical component is drawn uniformly from [0, 0.30]. A common rescaling sets peak speed to 0.5. All bases project the same resulting velocity field. The low-capacity comparison uses three training seeds, 20 such initial states per geometry, and the same circulation-aware P1 NS reference for every basis. Each total-32 completed basis contains positive fields and harmonic fields. The displayed fields use seed 1, state 00. The high-capacity analytic comparison retains 1024 coordinates, the same 20 states, and both time steps 0.002 and 0.001; the finest common assessment contains approximately 4.19 million points per domain.
Table 13. Harmonic completion for random large-vortex flows at total . Final relative velocity error (%) over the same 20 initial states per geometry; learned entries average three training seeds. Completed bases replace positive modes with harmonic modes. These are the low-capacity results summarized in Section 3.2.
| Holes | Potential P | Potential PH | Numerical PH |
|---|---|---|---|
| 1 | 53.23 | 40.04 | 39.76 |
| 2 | 52.99 | 40.49 | 40.13 |
| 3 | 54.59 | 40.49 | 39.72 |
The high-capacity raw/scaled harmonic pairs fix the positive checkpoint, seed, optimizer initialization, trace, correction envelope, Dirichlet objective, and 2000-epoch budget. For two holes, initial/final errors change from to ; for three holes, from to . The single-hole raw completed basis gives final error. Maximum final time-step differences are for single-hole raw, for two-hole scaled, and for three-hole scaled. The common level-2 reference fixes the spatial assessment for these temporal comparisons.
For basis streamfunctions with vorticities , velocity-basis integration uses the FP64 weak tensor , assembled from all 1,048,576 quadrature points. Its entries occupy 8 GiB on the RTX 4080 SUPER, alongside the coefficient states and linear operators. For the one-hole case, assembly takes 57.9 minutes including checkpoint I/O. Subsequent steps average 0.393 seconds, compared with 153.8 seconds for streamed full-field contraction of the same Galerkin operator: approximately faster stepping, with assembly accounted for separately. Assembled and factored nonlinear contractions agree to relative error over the 60 initial coefficient columns.
E.4 Direct random-streamfunction ensemble
The ensemble contains 20 fixed fields per topology, indexed 0–19. The numerical capacity study and learned/numerical allocation ablation use this ensemble. The all-method dynamic comparison uses fields 0 and 1 in each topology, with six independently qualified references. Each reported comparison uses identical physical target fields across methods and completion arms.
E.4.1 Sampling and boundary conditioning
We draw independent standard-normal scalar values on a lattice spanning , with spacing 0.5, and interpolate them with an exact tensor-product quintic B-spline (de Boor, 1978). The seed hierarchy is [20260928, topology index, field index], with topology indices 0, 1, and 2. The spline is before boundary conditioning, and the final streamfunction is at least .
Let be the raw spline and a smooth nonnegative defining function for boundary component . The boundary indices run from 0 to . The outer component has ; the obstacles use the original circle, rounded-square, and smoothed-triangle defining functions. For each component, is the arc-length-weighted mean of over 1536 boundary points. We construct bounded defining functions , partition weights , logarithmic functions , squared distance estimates , and localized blending functions . These give the boundary-adjusted field , vorticity-correction weight , and final streamfunction :
This construction retains a separate constant on each boundary component and enforces the original impermeability and zero-boundary-vorticity conditions. Velocity and vorticity follow from analytic derivatives, and . One global scale sets the maximum sampled speed to 0.5 on the original mask and boundary loops; this scale is fixed under all numerical refinements. The distribution, raw lattice values, boundary constants, and scales define each reproducible draw; harmonic content is measured from the resulting velocity field.
E.4.2 Captured energy, reference coordinates, and independent samples
Assessment uses arrays of 1,048,576, 4,194,304, and 4,194,304 points. Their common all-method masks contain 1,048,092, 4,192,289, and 4,192,265 points. These are quadrature/assessment locations. The state dimensions below are counted from continuous piecewise-cubic (P3) reference finite-element spaces.
Using the common velocity assessment matrix , let be the mass matrix, the initial load vector, and the squared target norm. The full-mass initial projection gives
Here is the fraction of initial kinetic energy represented by the projected field. Projection orthogonality gives for each field, where . We compute the quadratic energy separately for every field and training seed before averaging. An overbar on scalar statistics denotes the ensemble mean. The mean is therefore ; no transformation of the ensemble-mean error is used. All coordinates are retained without a ridge term. Across the 840 saved and 120 numerical projections, direct quadratic-energy and load-energy ratios agree within .
The one-, two-, and three-hole P3 meshes have 881,793, 669,533, and 1,390,768 scalar nodes. Their boundary nodes number 9,216, 13,458, and 22,428. With constant streamfunction trace on each component and the outer constant fixed, writing for the scalar node count and for the boundary node count, the velocity-state dimension is
Equivalently, the reference evolves interior vorticity values and circulations; streamfunction is reconstructed from that state. This gives , and 1,368,343. The counts in Table 14 define the state-coordinate compression ratio , visualized in Figure 5. The same mesh dimensions apply to both reduced capacities in each domain. Initial representation checks cover all 60 P3 fields. The six predetermined fields in Appendix E.4.5 additionally have full-trajectory refinement measurements.
Table 14. Initial kinetic-energy capture and reference state dimensions for 20 direct random-streamfunction fields per topology. P3 nodes count the reference mesh; counts independent interior scalar coordinates plus circulations after boundary constraints and outer-gauge fixing. is the reduced state dimension, and are mean captured-energy percentages for numerical and . Energy fractions are evaluated per field before averaging. The common assessment measure, basis discretizations, and initial reference qualification are specified in Appendix E.4.
| Holes | P3 nodes | K | (%) | (%) | |
|---|---|---|---|---|---|
| 1 | 881,793 | 872,578 | 32 | 2.27 | 2.13 |
| 1 | 881,793 | 872,578 | 1024 | 75.32 | 75.34 |
| 2 | 669,533 | 656,077 | 32 | 2.37 | 2.16 |
| 2 | 669,533 | 656,077 | 1024 | 79.66 | 79.73 |
| 3 | 1,390,768 | 1,368,343 | 32 | 1.79 | 1.60 |
| 3 | 1,390,768 | 1,368,343 | 1024 | 54.48 | 54.52 |
E.4.3 Optional combined energy-compression summary
For a fixed reference discretization, captured energy and compression in Figure 5 define the energy-compression product . Let and denote initial projected and target kinetic energies; then
For field , , so . This is a derived summary of energy capture and compression. At fixed and it orders methods exactly as does. Its reference normalization changes under mesh refinement. We therefore report the independently interpretable energy fractions and compression ratios in the main text, and retain the combined values here for a common reference convention.
Table 15. Derived energy-compression products for the numerical representations in Table 14. Energy fractions are evaluated per field before averaging; all 20 draws per topology are retained.
| Holes | K | ||
|---|---|---|---|
| 1 | 32 | 618.62 | 581.29 |
| 1 | 1024 | 641.84 | 641.99 |
| 2 | 32 | 485.62 | 442.04 |
| 2 | 1024 | 510.41 | 510.82 |
| 3 | 32 | 767.13 | 685.73 |
| 3 | 1024 | 728.05 | 728.60 |
The bases use their original common P1 embeddings. The numerical bases use their original level-2 P1 representations. Both are assessed against the same continuous analytic initial fields on the unchanged common masks. The capacity table compares these existing discretized representations; their basis meshes differ. All 20 fields are retained at each capacity.
The Laplacian basis contributes one numerical realization; potential and velocity training each contribute three existing seeds at . For each learned method, captured-energy fractions are averaged across seeds within a field, then over the 20 independent fields. Table 16 reports mean capture and the paired gain in percentage points. This equal-total- comparison exchanges positive coordinates for harmonic coordinates.
Table 16. Initial kinetic-energy capture at total , in percent. is the mean captured-energy change in percentage points. Positive values favor completion. Learned energy fractions average three seeds within each of the 20 independent fields; the last column counts fields with higher capture.
| Holes | Basis | (%) | (%) | Improved | |
|---|---|---|---|---|---|
| 1 | Laplacian | 2.269 | 2.132 | -0.137 | 2/20 |
| 1 | Potential | 2.252 | 2.178 | -0.075 | 5/20 |
| 1 | Velocity | 2.269 | 2.145 | -0.124 | 2/20 |
| 2 | Laplacian | 2.369 | 2.156 | -0.213 | 3/20 |
| 2 | Potential | 2.370 | 2.174 | -0.197 | 3/20 |
| 2 | Velocity | 2.345 | 2.216 | -0.129 | 3/20 |
| 3 | Laplacian | 1.794 | 1.604 | -0.190 | 3/20 |
| 3 | Potential | 1.795 | 1.633 | -0.163 | 2/20 |
| 3 | Velocity | 2.009 | 1.814 | -0.195 | 2/20 |
Harmonic-energy diagnostic. The 60 directly sampled fields predominantly occupy the vortical sector. Projection onto the numerical harmonic span gives median initial energy fractions of 0.01016%, 0.06411%, and 0.04385% for one, two, and three holes, with maxima of 0.11744%, 0.17651%, and 0.27178%. Level-2/level-3 harmonic refinement changes these fractions by at most 0.00214 percentage points. At fixed K, mass-orthogonal sectors trade the harmonic projection energy gained against the energy of the h displaced positive modes. The coordinate allocation is therefore governed by the relative occupation of these two sectors. Positive modes are ordered by spectral Rayleigh values; a field's captured energy depends on its modal coefficients. Appending to unchanged creates a nested span, whose best-projection error is nonincreasing.
E.4.4 Autonomous trajectories for the first one- and two-hole draws
The comparison uses the first fixed draw (index 0) in each of the one- and two-hole domains. Each method starts from the analytic-field full-mass projection and evolves autonomously with the reused Galerkin operators, , , and 51 saved frames. The two step sizes are 0.002 and 0.001. Subsequent reference values enter error assessment, not the coefficient evolution. Table 17 summarizes the fine-step errors. With the time-averaged relative error, we define the improvement and ; positive values mean lower error after completion.
The numerical reference uses continuous cubic finite elements and the fine time step. Maximum coarse/fine relative velocity differences are and . Full-trajectory quadratic/cubic comparisons give and differences; independent boundary-geometry refinement gives and across all 51 frames on both original masks. These checks retain the same analytic initial field. Direct-field and moment-based error evaluation agree to below ; the independent polynomial point-adapter check is below . This table reports the two dynamic cases; the complete six-field assessment is reported next.
Table 17. Random-field dynamics for index 0 in each of two domains. is evaluated by the trapezoidal rule over 51 frames. Errors are percentages and differences are percentage points. Learned entries average the three training seeds of the same physical field.
| Holes | Basis | ||||
|---|---|---|---|---|---|
| 1 | Laplacian | 99.28325 | 99.29712 | -0.01387 | -0.01336 |
| 1 | Potential | 99.26077 | 99.26889 | -0.00812 | -0.00733 |
| 1 | Velocity | 99.27255 | 99.29087 | -0.01832 | -0.01817 |
| 2 | Laplacian | 98.75970 | 98.79192 | -0.03221 | -0.02997 |
| 2 | Potential | 98.79390 | 98.84504 | -0.05114 | -0.05093 |
| 2 | Velocity | 98.81309 | 98.91302 | -0.09993 | -0.10682 |
E.4.5 Six-field comparison
All methods use the fixed indices 0 and 1, full-rank mass projection of the analytic initial field, and all 1024 coordinates. Existing learned checkpoints, numerical operators, and NKB models are reused. Reduced trajectories were advanced as 20-field batches; this assessment selects the two predetermined fields without changing their coefficients. Coarse/fine steps are 0.002/0.001 with 51 saved frames on [0, 1] and . No later reference state enters autonomous integration. Initial-energy fractions use the assessment mass, which is distinct from the operator quadrature mass.
Reference refinement tests compare the same physical fields under time-step, polynomial-space, and boundary-geometry changes on both original masks. For the three-hole fields, the largest time-step differences are 0.02414% and 0.03835%; polynomial-space differences are 0.49879% and 0.92725%; geometry differences are 0.10612% and 0.17219%. The initial physical fields and evaluation masks remain fixed under all refinements. The reported relative velocity errors use the original common all-method masks; analytic-only supplementary points are reported separately where the representation is defined.
Figure 5 gives initial capture and compression, and Figure 12 shows all autonomous error curves. The paired allocation gains are reported in Table 3.
For a saved coefficient vector, let denote the full mass matrix on assessment nodes. Its quadratic energy is (twice the kinetic energy). Explicit harmonic components are reported both through their own coefficients and as the mass-orthogonal projection of the full velocity onto each method's harmonic span. Let index the harmonic coordinates, be their mass block, and the harmonic entries of the full velocity load. The latter quadratic energy is , with , retaining P/H cross terms. Learned harmonic fields use their original learned representation throughout.
Supplementary boundary diagnostics use exact edge integration of the original P1 polygon velocities for numerical bases, and nested 1024/2048-point analytic-boundary evaluations for neural bases. They report normal speed and counterclockwise circulation around each enclosed component over all 51 frames. Curl-form neural velocities have cancelling analytic mixed derivatives; NKB divergence is evaluated from its analytic direct-velocity Jacobian at 1024 deterministic original common-mask points. These component diagnostics complement the full-domain error measurements. The released results include all per-component circulation curves, quadrature-refinement differences, and energy histories.
The timing ledger separates reference generation and qualification, cache/operator recovery, projection, batched evolution, and error assessment. Existing 20-field batch costs remain associated with those batches. Stage and process timers retain their respective workload boundaries. Supplementary boundary diagnostics

1 hole | sample01
2 holes | sample01
3 holes | sample01
Figure 12. All six autonomous random-field comparisons at K = 1024 against qualified references. Each panel is one predetermined physical field, and every curve uses all 51 saved times and the original common mask. The numerical control has the same total coordinate count and the corresponding P or P+H allocation.
required 390.59 seconds across their measured stages, independently of reference generation and final full-domain error assessment.
E.5 Three-dimensional dynamics and error attribution
The reference uses rotational NS with viscosity 0.00025 and normal penalization. The reference solver uses classical RK4 advection (Butcher, 2008) with split viscosity and normal-penalty updates at step 0.0025. Reduced trial fields are zero-extended in the solid and integrated with the projected, unsplit grid generator at 0.00125 and 0.000625. Numerical fields use the mapped fitted Nédélec basis (Nédélec, 1980); learned velocities use analytic curls. All fluid nodes enter the mass matrix, projections, and error measurements. The coefficient timing study below additionally evaluates the NS reference at the matched step 0.000625.
The velocity capacity study retains 6144 training points per epoch, eight validation geometries with 4096 points each every 25 epochs, and all 2000 epochs. Training takes 5361.59 and 8622.13 seconds at . The learned final/initial energy ratios are 0.496797, 0.505110; numerical ratios are 0.410710, 0.396369. Maximum relative mass-norm time-step differences are below .
For frozen , let minimize . Projection orthogonality gives
The representation term decreases with capacity, whereas the in-span term stays close to one half of the reference norm at K = 512, 1024. Its share of the total squared error consequently increases. The decomposition is evaluated after autonomous integration using the saved trajectories and common reference loads. At K = 128, 256, the numerical best-projection errors are 0.659617, 0.547576 and in-span errors are

Figure 13. Energy projected onto each representation's explicit harmonic span as a fraction of its instantaneous total energy. The projection measures occupation of each representation's explicit circulation coordinates.
0.378547, 0.414556, respectively. These controls show the same separation between improving the spatial span and changing its autonomous evolution.
Table 18. Final orthogonal error decomposition for the velocity-trained Eigenfluid spans, . Entries are relative velocity errors (%), normalized by the common full-fluid NS state. Representation and in-span terms add in square, as in Eq. (51). The , 1024 entries extend the decomposition using saved full-mass matrices, all 30 reference loads, and autonomous coefficients; their final total errors also agree with direct saved-field differences.
| Best representation | In-span evolution | |
|---|---|---|
| 128 | 67.0459 | 44.5447 |
| 256 | 55.5999 | 45.6442 |
| 512 | 43.9777 | 49.7599 |
| 1024 | 35.0357 | 49.6553 |
F First eight modes: a basis atlas
The periodic and three-dimensional atlases complement the multiply connected comparison in Figure 7. Rows identify the construction and columns show its first eight displayed modes, with ordering and representation specified in each caption. Signs and orthogonal rotations within repeated eigenspaces preserve the represented span. Mean-zero scalar displays and per-mode amplitude normalization expose spatial structure while leaving the ROM coordinates unchanged.

Figure 14. First eight periodic modes. Rows compare analytic Fourier modes and generalized Ritz modes from the potential- and velocity-trained K = 1024 spans; columns show modes 1–8. Potential Ritz fields use centered potential mass and gradient energy, while velocity Ritz fields use velocity mass and curl energy. Color shows mean-zero streamfunction with per-mode normalization; all 1024 channels contribute to each learned Ritz field.

Figure 15. First eight velocity fields at common K = 32. Rows compare Laplacian, Velocity, Potential, and Potential-AL; columns show modes 1–8. All methods use the same z = 0.50390625 slice and per-mode maximum-magnitude normalization of . Laplacian fields follow numerical eigenvalue order; learned fields follow their saved channel order, without a display-only Ritz rotation.
G Neural kinematic basis comparison
We compare the learned spectral spans with a direct-velocity neural kinematic basis (NKB), following the camera-ready formulation of Liu et al. (2025). Each NKB model is trained independently at the reported capacity on the original case geometry. Its initial coefficients are obtained from the same physical initial velocity through a full-mass least-squares projection. The trajectory comparisons evolve all coordinates autonomously; subsequent reference snapshots are used only for assessment.
Architecture and optimization. Our native-CuPy reimplementation uses seven hidden layers of width 256 with LeakyReLU slope 0.01, followed by an exponential linear unit (ELU) velocity output; LeakyReLU is the leaky rectified linear unit. It optimizes the six NKB penalties with weights 0.01, 5, 100, 30, 100, and 100 for spatial variation, divergence, orthogonality, boundary alignment, mean length, and small length, respectively. The target mean basis length is 0.37, and the small-length threshold is 0.05. We realize the orthogonality penalty as the mean squared off-diagonal entry of the global velocity Gram matrix, a nonnegative implementation of the paper's printed signed sum. Spatial Jacobians and their parameter adjoints are evaluated analytically. The periodic model uses sine/cosine coordinates; bounded domains retain their original implicit surfaces and use a soft boundary band of width 0.05 times the domain side length. Direct velocity outputs use the stated soft kinematic penalties; Eigenfluid uses differential lifts, spectral objectives, and explicit harmonic coordinates.
Each model receives 2000 Adam updates (Kingma and Ba, 2015), using 4096 points per update in 2D and 6144 in 3D. The learning rate is at update , mapping the original ten-epoch decay over this fixed-case budget. Validation uses 4096 points every 25 updates, including the eight original validation geometries in 3D. The common 2000-update protocol compares fixed-case spatial bases, with autonomous assessment at the trajectory capacities. The original NKB geometry-collection experiment uses one million updates; here its shared network architecture and penalties are trained independently for each reported case.
Common evolution and assessment. We use the full velocity mass and all output modes, without mode truncation or ridge regularization. The 3D comparison projects the unchanged NS generator, including its Leray projection and normal penalty, onto the NKB span. The periodic and multi-hole comparisons use the same algebraic curl-form operators and integration schemes as the spectral-basis experiments. NKB controls incompressibility and boundary tangency through its penalties. The common Galerkin assessment measures how this spatial representation supports the same reduced evolution used for the spectral bases. The original NKB solver couples its basis to semi-Lagrangian advection and reprojection.
Periodic errors use the common observation grid and all 241 frames through , with vortex separation . NKB operator quadrature uses points. The multi-hole assessment uses all original common-domain points, the level-2 reference, 20 initial states, and 51 frames to . The 3D assessment retains all 1.6 M fluid nodes and 30 frames to . Training, offline assembly, and online integration are separate costs. Table 19 gives the 2D initial projection errors, Figure 16 compares autonomous errors with same-capacity controls, and Table 24 records NKB training costs.
Table 19. Initial full-mass projection errors for the 2D NKB adaptation at (%). Periodic entries are mean sample SD over three seeds; multi-hole entries average 20 initial states. Trajectory comparisons are shown in Figure 16, 3D initial errors in Figure 9(b), and NKB training costs in Table 24.
| Case | Initial velocity error (%) |
|---|---|
| Periodic | 2.493 ± 0.138 |
| One hole | 20.760 |
| Two holes | 22.566 |
| Three holes | 22.201 |
Kinematic residuals and numerical refinement. The periodic NKB initial states have a three-seed mean divergence-to-curl norm ratio of 0.195. Their full-mass condition numbers range from to . The maximum double-time-step trajectory difference is . For seed 0, the to operator-quadrature trajectory sensitivity on this same case is ; these measurements separately characterize spatial quadrature and temporal resolution.
For the one-, two-, and three-hole domains, respectively, the mean initial divergence-to-curl ratios are (0.721, 0.770, 0.722) and the sampled boundary-normal root mean square (RMS) relative to domain velocity RMS is (0.170, 0.216, 0.231). Maximum trajectory differences under time-step refinement are ; those under operator-quadrature refinement are .
Three-dimensional trajectory and kinematic diagnostics. Tables 20 and 21 supplement the final errors with trajectory means, full-mass conditioning, and initial/final kinematic residuals. The trajectory mean averages all 30 stored frames, including and . The mass condition number is the largest-to-smallest eigenvalue ratio of the symmetric FP64 mass matrix; all coordinates are retained.
Table 20. Completed 3D NKB trajectories and numerical checks. Mean error is relative velocity in percent. Right-hand-side (RHS) discrepancy compares the assembled coefficient RHS with the projected full-grid RHS at and , taking the larger relative Euclidean error. The final column is the maximum relative mass-norm trajectory difference between and . These checks measure operator agreement and time-step sensitivity on the fixed grid.
| Mean error (%) | RHS discrepancy | Time-step difference | ||
|---|---|---|---|---|
| 128 | ||||
| 256 | ||||
| 512 | ||||
| 1024 |
For the grid-reconstructed velocity (zero in solid cells), let be the grid Fourier wavevector and its Fourier transform, with the Euclidean norm over Fourier samples. Let denote the mean over the original boundary band , and the original grid Leray projection with componentwise dealiasing and the zero-mean constraint. The divergence ratio , boundary-normal ratio , and grid-correction ratio are
Here uses the full velocity-gradient norm, whereas the 2D diagnostic uses the curl norm; is a band-sampled RMS ratio.
Table 21. Initial and final 3D NKB kinematic residuals on the original grid. All entries are dimensionless ratios, using the definitions above.
| Divergence | Boundary normal | Grid correction | ||||
|---|---|---|---|---|---|---|
| Initial | Final | Initial | Final | Initial | Final | |
| 128 | ||||||
| 256 | ||||||
| 512 | ||||||
| 1024 | ||||||

Laplacian Potential Velocity NKB
Figure 16. NKB and Eigenfluid under matched case assessment. (a) Vortex-merger mean trajectory error over 241 frames, K = 1024, three learned seeds with one sample SD. (b) Final errors for the three topologies, averaged over 20 states. (c) Metaball capacity comparison against the same original reference. NKB uses the stated 2000-update, common-Galerkin adaptation. Numerical denotes the same-capacity Laplacian control.
H Additional paired flow visualizations
H.1 Random large-vortex ablations and matched flow views
These figures report the random large-vortex ensemble used for the lift-conditioning comparisons in Section 3.2. The direct random-streamfunction ensemble is reported separately in Appendix E.4.



Figure 17. Harmonic completion, lift conditioning, and objective choice. One-, two-, and three-hole trajectories use total-1024 bases and average the same 20 random large-vortex states. Red/blue denote potential/velocity learning, dashed gray numerical completion, dotted red raw lifts, and dash-dot blue the raw- velocity control. Matched learned bases share raw , scaled , and scaled . Curve endpoints give the final-error comparison; positive-basis training costs appear in Table 22.
H.2 Periodic matched-basis comparison
Periodic vortex-merger relief. Figure 3 uses saved potential-trained , seed-0 states at from the trajectory. On the periodic display grid, smooths with Gaussian standard deviation 4.5 pixels; all three times use the fixed original scale and the common display height . Here clamps to . One subdivision smooths the display mesh. At the middle time, white foam follows 12 signed-smoothed vorticity contour levels, normalized by the same fixed , from 0.065 to 0.69; this exposes the elongated S-shaped merger filaments and pointed outer lobes. At the initial and final times, continuous spiral material accents are anchored to measured vortex cores and cover both deep and shallow relief. These material cues emphasize vortex structure on the data-derived height surface. The oblique camera, lighting, transparent water material, and white ground are shared. Saved velocity, vorticity, and ROM coefficients are unchanged.
Numerical GT
Laplacian
Potential
Velocity
NKB



Figure 18. Vortex merger at K = 1024. Columns compare Numerical GT, Laplacian, potential-trained, velocity-trained, and NKB bases; rows show . Learned fields use seed 0 and maximum step 0.005. Signed vorticity uses the common GT 99.5th-percentile scale; colorbar extensions indicate saturation. Annotations report velocity error over the full observation grid. All methods use the same initial velocity and evolve autonomously.
H.3 Three-dimensional flow comparison
Figure 19 compares instantaneous velocity streamtubes for the numerical reference, Laplacian basis, and velocity-trained Eigenfluid basis. Shared camera, seeding, material, and speed mapping expose the three-dimensional flow structure behind the common-slice comparison in Figure 8.
H.4 Three-hole time sequence
Figure 20 follows the refined reference and all three completed bases through three saved times. One display mapping across methods and times preserves temporal changes in the surface relief.
t = 0
t = 0.60
t = 1.16
Numerical GT

Laplacian
Velocity
Figure 19. Three-dimensional flow structure. Numerical GT, Laplacian, and velocity-trained Eigenfluid K = 1024 streamtubes at t = 0, 0.60, 1.16, colored by speed. The transparent shell follows the rounded domain boundary. Camera, seeding, material, and the [0, 0.8] speed range are shared. Centerline smoothing is a display operation.
Water-surface display mapping. The renderings in Figures 6 and 20 embed the saved two-dimensional fields in a height surface. Analytic derivatives of the learned fields are evaluated from the original checkpoints and contracted with the saved coefficients. The refined GT vorticity is recovered from its stored streamfunction using the original interior finite-element mass–stiffness relation. On a display grid, let be a masked Gaussian smoother with standard deviation 8 pixels. Let be the pooled empirical quantile of field at probability , a combined vorticity–speed display signal, and the display height.
t = 0
Numerical GT
t = 0.5
Numerical GT
t = 1
Numerical GT

Laplacian (7.87%)

Laplacian (7.80%)

Laplacian (7.72%)

Potential (8.03%)

Potential (8.17%)

Potential (8.57%)

Velocity (8.34%)

Velocity (8.47%)

Velocity (8.81%)



Figure 20. Three-hole evolution at K = 1024. Rows compare Numerical GT, Laplacian, potential-trained, and velocity-trained bases; columns show t = 0, 0.5, 1, seed 1, state 00. Each basis contains 1021 positive and three harmonic coordinates; the learned bases share scaled . All panels share the height mapping, contour levels, camera, and material. Annotations give full-domain velocity error against the level-2 reference.
Define
Quantiles pool all four methods and all three times within each geometry; the main views and time sequence reuse that common mapping. Filtering signed vorticity before taking its magnitude emphasizes coherent large-scale structure. The speed term also reveals curl-free harmonic circulation. Height is a display coordinate; the saved physical fields and ROM coordinates remain unchanged. White foam follows shared streamfunction contour levels after subtracting each field's nodal mean on the reference mesh; this contour convention differs from the area-weighted centering of the planar scalar plots. The obstacle footprints come from the stored reference-level-2 mesh. Camera and water material are fixed within each plate. Figures 6 and 20 use matched orthographic overhead views with a white ground and one subdivision of the display surface. Its foam particles follow the saved contours, with density weighted by ; within each geometry, all four methods use the same absolute density thresholds taken from the potential-trained field (58th and 95th percentiles), particle-size rule, and random seeds. Foam provides a common material cue for the displayed flow structure.
I Computational cost
We distinguish basis training, offline preparation, online evolution, and field output. The tables collect the recorded costs for the case comparisons and their numerical checks. Times are measured wall times on the RTX 4080 SUPER workstation; each caption specifies the workload and timer boundary. Superscript R marks synchronized complete-workload measurements with all points and modes. Other entries use the recorded stage timers. Entries marked n.r. have no separate timer, excl. denotes a branch outside the stated comparison, and m.f. denotes matrix-free evaluation. Composite workloads are listed as bundles. The analytic Fourier basis is available directly; numerical Laplacian eigensolves belong to offline preparation. Existing Laplacian modes are reused in the reported controls.
I.1 Training cost and its components
Completed 2000-update spectral training costs appear in Table 22 for 2D and Table 10 for 3D. Topology timers cover positive-basis training; the harmonic lift shared within each Potential/Velocity pair is separate. NKB directly predicts velocity without a harmonic training stage; its update, validation, and total timers appear in Table 24. The seed-0 Potential-FG run at takes 195.80 minutes; its counterpart and the matched FG, AL, and canonical Potential families are included in the 3D preparation table.
Table 22. Two-dimensional spectral training wall time in minutes for complete 2000-update runs. Periodic entries are mean sample SD over three seeds. Topology totals exclude the separately trained harmonic lift shared within each Potential/Velocity pair. Three-dimensional spectral totals are in Table 10; NKB totals and components are in Table 24.
| Case | K | Potential | Velocity |
|---|---|---|---|
| Periodic | 1024 | 106.428 ± 3.196 | 165.760 ± 1.636 |
| 1 hole | 1024 | 232.61 | 423.97 |
| 2 holes | 1024 | 235.48 | 376.76 |
| 3 holes | 1024 | 233.88 | 388.71 |
Architecture and derivative workload. The 3D velocity implementation assigns an independent width-128, five-hidden-layer sinusoidal representation network (SIREN) (Sitzmann et al., 2020) to each mode: at it has 70,126,592 trainable parameters. The shared NKB network has 1,188,352 parameters (Appendix G). For Velocity, the neural vector potential gives and the velocity-gradient Rayleigh energy require second spatial derivatives of and their parameter adjoints. NKB directly predicts and its losses use first spatial derivatives. At , neural forward and reverse account for of
Table 23. Instrumented 3D Velocity-training components, in minutes, summed over 2000 committed updates and 80 scheduled validations. Fwd./Rev. include analytic derivatives and the reverse pass includes recomputation. The full wall total also includes initialization, progress logging, cleanup, and other uninstrumented overhead; the listed components identify the principal computational stages. Checkpoints are saved every update through and every 25 updates at higher capacities.
| K | Fwd. | Rev. | Geometry | Ortho. | Validate | Save | Opt./sample |
|---|---|---|---|---|---|---|---|
| 128 | 10.52 | 35.97 | 25.14 | 0.21 | 8.35 | 4.67 | 0.22 |
| 256 | 20.85 | 72.05 | 25.22 | 0.62 | 10.76 | 9.26 | 0.22 |
| 512 | 42.17 | 145.88 | 25.61 | 2.20 | 15.95 | 1.82 | 0.35 |
| 1024 | 89.94 | 298.41 | 29.88 | 8.86 | 28.61 | 3.77 | 0.67 |
full training wall time; gauge projection is disabled. The cost breakdown connects the derivative workload and network architecture to the measured training time.
Table 24. NKB training timers, in seconds. Updates sum the 2000 measured optimization iterations, including sampling, analytic network forward/reverse, losses, Adam, and checkpoint writes within those iterations. Validation sums the 80 scheduled events. Total additionally includes preflight, initialization, and other run overhead. Topology seed is 1 and the 3D seed is 20260823; update totals measure the combined neural forward/reverse and optimization workload.
| Case | K | Seed | Updates | Validate | Total |
|---|---|---|---|---|---|
| Periodic | 1024 | 0 | 151.75 | 3.17 | 159.13 |
| Periodic | 1024 | 1 | 151.59 | 3.19 | 158.98 |
| Periodic | 1024 | 2 | 151.45 | 3.17 | 158.78 |
| 1 hole | 1024 | 1 | 153.04 | 3.28 | 160.96 |
| 2 holes | 1024 | 1 | 154.53 | 3.33 | 162.52 |
| 3 holes | 1024 | 1 | 159.76 | 3.52 | 167.91 |
| 3D | 128 | 20260823 | 41.68 | 4.72 | 50.63 |
| 3D | 256 | 20260823 | 61.90 | 7.01 | 73.30 |
| 3D | 512 | 20260823 | 121.50 | 13.69 | 139.66 |
| 3D | 1024 | 20260823 | 325.27 | 37.50 | 367.58 |
I.2 Offline basis, projection, and operator preparation
For bounded domains, basis inference evaluates the frozen NKB model on every assessment node and all modes. It is the median of three synchronized passes including coordinate/input transfer and checksum reduction, excluding derivatives and output storage. Projection/preparation contains the recorded full-mass initial projection and reference/error-moment preparation. Derived-field preparation contains the derivative caches and linear operators. Each independently timed pass characterizes its stated workload; production queries reuse the prepared basis and operators.
For periodic flow, basis evaluation includes the analytic velocity and curl fields on all quadrature nodes; projection includes the full mass/curl-stiffness assembly and generalized eigensolve. The rotational nonlinear load is evaluated matrix-free. The synchronized 3D Velocity basis pass evaluates analytic curl on all 1.6 M nodes in the original FP32 spatial arithmetic, with FP64 checksum accumulation; coordinate/input transfer and checksum reduction are included, and storage is excluded. Its checksum agrees with the original full-mass basis energy to relative error. The topology basis passes evaluate every field and derivative and assemble the full mass, derivative, and divergence moments on 1,048,576 nodes for one hole and 4,194,304 for two and three holes. Each saved matrix agrees with its original operator to the reported precision.
Table 25. Offline costs in seconds. Basis gives all-node field-evaluation times; periodic entries include analytic derivatives. Projection includes the recorded reference preparation where bundled. Derived means field/linear-operator preparation, and denotes accepted assembly of the quadratic tensor . The incl. periodic derivative fields are included in basis evaluation, and their nonlinear loads are matrix-free. n.r. marks components without a separate measurement. The derived cost covers all 512 modes, basis-cache transposition, and linear-operator preparation. These columns exclude neural training and online integration.
| Case | K | Basis | Basis eval. | Projection | Derived | Q |
|---|---|---|---|---|---|---|
| 3D | 512 | Velocity | 18.50 | 3036.39 | 3645.51 | |
| 3D | 1024 | Velocity | 41.25 | 10381.08 | 32434.41 | |
| Periodic s0 | 1024 | Potential | 143.21 | 1.73 | incl. | m.f. |
| Periodic s1 | 1024 | Potential | 142.83 | 1.73 | incl. | m.f. |
| Periodic s2 | 1024 | Potential | 143.98 | 1.63 | incl. | m.f. |
| Periodic s0 | 1024 | Velocity | 144.22 | 1.63 | incl. | m.f. |
| Periodic s1 | 1024 | Velocity | 149.66 | 1.72 | incl. | m.f. |
| Periodic s2 | 1024 | Velocity | 141.75 | 1.61 | incl. | m.f. |
| Periodic s0 | 1024 | NKB | 1.36 | 1.68 | incl. | m.f. |
| Periodic s1 | 1024 | NKB | 1.10 | 1.64 | incl. | m.f. |
| Periodic s2 | 1024 | NKB | 1.09 | 1.63 | incl. | m.f. |
| 1 hole | 1024 | NKB | 3.55 | 31.34 | 3247.81 | |
| 2 holes | 1024 | NKB | 14.02 | 118.76 | 12682.87 | |
| 3 holes | 1024 | NKB | 13.88 | 118.83 | 12685.85 | |
| 3D | 128 | NKB | 2.99 | 30.18 | 139.57 | 83.94 |
| 3D | 256 | NKB | 3.50 | 95.56 | 311.72 | 576.10 |
| 3D | 512 | NKB | 4.67 | 190.53 | 728.16 | 3841.67 |
| 3D | 1024 | NKB | 7.20 | 322.78 | 1939.69 | 32446.09 |
I.3 Online evolution, output, and assessment
Table 26 separates coefficient evolution from output costs in 3D. Laplacian controls use the original grid-based reduced generator, whereas the listed Velocity and NKB trajectories use assembled coefficient operators. The NS reference uses its original split viscosity/normal-penalty integrator. The common physical interval and fine time step support comparison of the recorded execution strategies. Flow errors accompany these timings in the capacity plots. Output measures field reconstruction, transfer, storage, and recorded diagnostics.
Table 26. 3D online costs in seconds, . Coarse/fine steps are 0.00125/0.000625. ROM output timers cover three selected fields; NS output timers cover its 30 saved fields. Laplacian online timers include the field operations required at every integration step, excluding assessment outside the stepping timer. Repeated NS rows are the measured reference runs for the two capacity experiments; n.a. indicates that NS has no retained-mode count.
| K | Method | Execution | Coarse | Fine | Output |
|---|---|---|---|---|---|
| 128 | NKB | Coefficient | 3.57 | 6.84 | |
| 256 | NKB | Coefficient | 4.90 | 9.78 | |
| 512 | Velocity | Coefficient | 3.85 | 7.03 | 20.41 |
| 512 | Laplacian | Grid ROM | 119.45 | 238.71 | |
| 512 | NKB | Coefficient | 8.29 | 16.58 | 7.98 |
| 1024 | Velocity | Coefficient | 24.30 | 48.59 | 32.72 |
| 1024 | Laplacian | Grid ROM | 130.04 | 260.17 | |
| 1024 | NKB | Coefficient | 766.10 | 1532.83 | 14.56 |
| n.a. | NS (K512 comparison) | Grid NS | 124.75 | 7.01 | |
| n.a. | NS (K1024 comparison) | Grid NS | 126.68 | 7.04 |
The one-hole kernel comparison in Appendix E isolates coefficient stepping from streamed field contraction. Its kernel-level intervals differ from the process-stage workloads in Table 28.
Table 27. 2D measured execution intervals in seconds, . Each periodic method–seed pair is listed once. Periodic runs reach with 241 saved fields; topology runs reach with 20 initial states. Periodic integration timers include synchronized coefficient capture and exclude field reconstruction and file writing. The matched potential, velocity and NKB runs use operator points and observations. Topology entries time their original 20-state batches.
| Case | Method | Δt | Time (s) | Timer scope |
|---|---|---|---|---|
| Periodic s0 | Potential | 0.005 | 182.62 | Integration + coefficient capture |
| Periodic s1 | Potential | 0.005 | 182.63 | Integration + coefficient capture |
| Periodic s2 | Potential | 0.005 | 182.64 | Integration + coefficient capture |
| Periodic s0 | Velocity | 0.005 | 185.97 | Integration + coefficient capture |
| Periodic s1 | Velocity | 0.005 | 183.62 | Integration + coefficient capture |
| Periodic s2 | Velocity | 0.005 | 181.99 | Integration + coefficient capture |
| Periodic s0 | NKB | 0.005 | 182.99 | Integration + coefficient capture |
| Periodic s1 | NKB | 0.005 | 182.81 | Integration + coefficient capture |
| Periodic s2 | NKB | 0.005 | 182.59 | Integration + coefficient capture |
| 1 hole | NKB | 0.001 | 408.46 | 20-state coefficient batch |
| 2 holes | NKB | 0.001 | 402.47 | 20-state coefficient batch |
| 3 holes | NKB | 0.001 | 418.86 | 20-state coefficient batch |
Table 28. High-capacity Velocity pipeline wall times, in seconds. Process-stage intervals are grouped by purpose for each 20-state topology experiment. They include process startup, I/O, and process monitoring, and are kept separate from the synchronized NKB coefficient timers in Table 27. Shared harmonic training is excluded.
| Stage | 1 hole | 2 holes | 3 holes |
|---|---|---|---|
| Boundary fields and assessment | 60.05 | 70.07 | 70.04 |
| Initial projection | 20.01 | 40.03 | 40.02 |
| Linear/operator preparation | 874.27 | 977.54 | 978.13 |
| Nonlinear tensor | 3484.71 | 3504.59 | 3501.97 |
| ROM execution | 520.06 | 610.08 | 610.08 |
| Reference fields and error assessment | 570.13 | 2250.30 | 2280.28 |
I.4 Numerical checks and auxiliary costs
Table 29. Additional 3D measured costs in seconds. Velocity check includes full-grid RHS and one-step comparisons; refined projection uses the matched-step NS reference. Velocity/NKB evaluation bundles include both trajectories, checks, and output and overlap the preceding component timers. NKB capacities time evaluation after operator preparation. Laplacian refresh includes both time steps and fresh FP64 projection. Bundle totals and individual components describe their respective timer boundaries.
| K | Velocity load | Velocity check | Refined proj. | Velocity eval. | NKB eval. | Lap. refresh |
|---|---|---|---|---|---|---|
| 512 | 0.71 | 183.30 | 19.37 | 386.33 | 69.50 | 376.58 |
| 1024 | 3.36 | 438.64 | 35.32 | 761.22 | 2337.10 | 407.83 |
At , joint Velocity/Laplacian evaluation costs 547.33 and 3449.86 s, covering both methods, both time steps, and their field outputs. The corresponding NKB evaluation bundles take 25.91 and 30.12 s. These totals characterize the complete evaluation workloads at the two capacities.
NKB operator precision. The accepted tensor assembly uses FP64 short-dot products and compensated accumulation. Every online RK4 stage likewise uses compensated products and summation. Their measured costs appear in Tables 25 and 26. Independent full-grid RHS comparisons verify the assembled operator to the reported precision (Table 20).
Gauge-solver timings. Table 7 groups setup, forward, reverse, and independent assessment at the frozen checkpoint, with residuals visualized in Figure 10. Table 8 adds source-evaluation times for the precision controls. The workload evaluates 32 frozen columns with reused geometry-dependent MFS factors; the listed timers cover the source evaluation, correction, differentiation, and assessment stages.
I.5 Inference accounting and reuse thresholds
Basis-query timing follows the continuous evaluation boundary in Section 3.4; numerical construction additionally charges geometry-specific mesh preparation, point mapping, factorization, and the spectral solve. Table 25 reports all-node evaluation costs, while Appendix D.5 gives fresh numerical constructions on unseen domains. The reuse counts below concern trajectories that share spatial bases and operators.
Table 30. Reuse thresholds computed from original wall-time receipts, without rounding inputs. A reuse is one , 1856-step trajectory on the same geometry, with the same time step and existing operators. The baseline is the numerical NS integration timer. Training-only counts set ; adding recorded assembly or derived-field preparation charges those stages once. Derived-field costs include the recovered preparation timers. Per-query projection/output and separately unrecorded stages lie outside these integration-only thresholds.
| K | Training only | + Q assembly | + derived fields |
|---|---|---|---|
| 512 | 123 | 154 | 179 |
| 1024 | 359 | 774 | 907 |
For a full workload, replace the denominator of Eq. (22) by the difference between complete per-query costs, including initial projection, selected field reconstruction, transfers, and storage. Output costs are assigned according to the requested number of reconstructed fields: the recorded NS workload saves 30 fields, and the ROM workload reconstructs three selected fields.
For basis generation over a geometry family, write for a fresh numerical basis construction and for the frozen neural map with the same postprocessing. For geometry queries indexed by , training amortizes when
If the per-geometry costs are constant, write them as and ; then . This geometry-level threshold requires matched basis-generation timers. Each new geometry also incurs its own operator assembly when autonomous dynamics are requested. Arbitrarily dense neural spatial queries preserve the same learned continuous function; their cost scales with requested points and modes, and their accuracy is that of the learned representation.
Tensor-product and nonuniform parameter sweeps. A tensor-product sweep with values for each of independent query parameters contains cases. The per-axis break-even resolution and integer sampling count are
Here counts varied physical or query parameters and is the integration-only reuse count in Eq. (22).
Unequal axis counts meet the threshold when ; their geometric mean is the mean per-axis resolution. Sparse, constrained, or correlated sweeps use the actual query count. With per-query savings and reusable cost , break-even requires , including per-case preparation. Fixed-geometry initial-condition sweeps reuse the frozen basis and operators; geometry sweeps additionally charge geometry generation and required operator assembly.