Introduction
Many dynamical systems combine reversible motion with irreversible processes, such as friction and heat transfer [20 , 8 , 25 , 5 , 6 ] . In a thermodynamically consistent description of a closed system, these processes conserve total energy while producing entropy. The metriplectic formalism [17 ] and the general equation for the nonequilibrium reversible-irreversible coupling (GENERIC) [8 ] encode this behavior through the coupling of a Hamiltonian vector field and a generalized gradient flow. In finite dimensions and in a parametric setting, the dynamics is modeled by the evolution
u ˙ ( t ; μ ) = J ( u ( t ; μ ) ) ∇ H ( u ( t ; μ ) ; μ ) + G ( u ( t ; μ ) ) ∇ S ( u ( t ; μ ) ; μ ) , ∀ t ∈ T , μ ∈ P , (1) \dot{\mathbf{u}}(t;\mu)=J(\mathbf{u}(t;\mu))\nabla H(\mathbf{u}(t;\mu);\mu)+G(\mathbf{u}(t;\mu))\nabla S(\mathbf{u}(t;\mu);\mu),\qquad\forall\ t\in\mathcal{T},\ \mu\in\mathcal{P}, \tag*{(1)} u ˙ ( t ; μ ) = J ( u ( t ; μ )) ∇ H ( u ( t ; μ ) ; μ ) + G ( u ( t ; μ )) ∇ S ( u ( t ; μ ) ; μ ) , ∀ t ∈ T , μ ∈ P , (1)
with initial condition u ( 0 ; μ ) = u 0 ( μ ) \mathbf{u}(0;\mu)=\mathbf{u}_0(\mu) u ( 0 ; μ ) = u 0 ( μ ) , where T : = [ 0 , T ] \mathcal{T}:=[0,T] T := [ 0 , T ] is a temporal interval and P ⊂ R p \mathcal{P}\subset\mathbb{R}^{p} P ⊂ R p is a compact set of parameters. Here u : T × P → R N \mathbf{u}:\mathcal{T}\times\mathcal{P}\to\mathbb{R}^{N} u : T × P → R N denotes the state variable, J ( u ) : R N → R N × N J(\mathbf{u}):\mathbb{R}^{N}\to\mathbb{R}^{N\times N} J ( u ) : R N → R N × N is a Poisson operator, and G ( u ) : R N → R N × N G(\mathbf{u}):\mathbb{R}^{N}\to\mathbb{R}^{N\times N} G ( u ) : R N → R N × N is symmetric positive semi-definite. The functionals H , S : R N × P → R H,S:\mathbb{R}^{N}\times\mathcal{P}\to\mathbb{R} H , S : R N × P → R represent the Hamiltonian and entropy, respectively, although the physical interpretation of S S S may vary between applications. A metriplectic system is also characterized by the so-called mutual degeneracy conditions
G ( v ) ∇ H ( v ; μ ) = 0 , J ( v ) ∇ S ( v ; μ ) = 0 , ∀ v ∈ R N , μ ∈ P . (2) G(\mathbf{v})\nabla H(\mathbf{v};\mu)=0,\qquad J(\mathbf{v})\nabla S(\mathbf{v};\mu)=0,\qquad\forall\ \mathbf{v}\in\mathbb{R}^{N},\ \mu\in\mathcal{P}. \tag*{(2)} G ( v ) ∇ H ( v ; μ ) = 0 , J ( v ) ∇ S ( v ; μ ) = 0 , ∀ v ∈ R N , μ ∈ P . (2)
These, together with the symmetry properties of the operators, imply that the Hamiltonian is conserved and the entropy is non-decreasing. Retaining this compatibility is essential when constructing thermodynamically consistent approximations.
In a general setting, the operators J J J and G G G in (1) may have the form J ( v ) = M − 1 J ^ ( v ) M − 1 J(\mathbf{v})=M^{-1}\widehat{J}(\mathbf{v})M^{-1} J ( v ) = M − 1 J ( v ) M − 1 and G ( v ) = M − 1 G ^ ( v ) M − 1 G(\mathbf{v})=M^{-1}\widehat{G}(\mathbf{v})M^{-1} G ( v ) = M − 1 G ( v ) M − 1 , for any v ∈ R N \mathbf{v}\in\mathbb{R}^{N} v ∈ R N , where M M M is a symmetric positive definite matrix (typically a mass matrix), and for some suitable J ^ \widehat{J} J and G ^ \widehat{G} G . This is the case, for example, when (1) stems from the spatial discretization of a partial differential equation characterized by a Hamiltonian term and a gradient flow dissipation, as in [15 ] . Also in this case, we assume that the operator J J J is Poisson, that is, it is skew-symmetric and satisfies the Leibniz rule and the Jacobi identity. Throughout, we use the term almost-Poisson when the Jacobi identity is not satisfied, and almost-metriplectic for a system with J J J almost-Poisson and satisfying the degeneracy conditions (2) .
Model order reduction of Hamiltonian systems with gradient flow dissipation. Repeated simulation of high-dimensional metriplectic systems can become computationally prohibitive in parameter studies, optimization, and uncertainty quantification. Model order reduction addresses this issue by approximating the solution trajectory in a space of dimension n ≪ N n \ll N n ≪ N , typically constructed from instances of the solution at certain values of time and parameter. However, state accuracy alone does not ensure thermodynamic consistency: projection-based reduction need not retain energy conservation or entropy production.
For problems of the form (1) characterized by a Hamiltonian part and a dissipative part, a possible strategy to preserve the structure of the model is to approximate the Hamiltonian and entropy gradients in the reduced basis space. This corresponds to performing model order reduction on a mixed formulation of (1) where auxiliary variables are introduced so that it reads: given μ ∈ P \mu\in\mathcal{P} μ ∈ P , and u ( 0 ; μ ) = u 0 ( μ ) \mathbf{u}(0;\mu)=\mathbf{u}_0(\mu) u ( 0 ; μ ) = u 0 ( μ ) , find ( u ( ⋅ ; μ ) , j ( ⋅ ; μ ) , g ( ⋅ ; μ ) ) ∈ C 1 ( T ; R N ) × C 0 ( T ; R N ) × C 0 ( T ; R N ) (\mathbf{u}(\cdot;\mu),\mathbf{j}(\cdot;\mu),\mathbf{g}(\cdot;\mu)) \in C^1(\mathcal{T};\mathbb{R}^N) \times C^0(\mathcal{T};\mathbb{R}^N) \times C^0(\mathcal{T};\mathbb{R}^N) ( u ( ⋅ ; μ ) , j ( ⋅ ; μ ) , g ( ⋅ ; μ )) ∈ C 1 ( T ; R N ) × C 0 ( T ; R N ) × C 0 ( T ; R N ) such that
M u ˙ ( t ; μ ) = J ^ ( u ( t ; μ ) ) j ( t ; μ ) + G ^ ( u ( t ; μ ) ) g ( t ; μ ) , ∀ t ∈ T , M j ( t ; μ ) = ∇ H ( u ( t ; μ ) ; μ ) , ∀ t ∈ T , M g ( t ; μ ) = ∇ S ( u ( t ; μ ) ; μ ) , ∀ t ∈ T . (3) \begin{aligned}
M\dot{\mathbf{u}}(t;\mu) &= \widehat{J}(\mathbf{u}(t;\mu))\mathbf{j}(t;\mu)+\widehat{G}(\mathbf{u}(t;\mu))\mathbf{g}(t;\mu), && \forall t\in\mathcal{T},\\
M\mathbf{j}(t;\mu) &= \nabla H(\mathbf{u}(t;\mu);\mu), && \forall t\in\mathcal{T},\\
M\mathbf{g}(t;\mu) &= \nabla S(\mathbf{u}(t;\mu);\mu), && \forall t\in\mathcal{T}. \tag*{(3)}
\end{aligned} M u ˙ ( t ; μ ) M j ( t ; μ ) M g ( t ; μ ) = J ( u ( t ; μ )) j ( t ; μ ) + G ( u ( t ; μ )) g ( t ; μ ) , = ∇ H ( u ( t ; μ ) ; μ ) , = ∇ S ( u ( t ; μ ) ; μ ) , ∀ t ∈ T , ∀ t ∈ T , ∀ t ∈ T . (3)
Let U ∈ R N × n U\in\mathbb{R}^{N\times n} U ∈ R N × n , with n ≤ N n\leq N n ≤ N , be a reduced basis matrix such that U T M U = I n U^{\mathsf{T}}MU=I_n U T M U = I n , let P : R N → R n P:\mathbb{R}^N\to\mathbb{R}^n P : R N → R n be the surjective map P : = U T M P:=U^{\mathsf{T}}M P := U T M , and Π U : = U P \Pi_U:=UP Π U := U P the M M M -orthogonal projection onto Range ( U ) \operatorname{Range}(U) Range ( U ) . Galerkin projection of the mixed formulation (3) onto the Range ( U ) ⊆ R N \operatorname{Range}(U)\subseteq\mathbb{R}^N Range ( U ) ⊆ R N results in the following problem: given μ ∈ P \mu\in\mathcal{P} μ ∈ P , and u r ( 0 ; μ ) = P u 0 ( μ ) \mathbf{u}_r(0;\mu)=P\mathbf{u}_0(\mu) u r ( 0 ; μ ) = P u 0 ( μ ) , find ( u r ( ⋅ ; μ ) , j r ( ⋅ ; μ ) , g r ( ⋅ ; μ ) ) ∈ C 1 ( T ; R n ) × C 0 ( T ; R n ) × C 0 ( T ; R n ) (\mathbf{u}_r(\cdot;\mu),\mathbf{j}_r(\cdot;\mu),\mathbf{g}_r(\cdot;\mu))\in C^1(\mathcal{T};\mathbb{R}^n)\times C^0(\mathcal{T};\mathbb{R}^n)\times C^0(\mathcal{T};\mathbb{R}^n) ( u r ( ⋅ ; μ ) , j r ( ⋅ ; μ ) , g r ( ⋅ ; μ )) ∈ C 1 ( T ; R n ) × C 0 ( T ; R n ) × C 0 ( T ; R n ) such that
u ˙ r ( t ; μ ) = J r ( u r ( t ; μ ) ) j r ( t ; μ ) + G r ( u r ( t ; μ ) ) g r ( t ; μ ) , ∀ t ∈ T , j r ( t ; μ ) = ∇ H r ( u r ( t ; μ ) ; μ ) , ∀ t ∈ T , g r ( t ; μ ) = ∇ S r ( u r ( t ; μ ) ; μ ) , ∀ t ∈ T . (4) \begin{aligned}
\dot{\mathbf{u}}_r(t;\mu) &= J_r(\mathbf{u}_r(t;\mu))\mathbf{j}_r(t;\mu)+G_r(\mathbf{u}_r(t;\mu))\mathbf{g}_r(t;\mu), && \forall t\in\mathcal{T},\\
\mathbf{j}_r(t;\mu) &= \nabla H_r(\mathbf{u}_r(t;\mu);\mu), && \forall t\in\mathcal{T},\\
\mathbf{g}_r(t;\mu) &= \nabla S_r(\mathbf{u}_r(t;\mu);\mu), && \forall t\in\mathcal{T}. \tag*{(4)}
\end{aligned} u ˙ r ( t ; μ ) j r ( t ; μ ) g r ( t ; μ ) = J r ( u r ( t ; μ )) j r ( t ; μ ) + G r ( u r ( t ; μ )) g r ( t ; μ ) , = ∇ H r ( u r ( t ; μ ) ; μ ) , = ∇ S r ( u r ( t ; μ ) ; μ ) , ∀ t ∈ T , ∀ t ∈ T , ∀ t ∈ T . (4)
where, for any w ∈ R n \mathbf{w}\in\mathbb{R}^n w ∈ R n , H r ( w ; μ ) : = H ( U w ; μ ) H_r(\mathbf{w};\mu):=H(U\mathbf{w};\mu) H r ( w ; μ ) := H ( U w ; μ ) and S r ( w ; μ ) : = S ( U w ; μ ) S_r(\mathbf{w};\mu):=S(U\mathbf{w};\mu) S r ( w ; μ ) := S ( U w ; μ ) are the reduced Hamiltonian and entropy, respectively, and
J r ( w ) : = U T J ^ ( U w ) U ∈ R n × n , G r ( w ) : = U T G ^ ( U w ) U ∈ R n × n . (5) J_r(\mathbf{w}):=U^{\mathsf{T}}\widehat{J}(U\mathbf{w})U\in\mathbb{R}^{n\times n},\qquad G_r(\mathbf{w}):=U^{\mathsf{T}}\widehat{G}(U\mathbf{w})U\in\mathbb{R}^{n\times n}. \tag*{(5)} J r ( w ) := U T J ( U w ) U ∈ R n × n , G r ( w ) := U T G ( U w ) U ∈ R n × n . (5)
It can be easily verified that the reduced order model (4) preserves the geometric structure of full order model (3) in the following sense.
Proposition 1.1. For any μ ∈ P \mu\in\mathcal{P} μ ∈ P the reduced order model (4) is such that the reduced operators J r J_r J r and G r G_r G r retain skew-symmetry and positive semi-definiteness, respectively. In particular, if J J J is constant, J r J_r J r is Poisson. Moreover, H r H_r H r is conserved when G ≡ 0 G\equiv0 G ≡ 0 , and S r S_r S r is non-decreasing when J ≡ 0 J\equiv0 J ≡ 0 . In the Hamiltonian case, the difference between the Hamiltonian evaluated at the full and reduced solutions is constant and determined by the initial condition.
Note that a direct Galerkin projection of (1) does not generally retain the gradient representation (4) , and hence need not inherit the properties above.
In this framework, the reduced basis U U U should be constructed from snapshots of ( u , j , g ) (\mathbf{u},\mathbf{j},\mathbf{g}) ( u , j , g ) , as motivated by the error analysis in Section 3.4. This means that the training set also includes instances of the Hamiltonian and entropy gradient.
We also point out that, owing to Proposition 1.1, if the initial condition u ( 0 ; μ ) = u 0 ( μ ) \mathbf{u}(0;\mu)=\mathbf{u}_0(\mu) u ( 0 ; μ ) = u 0 ( μ ) belongs to Range ( U ) \operatorname{Range}(U) Range ( U ) , then the Hamiltonian along reduced trajectories coincides with the full order Hamiltonian. If the initial condition of the full order model depends on the parameter μ \mu μ , enforcing this condition may require a large reduced basis space. For parameter-dependent initial conditions, the ansatz u 0 ( μ ) + U u r ( t ; μ ) \mathbf{u}_0(\mu)+U\mathbf{u}_r(t;\mu) u 0 ( μ ) + U u r ( t ; μ ) , with u r ( 0 ; μ ) = 0 \mathbf{u}_r(0;\mu)=0 u r ( 0 ; μ ) = 0 , reproduces the initial state of the full order model exactly [13 ] .
Literature review. Structure-preserving projection-based methods have been extensively studied for Hamiltonian systems [22 , 16 , 7 , 2 , 13 ] and port-Hamiltonian problems, e.g., [11 , 24 ] .
For coupled reversible and irreversible dynamics, preserving skew-symmetry and positive semi-definiteness under projection is insufficient to preserve the degeneracy conditions: the projected gradients need not belong to the kernels of the projected operators. Therefore, even a reduced model that retains a formal separation into conservative and dissipative terms, as (4) , can fail to conserve energy or to produce entropy. For this reason, the reduced order model should satisfy a reduced version of the degeneracy conditions, that is
J r ( w ) ∇ S r ( w ; μ ) = 0 , G r ( w ) ∇ H r ( w ; μ ) = 0 , ∀ w ∈ R n , μ ∈ P . (6) J_r(\mathbf{w})\nabla S_r(\mathbf{w};\mu)=0,\qquad G_r(\mathbf{w})\nabla H_r(\mathbf{w};\mu)=0,\qquad\forall\ \mathbf{w}\in\mathbb{R}^n,\ \mu\in\mathcal{P}. \tag*{(6)} J r ( w ) ∇ S r ( w ; μ ) = 0 , G r ( w ) ∇ H r ( w ; μ ) = 0 , ∀ w ∈ R n , μ ∈ P . (6)
Öttinger [19 ] studied the preservation of thermodynamic structure under model reduction, constructing reduced GENERIC brackets using an invariant manifold. Within projection-based model reduction, a POD-based approach that enforces the degeneracy conditions through exterior-algebraic representations of the reversible and dissipative operators was proposed in [9 ] . This method preserves the algebraic properties underlying energy conservation and entropy production. However, evaluating the reduced vector field may still incur a computational cost that depends on the full order dimension.
Related constructions have also been explored in data-driven models, by penalizing degeneracy violation in the training objective function [12 ] or by enforcing the degeneracy conditions algebraically through operator parameterizations [26 , 10 ] . These are based on projections onto the orthogonal complements of the energy and entropy gradients and thus encode the required kernel relations. This perspective connects structure-preserving model reduction to the parametrization of the reversible and dissipative operators, and motivates the oblique-projection framework developed in this work.
Main contributions. Other than structure-preservation, a further difficulty arises in the presence of nonlinear functionals and state-dependent operators, whose evaluation may hinder the computational advantage of model order reduction. Hyper-reduction techniques, such as the Empirical Interpolation Method (EIM) [1 ] , reduces this cost but need not preserve gradient structures or degeneracy.
We develop two structure-preserving model order reduction strategies for parametric metriplectic systems. In the first one, starting from the mixed formulation in which the energy and entropy gradients are represented by auxiliary variables, we introduce oblique projections to enforce the reduced degeneracy conditions while retaining the symmetry properties of the operators. This construction is combined with gradient-preserving EIM [21 ] for the Hamiltonian and entropy and a matrix form of EIM [18 ] for the state-dependent operators. Positive semi-definiteness is enforced through a correction performed entirely at the reduced level. The hyper-reduced operators are then employed in the construction of the oblique projections. The resulting hyper-reduced model retains the degeneracy conditions associated with the hyper-reduced functionals and, under suitable sparsity of the nonlinear terms, has arithmetic complexity independent of the full order dimension. We also establish a priori error estimates where the contributions of state and gradient projection from those of hyper-reduction are separated.
The second strategy applies to systems with a suitable block structure. It relies on a block-diagonal reduced basis whose projector preserves the operators’ kernel, ensuring the degeneracy conditions without online oblique corrections. We provide a constructive procedure for state-independent kernels and establish approximation bounds in terms of snapshot singular values.
Both strategies preserve the thermodynamic structure and identities, while preservation of the Jacobi identity is guaranteed if the reduced conservative operator J r J_r J r is constant. Moreover, after hyper-reduction, exact Hamiltonian conservation and entropy production are guaranteed for the hyper-reduced functionals.
The remainder of the paper is organized as follows. Section 2 introduces the oblique-projection reduced model and discusses its properties. Section 3 pertains to the hyper-reduced model based on oblique projections constructed on hyper-reduced operators. The properties of the model, its computational complexity, and convergence estimate are established. Section 4 discusses the block-diagonal approach. In Section 5 two numerical tests are shown. Concluding remarks are drawn in Section 6.
Model order reduction via oblique projections
Let μ ∈ P \mu\in\mathcal{P} μ ∈ P be fixed and let X ∈ { H , S } X \in\{H,S\} X ∈ { H , S } . Given a μ \mu μ -dependent vector c X ( μ ) ∈ R N \mathbf{c}_X(\mu) \in\mathbb{R}^{N} c X ( μ ) ∈ R N , define
κ X ( v ; μ ) : = c X ( μ ) T ∇ X ( v ; μ ) ∀ v ∈ R N , (7) \kappa_X(\mathbf{v};\mu) := \mathbf{c}_X(\mu)^{\mathsf{T}}\nabla X(\mathbf{v};\mu) \qquad\forall\ \mathbf{v} \in\mathbb{R}^{N}, \tag*{(7)} κ X ( v ; μ ) := c X ( μ ) T ∇ X ( v ; μ ) ∀ v ∈ R N , (7)
and the open set
Ω X , c X : = { v ∈ R N ∣ κ X ( v ; μ ) ≠ 0 } ⊆ R N . (8) \Omega_{X,\mathbf{c}_X} := \{\mathbf{v} \in\mathbb{R}^{N} \mid\kappa_X(\mathbf{v};\mu) \ne0\} \subseteq\mathbb{R}^{N}. \tag*{(8)} Ω X , c X := { v ∈ R N ∣ κ X ( v ; μ ) = 0 } ⊆ R N . (8)
Moreover, define, for any v ∈ Ω X , c X \mathbf{v} \in\Omega_{X,\mathbf{c}_X} v ∈ Ω X , c X and μ ∈ P \mu\in\mathcal{P} μ ∈ P , the operators
Q X ( v ; μ ) : = I n − Π X , c X ( v ; μ ) , Π X , c X ( v ; μ ) : = U T M c X ( μ ) ∇ X ( v ; μ ) T κ X ( v ; μ ) U . (9) Q_X(\mathbf{v};\mu) := I_n - \Pi_{X,\mathbf{c}_X}(\mathbf{v};\mu), \qquad\Pi_{X,\mathbf{c}_X}(\mathbf{v};\mu) := U^{\mathsf{T}}\frac{M\mathbf{c}_X(\mu)\nabla X(\mathbf{v};\mu)^{\mathsf{T}}}{\kappa_X(\mathbf{v};\mu)}U. \tag*{(9)} Q X ( v ; μ ) := I n − Π X , c X ( v ; μ ) , Π X , c X ( v ; μ ) := U T κ X ( v ; μ ) M c X ( μ ) ∇ X ( v ; μ ) T U . (9)
Lemma 2.1. Let μ ∈ P \mu\in\mathcal{P} μ ∈ P and v ∈ Ω X , c X \mathbf{v} \in\Omega_{X,\mathbf{c}_X} v ∈ Ω X , c X be fixed. If c X ( μ ) ∈ Range ( U ) \mathbf{c}_X(\mu) \in\operatorname{Range}(U) c X ( μ ) ∈ Range ( U ) , then
(i) Π X , c X ( v ; μ ) ∘ Π X , c X ( v ; μ ) = Π X , c X ( v ; μ ) \Pi_{X,\mathbf{c}_X}(\mathbf{v};\mu) \circ\Pi_{X,\mathbf{c}_X}(\mathbf{v};\mu) = \Pi_{X,\mathbf{c}_X}(\mathbf{v};\mu) Π X , c X ( v ; μ ) ∘ Π X , c X ( v ; μ ) = Π X , c X ( v ; μ ) ;
(ii) Π X , c X ( v ; μ ) P c X ( μ ) = P c X ( μ ) \Pi_{X,\mathbf{c}_X}(\mathbf{v};\mu)P\mathbf{c}_X(\mu) = P\mathbf{c}_X(\mu) Π X , c X ( v ; μ ) P c X ( μ ) = P c X ( μ ) ;
(iii) Π X , c X ( v ; μ ) T U T ∇ X ( v ; μ ) = U T ∇ X ( v ; μ ) \Pi_{X,\mathbf{c}_X}(\mathbf{v};\mu)^{\mathsf{T}}U^{\mathsf{T}}\nabla X(\mathbf{v};\mu) = U^{\mathsf{T}}\nabla X(\mathbf{v};\mu) Π X , c X ( v ; μ ) T U T ∇ X ( v ; μ ) = U T ∇ X ( v ; μ ) .
In particular, Π X , c X ( v ; μ ) \Pi_{X,\mathbf{c}_X}(\mathbf{v};\mu) Π X , c X ( v ; μ ) is an orthogonal projection with respect to the Euclidean inner product if P c X ( μ ) P\mathbf{c}_X(\mu) P c X ( μ ) and U T ∇ X ( v ; μ ) U^{\mathsf{T}}\nabla X(\mathbf{v};\mu) U T ∇ X ( v ; μ ) are parallel, and it is oblique otherwise.
Proof. Let ω : = P c X ( μ ) ∈ R n \boldsymbol{\omega} := P\mathbf{c}_X(\mu) \in\mathbb{R}^{n} ω := P c X ( μ ) ∈ R n and σ : = U T ∇ X ( v ; μ ) ∈ R n \boldsymbol{\sigma} := U^{\mathsf{T}}\nabla X(\mathbf{v};\mu) \in\mathbb{R}^{n} σ := U T ∇ X ( v ; μ ) ∈ R n . Since c X ( μ ) ∈ Range ( U ) \mathbf{c}_X(\mu) \in\operatorname{Range}(U) c X ( μ ) ∈ Range ( U ) , it holds U ω = c X ( μ ) U\boldsymbol{\omega} = \mathbf{c}_X(\mu) U ω = c X ( μ ) and σ T ω = κ X ( v ; μ ) \boldsymbol{\sigma}^{\mathsf{T}}\boldsymbol{\omega} = \kappa_X(\mathbf{v};\mu) σ T ω = κ X ( v ; μ ) . Then, the properties follow by writing Π X , c X \Pi_{X,\mathbf{c}_X} Π X , c X as
Π X , c X ( v ; μ ) = ω σ T σ T ω . \Pi_{X,\mathbf{c}_X}(\mathbf{v};\mu) = \frac{\boldsymbol{\omega}\boldsymbol{\sigma}^{\mathsf{T}}}{\boldsymbol{\sigma}^{\mathsf{T}}\boldsymbol{\omega}}. Π X , c X ( v ; μ ) = σ T ω ω σ T .
Let Ω μ : = Ω H , c H ∩ Ω S , c S \Omega_\mu:= \Omega_{H,\mathbf{c}_H} \cap\Omega_{S,\mathbf{c}_S} Ω μ := Ω H , c H ∩ Ω S , c S , and Ω μ , r : = { w ∈ R n ∣ U w ∈ Ω μ } ⊆ R n \Omega_{\mu,r} := \{\mathbf{w} \in\mathbb{R}^{n} \mid U\mathbf{w} \in\Omega_\mu\} \subseteq\mathbb{R}^{n} Ω μ , r := { w ∈ R n ∣ U w ∈ Ω μ } ⊆ R n . The oblique-projection reduced order model (OP-ROM) reads: given μ ∈ P \mu\in\mathcal{P} μ ∈ P and u r ( 0 ; μ ) = P u 0 ( μ ) ∈ Ω μ , r \mathbf{u}_r(0;\mu) = P\mathbf{u}_0(\mu) \in\Omega_{\mu,r} u r ( 0 ; μ ) = P u 0 ( μ ) ∈ Ω μ , r , find u r ( ⋅ ; μ ) ∈ C 1 ( T ; R n ) \mathbf{u}_r(\cdot;\mu) \in C^1(\mathcal{T};\mathbb{R}^{n}) u r ( ⋅ ; μ ) ∈ C 1 ( T ; R n ) such that, for all t ∈ T t \in\mathcal{T} t ∈ T ,
u ˙ r ( t ; μ ) = J o p ( U u r ( t ; μ ) ; μ ) ∇ H r ( u r ( t ; μ ) ; μ ) + G o p ( U u r ( t ; μ ) ; μ ) ∇ S r ( u r ( t ; μ ) ; μ ) , (10) \dot{\mathbf{u}}_r(t;\mu) = J_{\mathrm{op}}(U\mathbf{u}_r(t;\mu);\mu)\nabla H_r(\mathbf{u}_r(t;\mu);\mu) + G_{\mathrm{op}}(U\mathbf{u}_r(t;\mu);\mu)\nabla S_r(\mathbf{u}_r(t;\mu);\mu), \tag*{(10)} u ˙ r ( t ; μ ) = J op ( U u r ( t ; μ ) ; μ ) ∇ H r ( u r ( t ; μ ) ; μ ) + G op ( U u r ( t ; μ ) ; μ ) ∇ S r ( u r ( t ; μ ) ; μ ) , (10)
where, for all v ∈ Ω μ \mathbf{v} \in\Omega_\mu v ∈ Ω μ ,
J o p ( v ; μ ) : = Q S ( v ; μ ) J ‾ ( v ) Q S ( v ; μ ) T , G o p ( v ; μ ) : = Q H ( v ; μ ) G ‾ ( v ) Q H ( v ; μ ) T , (11) J_{\mathrm{op}}(\mathbf{v};\mu) := Q_S(\mathbf{v};\mu)\overline{J}(\mathbf{v})Q_S(\mathbf{v};\mu)^{\mathsf{T}}, \qquad G_{\mathrm{op}}(\mathbf{v};\mu) := Q_H(\mathbf{v};\mu)\overline{G}(\mathbf{v})Q_H(\mathbf{v};\mu)^{\mathsf{T}}, \tag*{(11)} J op ( v ; μ ) := Q S ( v ; μ ) J ( v ) Q S ( v ; μ ) T , G op ( v ; μ ) := Q H ( v ; μ ) G ( v ) Q H ( v ; μ ) T , (11)
the operators Q S Q_S Q S and Q H Q_H Q H are defined as in (2.3), and
J ‾ ( v ) : = U T J ^ ( v ) U , G ‾ ( v ) : = U T G ^ ( v ) U , ∀ v ∈ R N . (12) \overline{J}(\mathbf{v}) := U^{\mathsf{T}}\widehat{J}(\mathbf{v})U, \qquad\overline{G}(\mathbf{v}) := U^{\mathsf{T}}\widehat{G}(\mathbf{v})U, \qquad\forall\ \mathbf{v} \in\mathbb{R}^{N}. \tag*{(12)} J ( v ) := U T J ( v ) U , G ( v ) := U T G ( v ) U , ∀ v ∈ R N . (12)
Observe that J ‾ ( U w ) = J r ( w ) \overline{J}(U\mathbf{w}) = J_r(\mathbf{w}) J ( U w ) = J r ( w ) for any w ∈ R n \mathbf{w} \in\mathbb{R}^{n} w ∈ R n .
Remark 2.2 (Well-posedness of the reduced order model). Let μ ∈ P \mu\in\mathcal{P} μ ∈ P be fixed. For sufficiently regular J ^ \hat{J} J ^ , G ^ \hat{G} G ^ , ∇ H ( ⋅ ; μ ) \nabla H(\cdot;\mu) ∇ H ( ⋅ ; μ ) , and ∇ S ( ⋅ ; μ ) \nabla S(\cdot;\mu) ∇ S ( ⋅ ; μ ) , the reduced velocity field of (2.4) is locally Lipschitz continuous on Ω μ , r \Omega_{\mu,r} Ω μ , r since κ H ( ⋅ ; μ ) \kappa_H(\cdot;\mu) κ H ( ⋅ ; μ ) and κ S ( ⋅ ; μ ) \kappa_S(\cdot;\mu) κ S ( ⋅ ; μ ) are continuous and nonzero in Ω μ \Omega_{\mu} Ω μ . Hence, there exists a time T μ > 0 T_{\mu}>0 T μ > 0 such that every initial condition u r ( 0 ; μ ) = P u 0 ( μ ) \mathbf{u}_r(0;\mu)=P\mathbf{u}_0(\mu) u r ( 0 ; μ ) = P u 0 ( μ ) in Ω μ , r \Omega_{\mu,r} Ω μ , r determines a unique solution t ∈ [ 0 , T μ ) ↦ u r ( t ; μ ) ∈ Ω μ , r t \in[0,T_{\mu}) \mapsto\mathbf{u}_r(t;\mu) \in\Omega_{\mu,r} t ∈ [ 0 , T μ ) ↦ u r ( t ; μ ) ∈ Ω μ , r . In the remaining of the work, we assume that T < T μ T<T_{\mu} T < T μ for every μ ∈ P \mu\in\mathcal{P} μ ∈ P , so that the solution exists and belongs to Ω μ , r \Omega_{\mu,r} Ω μ , r for all t ∈ T = [ 0 , T ] t \in\mathcal{T}=[0,T] t ∈ T = [ 0 , T ] .
The introduction of the operators Q H Q_H Q H and Q S Q_S Q S is instrumental to ensure that the reduced order model (2.4) is (almost-)metriplectic, as shown in the next result.
Lemma 2.3. Let μ ∈ P \mu\in\mathcal{P} μ ∈ P be fixed and assume that the reduced order model (2.4) is well-posed in Ω μ , r \Omega_{\mu,r} Ω μ , r in the sense of Remark 2.2. If c X ( μ ) ∈ Range ( U ) \mathbf{c}_X(\mu) \in\operatorname{Range}(U) c X ( μ ) ∈ Range ( U ) , for X ∈ { H , S } X \in\{H,S\} X ∈ { H , S } , then problem (2.4) is almost-metriplectic. The Hamiltonian H H H evaluated at the reduced trajectories is conserved and the entropy is non-decreasing.
Moreover, if J ^ ∈ R n × n \hat{J} \in\mathbb{R}^{n\times n} J ^ ∈ R n × n defined in (2.6) is constant in R N \mathbb{R}^{N} R N , then J o p ( ⋅ ; μ ) J_{\mathrm{op}}(\cdot;\mu) J op ( ⋅ ; μ ) is a Poisson operator in Ω S , c S \Omega_{S,c_S} Ω S , c S , and thus (2.4) is metriplectic.
Proof. The fact that J o p ( ⋅ ; μ ) J_{\mathrm{op}}(\cdot;\mu) J op ( ⋅ ; μ ) is skew-symmetric and G o p ( ⋅ ; μ ) G_{\mathrm{op}}(\cdot;\mu) G op ( ⋅ ; μ ) is symmetric positive semi-definite follows from their definition (2.5) and from the properties of J ^ \hat{J} J ^ and G ^ \hat{G} G ^ . Therefore, problem (2.4) is of the form (1.1), that is, it is a Hamiltonian system with gradient flow dissipation. Moreover, by Lemma 2.1 item (iii), Q X ( U w ; μ ) T ∇ X r ( w ; μ ) = 0 Q_X(U\mathbf{w};\mu)^{\mathsf{T}}\nabla X_r(\mathbf{w};\mu)=0 Q X ( U w ; μ ) T ∇ X r ( w ; μ ) = 0 , with X ∈ { H , S } X \in\{H,S\} X ∈ { H , S } and for all w ∈ Ω μ , r \mathbf{w} \in\Omega_{\mu,r} w ∈ Ω μ , r ; this implies that the degeneracy conditions corresponding to (1.2) are satisfied, that is
G o p ( U w ; μ ) ∇ H r ( w ; μ ) = 0 , J o p ( U w ; μ ) ∇ S r ( w ; μ ) = 0 , ∀ w ∈ Ω μ , r . G_{\mathrm{op}}(U\mathbf{w};\mu)\nabla H_r(\mathbf{w};\mu)=0,\qquad J_{\mathrm{op}}(U\mathbf{w};\mu)\nabla S_r(\mathbf{w};\mu)=0,\qquad\forall\ \mathbf{w}\in\Omega_{\mu,r}. G op ( U w ; μ ) ∇ H r ( w ; μ ) = 0 , J op ( U w ; μ ) ∇ S r ( w ; μ ) = 0 , ∀ w ∈ Ω μ , r .
Let Ω S , r : = { w ∈ R n ∣ U w ∈ Ω S , c S } \Omega_{S,r}:=\{\mathbf{w}\in\mathbb{R}^{n}\mid U\mathbf{w}\in\Omega_{S,c_S}\} Ω S , r := { w ∈ R n ∣ U w ∈ Ω S , c S } . For smooth functions f , g : Ω S , r → R f,g:\Omega_{S,r}\to\mathbb{R} f , g : Ω S , r → R , define
{ f , g } μ ( w ) : = ∇ f ( w ) T J o p ( U w ; μ ) ∇ g ( w ) , ∀ w ∈ Ω S , r . \{f,g\}_{\mu}(\mathbf{w}):=\nabla f(\mathbf{w})^{\mathsf{T}}J_{\mathrm{op}}(U\mathbf{w};\mu)\nabla g(\mathbf{w}),\qquad\forall\ \mathbf{w}\in\Omega_{S,r}. { f , g } μ ( w ) := ∇ f ( w ) T J op ( U w ; μ ) ∇ g ( w ) , ∀ w ∈ Ω S , r .
It can be easily verified that { ⋅ , ⋅ } μ \{\cdot,\cdot\}_{\mu} { ⋅ , ⋅ } μ is bilinear, skew-symmetric and it satisfies the Leibniz rule { f , g h } μ = g { f , h } μ + h { f , g } μ \{f,gh\}_{\mu}=g\{f,h\}_{\mu}+h\{f,g\}_{\mu} { f , g h } μ = g { f , h } μ + h { f , g } μ , for any f , g , h ∈ C ∞ ( Ω S , r ; R ) f,g,h\in C^{\infty}(\Omega_{S,r};\mathbb{R}) f , g , h ∈ C ∞ ( Ω S , r ; R ) . To show that { ⋅ , ⋅ } μ \{\cdot,\cdot\}_{\mu} { ⋅ , ⋅ } μ satisfies the Jacobi identity we consider a basis χ 1 , … , χ n − 1 ∈ R n \chi_1,\ldots,\chi_{n-1}\in\mathbb{R}^{n} χ 1 , … , χ n − 1 ∈ R n of the orthogonal complement to span ( P c S ( μ ) ) \operatorname{span}(P\mathbf{c}_S(\mu)) span ( P c S ( μ )) , and set χ n : = ∇ S r ( ⋅ ; μ ) \chi_n:=\nabla S_r(\cdot;\mu) χ n := ∇ S r ( ⋅ ; μ ) . The vectors χ 1 , … , χ n \chi_1,\ldots,\chi_n χ 1 , … , χ n form a basis of R n \mathbb{R}^{n} R n , since ( P c S ( μ ) ) T χ n ( w ) = κ S ( U w ; μ ) ≠ 0 (P\mathbf{c}_S(\mu))^{\mathsf{T}}\chi_n(\mathbf{w})=\kappa_S(U\mathbf{w};\mu)\ne0 ( P c S ( μ ) ) T χ n ( w ) = κ S ( U w ; μ ) = 0 for any w ∈ Ω S , r \mathbf{w}\in\Omega_{S,r} w ∈ Ω S , r . Moreover, they can be written as gradients of the functions ξ i : R n → R \xi_i:\mathbb{R}^{n}\to\mathbb{R} ξ i : R n → R ,
ξ n ( w ) = S r ( w ; μ ) , ξ i ( w ) : = χ i T w , ∀ 1 ≤ i ≤ n − 1 , ∀ w ∈ R n . \xi_n(\mathbf{w})=S_r(\mathbf{w};\mu),\qquad\xi_i(\mathbf{w}):=\chi_i^{\mathsf{T}}\mathbf{w},\qquad\forall\ 1\le i\le n-1,\ \forall\ \mathbf{w}\in\mathbb{R}^{n}. ξ n ( w ) = S r ( w ; μ ) , ξ i ( w ) := χ i T w , ∀ 1 ≤ i ≤ n − 1 , ∀ w ∈ R n .
For any 1 ≤ i ≤ n − 1 1\le i\le n-1 1 ≤ i ≤ n − 1 , since ( P c S ( μ ) ) T χ i = 0 (P\mathbf{c}_S(\mu))^{\mathsf{T}}\chi_i=0 ( P c S ( μ ) ) T χ i = 0 , it holds Q S ( U w ; μ ) T χ i = χ i Q_S(U\mathbf{w};\mu)^{\mathsf{T}}\chi_i=\chi_i Q S ( U w ; μ ) T χ i = χ i . Moreover, from item (iii) in Lemma 2.1, it follows that
Q S ( U w ; μ ) T χ n = Q S ( U w ; μ ) T ∇ S r ( w ; μ ) = 0 , ∀ w ∈ Ω S , r . Q_S(U\mathbf{w};\mu)^{\mathsf{T}}\chi_n=Q_S(U\mathbf{w};\mu)^{\mathsf{T}}\nabla S_r(\mathbf{w};\mu)=0,\qquad\forall\ \mathbf{w}\in\Omega_{S,r}. Q S ( U w ; μ ) T χ n = Q S ( U w ; μ ) T ∇ S r ( w ; μ ) = 0 , ∀ w ∈ Ω S , r .
Therefore, for any 1 ≤ i , j ≤ n − 1 1\le i,j\le n-1 1 ≤ i , j ≤ n − 1 and w ∈ Ω S , r \mathbf{w}\in\Omega_{S,r} w ∈ Ω S , r ,
{ ξ i , ξ j } μ ( w ) = ( Q S ( U w ; μ ) T χ i ) T J ^ ( Q S ( U w ; μ ) T χ j ) = χ i T J ^ χ j . \{\xi_i,\xi_j\}_{\mu}(\mathbf{w})=(Q_S(U\mathbf{w};\mu)^{\mathsf{T}}\chi_i)^{\mathsf{T}}\hat{J}(Q_S(U\mathbf{w};\mu)^{\mathsf{T}}\chi_j)=\chi_i^{\mathsf{T}}\hat{J}\chi_j. { ξ i , ξ j } μ ( w ) = ( Q S ( U w ; μ ) T χ i ) T J ^ ( Q S ( U w ; μ ) T χ j ) = χ i T J ^ χ j .
Furthermore { ξ i , ξ j } μ ( w ) = 0 \{\xi_i,\xi_j\}_{\mu}(\mathbf{w})=0 { ξ i , ξ j } μ ( w ) = 0 , if either i = n i=n i = n or j = n j=n j = n . This implies that, for any 1 ≤ i , j , k ≤ n 1\le i,j,k\le n 1 ≤ i , j , k ≤ n , and w ∈ Ω S , r \mathbf{w}\in\Omega_{S,r} w ∈ Ω S , r , it holds { ξ i , { ξ j , ξ k } μ } μ ( w ) = 0 \{\xi_i,\{\xi_j,\xi_k\}_{\mu}\}_{\mu}(\mathbf{w})=0 { ξ i , { ξ j , ξ k } μ } μ ( w ) = 0 . □ \square □
**Choice of c H \mathbf{c}_H c H and c S . ∗ ∗ T h e c h o i c e o f \mathbf{c}_S.** The choice of c S . ∗ ∗ T h ec h o i ceo f \mathbf{c}_X$, with X ∈ { H , S } X\in\{H,S\} X ∈ { H , S } , plays an important role in the derivation of the reduced order model. One can ensure that c X \mathbf{c}_X c X belongs to Range ( U ) \operatorname{Range}(U) Range ( U ) by reduced basis enrichment. However, for a large set of test parameters, allowing c X \mathbf{c}_X c X to be parameter dependent may enlarge the domain of definition Ω μ \Omega_{\mu} Ω μ but require a “large” reduced space. In practical applications, as shown in the numerical tests of Section 5, it is often possible to set c X \mathbf{c}_X c X independent of the parameter.
We also point out that a particular choice of c H \mathbf{c}_H c H and c S \mathbf{c}_S c S makes the formulation (10) , with M = I N M = I_N M = I N , equivalent to the energetically consistent reduced order model proposed in [9 ] . In fact, taking c H ( μ ) = e k 0 , c S ( μ ) = e k 1 \mathbf{c}_H(\mu) = \mathbf{e}_{k_0}, \mathbf{c}_S(\mu) = \mathbf{e}_{k_1} c H ( μ ) = e k 0 , c S ( μ ) = e k 1 , for some suitable k 0 , k 1 ≤ N k_0,k_1 \le N k 0 , k 1 ≤ N , and assuming that the reduced basis U U U contains the vectors e k 0 , e k 1 \mathbf{e}_{k_0},\mathbf{e}_{k_1} e k 0 , e k 1 , standard calculations show that the two methods lead to the same approximate solution trajectory provided both models are well-defined and the same initial condition is considered. However, even in this particular case, the reduced order model (10) proposed in this work is naturally amenable to the hyper-reduction of the nonlinear terms, as it will be shown in § 3 . Applying hyper-reduction to the reduced order model of [9 ] in its plain form requires instead a factorization of the semi-metric tensor G ^ ( v ) \widehat{G}(\mathbf{v}) G ( v ) , at any v ∈ R N \mathbf{v} \in\mathbb{R}^{N} v ∈ R N , resulting in an online arithmetic complexity of O ( N 3 ) O(N^{3}) O ( N 3 ) .
Hyper-reduction of the OP-ROM
Although the introduction of oblique projections ensures that the resulting reduced order model is almost-metriplectic, the presence of nonlinear functions might hinder its computational efficiency. Indeed, evaluating (10) generally requires the reconstruction of the reduced state (so-called lifting to the full space) and thus a computational cost that may still depend on the full order dimension. In order to mitigate this issue, we combine gradient-preserving EIM [21 ] for the hyper-reduction of ∇ H r , ∇ S r \nabla H_r,\nabla S_r ∇ H r , ∇ S r , with Matrix DEIM (MDEIM) [18 ] for the hyper-reduction of J o p , G o p J_{\mathrm{op}},G_{\mathrm{op}} J op , G op , and construct oblique corrections from the hyper-reduced gradients. Under suitable sparsity assumptions, this allows for efficient evaluation while retaining the degeneracy conditions associated with the hyper-reduced functionals.
Gradient-preserving hyper-reduction
We summarize the method proposed in [21 Section 3] for the hyper-reduction of the gradient of X r X_r X r , with X ∈ { H , S } X \in\{H,S\} X ∈ { H , S } denoting either the Hamiltonian or the entropy function, and we refer to the aforementioned reference for further details.
First, for any μ ∈ P \mu\in\mathcal{P} μ ∈ P , we write X : R N → R X:\mathbb{R}^{N}\to\mathbb{R} X : R N → R as the sum of a quadratic function L X ( ⋅ ; μ ) : R N → R \mathcal{L}_X(\cdot;\mu):\mathbb{R}^{N}\to\mathbb{R} L X ( ⋅ ; μ ) : R N → R and a nonlinear term N X ( ⋅ ; μ ) : R N → R \mathcal{N}_X(\cdot;\mu):\mathbb{R}^{N}\to\mathbb{R} N X ( ⋅ ; μ ) : R N → R , namely
X ( v ; μ ) = L X ( v ; μ ) + N X ( v ; μ ) , ∀ v ∈ R N . X(\mathbf{v};\mu)=\mathcal{L}_X(\mathbf{v};\mu)+\mathcal{N}_X(\mathbf{v};\mu),\qquad\forall\,\mathbf{v}\in\mathbb{R}^{N}. X ( v ; μ ) = L X ( v ; μ ) + N X ( v ; μ ) , ∀ v ∈ R N .
As discussed in [21 Remark 3.1] , in most cases of interest, it is possible to decompose the nonlinear term as
N X ( v ; μ ) = a X ⊤ x ( v ; μ ) , ∀ v ∈ R N , (13) \mathcal{N}_X(\mathbf{v};\mu)=\mathbf{a}_X^\top\mathbf{x}(\mathbf{v};\mu),\qquad\forall\,\mathbf{v}\in\mathbb{R}^{N}, \tag*{(13)} N X ( v ; μ ) = a X ⊤ x ( v ; μ ) , ∀ v ∈ R N , (13)
where x : R N × P → R d \mathbf{x}:\mathbb{R}^{N}\times\mathcal{P}\to\mathbb{R}^{d} x : R N × P → R d , x ∈ { h , s } \mathbf{x}\in\{\mathbf{h},\mathbf{s}\} x ∈ { h , s } , is a smooth function, a X ∈ R d \mathbf{a}_X\in\mathbb{R}^{d} a X ∈ R d is a constant vector, and for some d ∈ N d\in\mathbb{N} d ∈ N that typically scales with N N N .
From the expression in (13) , the gradient of the nonlinear component of X X X reads ∇ N X ( v ; μ ) = D X ( v ; μ ) ⊤ a X \nabla\mathcal{N}_X(\mathbf{v};\mu)=D_X(\mathbf{v};\mu)^\top\mathbf{a}_X ∇ N X ( v ; μ ) = D X ( v ; μ ) ⊤ a X , where D X ( ⋅ ; μ ) : R N → R d × N D_X(\cdot;\mu):\mathbb{R}^{N}\to\mathbb{R}^{d\times N} D X ( ⋅ ; μ ) : R N → R d × N denotes the Jacobian matrix of x \mathbf{x} x . The idea of the method proposed in [21 ] is to exploit this decomposition to hyper-reduce the Jacobian matrix of h \mathbf{h} h mapped into the reduced space via EIM. More in details, consider the EIM oblique projection P X : = Ξ X ( P X ⊤ Ξ X ) − 1 P X ⊤ ∈ R d × d \mathbb{P}_X:=\Xi_X(\mathbb{P}_X^\top\Xi_X)^{-1}\mathbb{P}_X^\top\in\mathbb{R}^{d\times d} P X := Ξ X ( P X ⊤ Ξ X ) − 1 P X ⊤ ∈ R d × d , where Ξ X ∈ R d × m X \Xi_X\in\mathbb{R}^{d\times m_X} Ξ X ∈ R d × m X , m X ≤ d m_X\le d m X ≤ d , is the EIM basis obtained from the snapshots of D X ( Π U u ( t ; μ ) ) D_X(\Pi_U\mathbf{u}(t;\mu)) D X ( Π U u ( t ; μ )) and P X ∈ R d × m X \mathbb{P}_X\in\mathbb{R}^{d\times m_X} P X ∈ R d × m X is the interpolation matrix which can be obtained as in, e.g., [3 Algorithm 1] . The gradient of the nonlinear function N X \mathcal{N}_X N X mapped into the reduced space is then approximated as
U ⊤ ∇ N X ( v ; μ ) = U ⊤ D X ( v ; μ ) ⊤ a X ≈ U ⊤ D X ⊤ ( v ; μ ) P X ⊤ a X , ∀ v ∈ R N . U^\top\nabla\mathcal{N}_X(\mathbf{v};\mu)=U^\top D_X(\mathbf{v};\mu)^\top\mathbf{a}_X\approx U^\top D_X^\top(\mathbf{v};\mu)\mathbb{P}_X^\top\mathbf{a}_X,\qquad\forall\,\mathbf{v}\in\mathbb{R}^{N}. U ⊤ ∇ N X ( v ; μ ) = U ⊤ D X ( v ; μ ) ⊤ a X ≈ U ⊤ D X ⊤ ( v ; μ ) P X ⊤ a X , ∀ v ∈ R N .
This can be equivalently seen as an approximation of the nonlinear term N X \mathcal{N}_X N X in (13) which generates the hyper-reduced function
X h r ( w ; μ ) : = L X ( U w ; μ ) + N X , h r ( w ; μ ) , N X , h r ( w ; μ ) : = a X ⊤ P X x ( U w ; μ ) . (14) X_{\mathrm{hr}}(\mathbf{w};\mu):=\mathcal{L}_X(U\mathbf{w};\mu)+\mathcal{N}_{X,\mathrm{hr}}(\mathbf{w};\mu),\qquad\mathcal{N}_{X,\mathrm{hr}}(\mathbf{w};\mu):=\mathbf{a}_X^\top\mathbb{P}_X\mathbf{x}(U\mathbf{w};\mu). \tag*{(14)} X hr ( w ; μ ) := L X ( U w ; μ ) + N X , hr ( w ; μ ) , N X , hr ( w ; μ ) := a X ⊤ P X x ( U w ; μ ) . (14)
For the subsequent analysis, it is useful to introduce the quantity X E I M : R N × P → R X_{\mathrm{EIM}} : \mathbb{R}^{N} \times\mathcal{P} \to\mathbb{R} X EIM : R N × P → R , with X ∈ { H , S } X \in\{H,S\} X ∈ { H , S } , defined as X E I M ( v ; μ ) : = L X ( v ; μ ) + a X ⊤ P X x ( v ; μ ) X_{\mathrm{EIM}}(\mathbf{v};\mu) := \mathcal{L}_{X}(\mathbf{v};\mu) + \mathbf{a}_{X}^{\top}P_{X}\mathbf{x}(\mathbf{v};\mu) X EIM ( v ; μ ) := L X ( v ; μ ) + a X ⊤ P X x ( v ; μ ) . This allows us to write the hyper-reduced function as X h r = X E I M ∘ U X_{\mathrm{hr}} = X_{\mathrm{EIM}} \circ U X hr = X EIM ∘ U , and
∇ X h r ( w ; μ ) = U ⊤ ∇ X E I M ( U w ; μ ) , ∀ w ∈ R n . \nabla X_{\mathrm{hr}}(\mathbf{w};\mu) = U^{\top}\nabla X_{\mathrm{EIM}}(U\mathbf{w};\mu), \qquad\forall\ \mathbf{w} \in\mathbb{R}^{n}. ∇ X hr ( w ; μ ) = U ⊤ ∇ X EIM ( U w ; μ ) , ∀ w ∈ R n .
Remark 3.1. To assess the arithmetic complexity of evaluating ∇ N X , h r \nabla N_{X,\mathrm{hr}} ∇ N X , hr , with X ∈ { H , S } X \in\{H,S\} X ∈ { H , S } , assume that each entry of the vector-valued function x ( ⋅ ; μ ) : R N → R d \mathbf{x}(\cdot;\mu):\mathbb{R}^{N} \to\mathbb{R}^{d} x ( ⋅ ; μ ) : R N → R d in (3.1) depends on s X ≤ N s_{X} \le N s X ≤ N entries of its variable. Denote by a ~ X ∈ R m X \widetilde{\mathbf{a}}_{X} \in\mathbb{R}^{m_{X}} a X ∈ R m X the constant vector a ~ X : = ( P X ⊤ Ξ X ) − ⊤ Ξ X ⊤ a X \widetilde{\mathbf{a}}_{X} := (P_{X}^{\top}\Xi_{X})^{-\top}\Xi_{X}^{\top}\mathbf{a}_{X} a X := ( P X ⊤ Ξ X ) − ⊤ Ξ X ⊤ a X . This can be computed in, at most, O ( m X 3 ) + O ( m X d ) O(m_{X}^{3}) + O(m_{X}d) O ( m X 3 ) + O ( m X d ) operations. The gradient of the hyper-reduced nonlinear part of the function X X X reads
∇ N X , h r ( w ; μ ) = U ⊤ D X ⊤ ( U w ; μ ) P X a ~ X , ∀ w ∈ R n . \nabla N_{X,\mathrm{hr}}(\mathbf{w};\mu) = U^{\top}D_{X}^{\top}(U\mathbf{w};\mu)P_{X}\widetilde{\mathbf{a}}_{X}, \qquad\forall\ \mathbf{w} \in\mathbb{R}^{n}. ∇ N X , hr ( w ; μ ) = U ⊤ D X ⊤ ( U w ; μ ) P X a X , ∀ w ∈ R n .
Since P X = [ e i 1 ⋯ e i m X ] P_{X} = [\mathbf{e}_{i_{1}}\ \cdots\ \mathbf{e}_{i_{m_{X}}}] P X = [ e i 1 ⋯ e i m X ] , for some indices { i 1 , … , i m X } ⊂ { 1 , … , d } \{i_{1},\ldots,i_{m_{X}}\} \subset\{1,\ldots,d\} { i 1 , … , i m X } ⊂ { 1 , … , d } , it follows that
D X ⊤ ( U w ; μ ) P X = [ ∇ x i 1 ( U w ; μ ) ⋯ ∇ x i m X ( U w ; μ ) ] ∈ R N × m X . D_{X}^{\top}(U\mathbf{w};\mu)P_{X} = [\nabla\mathbf{x}_{i_{1}}(U\mathbf{w};\mu)\ \cdots\ \nabla\mathbf{x}_{i_{m_{X}}}(U\mathbf{w};\mu)] \in\mathbb{R}^{N \times m_{X}}. D X ⊤ ( U w ; μ ) P X = [ ∇ x i 1 ( U w ; μ ) ⋯ ∇ x i m X ( U w ; μ )] ∈ R N × m X .
Each ∇ x i j \nabla\mathbf{x}_{i_{j}} ∇ x i j requires at most s X s_{X} s X components of U w U\mathbf{w} U w to be reconstructed, and thus can be computed in O ( n s X ) O(ns_{X}) O ( n s X ) operations. Since this is done for m X m_{X} m X terms, the total online cost of this evaluation amounts to O ( n m X s X ) O(nm_{X}s_{X}) O ( n m X s X ) operations. Moreover, since each column of the above matrix has at most s X s_{X} s X non zero entries, the product U ⊤ ( D X ⊤ ( U w ; μ ) P X ) U^{\top}(D_{X}^{\top}(U\mathbf{w};\mu)P_{X}) U ⊤ ( D X ⊤ ( U w ; μ ) P X ) can be performed in O ( n m X s X ) O(nm_{X}s_{X}) O ( n m X s X ) operations as well. The final product with a ~ X \widetilde{\mathbf{a}}_{X} a X incurs in O ( n m X ) O(nm_{X}) O ( n m X ) extra operations. We also point out that, if the linear term of the gradient of X X X does not admit an affine or another computationally efficient decomposition, it can be included in the nonlinear term and undergo hyper-reduction.
Hyper-reduction of the Poisson and semi-metric operators
To preserve the metriplectic structure and degeneracy conditions while enabling evaluation at a cost independent of the full order dimension N N N , we replace the nonlinear operators in (10) with suitable hyper-reduced approximations, as follows. Let Ω X , c X \Omega_{X,c_{X}} Ω X , c X , with X ∈ { H E I M , S E I M } X \in\{H_{\mathrm{EIM}},S_{\mathrm{EIM}}\} X ∈ { H EIM , S EIM } be defined as in (8) . We introduce the sets
Ω E I M : = Ω H E I M , c H E I M ∩ Ω S E I M , c S E I M , Ω μ , h r E I M : = { w ∈ R n ∣ U w ∈ Ω μ E I M } . \Omega^{\mathrm{EIM}} := \Omega_{H_{\mathrm{EIM}},c_{H_{\mathrm{EIM}}}} \cap\Omega_{S_{\mathrm{EIM}},c_{S_{\mathrm{EIM}}}}, \qquad\Omega_{\mu,\mathrm{hr}}^{\mathrm{EIM}} := \{\mathbf{w} \in\mathbb{R}^{n} \mid U\mathbf{w} \in\Omega_{\mu}^{\mathrm{EIM}}\}. Ω EIM := Ω H EIM , c H EIM ∩ Ω S EIM , c S EIM , Ω μ , hr EIM := { w ∈ R n ∣ U w ∈ Ω μ EIM } .
We construct a hyper-reduced system, dubbed OP-HROM, of the form: given μ ∈ P \mu\in\mathcal{P} μ ∈ P and u h r ( 0 ; μ ) = P u 0 ( μ ) ∈ Ω μ , h r E I M \mathbf{u}_{\mathrm{hr}}(0;\mu) = P\mathbf{u}_{0}(\mu) \in\Omega_{\mu,\mathrm{hr}}^{\mathrm{EIM}} u hr ( 0 ; μ ) = P u 0 ( μ ) ∈ Ω μ , hr EIM , find u h r ( ⋅ ; μ ) ∈ C 1 ( T ; R n ) \mathbf{u}_{\mathrm{hr}}(\cdot;\mu) \in C^{1}(\mathcal{T};\mathbb{R}^{n}) u hr ( ⋅ ; μ ) ∈ C 1 ( T ; R n ) such that
u ˙ h r ( t ; μ ) = V o p , h r ( U u h r ( t ; μ ) ; μ ) , ∀ t ∈ T . (15) \dot{\mathbf{u}}_{\mathrm{hr}}(t;\mu) = V_{\mathrm{op,hr}}(U\mathbf{u}_{\mathrm{hr}}(t;\mu);\mu), \qquad\forall\ t \in\mathcal{T}. \tag*{(15)} u ˙ hr ( t ; μ ) = V op , hr ( U u hr ( t ; μ ) ; μ ) , ∀ t ∈ T . (15)
where
V o p , h r ( U u h r ; μ ) : = J o p , h r ( U u h r ; μ ) ∇ H h r ( u h r ; μ ) + G o p , h r ( U u h r ; μ ) ∇ S h r ( u h r ; μ ) . V_{\mathrm{op,hr}}(U\mathbf{u}_{\mathrm{hr}};\mu) := J_{\mathrm{op,hr}}(U\mathbf{u}_{\mathrm{hr}};\mu)\nabla H_{\mathrm{hr}}(\mathbf{u}_{\mathrm{hr}};\mu) + G_{\mathrm{op,hr}}(U\mathbf{u}_{\mathrm{hr}};\mu)\nabla S_{\mathrm{hr}}(\mathbf{u}_{\mathrm{hr}};\mu). V op , hr ( U u hr ; μ ) := J op , hr ( U u hr ; μ ) ∇ H hr ( u hr ; μ ) + G op , hr ( U u hr ; μ ) ∇ S hr ( u hr ; μ ) .
The operators H h r H_{\mathrm{hr}} H hr and S h r S_{\mathrm{hr}} S hr are given in (14) , while the hyper-reduced Poisson and semi-metric tensor are defined, for any v ∈ Ω μ E I M \mathbf{v} \in\Omega_{\mu}^{\mathrm{EIM}} v ∈ Ω μ EIM , as
J o p , h r ( v ; μ ) : = Q S E I M ( v ; μ ) J ‾ h r ( v ) Q S E I M ( v ; μ ) ⊤ , G o p , h r ( v ; μ ) : = Q H E I M ( v ; μ ) G ‾ h r ( v ) Q H E I M ( v ; μ ) ⊤ . (16) \begin{aligned}
J_{\mathrm{op,hr}}(\mathbf{v};\mu) &:= Q_{S_{\mathrm{EIM}}}(\mathbf{v};\mu)\overline{J}_{\mathrm{hr}}(\mathbf{v})Q_{S_{\mathrm{EIM}}}(\mathbf{v};\mu)^{\top},\\
G_{\mathrm{op,hr}}(\mathbf{v};\mu) &:= Q_{H_{\mathrm{EIM}}}(\mathbf{v};\mu)\overline{G}_{\mathrm{hr}}(\mathbf{v})Q_{H_{\mathrm{EIM}}}(\mathbf{v};\mu)^{\top}. \tag*{(16)}
\end{aligned} J op , hr ( v ; μ ) G op , hr ( v ; μ ) := Q S EIM ( v ; μ ) J hr ( v ) Q S EIM ( v ; μ ) ⊤ , := Q H EIM ( v ; μ ) G hr ( v ) Q H EIM ( v ; μ ) ⊤ . (16)
where Q S E I M , Q H E I M Q_{S_{\mathrm{EIM}}}, Q_{H_{\mathrm{EIM}}} Q S EIM , Q H EIM are as in (9) and J ‾ h r , G ‾ h r \overline{J}_{\mathrm{hr}},\overline{G}_{\mathrm{hr}} J hr , G hr are suitable approximations of the operators J ‾ , G ‾ \overline{J},\overline{G} J , G appearing in (11) . This section is devoted to the derivation of such approximations via MDEIM. We postpone to Remark 3.4 a discussion on the preservation of the properties of the two operators.
Let vec : R N × N → R N 2 \operatorname{vec} : \mathbb{R}^{N \times N} \to\mathbb{R}^{N^{2}} vec : R N × N → R N 2 be the vectorization operator that maps a matrix into the vector obtained by vertically stacking its columns, and let us denote by vec − 1 \operatorname{vec}^{-1} vec − 1 the inverse operation. The idea of MDEIM for the hyper-reduction of Y ^ \widehat{Y} Y , with Y ∈ { J , G } Y \in\{J,G\} Y ∈ { J , G } , is to apply standard DEIM to vec ( Y ^ ) \operatorname{vec}(\widehat{Y}) vec ( Y ) . More in details, let P Y : = Ψ Y ( P Y ⊤ Ψ Y ) − 1 P Y ⊤ ∈ R N 2 × N 2 \mathbb{P}_{Y}:=\Psi_{Y}(P_{Y}^{\top}\Psi_{Y})^{-1}P_{Y}^{\top}\in\mathbb{R}^{N^{2}\times N^{2}} P Y := Ψ Y ( P Y ⊤ Ψ Y ) − 1 P Y ⊤ ∈ R N 2 × N 2 be the EIM projection, where Ψ Y ∈ R N 2 × m Y \Psi_{Y}\in\mathbb{R}^{N^{2}\times m_{Y}} Ψ Y ∈ R N 2 × m Y , m Y ≪ N 2 m_{Y}\ll N^{2} m Y ≪ N 2 , is obtained from snapshots of vec ( Y ^ ( u ( t ; μ ) ) ) \operatorname{vec}(\widehat{Y}(u(t;\mu))) vec ( Y ( u ( t ; μ ))) , and P Y ∈ R N 2 × m Y P_{Y}\in\mathbb{R}^{N^{2}\times m_{Y}} P Y ∈ R N 2 × m Y is the EIM interpolation matrix. Then, Y ‾ h r \overline{Y}_{\mathrm{hr}} Y hr in (16) is defined, for Y ∈ { J , G } Y\in\{J,G\} Y ∈ { J , G } , as
Y ‾ h r ( v ) = U ⊤ vec − 1 ( P Y vec ( Y ^ ( v ) ) ) U , ∀ v ∈ R N . (17) \overline{Y}_{\mathrm{hr}}(\mathbf{v})=U^{\top}\operatorname{vec}^{-1}\left(\mathbb{P}_{Y}\operatorname{vec}(\widehat{Y}(\mathbf{v}))\right)U,\qquad\forall\ \mathbf{v}\in\mathbb{R}^{N}. \tag*{(17)} Y hr ( v ) = U ⊤ vec − 1 ( P Y vec ( Y ( v )) ) U , ∀ v ∈ R N . (17)
The expression above is computationally as expensive to evaluate as the full order operator, even at a reduced state U w U\mathbf{w} U w . Therefore, its implementation should exploit an affine decomposition, as discussed in the proof of Lemma 3.2 for J o p , h r J_{\mathrm{op,hr}} J op , hr . An analogous result holds for G o p , h r G_{\mathrm{op,hr}} G op , hr .
Lemma 3.2. Assume that each entry of J ^ \widehat{J} J depends on s J ≤ N s_{J}\leq N s J ≤ N components of its variable and that each entry of s ( ⋅ ; μ ) \mathbf{s}(\cdot;\mu) s ( ⋅ ; μ ) in (13) depends on s s ≤ N s_{s}\leq N s s ≤ N components of its variable. If c S E I M ( μ ) ∈ Range ( U ) \mathbf{c}_{\mathrm{SEIM}}(\mu)\in\operatorname{Range}(U) c SEIM ( μ ) ∈ Range ( U ) , the assembly of the hyper-reduced operator J o p , h r ( U w ; μ ) J_{\mathrm{op,hr}}(U\mathbf{w};\mu) J op , hr ( U w ; μ ) defined in (16) requires O ( n J N 2 ) + O ( m S 3 ) + O ( m S d ) + O ( m J 3 ) + O ( m S d ) O(n_{J}N^{2})+O(m_{S}^{3})+O(m_{S}d)+O(m_{J}^{3})+O(m_{S}d) O ( n J N 2 ) + O ( m S 3 ) + O ( m S d ) + O ( m J 3 ) + O ( m S d ) operations independent of μ \mu μ and w \mathbf{w} w , O ( n N ) O(nN) O ( n N ) operations per instance of the parameter μ \mu μ , and O ( m J n 2 ) + O ( m J n s J ) + O ( m J 2 ) + O ( n 2 ) + O ( n m S s s ) O(m_{J}n^{2})+O(m_{J}ns_{J})+O(m_{J}^{2})+O(n^{2})+O(nm_{S}s_{s}) O ( m J n 2 ) + O ( m J n s J ) + O ( m J 2 ) + O ( n 2 ) + O ( n m S s s ) operations per instance of the vector w ∈ R n \mathbf{w}\in\mathbb{R}^{n} w ∈ R n .
Proof. Let w ∈ R n \mathbf{w}\in\mathbb{R}^{n} w ∈ R n and μ ∈ P \mu\in\mathcal{P} μ ∈ P be fixed. We distinguish two computational costs for the evaluation of J o p , h r J_{\mathrm{op,hr}} J op , hr : one associated with the assembly and evaluation of Π S E I M , c S E I M ( U w ; μ ) \Pi_{\mathrm{SEIM},\mathbf{c}_{\mathrm{SEIM}}}(U\mathbf{w};\mu) Π SEIM , c SEIM ( U w ; μ ) , and the other with J ‾ h r ( U w ) \overline{J}_{\mathrm{hr}}(U\mathbf{w}) J hr ( U w ) . The arithmetic complexity of the remaining matrix-matrix multiplication is at most O ( n 2 ) O(n^{2}) O ( n 2 ) .
Regarding the cost of the evaluation of Π S E I M , c S E I M ( U w ; μ ) \Pi_{\mathrm{SEIM},\mathbf{c}_{\mathrm{SEIM}}}(U\mathbf{w};\mu) Π SEIM , c SEIM ( U w ; μ ) in (9) , P = U ⊤ M ∈ R n × N P=U^{\top}M\in\mathbb{R}^{n\times N} P = U ⊤ M ∈ R n × N can be computed once with O ( n N 2 ) O(nN^{2}) O ( n N 2 ) operations, while the product P c S E I M ( μ ) ∈ R n P\mathbf{c}_{\mathrm{SEIM}}(\mu)\in\mathbb{R}^{n} P c SEIM ( μ ) ∈ R n needs to be computed for every instance of the parameter μ \mu μ at a cost of O ( n N ) O(nN) O ( n N ) operations. Moreover, as shown in Remark 3.1, the cost of the evaluation of ∇ S h r ( w ; μ ) = U ⊤ ∇ S E I M ( U w ; μ ) \nabla S_{\mathrm{hr}}(\mathbf{w};\mu)=U^{\top}\nabla S_{\mathrm{EIM}}(U\mathbf{w};\mu) ∇ S hr ( w ; μ ) = U ⊤ ∇ S EIM ( U w ; μ ) is O ( n m S s s ) O(nm_{S}s_{s}) O ( n m S s s ) for each instance of w \mathbf{w} w plus O ( m S 3 ) + O ( m S d ) O(m_{S}^{3})+O(m_{S}d) O ( m S 3 ) + O ( m S d ) operations that can be done once. Moreover, since by hypothesis c S E I M ( μ ) ∈ Range ( U ) \mathbf{c}_{\mathrm{SEIM}}(\mu)\in\operatorname{Range}(U) c SEIM ( μ ) ∈ Range ( U ) , there exists ξ ( μ ) ∈ R n \boldsymbol{\xi}(\mu)\in\mathbb{R}^{n} ξ ( μ ) ∈ R n such that c S E I M ( μ ) = U ξ ( μ ) \mathbf{c}_{\mathrm{SEIM}}(\mu)=U\boldsymbol{\xi}(\mu) c SEIM ( μ ) = U ξ ( μ ) . Then, it holds κ S E I M ( U w ; μ ) = ξ ( μ ) ⊤ ∇ S h r ( w ; μ ) \kappa_{\mathrm{SEIM}}(U\mathbf{w};\mu)=\boldsymbol{\xi}(\mu)^{\top}\nabla S_{\mathrm{hr}}(\mathbf{w};\mu) κ SEIM ( U w ; μ ) = ξ ( μ ) ⊤ ∇ S hr ( w ; μ ) , where ξ ( μ ) ∈ R n \boldsymbol{\xi}(\mu)\in\mathbb{R}^{n} ξ ( μ ) ∈ R n can be computed once per each value of the parameter μ ∈ P \mu\in\mathcal{P} μ ∈ P at an arithmetic complexity of O ( n N ) O(nN) O ( n N ) .
For the evaluation of J ‾ h r \overline{J}_{\mathrm{hr}} J hr defined in (17) we introduce the vector-valued function η : R N → R m J \boldsymbol{\eta}:\mathbb{R}^{N}\to\mathbb{R}^{m_{J}} η : R N → R m J defined as η ( v ) : = ( P J ⊤ Ψ J ) − 1 P J ⊤ vec ( J ^ ( v ) ) \boldsymbol{\eta}(\mathbf{v}):=(P_{J}^{\top}\Psi_{J})^{-1}P_{J}^{\top}\operatorname{vec}(\widehat{J}(\mathbf{v})) η ( v ) := ( P J ⊤ Ψ J ) − 1 P J ⊤ vec ( J ( v )) , so that
J ‾ h r ( U w ) = ∑ i = 1 m J η i ( U w ) U ⊤ J ^ i U , (18) \overline{J}_{\mathrm{hr}}(U\mathbf{w})=\sum_{i=1}^{m_{J}}\eta_{i}(U\mathbf{w})U^{\top}\widehat{J}_{i}U, \tag*{(18)} J hr ( U w ) = i = 1 ∑ m J η i ( U w ) U ⊤ J i U , (18)
where J ^ i : = vec − 1 ( ( Ψ J ) : , i ) \widehat{J}_{i}:=\operatorname{vec}^{-1}((\Psi_{J})_{:,i}) J i := vec − 1 (( Ψ J ) : , i ) denotes the i i i th column of the matrix Ψ J \Psi_{J} Ψ J , for any 1 ≤ i ≤ m J 1\leq i\leq m_{J} 1 ≤ i ≤ m J . This representation is more amenable to implementation since its evaluation has a computational cost that does not depend on the full dimension N N N . Indeed, for the evaluation of η ( U w ) \boldsymbol{\eta}(U\mathbf{w}) η ( U w ) , one exploits the sparsity of J ^ \widehat{J} J so that the product P J ⊤ vec ( J ^ ( U w ) ) P_{J}^{\top}\operatorname{vec}(\widehat{J}(U\mathbf{w})) P J ⊤ vec ( J ( U w )) can be evaluated, for each w ∈ R n \mathbf{w}\in\mathbb{R}^{n} w ∈ R n , in O ( n m J s J ) O(nm_{J}s_{J}) O ( n m J s J ) . Since the matrix ( P J ⊤ Ψ J ) − 1 ∈ R m J × m J (P_{J}^{\top}\Psi_{J})^{-1}\in\mathbb{R}^{m_{J}\times m_{J}} ( P J ⊤ Ψ J ) − 1 ∈ R m J × m J can be precomputed offline, the evaluation of η ( U w ) \boldsymbol{\eta}(U\mathbf{w}) η ( U w ) has arithmetic complexity O ( m J 2 ) + O ( m J n s J ) O(m_{J}^{2})+O(m_{J}ns_{J}) O ( m J 2 ) + O ( m J n s J ) . Moreover, since the matrices J ^ i \widehat{J}_{i} J i are constant, the term U ⊤ J ^ i U U^{\top}\widehat{J}_{i}U U ⊤ J i U can be computed, for every 1 ≤ i ≤ m J 1\leq i\leq m_{J} 1 ≤ i ≤ m J , at a cost of O ( N n 2 ) O(Nn^{2}) O ( N n 2 ) operations. Given η ( U w ) \boldsymbol{\eta}(U\mathbf{w}) η ( U w ) , the cost to assemble J ‾ h r ( U w ) \overline{J}_{\mathrm{hr}}(U\mathbf{w}) J hr ( U w ) for any instance of w \mathbf{w} w , is then O ( m J n 2 ) O(m_{J}n^{2}) O ( m J n 2 ) .
Note that Lemma 3.2 tells us that, assuming suitable sparsity of the operators J ^ \widehat{J} J , G ^ \widehat{G} G , s \mathbf{s} s , and h \mathbf{h} h , the hyper-reduced dynamical system (15) can be solved online at a cost that is independent of N N N .
Properties of the hyper-reduced model
Owing to the structure of the hyper-reduced operators Q H E I M \mathcal{Q}_{\mathrm{HEIM}} Q HEIM and Q S E I M \mathcal{Q}_{\mathrm{SEIM}} Q SEIM , and of J ‾ h r \overline{J}_{\mathrm{hr}} J hr , G ‾ h r \overline{G}_{\mathrm{hr}} G hr , the hyper-reduced model (15) is (almost-)metriplectic, as shown in the next result, which is the analogous of Lemma 2.3.
Lemma 3.3. Let μ ∈ P \mu\in\mathcal{P} μ ∈ P be fixed and assume that the hyper-reduced model (3.3) is well-posed in Ω μ , h r E I M \Omega_{\mu,\mathrm{hr}}^{\mathrm{EIM}} Ω μ , hr EIM in the sense of Remark 2.2. If c X ( μ ) ∈ Range ( U ) c_X(\mu) \in\operatorname{Range}(U) c X ( μ ) ∈ Range ( U ) , for X ∈ { H E I M , S E I M } X \in\{\mathrm{HEIM},\mathrm{SEIM}\} X ∈ { HEIM , SEIM } , and G ‾ h r \overline{G}_{\mathrm{hr}} G hr defined in (3.5) is positive semi-definite then problem (3.3) is almost-metriplectic with respect to the hyper-reduced Hamiltonian and entropy functions.
Moreover, if J ‾ h r ∈ R n × n \overline{J}_{\mathrm{hr}} \in\mathbb{R}^{n \times n} J hr ∈ R n × n defined in (3.5) is constant in R N \mathbb{R}^{N} R N , then J o p , h r ( ⋅ ; μ ) J_{\mathrm{op,hr}}(\cdot;\mu) J op , hr ( ⋅ ; μ ) is a Poisson operator in Ω S E I M , c S E I M \Omega_{\mathrm{SEIM},c_{\mathrm{SEIM}}} Ω SEIM , c SEIM , and thus (3.3) is metriplectic.
Proof. By taking the EIM basis Ψ J \Psi_J Ψ J via truncated SVD of the snapshot matrix obtained from vec ( J ‾ ( u ( t ; μ ) ) ) \operatorname{vec}(\overline{J}(u(t;\mu))) vec ( J ( u ( t ; μ ))) under variation of t t t and μ \mu μ , its columns are linear combination of the columns of the snapshot matrix. Since each of these columns are vectorization of skew-symmetric matrices, the same holds for the columns of Ψ J \Psi_J Ψ J , so that J ‾ h r \overline{J}_{\mathrm{hr}} J hr is skew-symmetric. A similar reasoning allows to deduce the symmetry of the operator G ‾ h r \overline{G}_{\mathrm{hr}} G hr , and hence of G o p , h r G_{\mathrm{op,hr}} G op , hr .
Concerning the degeneracy conditions, one can resort to Lemma 2.1, item (iii), which gives
J o p , h r ( U w ; μ ) ∇ S h r ( w ; μ ) = G o p , h r ( U w ; μ ) ∇ H h r ( w ; μ ) = 0 , ∀ w ∈ Ω μ , h r E I M . J_{\mathrm{op,hr}}(Uw;\mu)\nabla S_{\mathrm{hr}}(w;\mu)=G_{\mathrm{op,hr}}(Uw;\mu)\nabla H_{\mathrm{hr}}(w;\mu)=0,\qquad\forall w\in\Omega_{\mu,\mathrm{hr}}^{\mathrm{EIM}}. J op , hr ( U w ; μ ) ∇ S hr ( w ; μ ) = G op , hr ( U w ; μ ) ∇ H hr ( w ; μ ) = 0 , ∀ w ∈ Ω μ , hr EIM .
This implies that the hyper-reduced model is almost-metriplectic in Ω μ , h r E I M \Omega_{\mu,\mathrm{hr}}^{\mathrm{EIM}} Ω μ , hr EIM .
The fact that problem (3.3) is genuinely metriplectic when J ‾ h r \overline{J}_{\mathrm{hr}} J hr is constant, follows by the same steps as in the proof of Lemma 2.3.
The result above establishes that problem (3.3) is almost-metriplectic. As such, the energy is preserved and entropy is produced. However, this refers to the hyper-reduced approximations of the energy and entropy functionals and it does not ensure that the exact functionals evaluated at the hyper-reduced trajectories will satisfy the conservation/dissipation properties.
Remark 3.4. In general, there is no guarantee that the operator G ‾ h r \overline{G}_{\mathrm{hr}} G hr obtained via MDEIM approximation of G ‾ \overline{G} G will preserve positive (semi)-definiteness. In [18 Section 3.5] , it is suggested that the positivity of the reduced operator can be enforced by solving a convex optimization problem. However, in addition to the extra computational cost of solving such problem online, the approximation error of the resulting operator G ‾ h r \overline{G}_{\mathrm{hr}} G hr is not proven to be bounded by the EIM approximation error. As an alternative to the aforementioned strategy, we propose to project the reduced – not necessarily positive semi-definite – matrix G ‾ h r \overline{G}_{\mathrm{hr}} G hr defined in (3.5) onto the positive semi-definite matrices. To this aim, let us consider the spectral decomposition of G ‾ h r = W diag ( λ i ) W T \overline{G}_{\mathrm{hr}}=W\operatorname{diag}(\lambda_i)W^{\mathsf{T}} G hr = W diag ( λ i ) W T , then
G ‾ h r + : = W diag ( max { 0 , λ i } ) W T , \overline{G}_{\mathrm{hr}}^{+}:=W\operatorname{diag}(\max\{0,\lambda_i\})W^{\mathsf{T}}, G hr + := W diag ( max { 0 , λ i }) W T ,
is its nearest positive semi-definite matrix in the Frobenius norm. The hyper-reduction error is bounded, for all v ∈ R N v\in\mathbb{R}^{N} v ∈ R N , as
∥ G ‾ h r + ( v ) − G ‾ ( v ) ∥ 2 ≤ ∥ G ‾ h r + ( v ) − G ‾ ( v ) ∥ F ≤ ∥ G ‾ h r ( v ) − G ‾ ( v ) ∥ F ≤ λ min − 1 ( M ) ∥ ( P T T Ψ G ) − 1 ∥ 2 ∥ ( I N 2 − Ψ G ( P T T Ψ G ) − 1 P T T ) vec ( G ‾ ( v ) ) ∥ 2 . \begin{aligned}
\left\|\overline{G}_{\mathrm{hr}}^{+}(v)-\overline{G}(v)\right\|_{2}\leq\left\|\overline{G}_{\mathrm{hr}}^{+}(v)-\overline{G}(v)\right\|_{F}\leq\left\|\overline{G}_{\mathrm{hr}}(v)-\overline{G}(v)\right\|_{F} \\
&\leq\lambda_{\min}^{-1}(M)\left\|\left(P_{\mathcal{T}}^{\mathsf{T}}\Psi_G\right)^{-1}\right\|_{2}\left\|\left(I_{N^{2}}-\Psi_G\left(P_{\mathcal{T}}^{\mathsf{T}}\Psi_G\right)^{-1}P_{\mathcal{T}}^{\mathsf{T}}\right)\operatorname{vec}(\overline{G}(v))\right\|_{2}.
\end{aligned} G hr + ( v ) − G ( v ) 2 ≤ G hr + ( v ) − G ( v ) F ≤ G hr ( v ) − G ( v ) F ≤ λ m i n − 1 ( M ) ( P T T Ψ G ) − 1 2 ( I N 2 − Ψ G ( P T T Ψ G ) − 1 P T T ) vec ( G ( v )) 2 .
and then one can take G o p , h r G_{\mathrm{op,hr}} G op , hr in (3.4) as
G o p , h r ( v ; μ ) = Q H E I M ( v ; μ ) G ‾ h r + ( v ) Q H E I M ( v ; μ ) T , ∀ v ∈ R N . G_{\mathrm{op,hr}}(v;\mu)=Q_{\mathrm{HEIM}}(v;\mu)\overline{G}_{\mathrm{hr}}^{+}(v)Q_{\mathrm{HEIM}}(v;\mu)^{\mathsf{T}},\qquad\forall v\in\mathbb{R}^{N}. G op , hr ( v ; μ ) = Q HEIM ( v ; μ ) G hr + ( v ) Q HEIM ( v ; μ ) T , ∀ v ∈ R N .
A priori error estimate of the hyper-reduced model
Denote by ∥ ⋅ ∥ M \|\cdot\|_{M} ∥ ⋅ ∥ M the vector/operator norm induced by the symmetric positive-definite matrix M ∈ R N × N M\in\mathbb{R}^{N\times N} M ∈ R N × N , by ∥ ⋅ ∥ 2 \|\cdot\|_{2} ∥ ⋅ ∥ 2 the Euclidean norm and by ⟨ ⋅ , ⋅ ⟩ 2 \langle\cdot,\cdot\rangle_{2} ⟨ ⋅ , ⋅ ⟩ 2 the corresponding inner product. We establish a priori error estimates in the L 2 L^{2} L 2 -norm over the space T × P \mathcal{T}\times\mathcal{P} T × P , using the M M M -norm in the state variable, and this will be denoted as ∥ ⋅ ∥ L M 2 ( T × P ) \|\cdot\|_{L^{2}_{M}(\mathcal{T}\times\mathcal{P})} ∥ ⋅ ∥ L M 2 ( T × P ) .
Theorem 3.5. For any μ ∈ P \mu\in\mathcal{P} μ ∈ P , let ( u ( ⋅ ; μ ) , j ( ⋅ ; μ ) , g ( ⋅ ; μ ) ) (\mathbf{u}(\cdot;\mu),\mathbf{j}(\cdot;\mu),\mathbf{g}(\cdot;\mu)) ( u ( ⋅ ; μ ) , j ( ⋅ ; μ ) , g ( ⋅ ; μ )) be solution of the full order model (1.3) coupled with the mutual degeneracy conditions (1.2). Let u h r ( ⋅ ; μ ) \mathbf{u}_{\mathrm{hr}}(\cdot;\mu) u hr ( ⋅ ; μ ) be solution of the hyper-reduced model (3.3) with initial condition u h r ( 0 ; μ ) = P u ( 0 ; μ ) \mathbf{u}_{\mathrm{hr}}(0;\mu)=P\mathbf{u}(0;\mu) u hr ( 0 ; μ ) = P u ( 0 ; μ ) . Assume that there exist c H E I M ( μ ) , c S E I M ( μ ) ∈ Range ( U ) \mathbf{c}_{\mathrm{HEIM}}(\mu),\mathbf{c}_{\mathrm{SEIM}}(\mu)\in\operatorname{Range}(U) c HEIM ( μ ) , c SEIM ( μ ) ∈ Range ( U ) such that u ( t ; μ ) ∈ Ω μ E I M \mathbf{u}(t;\mu)\in\Omega_{\mu}^{\mathrm{EIM}} u ( t ; μ ) ∈ Ω μ EIM , and that u h r ( t ; μ ) ∈ Ω μ , h r E I M \mathbf{u}_{\mathrm{hr}}(t;\mu)\in\Omega_{\mu,\mathrm{hr}}^{\mathrm{EIM}} u hr ( t ; μ ) ∈ Ω μ , hr EIM , for all t ∈ T t\in\mathcal{T} t ∈ T .
Assume that there exist α J , α G , β H , β S ≥ 0 \alpha_J,\alpha_G,\beta_H,\beta_S\geq0 α J , α G , β H , β S ≥ 0 , independent of n n n , such that, for any t ∈ T t\in\mathcal{T} t ∈ T and μ ∈ P \mu\in\mathcal{P} μ ∈ P ,
∥ M − 1 J ^ ( u ( t ; μ ) ) ∥ M ≤ α J , ∥ M − 1 G ^ ( u ( t ; μ ) ) ∥ M ≤ α G , (19) \left\|M^{-1}\widehat{J}(\mathbf{u}(t;\mu))\right\|_M\leq\alpha_J,\qquad\left\|M^{-1}\widehat{G}(\mathbf{u}(t;\mu))\right\|_M\leq\alpha_G, \tag*{(19)} M − 1 J ( u ( t ; μ )) M ≤ α J , M − 1 G ( u ( t ; μ )) M ≤ α G , (19) and
∥ c H E I M ( μ ) ∥ M max X ∈ { H , S } ∥ M − 1 ∇ X E I M ( u ( t ; μ ) ) ∥ M ∣ κ H E I M ( u ( t ; μ ) ; μ ) ∣ ≤ β H , \frac{\left\|\mathbf{c}_{\mathrm{HEIM}}(\mu)\right\|_M\max_{X\in\{H,S\}}\left\|M^{-1}\nabla X_{\mathrm{EIM}}(\mathbf{u}(t;\mu))\right\|_M}{\left|\kappa_{\mathrm{HEIM}}(\mathbf{u}(t;\mu);\mu)\right|}\leq\beta_H, ∣ κ HEIM ( u ( t ; μ ) ; μ ) ∣ ∥ c HEIM ( μ ) ∥ M max X ∈ { H , S } M − 1 ∇ X EIM ( u ( t ; μ )) M ≤ β H , ∥ c S E I M ( μ ) ∥ M ∥ M − 1 ∇ H E I M ( u ( t ; μ ) ) ∥ M ∣ κ S E I M ( u ( t ; μ ) ; μ ) ∣ ≤ β S . (20) \frac{\left\|\mathbf{c}_{\mathrm{SEIM}}(\mu)\right\|_M\left\|M^{-1}\nabla H_{\mathrm{EIM}}(\mathbf{u}(t;\mu))\right\|_M}{\left|\kappa_{\mathrm{SEIM}}(\mathbf{u}(t;\mu);\mu)\right|}\leq\beta_S. \tag*{(20)} ∣ κ SEIM ( u ( t ; μ ) ; μ ) ∣ ∥ c SEIM ( μ ) ∥ M M − 1 ∇ H EIM ( u ( t ; μ )) M ≤ β S . (20) Let e : = P u − u h r \mathbf{e}:=P\mathbf{u}-\mathbf{u}_{\mathrm{hr}} e := P u − u hr . Assume that there exist constants C e ∈ R C_e\in\mathbb{R} C e ∈ R and C u ≥ 0 C_u\geq0 C u ≥ 0 such that, for every μ ∈ P \mu\in\mathcal{P} μ ∈ P , and almost every t ∈ T t\in\mathcal{T} t ∈ T , it holds
⟨ e ( t ; μ ) , V o p , h r ( u ( t ; μ ) ; μ ) − V o p , h r ( U u h r ( t ; μ ) ; μ ) ⟩ 2 ≤ C e ∥ e ( t ; μ ) ∥ 2 2 + C u ∥ ( I N − Π U ) u ( t ; μ ) ∥ M ∥ e ( t ; μ ) ∥ 2 . (21) \left\langle\mathbf{e}(t;\mu),V_{\mathrm{op,hr}}(\mathbf{u}(t;\mu);\mu)-V_{\mathrm{op,hr}}(U\mathbf{u}_{\mathrm{hr}}(t;\mu);\mu)\right\rangle_2\leq C_e\left\|\mathbf{e}(t;\mu)\right\|_2^2+C_u\left\|(I_N-\Pi_U)\mathbf{u}(t;\mu)\right\|_M\left\|\mathbf{e}(t;\mu)\right\|_2. \tag*{(21)} ⟨ e ( t ; μ ) , V op , hr ( u ( t ; μ ) ; μ ) − V op , hr ( U u hr ( t ; μ ) ; μ ) ⟩ 2 ≤ C e ∥ e ( t ; μ ) ∥ 2 2 + C u ∥ ( I N − Π U ) u ( t ; μ ) ∥ M ∥ e ( t ; μ ) ∥ 2 . (21) Finally, assume there exists C h r > 0 C_{\mathrm{hr}}>0 C hr > 0 , independent of n n n , such that, for every μ ∈ P \mu\in\mathcal{P} μ ∈ P and almost every t ∈ T t\in\mathcal{T} t ∈ T , it holds
max X ∈ { H , S } ∥ U T ∇ X E I M ( u ( t , μ ) ; μ ) ∥ 2 ≤ C h r λ min ( M ) , (22) \max_{X\in\{H,S\}}\left\|U^{\mathsf{T}}\nabla X_{\mathrm{EIM}}(\mathbf{u}(t,\mu);\mu)\right\|_2\leq C_{\mathrm{hr}}\lambda_{\min}(M), \tag*{(22)} X ∈ { H , S } max U T ∇ X EIM ( u ( t , μ ) ; μ ) 2 ≤ C hr λ m i n ( M ) , (22) where λ min ( M ) \lambda_{\min}(M) λ m i n ( M ) denotes the minimum eigenvalue of the matrix M M M .
Then, the error between the full order and hyper-reduced solutions satisfies
∥ u − U u h r ∥ L M 2 ( T × P ) 2 ≤ ( 1 + 7 C ( T , C e ) C u 2 ) ∥ ( I N − Π U ) u ∥ L M 2 ( T × P ) 2 + 7 C ( T , C e ) ( C H 2 ∥ ( I N − Π U ) j ∥ L M 2 ( T × P ) 2 + C S 2 ∥ ( I N − Π U ) g ∥ L M 2 ( T × P ) 2 ) + ∑ X ∈ { H , S } C X 2 ∥ M − 1 D X ( u ) T ( I d − P X T ) a X ∥ L M 2 ( T × P ) 2 + ∑ Y ∈ { J , G } C Y , h r 2 ∥ ( I N 2 − Ψ Y Ψ Y T ) vec ( Y ^ ( u ) ) ∥ L 2 ( T × P ) 2 , \begin{aligned}
\left\|\mathbf{u}-U\mathbf{u}_{\mathrm{hr}}\right\|_{L_M^2(\mathcal{T}\times\mathcal{P})}^2
\leq{}&\left(1+7C(\mathcal{T},C_e)C_u^2\right)\left\|(I_N-\Pi_U)\mathbf{u}\right\|_{L_M^2(\mathcal{T}\times\mathcal{P})}^2\\
&+7C(\mathcal{T},C_e)\left(C_H^2\left\|(I_N-\Pi_U)\mathbf{j}\right\|_{L_M^2(\mathcal{T}\times\mathcal{P})}^2+C_S^2\left\|(I_N-\Pi_U)\mathbf{g}\right\|_{L_M^2(\mathcal{T}\times\mathcal{P})}^2\right)\\
&+\sum_{X\in\{H,S\}}C_X^2\left\|M^{-1}D_X(\mathbf{u})^{\mathsf{T}}(I_d-P_X^{\mathsf{T}})\mathbf{a}_X\right\|_{L_M^2(\mathcal{T}\times\mathcal{P})}^2\\
&+\sum_{Y\in\{J,G\}}C_{Y,\mathrm{hr}}^2\left\|(I_{N^2}-\Psi_Y\Psi_Y^{\mathsf{T}})\operatorname{vec}(\widehat{Y}(\mathbf{u}))\right\|_{L^2(\mathcal{T}\times\mathcal{P})}^2,
\end{aligned} ∥ u − U u hr ∥ L M 2 ( T × P ) 2 ≤ ( 1 + 7 C ( T , C e ) C u 2 ) ∥ ( I N − Π U ) u ∥ L M 2 ( T × P ) 2 + 7 C ( T , C e ) ( C H 2 ∥ ( I N − Π U ) j ∥ L M 2 ( T × P ) 2 + C S 2 ∥ ( I N − Π U ) g ∥ L M 2 ( T × P ) 2 ) + X ∈ { H , S } ∑ C X 2 M − 1 D X ( u ) T ( I d − P X T ) a X L M 2 ( T × P ) 2 + Y ∈ { J , G } ∑ C Y , hr 2 ( I N 2 − Ψ Y Ψ Y T ) vec ( Y ( u )) L 2 ( T × P ) 2 , where the constants C H , C S , C J , h r , C G , h r ≥ 0 C_H,C_S,C_{J,\mathrm{hr}},C_{G,\mathrm{hr}}\geq0 C H , C S , C J , hr , C G , hr ≥ 0 and C ( T , C e ) C(\mathcal{T},C_e) C ( T , C e ) are defined as
C H : = α J + α G β H ( 2 + β H ) , C S : = α G + 2 α J β S , C_H:=\alpha_J+\alpha_G\beta_H(2+\beta_H),\qquad C_S:=\alpha_G+2\alpha_J\beta_S, C H := α J + α G β H ( 2 + β H ) , C S := α G + 2 α J β S , C J , h r : = C h r ( 1 + 2 β S ) ∥ ( P J T Ψ J ) − 1 ∥ 2 , C G , h r : = C h r ( 1 + β H ( 2 + β H ) ) ∥ ( P G T Ψ G ) − 1 ∥ 2 , C_{J,\mathrm{hr}}:=C_{\mathrm{hr}}(1+2\beta_S)\left\|(P_J^{\mathsf{T}}\Psi_J)^{-1}\right\|_2,\qquad C_{G,\mathrm{hr}}:=C_{\mathrm{hr}}(1+\beta_H(2+\beta_H))\left\|(P_G^{\mathsf{T}}\Psi_G)^{-1}\right\|_2, C J , hr := C hr ( 1 + 2 β S ) ( P J T Ψ J ) − 1 2 , C G , hr := C hr ( 1 + β H ( 2 + β H )) ( P G T Ψ G ) − 1 2 , C ( T , C e ) : = { e 2 C e T − 1 4 C e 2 − T 2 C e , C e ≠ 0 , T 2 2 , C e = 0. C(\mathcal{T},C_e):=
\begin{cases}
\dfrac{e^{2C_eT}-1}{4C_e^2}-\dfrac{T}{2C_e}, & C_e\ne0,\\
\dfrac{T^2}{2}, & C_e=0.
\end{cases} C ( T , C e ) := ⎩ ⎨ ⎧ 4 C e 2 e 2 C e T − 1 − 2 C e T , 2 T 2 , C e = 0 , C e = 0. Proof. Let us decompose the model order reduction error as
u ( t ; μ ) − U u h r ( t ; μ ) = ( u ( t ; μ ) − U P u ( t ; μ ) ) + U ( P u ( t ; μ ) − u h r ( t ; μ ) ) \mathbf{u}(t;\mu)-U\mathbf{u}_{\mathrm{hr}}(t;\mu)=(\mathbf{u}(t;\mu)-UP\mathbf{u}(t;\mu))+U(P\mathbf{u}(t;\mu)-\mathbf{u}_{\mathrm{hr}}(t;\mu)) u ( t ; μ ) − U u hr ( t ; μ ) = ( u ( t ; μ ) − U P u ( t ; μ )) + U ( P u ( t ; μ ) − u hr ( t ; μ )) = : Π U ⊥ u ( t ; μ ) + U e ( t ; μ ) . =: \Pi_U^\perp\mathbf{u}(t;\mu)+U\mathbf{e}(t;\mu). =: Π U ⊥ u ( t ; μ ) + U e ( t ; μ ) . where Π U ⊥ : = I N − Π U \Pi_U^\perp:=I_N-\Pi_U Π U ⊥ := I N − Π U . Since the projection error is M M M -orthogonal to Range ( U ) \operatorname{Range}(U) Range ( U ) ,
∥ u ( t ; μ ) − U u h r ( t ; μ ) ∥ M 2 = ∥ Π U ⊥ u ( t ; μ ) ∥ M 2 + ∥ e ( t ; μ ) ∥ 2 2 . (23) \left\|\mathbf{u}(t;\mu)-U\mathbf{u}_{\mathrm{hr}}(t;\mu)\right\|_M^2=\left\|\Pi_U^\perp\mathbf{u}(t;\mu)\right\|_M^2+\left\|\mathbf{e}(t;\mu)\right\|_2^2. \tag*{(23)} ∥ u ( t ; μ ) − U u hr ( t ; μ ) ∥ M 2 = Π U ⊥ u ( t ; μ ) M 2 + ∥ e ( t ; μ ) ∥ 2 2 . (23)
Taking the time derivative of e \mathbf{e} e gives
d d t e ( t ; μ ) = U ⊤ J ^ ( u ( t ; μ ) ) j ( t ; μ ) + U ⊤ G ^ ( u ( t ; μ ) ) g ( t ; μ ) − V o p , h r ( U u h r ( t ; μ ) ; μ ) . \frac{d}{dt}\mathbf{e}(t;\mu)=U^{\top}\widehat{J}(\mathbf{u}(t;\mu))\mathbf{j}(t;\mu)+U^{\top}\widehat{G}(\mathbf{u}(t;\mu))\mathbf{g}(t;\mu)-V_{\mathrm{op,hr}}(U\mathbf{u}_{\mathrm{hr}}(t;\mu);\mu). d t d e ( t ; μ ) = U ⊤ J ( u ( t ; μ )) j ( t ; μ ) + U ⊤ G ( u ( t ; μ )) g ( t ; μ ) − V op , hr ( U u hr ( t ; μ ) ; μ ) .
By adding and subtracting the velocity field V o p , h r V_{\mathrm{op,hr}} V op , hr of the hyper-reduced model evaluated at the full-order state u ( t ; μ ) \mathbf{u}(t;\mu) u ( t ; μ ) , we get
d d t e ( t ; μ ) = U ⊤ J ^ ( u ( t ; μ ) ) j ( t ; μ ) + U ⊤ G ^ ( u ( t ; μ ) ) g ( t ; μ ) − V o p , h r ( u ( t ; μ ) ; μ ) ⏟ = : A + V o p , h r ( u ( t ; μ ) ; μ ) − V o p , h r ( U u h r ( t ; μ ) ; μ ) . (24) \frac{d}{dt}\mathbf{e}(t;\mu)=\underbrace{U^{\top}\widehat{J}(\mathbf{u}(t;\mu))\mathbf{j}(t;\mu)+U^{\top}\widehat{G}(\mathbf{u}(t;\mu))\mathbf{g}(t;\mu)-V_{\mathrm{op,hr}}(\mathbf{u}(t;\mu);\mu)}_{=:A}+V_{\mathrm{op,hr}}(\mathbf{u}(t;\mu);\mu)-V_{\mathrm{op,hr}}(U\mathbf{u}_{\mathrm{hr}}(t;\mu);\mu). \tag*{(24)} d t d e ( t ; μ ) = =: A U ⊤ J ( u ( t ; μ )) j ( t ; μ ) + U ⊤ G ( u ( t ; μ )) g ( t ; μ ) − V op , hr ( u ( t ; μ ) ; μ ) + V op , hr ( u ( t ; μ ) ; μ ) − V op , hr ( U u hr ( t ; μ ) ; μ ) . (24)
Taking the inner product with e \mathbf{e} e , and using hypothesis (21) yields
1 2 d d t ∥ e ( t ; μ ) ∥ 2 2 = ⟨ e ( t ; μ ) , A ⟩ + ⟨ e ( t ; μ ) , V o p , h r ( u ( t ; μ ) ; μ ) − V o p , h r ( U u h r ( t ; μ ) ; μ ) ⟩ 2 ≤ ∥ e ( t ; μ ) ∥ 2 ( ∥ A ∥ 2 + C e ∥ e ( t ; μ ) ∥ 2 + C u ∥ Π U ⊥ u ( t ; μ ) ∥ M ) . (25) \begin{aligned}
\frac{1}{2}\frac{d}{dt}\|\mathbf{e}(t;\mu)\|_{2}^{2}=\langle\mathbf{e}(t;\mu),A\rangle+\langle\mathbf{e}(t;\mu),V_{\mathrm{op,hr}}(\mathbf{u}(t;\mu);\mu)-V_{\mathrm{op,hr}}(U\mathbf{u}_{\mathrm{hr}}(t;\mu);\mu)\rangle_{2} \\
&\leq\|\mathbf{e}(t;\mu)\|_{2}\left(\|A\|_{2}+C_{e}\|\mathbf{e}(t;\mu)\|_{2}+C_{u}\|\Pi_{U}^{\perp}\mathbf{u}(t;\mu)\|_{M}\right). \tag*{(25)}
\end{aligned} 2 1 d t d ∥ e ( t ; μ ) ∥ 2 2 = ⟨ e ( t ; μ ) , A ⟩ + ⟨ e ( t ; μ ) , V op , hr ( u ( t ; μ ) ; μ ) − V op , hr ( U u hr ( t ; μ ) ; μ ) ⟩ 2 ≤ ∥ e ( t ; μ ) ∥ 2 ( ∥ A ∥ 2 + C e ∥ e ( t ; μ ) ∥ 2 + C u ∥ Π U ⊥ u ( t ; μ ) ∥ M ) . (25)
Next, we estimate the term A A A defined in (24) distinguishing a part A J A_{J} A J associated with the Hamiltonian dynamics and a part A G A_{G} A G associated with the gradient flow.
Let us introduce the quantities
j E I M ( t ; μ ) : = M − 1 ∇ H E I M ( u ( t , μ ) ; μ ) , g E I M ( t ; μ ) : = M − 1 ∇ S E I M ( u ( t , μ ) ; μ ) . \mathbf{j}_{\mathrm{EIM}}(t;\mu):=M^{-1}\nabla H_{\mathrm{EIM}}(\mathbf{u}(t,\mu);\mu),\qquad\mathbf{g}_{\mathrm{EIM}}(t;\mu):=M^{-1}\nabla S_{\mathrm{EIM}}(\mathbf{u}(t,\mu);\mu). j EIM ( t ; μ ) := M − 1 ∇ H EIM ( u ( t , μ ) ; μ ) , g EIM ( t ; μ ) := M − 1 ∇ S EIM ( u ( t , μ ) ; μ ) .
The idea is to separate the error in the approximation introduced by the hyper-reduction of the gradient of H H H and S S S and the one associated with the hyper-reduction of the operators J J J and G G G .
In the remaining of the proof, whenever clear from the context, we omit the dependence on ( t ; μ ) (t;\mu) ( t ; μ ) . We start by adding and subtracting in the expression for A A A the term ∑ Y ∈ { J , G } ( Y ‾ ( u ) − Y ‾ h r ( u ) ) P y E I M \sum_{Y\in\{J,G\}}(\overline{Y}(\mathbf{u})-\overline{Y}_{\mathrm{hr}}(\mathbf{u}))P\mathbf{y}_{\mathrm{EIM}} ∑ Y ∈ { J , G } ( Y ( u ) − Y hr ( u )) P y EIM , where y E I M \mathbf{y}_{\mathrm{EIM}} y EIM equals either j E I M \mathbf{j}_{\mathrm{EIM}} j EIM or g E I M \mathbf{g}_{\mathrm{EIM}} g EIM according to the value of Y Y Y . This results in
A = ∑ Y ∈ { J , G } ( U ⊤ Y ^ ( u ) ( y − Π U y E I M ) + ( Y ‾ ( u ) − Y ‾ h r ( u ) ) P y E I M + A Y ) A=\sum_{Y\in\{J,G\}}\left(U^{\top}\widehat{Y}(\mathbf{u})(\mathbf{y}-\Pi_{U}\mathbf{y}_{\mathrm{EIM}})+(\overline{Y}(\mathbf{u})-\overline{Y}_{\mathrm{hr}}(\mathbf{u}))P\mathbf{y}_{\mathrm{EIM}}+A_{Y}\right) A = Y ∈ { J , G } ∑ ( U ⊤ Y ( u ) ( y − Π U y EIM ) + ( Y ( u ) − Y hr ( u )) P y EIM + A Y )
where A Y : = ( Y ‾ h r ( u ) − Y o p , h r ( u ; μ ) ) P y E I M A_{Y}:=(\overline{Y}_{\mathrm{hr}}(\mathbf{u})-Y_{\mathrm{op,hr}}(\mathbf{u};\mu))P\mathbf{y}_{\mathrm{EIM}} A Y := ( Y hr ( u ) − Y op , hr ( u ; μ )) P y EIM . First, one can observe that ∥ P v ∥ 2 ≤ ∥ v ∥ M \|Pv\|_{2}\leq\|v\|_{M} ∥ P v ∥ 2 ≤ ∥ v ∥ M for any v ∈ R N \mathbf{v}\in\mathbb{R}^{N} v ∈ R N , with the equality whenever v ∈ Range ( U ) \mathbf{v}\in\operatorname{Range}(U) v ∈ Range ( U ) . Then, the inequalities in (19) give, for Y ∈ { J , G } Y\in\{J,G\} Y ∈ { J , G } and v = y − Π U y E I M \mathbf{v}=\mathbf{y}-\Pi_{U}\mathbf{y}_{\mathrm{EIM}} v = y − Π U y EIM ,
∥ P M − 1 Y ^ ( u ) v ∥ 2 ≤ ∥ M − 1 Y ^ ( u ) v ∥ M ≤ α Y ∥ v ∥ M . (26) \|PM^{-1}\widehat{Y}(\mathbf{u})\mathbf{v}\|_{2}\leq\|M^{-1}\widehat{Y}(\mathbf{u})\mathbf{v}\|_{M}\leq\alpha_{Y}\|\mathbf{v}\|_{M}. \tag*{(26)} ∥ P M − 1 Y ( u ) v ∥ 2 ≤ ∥ M − 1 Y ( u ) v ∥ M ≤ α Y ∥ v ∥ M . (26)
Bound on A J A_{J} A J . By definition of J o p , h r J_{\mathrm{op,hr}} J op , hr , skew-symmetry of J ‾ h r \overline{J}_{\mathrm{hr}} J hr , and (2.3), yields
J ‾ h r ( u ) − J ‾ o p , h r ( u ; μ ) = Π S E I M , c S E I M ( u ; μ ) J ‾ h r ( u ) − ( Π S E I M , c S E I M ( u ; μ ) J ‾ h r ( u ) ) ⊤ \overline{J}_{\mathrm{hr}}(\mathbf{u})-\overline{J}_{\mathrm{op,hr}}(\mathbf{u};\mu)=\Pi_{S_{\mathrm{EIM}},c_{\mathrm{SEIM}}}(\mathbf{u};\mu)\overline{J}_{\mathrm{hr}}(\mathbf{u})-\left(\Pi_{S_{\mathrm{EIM}},c_{\mathrm{SEIM}}}(\mathbf{u};\mu)\overline{J}_{\mathrm{hr}}(\mathbf{u})\right)^{\top} J hr ( u ) − J op , hr ( u ; μ ) = Π S EIM , c SEIM ( u ; μ ) J hr ( u ) − ( Π S EIM , c SEIM ( u ; μ ) J hr ( u ) ) ⊤
and
Π S E I M , c S E I M ( u ; μ ) J ‾ h r ( u ) = κ S E I M − 1 ( u ; μ ) U ⊤ M c S E I M ( μ ) ∇ S E I M ( u ; μ ) ⊤ U J ‾ h r ( u ) . \Pi_{S_{\mathrm{EIM}},c_{\mathrm{SEIM}}}(\mathbf{u};\mu)\overline{J}_{\mathrm{hr}}(\mathbf{u})=\kappa_{S_{\mathrm{EIM}}}^{-1}(\mathbf{u};\mu)U^{\top}Mc_{\mathrm{SEIM}}(\mu)\nabla S_{\mathrm{EIM}}(\mathbf{u};\mu)^{\top}U\overline{J}_{\mathrm{hr}}(\mathbf{u}). Π S EIM , c SEIM ( u ; μ ) J hr ( u ) = κ S EIM − 1 ( u ; μ ) U ⊤ M c SEIM ( μ ) ∇ S EIM ( u ; μ ) ⊤ U J hr ( u ) .
Therefore, the skew-symmetry of J ‾ h r \overline{J}_{\mathrm{hr}} J hr yields
∥ A J ∥ 2 = ∥ ( J ‾ h r ( u ) − J ‾ o p , h r ( u ; μ ) ) P j E I M ∥ 2 ≤ 2 ∥ P c S E I M ( μ ) ∥ 2 ∥ P j E I M ∥ 2 ∣ κ S E I M ( u ; μ ) ∣ ∥ J ‾ h r ( u ) P g E I M ∥ 2 . \|A_{J}\|_{2}=\|(\overline{J}_{\mathrm{hr}}(\mathbf{u})-\overline{J}_{\mathrm{op,hr}}(\mathbf{u};\mu))P\mathbf{j}_{\mathrm{EIM}}\|_{2}
\leq2\frac{\|P c_{S_{\mathrm{EIM}}}(\mu)\|_{2}\|P\mathbf{j}_{\mathrm{EIM}}\|_{2}}{|\kappa_{S_{\mathrm{EIM}}}(\mathbf{u};\mu)|}\|\overline{J}_{\mathrm{hr}}(\mathbf{u})P\mathbf{g}_{\mathrm{EIM}}\|_{2}. ∥ A J ∥ 2 = ∥ ( J hr ( u ) − J op , hr ( u ; μ )) P j EIM ∥ 2 ≤ 2 ∣ κ S EIM ( u ; μ ) ∣ ∥ P c S EIM ( μ ) ∥ 2 ∥ P j EIM ∥ 2 ∥ J hr ( u ) P g EIM ∥ 2 .
The degeneracy conditions (1.2) applied to the solution of the full order model give J ^ ( u ) g = 0 \widehat{J}(\mathbf{u})\mathbf{g}=0 J ( u ) g = 0 , and this implies J ^ ( u ) P g E I M = − U ⊤ J ^ ( u ) ( g − Π U g E I M ) \widehat{J}(\mathbf{u})P\mathbf{g}_{\mathrm{EIM}}=-U^{\top}\widehat{J}(\mathbf{u})(\mathbf{g}-\Pi_{U}\mathbf{g}_{\mathrm{EIM}}) J ( u ) P g EIM = − U ⊤ J ( u ) ( g − Π U g EIM ) . Hence,
∥ J ‾ h r ( u ) P g E I M ∥ 2 ≤ ∥ U ⊤ J ^ ( u ) ( g − Π U g E I M ) ∥ 2 + ∥ ( J ‾ ( u ) − J ‾ h r ( u ; μ ) ) P g E I M ∥ 2 . \|\overline{J}_{\mathrm{hr}}(\mathbf{u})P\mathbf{g}_{\mathrm{EIM}}\|_{2}\leq\|U^{\top}\widehat{J}(\mathbf{u})(\mathbf{g}-\Pi_{U}\mathbf{g}_{\mathrm{EIM}})\|_{2}+\|(\overline{J}(\mathbf{u})-\overline{J}_{\mathrm{hr}}(\mathbf{u};\mu))P\mathbf{g}_{\mathrm{EIM}}\|_{2}. ∥ J hr ( u ) P g EIM ∥ 2 ≤ ∥ U ⊤ J ( u ) ( g − Π U g EIM ) ∥ 2 + ∥ ( J ( u ) − J hr ( u ; μ )) P g EIM ∥ 2 .
This bound, together with assumption (3.8), gives
∥ A J ∥ 2 ≤ 2 β S ∥ J ‾ h r ( u ) P G E I M ∥ 2 ≤ 2 β S ( α J ∥ g − Π U g E I M ∥ M + ∥ ( J ‾ ( u ) − J ‾ h r ( u ; μ ) ) P G E I M ∥ 2 ) . (27) \lVert A_J\rVert_2 \le2\beta_S\lVert\overline{J}_{\mathrm{hr}}(\mathbf{u})P_{\mathrm{GEIM}}\rVert_2
\le2\beta_S\left(\alpha_J\lVert\mathbf{g}-\Pi_{\mathbf{U}}\mathbf{g}_{\mathrm{EIM}}\rVert_M+\lVert(\overline{J}(\mathbf{u})-\overline{J}_{\mathrm{hr}}(\mathbf{u};\mu))P_{\mathrm{GEIM}}\rVert_2\right). \tag*{(27)} ∥ A J ∥ 2 ≤ 2 β S ∥ J hr ( u ) P GEIM ∥ 2 ≤ 2 β S ( α J ∥ g − Π U g EIM ∥ M + ∥( J ( u ) − J hr ( u ; μ )) P GEIM ∥ 2 ) . (27)
Bound on A G A_G A G . Observe that, by definition of G o p , h r G_{\mathrm{op,hr}} G op , hr and (2.3), it holds
G ‾ h r ( u ) − G o p , h r ( u ; μ ) = Π H E I M , c H E I M ( u ; μ ) G ‾ h r ( u ) + ( Π H E I M , c H E I M ( u ; μ ) G ‾ h r ( u ) ) T − Π H E I M , c H E I M ( u ; μ ) G ‾ h r ( u ) Π H E I M , c H E I M ( u ; μ ) T \overline{G}_{\mathrm{hr}}(\mathbf{u})-G_{\mathrm{op,hr}}(\mathbf{u};\mu)=\Pi_{H_{\mathrm{EIM}},c_{H_{\mathrm{EIM}}}}(\mathbf{u};\mu)\overline{G}_{\mathrm{hr}}(\mathbf{u})+\left(\Pi_{H_{\mathrm{EIM}},c_{H_{\mathrm{EIM}}}}(\mathbf{u};\mu)\overline{G}_{\mathrm{hr}}(\mathbf{u})\right)^{\mathsf{T}}
-\Pi_{H_{\mathrm{EIM}},c_{H_{\mathrm{EIM}}}}(\mathbf{u};\mu)\overline{G}_{\mathrm{hr}}(\mathbf{u})\Pi_{H_{\mathrm{EIM}},c_{H_{\mathrm{EIM}}}}(\mathbf{u};\mu)^{\mathsf{T}} G hr ( u ) − G op , hr ( u ; μ ) = Π H EIM , c H EIM ( u ; μ ) G hr ( u ) + ( Π H EIM , c H EIM ( u ; μ ) G hr ( u ) ) T − Π H EIM , c H EIM ( u ; μ ) G hr ( u ) Π H EIM , c H EIM ( u ; μ ) T
where each term can be further expressed using
Π H E I M , c H E I M ( u ; μ ) G ‾ h r ( u ) = κ H E I M − 1 ( u ; μ ) P c H E I M ( μ ) ( P J E I M ) T G ‾ h r ( u ) . \Pi_{H_{\mathrm{EIM}},c_{H_{\mathrm{EIM}}}}(\mathbf{u};\mu)\overline{G}_{\mathrm{hr}}(\mathbf{u})=\kappa_{H_{\mathrm{EIM}}}^{-1}(\mathbf{u};\mu)P_{c_{H_{\mathrm{EIM}}}}(\mu)(P_{J_{\mathrm{EIM}}})^{\mathsf{T}}\overline{G}_{\mathrm{hr}}(\mathbf{u}). Π H EIM , c H EIM ( u ; μ ) G hr ( u ) = κ H EIM − 1 ( u ; μ ) P c H EIM ( μ ) ( P J EIM ) T G hr ( u ) .
Using the two expressions above, one can find the bound
∥ A G ∥ 2 ≤ ∥ P c H E I M ( μ ) ∥ 2 ∥ P G E I M ∥ 2 ∣ κ H E I M ( u ; μ ) ∣ ( 2 + ∥ P c H E I M ( μ ) ∥ 2 ∥ P J E I M ∥ 2 ∣ κ H E I M ( u ; μ ) ∣ ) ∥ G ‾ h r ( u ) P J E I M ∥ 2 . \lVert A_G\rVert_2\le\frac{\lVert P_{c_{H_{\mathrm{EIM}}}}(\mu)\rVert_2\lVert P_{\mathrm{GEIM}}\rVert_2}{\lvert\kappa_{H_{\mathrm{EIM}}}(\mathbf{u};\mu)\rvert}
\left(2+\frac{\lVert P_{c_{H_{\mathrm{EIM}}}}(\mu)\rVert_2\lVert P_{J_{\mathrm{EIM}}}\rVert_2}{\lvert\kappa_{H_{\mathrm{EIM}}}(\mathbf{u};\mu)\rvert}\right)
\lVert\overline{G}_{\mathrm{hr}}(\mathbf{u})P_{J_{\mathrm{EIM}}}\rVert_2. ∥ A G ∥ 2 ≤ ∣ κ H EIM ( u ; μ )∣ ∥ P c H EIM ( μ ) ∥ 2 ∥ P GEIM ∥ 2 ( 2 + ∣ κ H EIM ( u ; μ )∣ ∥ P c H EIM ( μ ) ∥ 2 ∥ P J EIM ∥ 2 ) ∥ G hr ( u ) P J EIM ∥ 2 .
The fact that ∥ P v ∥ 2 ≤ ∥ v ∥ M \lVert P\mathbf{v}\rVert_2\le\lVert\mathbf{v}\rVert_M ∥ P v ∥ 2 ≤ ∥ v ∥ M for any v ∈ R N \mathbf{v}\in\mathbb{R}^N v ∈ R N , together with assumption (3.8), gives
∥ A G ∥ 2 = ∥ ( G ‾ h r ( u ) − G o p , h r ( u ; μ ) ) P G E I M ∥ 2 ≤ β H ( 2 + β H ) ∥ G ‾ h r ( u ) P J E I M ∥ 2 , \lVert A_G\rVert_2=\lVert(\overline{G}_{\mathrm{hr}}(\mathbf{u})-G_{\mathrm{op,hr}}(\mathbf{u};\mu))P_{\mathrm{GEIM}}\rVert_2\le\beta_H(2+\beta_H)\lVert\overline{G}_{\mathrm{hr}}(\mathbf{u})P_{J_{\mathrm{EIM}}}\rVert_2, ∥ A G ∥ 2 = ∥( G hr ( u ) − G op , hr ( u ; μ )) P GEIM ∥ 2 ≤ β H ( 2 + β H ) ∥ G hr ( u ) P J EIM ∥ 2 ,
where the last term can be bounded in the same way as the corresponding term ∥ J ‾ h r ( u ) P G E I M ∥ 2 \lVert\overline{J}_{\mathrm{hr}}(\mathbf{u})P_{\mathrm{GEIM}}\rVert_2 ∥ J hr ( u ) P GEIM ∥ 2 , yielding
∥ A G ∥ 2 ≤ β H ( 2 + β H ) ( α G ∥ j − Π U j E I M ∥ M + ∥ ( G ‾ ( u ) − G ‾ h r ( u ; μ ) ) P J E I M ∥ 2 ) . (28) \lVert A_G\rVert_2\le\beta_H(2+\beta_H)\left(\alpha_G\lVert\mathbf{j}-\Pi_{\mathbf{U}}\mathbf{j}_{\mathrm{EIM}}\rVert_M+\lVert(\overline{G}(\mathbf{u})-\overline{G}_{\mathrm{hr}}(\mathbf{u};\mu))P_{J_{\mathrm{EIM}}}\rVert_2\right). \tag*{(28)} ∥ A G ∥ 2 ≤ β H ( 2 + β H ) ( α G ∥ j − Π U j EIM ∥ M + ∥( G ( u ) − G hr ( u ; μ )) P J EIM ∥ 2 ) . (28)
Putting together (3.14), the bound for A J A_J A J in (3.15), the bound for A G A_G A G in (3.16), and assumption (3.10), one gets
∥ A ∥ 2 ≤ C H ∥ j − Π U j E I M ∥ M + C S ∥ g − Π U g E I M ∥ M + C h r λ min ( M ) ( 1 + 2 β S ) ∥ J ‾ ( u ) − J ‾ h r ( u ; μ ) ∥ 2 + ( 1 + β H ( 2 + β H ) ) ∥ G ‾ ( u ) − G ‾ h r ( u ; μ ) ∥ 2 . (29) \begin{aligned}
\lVert A\rVert_2\le{}&C_H\lVert\mathbf{j}-\Pi_{\mathbf{U}}\mathbf{j}_{\mathrm{EIM}}\rVert_M+C_S\lVert\mathbf{g}-\Pi_{\mathbf{U}}\mathbf{g}_{\mathrm{EIM}}\rVert_M\\
&+C_{\mathrm{hr}}\lambda_{\min}(M)(1+2\beta_S)\lVert\overline{J}(\mathbf{u})-\overline{J}_{\mathrm{hr}}(\mathbf{u};\mu)\rVert_2\\
&+(1+\beta_H(2+\beta_H))\lVert\overline{G}(\mathbf{u})-\overline{G}_{\mathrm{hr}}(\mathbf{u};\mu)\rVert_2. \tag*{(29)}
\end{aligned} ∥ A ∥ 2 ≤ C H ∥ j − Π U j EIM ∥ M + C S ∥ g − Π U g EIM ∥ M + C hr λ m i n ( M ) ( 1 + 2 β S ) ∥ J ( u ) − J hr ( u ; μ ) ∥ 2 + ( 1 + β H ( 2 + β H )) ∥ G ( u ) − G hr ( u ; μ ) ∥ 2 . (29)
The error in the hyper-reduction of the operator Y ‾ \overline{Y} Y , for Y ∈ { J , G } Y\in\{J,G\} Y ∈ { J , G } , can be bounded as
∥ Y ‾ ( u ) − Y ‾ h r ( u ; μ ) ∥ 2 ≤ ∥ U ∥ 2 2 ∥ Y ^ ( u ) − vec − 1 ( P Y vec ( Y ^ ( u ) ) ) ∥ 2 ≤ λ min − 1 ( M ) ∥ P Y ∥ 2 ∥ ( I N 2 − Ψ Y Ψ Y T ) vec ( Y ^ ( u ) ) ∥ 2 , \lVert\overline{Y}(\mathbf{u})-\overline{Y}_{\mathrm{hr}}(\mathbf{u};\mu)\rVert_2\le\lVert U\rVert_2^2\lVert\widehat{Y}(\mathbf{u})-\operatorname{vec}^{-1}(P_Y\operatorname{vec}(\widehat{Y}(\mathbf{u})))\rVert_2
\le\lambda_{\min}^{-1}(M)\lVert P_Y\rVert_2\lVert(I_{N^2}-\Psi_Y\Psi_Y^{\mathsf{T}})\operatorname{vec}(\widehat{Y}(\mathbf{u}))\rVert_2, ∥ Y ( u ) − Y hr ( u ; μ ) ∥ 2 ≤ ∥ U ∥ 2 2 ∥ Y ( u ) − vec − 1 ( P Y vec ( Y ( u ))) ∥ 2 ≤ λ m i n − 1 ( M ) ∥ P Y ∥ 2 ∥( I N 2 − Ψ Y Ψ Y T ) vec ( Y ( u )) ∥ 2 ,
while the EIM error on the hyper-reduction of the Hamiltonian and entropy gradients enters the first two terms of (3.17) as follows
∥ j − Π U j E I M ∥ M ≤ ∥ Π U ⊥ j ∥ M + ∥ U T ( ∇ H ( u ; μ ) − ∇ H E I M ( u ; μ ) ) ∥ 2 ≤ ∥ Π U ⊥ j ∥ M + ∥ M − 1 D H ( u ; μ ) T ( I d − P H T ) a H ∥ M . \lVert\mathbf{j}-\Pi_{\mathbf{U}}\mathbf{j}_{\mathrm{EIM}}\rVert_M\le\lVert\Pi_{\mathbf{U}}^{\perp}\mathbf{j}\rVert_M+\lVert U^{\mathsf{T}}(\nabla H(\mathbf{u};\mu)-\nabla H_{\mathrm{EIM}}(\mathbf{u};\mu))\rVert_2
\le\lVert\Pi_{\mathbf{U}}^{\perp}\mathbf{j}\rVert_M+\lVert M^{-1}D_H(\mathbf{u};\mu)^{\mathsf{T}}(I_d-P_H^{\mathsf{T}})\mathbf{a}_H\rVert_M. ∥ j − Π U j EIM ∥ M ≤ ∥ Π U ⊥ j ∥ M + ∥ U T ( ∇ H ( u ; μ ) − ∇ H EIM ( u ; μ )) ∥ 2 ≤ ∥ Π U ⊥ j ∥ M + ∥ M − 1 D H ( u ; μ ) T ( I d − P H T ) a H ∥ M .
This implies that the bound for the 2-norm of A A A in (3.17) can be further written as
∥ A ∥ 2 ≤ C H ∥ Π U ⊥ j ∥ M + C S ∥ Π U ⊥ g ∥ M + C H e H , E I M ( t ; μ ) + C S e S , E I M ( t ; μ ) + C h r ( 1 + 2 β S ) ∥ ( P J T Ψ J ) − 1 ∥ 2 e J , h r ( t ; μ ) + C h r ( 1 + β H ( 2 + β H ) ) ∥ ( P G T Ψ G ) − 1 ∥ 2 e G , h r ( t ; μ ) . (30) \begin{aligned}
\lVert A\rVert_2\le{}&C_H\lVert\Pi_{\mathbf{U}}^{\perp}\mathbf{j}\rVert_M+C_S\lVert\Pi_{\mathbf{U}}^{\perp}\mathbf{g}\rVert_M+C_H e_{H,\mathrm{EIM}}(t;\mu)+C_S e_{S,\mathrm{EIM}}(t;\mu)\\
&+C_{\mathrm{hr}}(1+2\beta_S)\lVert(P_J^{\mathsf{T}}\Psi_J)^{-1}\rVert_2 e_{J,\mathrm{hr}}(t;\mu)\\
&+C_{\mathrm{hr}}(1+\beta_H(2+\beta_H))\lVert(P_G^{\mathsf{T}}\Psi_G)^{-1}\rVert_2 e_{G,\mathrm{hr}}(t;\mu). \tag*{(30)}
\end{aligned} ∥ A ∥ 2 ≤ C H ∥ Π U ⊥ j ∥ M + C S ∥ Π U ⊥ g ∥ M + C H e H , EIM ( t ; μ ) + C S e S , EIM ( t ; μ ) + C hr ( 1 + 2 β S ) ∥( P J T Ψ J ) − 1 ∥ 2 e J , hr ( t ; μ ) + C hr ( 1 + β H ( 2 + β H )) ∥( P G T Ψ G ) − 1 ∥ 2 e G , hr ( t ; μ ) . (30)
where
e X , E I M ( t ; μ ) : = ∥ M − 1 D X ( u ( t ; μ ) ) ⊤ ( I d − P X ⊤ ) a X ∥ M , X ∈ { H , S } , e_{X,\mathrm{EIM}}(t;\mu) := \left\|M^{-1}D_X(u(t;\mu))^\top(I_d-P_X^\top)a_X\right\|_M,\qquad X\in\{H,S\}, e X , EIM ( t ; μ ) := M − 1 D X ( u ( t ; μ ) ) ⊤ ( I d − P X ⊤ ) a X M , X ∈ { H , S } ,
e Y , h r ( t ; μ ) : = ∥ ( I N 2 − Ψ Y Ψ Y ⊤ ) vec ( Y ^ ( u ( t ; μ ) ) ) ∥ 2 , Y ∈ { J , G } . e_{Y,\mathrm{hr}}(t;\mu) := \left\|(I_{N^2}-\Psi_Y\Psi_Y^\top)\operatorname{vec}(\widehat{Y}(u(t;\mu)))\right\|_2,\qquad Y\in\{J,G\}. e Y , hr ( t ; μ ) := ( I N 2 − Ψ Y Ψ Y ⊤ ) vec ( Y ( u ( t ; μ ))) 2 , Y ∈ { J , G } .
Inserting the bound (3.18) in the expression for the time derivative of the norm of the error in (3.13) gives
d d t ∥ e ( t ; μ ) ∥ 2 ≤ ( e p ( t ; μ ) + e h r ( t ; μ ) ) + C e ∥ e ( t ; μ ) ∥ 2 , \frac{d}{dt}\|e(t;\mu)\|_2\leq\left(e_p(t;\mu)+e_{\mathrm{hr}}(t;\mu)\right)+C_e\|e(t;\mu)\|_2, d t d ∥ e ( t ; μ ) ∥ 2 ≤ ( e p ( t ; μ ) + e hr ( t ; μ ) ) + C e ∥ e ( t ; μ ) ∥ 2 ,
where
e p : = C u ∥ Π U ⊥ u ( t ; μ ) ∥ M + C H ∥ Π U ⊥ j ∥ M + C S ∥ Π U ⊥ g ∥ M , e_p:=C_u\|\Pi_U^\perp u(t;\mu)\|_M+C_H\|\Pi_U^\perp j\|_M+C_S\|\Pi_U^\perp g\|_M, e p := C u ∥ Π U ⊥ u ( t ; μ ) ∥ M + C H ∥ Π U ⊥ j ∥ M + C S ∥ Π U ⊥ g ∥ M ,
e h r : = C H e H , E I M + C S e S , E I M + C J , h r e J , h r + C G , h r e G , h r . (31) e_{\mathrm{hr}}:=C_H e_{H,\mathrm{EIM}}+C_S e_{S,\mathrm{EIM}}+C_{J,\mathrm{hr}}e_{J,\mathrm{hr}}+C_{G,\mathrm{hr}}e_{G,\mathrm{hr}}. \tag*{(31)} e hr := C H e H , EIM + C S e S , EIM + C J , hr e J , hr + C G , hr e G , hr . (31)
Since e ( 0 ; μ ) = 0 e(0;\mu)=0 e ( 0 ; μ ) = 0 , the Grönwall inequality together with the Cauchy-Schwarz inequality yields
∫ 0 T ∥ e ( t ; μ ) ∥ 2 2 d t ≤ ∫ 0 T ( ∫ 0 t e C e ( t − s ) ( e p ( s ; μ ) + e h r ( s ; μ ) ) d s ) 2 d t ≤ ∫ 0 T ( ∫ 0 t e 2 C e ( t − s ) d s ) ( ∫ 0 t ( e p ( s ; μ ) + e h r ( s ; μ ) ) 2 d s ) d t ≤ C ( T , C e ) ∫ 0 T ( e p ( t ; μ ) + e h r ( t ; μ ) ) 2 d t . (32) \begin{aligned}
\int_0^T\|e(t;\mu)\|_2^2\,dt\leq\int_0^T\left(\int_0^t e^{C_e(t-s)}\left(e_p(s;\mu)+e_{\mathrm{hr}}(s;\mu)\right)\,ds\right)^2dt \\
&\leq\int_0^T\left(\int_0^t e^{2C_e(t-s)}\,ds\right)\left(\int_0^t\left(e_p(s;\mu)+e_{\mathrm{hr}}(s;\mu)\right)^2\,ds\right)\,dt \\
&\leq C(T,C_e)\int_0^T\left(e_p(t;\mu)+e_{\mathrm{hr}}(t;\mu)\right)^2\,dt. \tag*{(32)}
\end{aligned} ∫ 0 T ∥ e ( t ; μ ) ∥ 2 2 d t ≤ ∫ 0 T ( ∫ 0 t e C e ( t − s ) ( e p ( s ; μ ) + e hr ( s ; μ ) ) d s ) 2 d t ≤ ∫ 0 T ( ∫ 0 t e 2 C e ( t − s ) d s ) ( ∫ 0 t ( e p ( s ; μ ) + e hr ( s ; μ ) ) 2 d s ) d t ≤ C ( T , C e ) ∫ 0 T ( e p ( t ; μ ) + e hr ( t ; μ ) ) 2 d t . (32)
The conclusion follows by integrating the M M M -norm of the error in (3.11) over [ 0 , T ] × P [0,T]\times\mathcal{P} [ 0 , T ] × P , and using (3.20) together with the expression for the error components in (3.19). □
Remark 3.6. In the absence of hyper-reduction, the solution of the reduced model (2.4) can be shown to converge to the solution of the full order model with a result analogous to Theorem 3.5. Hypotheses (3.8) and (3.9) need to be replaced by the ones corresponding to the original Hamiltonian H H H and entropy S S S , while hypothesis (3.10) is not needed. Then the a priori estimate on the error is analogous with no term associated with the hyper-reduction.
Model order reduction via a block diagonal approach
In this section we consider a specific type of metriplectic systems where some components of the state variables are characterized by a purely Hamiltonian dynamics and the remaining components by a gradient flow dynamics. An example of this situation will be shown in the numerical experiments in Section 5.1.
To simplify the notation, we consider problem (1.3) with M M M equal to the identity matrix. Let N 1 , N 2 ∈ N N_1,N_2\in\mathbb{N} N 1 , N 2 ∈ N be such that N 1 + N 2 = N N_1+N_2=N N 1 + N 2 = N and assume that, for any v ∈ R N v\in\mathbb{R}^N v ∈ R N , the operators J J J and G G G in (1.3) are of the form
J ( v ) = [ J 1 ( v ) 0 N 2 × N 2 ] ∈ R N × N , G ( v ) = [ G 1 G 2 ( v ) ] ∈ R N × N , (33) J(v)=
\begin{bmatrix}
J_1(v) & \\
& 0_{N_2\times N_2}
\end{bmatrix}\in\mathbb{R}^{N\times N},\qquad
G(v)=
\begin{bmatrix}
G_1 & \\
& G_2(v)
\end{bmatrix}\in\mathbb{R}^{N\times N}, \tag*{(33)} J ( v ) = [ J 1 ( v ) 0 N 2 × N 2 ] ∈ R N × N , G ( v ) = [ G 1 G 2 ( v ) ] ∈ R N × N , (33)
where J 1 ( v ) ∈ R N 1 × N 1 J_1(v)\in\mathbb{R}^{N_1\times N_1} J 1 ( v ) ∈ R N 1 × N 1 is a skew-symmetric and invertible matrix (thus N 1 N_1 N 1 is even), G 1 ∈ R N 1 × N 1 G_1\in\mathbb{R}^{N_1\times N_1} G 1 ∈ R N 1 × N 1 is symmetric positive semi-definite, and G 2 ( v ) ∈ R N 2 × N 2 G_2(v)\in\mathbb{R}^{N_2\times N_2} G 2 ( v ) ∈ R N 2 × N 2 is symmetric positive semi-definite.
Based on the partitioning introduced in (4.1), let us write any generic vector v ∈ R N v\in\mathbb{R}^N v ∈ R N as v = ( v 1 ⊤ , v 2 ⊤ ) ⊤ v=(v_1^\top,v_2^\top)^\top v = ( v 1 ⊤ , v 2 ⊤ ) ⊤ with v 1 ∈ R N 1 v_1\in\mathbb{R}^{N_1} v 1 ∈ R N 1 and v 2 ∈ R N 2 v_2\in\mathbb{R}^{N_2} v 2 ∈ R N 2 . Owing to the invertibility of J 1 ( v ) J_1(v) J 1 ( v ) , for any v ∈ R N v\in\mathbb{R}^N v ∈ R N , the metriplectic degeneracy conditions (1.2) imply that
∇ 1 S ( v ; μ ) = 0 , ∀ v ∈ R N , \nabla_1S(v;\mu)=0,\qquad\forall v\in\mathbb{R}^N, ∇ 1 S ( v ; μ ) = 0 , ∀ v ∈ R N ,
G 1 ∇ 1 H ( v ; μ ) = 0 , G 2 ( v ) ∇ 2 H ( v ; μ ) = 0 , ∀ v ∈ R N . G_1\nabla_1H(v;\mu)=0,\qquad G_2(v)\nabla_2H(v;\mu)=0,\qquad\forall v\in\mathbb{R}^N. G 1 ∇ 1 H ( v ; μ ) = 0 , G 2 ( v ) ∇ 2 H ( v ; μ ) = 0 , ∀ v ∈ R N .
where we use the notation ∇ k \nabla_k ∇ k , for k ∈ { 1 , 2 } k \in\{1,2\} k ∈ { 1 , 2 } , to denote the gradient with respect to the k k k th component of the variable, of length N k N_k N k . A metriplectic system with J J J and G G G of the form (4.1) reads
u ˙ ( t , μ ) = [ u ˙ 1 ( t , μ ) u ˙ 2 ( t , μ ) ] = [ J 1 ( u ( t , μ ) ) ∇ 1 H ( u ( t , μ ) ; μ ) G 2 ( u ( t , μ ) ) ∇ 2 S ( u ( t , μ ) ; μ ) ] \dot{\mathbf{u}}(t,\mu)=
\begin{bmatrix}
\dot{\mathbf{u}}_1(t,\mu)\\
\dot{\mathbf{u}}_2(t,\mu)
\end{bmatrix}
=
\begin{bmatrix}
J_1(\mathbf{u}(t,\mu))\nabla_1 H(\mathbf{u}(t,\mu);\mu)\\
G_2(\mathbf{u}(t,\mu))\nabla_2 S(\mathbf{u}(t,\mu);\mu)
\end{bmatrix} u ˙ ( t , μ ) = [ u ˙ 1 ( t , μ ) u ˙ 2 ( t , μ ) ] = [ J 1 ( u ( t , μ )) ∇ 1 H ( u ( t , μ ) ; μ ) G 2 ( u ( t , μ )) ∇ 2 S ( u ( t , μ ) ; μ ) ]
with S S S that depends only on v 2 \mathbf{v}_2 v 2 , ∇ 1 H ( v ; μ ) ∈ ker ( G 1 ) \nabla_1 H(\mathbf{v};\mu)\in\ker(G_1) ∇ 1 H ( v ; μ ) ∈ ker ( G 1 ) , and ∇ 2 H ( v ; μ ) ∈ ker ( G 2 ( v ) ) \nabla_2 H(\mathbf{v};\mu)\in\ker(G_2(\mathbf{v})) ∇ 2 H ( v ; μ ) ∈ ker ( G 2 ( v )) , for any v ∈ R N \mathbf{v}\in\mathbb{R}^N v ∈ R N . Note that G 1 G_1 G 1 does not play a role in the characterization of the dynamics but only of the degeneracy conditions.
For the reduced basis U ∈ R N × n U\in\mathbb{R}^{N\times n} U ∈ R N × n , with n ≤ N n\leq N n ≤ N , we consider the following block diagonal form: for n ∈ N n\in\mathbb{N} n ∈ N fixed, let n 1 , n 2 ∈ N n_1,n_2\in\mathbb{N} n 1 , n 2 ∈ N be such that n 1 + n 2 = n n_1+n_2=n n 1 + n 2 = n and n k ≤ N k n_k\leq N_k n k ≤ N k , for k ∈ { 1 , 2 } k\in\{1,2\} k ∈ { 1 , 2 } , then
U = [ U 1 U 2 ] ∈ R N × n , U 1 ∈ R N 1 × n 1 , U 2 ∈ R N 2 × n 2 , (34) U=
\begin{bmatrix}
U_1\\
U_2
\end{bmatrix}
\in\mathbb{R}^{N\times n},
\qquad
U_1\in\mathbb{R}^{N_1\times n_1},\quad U_2\in\mathbb{R}^{N_2\times n_2}, \tag*{(34)} U = [ U 1 U 2 ] ∈ R N × n , U 1 ∈ R N 1 × n 1 , U 2 ∈ R N 2 × n 2 , (34)
with U 1 T U 1 = I n 1 U_1^{\mathsf{T}}U_1=I_{n_1} U 1 T U 1 = I n 1 and U 2 T U 2 = I n 2 U_2^{\mathsf{T}}U_2=I_{n_2} U 2 T U 2 = I n 2 . Note that the block structure of U U U in (34) is meant to be such that the first block U 1 U_1 U 1 provides the reduction corresponding to the dynamics associated to v 1 \mathbf{v}_1 v 1 , while the second block is associated with the reduction of the dynamics of v 2 \mathbf{v}_2 v 2 .
Concerning the reduced metriplectic conditions (1.6), using the definition of J r J_r J r and the partitioning in (4.1) gives, for any w ∈ R n \mathbf{w}\in\mathbb{R}^n w ∈ R n ,
J r ( w ) ∇ S r ( w ; μ ) = [ U 1 T J 1 ( U w ) U 1 0 n 1 × 1 0 n 2 × n 2 0 ] [ 0 n 1 × 1 U 2 T ∇ 2 S ( U w ; μ ) ] = 0. J_r(\mathbf{w})\nabla S_r(\mathbf{w};\mu)=
\begin{bmatrix}
U_1^{\mathsf{T}}J_1(U\mathbf{w})U_1 & 0_{n_1\times1}\\
0_{n_2\times n_2} & 0
\end{bmatrix}
\begin{bmatrix}
0_{n_1\times1}\\
U_2^{\mathsf{T}}\nabla_2 S(U\mathbf{w};\mu)
\end{bmatrix}
=0. J r ( w ) ∇ S r ( w ; μ ) = [ U 1 T J 1 ( U w ) U 1 0 n 2 × n 2 0 n 1 × 1 0 ] [ 0 n 1 × 1 U 2 T ∇ 2 S ( U w ; μ ) ] = 0.
This means that the first of the reduced metriplectic conditions (1.6) is satisfied. Concerning the second condition, one has that, for any w ∈ R n \mathbf{w}\in\mathbb{R}^n w ∈ R n ,
G r ( w ) ∇ H r ( w ; μ ) = [ U 1 T G 1 Π U 1 ∇ 1 H ( U w ; μ ) U 2 T G 2 ( U w ) Π U 2 ∇ 2 H ( U w ; μ ) ] , (35) G_r(\mathbf{w})\nabla H_r(\mathbf{w};\mu)=
\begin{bmatrix}
U_1^{\mathsf{T}}G_1\Pi_{U_1}\nabla_1 H(U\mathbf{w};\mu)\\
U_2^{\mathsf{T}}G_2(U\mathbf{w})\Pi_{U_2}\nabla_2 H(U\mathbf{w};\mu)
\end{bmatrix}, \tag*{(35)} G r ( w ) ∇ H r ( w ; μ ) = [ U 1 T G 1 Π U 1 ∇ 1 H ( U w ; μ ) U 2 T G 2 ( U w ) Π U 2 ∇ 2 H ( U w ; μ ) ] , (35)
where Π U k : = U k U k T ∈ R N k × N k \Pi_{U_k}:=U_kU_k^{\mathsf{T}}\in\mathbb{R}^{N_k\times N_k} Π U k := U k U k T ∈ R N k × N k , for k ∈ { 1 , 2 } k\in\{1,2\} k ∈ { 1 , 2 } . Since G k G_k G k is positive semi-definite, the above vector vanishes if and only if Π U k ∇ k H ( U w ; μ ) ∈ ker ( G k ( U w ) ) \Pi_{U_k}\nabla_k H(U\mathbf{w};\mu)\in\ker(G_k(U\mathbf{w})) Π U k ∇ k H ( U w ; μ ) ∈ ker ( G k ( U w )) for any w ∈ R n \mathbf{w}\in\mathbb{R}^n w ∈ R n , k ∈ { 1 , 2 } k\in\{1,2\} k ∈ { 1 , 2 } . A sufficient condition is given by
Π U 1 ker ( G 1 ) ⊆ ker ( G 1 ) , Π U 2 ker ( G 2 ( U w ) ) ⊆ ker ( G 2 ( U w ) ) , ∀ w ∈ R n . (36) \Pi_{U_1}\ker(G_1)\subseteq\ker(G_1),\qquad
\Pi_{U_2}\ker(G_2(U\mathbf{w}))\subseteq\ker(G_2(U\mathbf{w})),\qquad
\forall\ \mathbf{w}\in\mathbb{R}^n. \tag*{(36)} Π U 1 ker ( G 1 ) ⊆ ker ( G 1 ) , Π U 2 ker ( G 2 ( U w )) ⊆ ker ( G 2 ( U w )) , ∀ w ∈ R n . (36)
Construction of the reduced basis. Assume that S ∈ R N × N S S\in\mathbb{R}^{N\times N_S} S ∈ R N × N S is a snapshot matrix, that is, S S S collects the solution u ( t ; μ ) \mathbf{u}(t;\mu) u ( t ; μ ) of the full order model (1.3), with M = I N M=I_N M = I N , for different values of time t t t and parameter μ \mu μ . Based on the partitioning introduced in (4.1), let us write the snapshot matrix as
S = [ S 1 S 2 ] , S 1 ∈ R N 1 × N S , S 2 ∈ R N 2 × N S . S=
\begin{bmatrix}
S_1\\
S_2
\end{bmatrix},
\qquad
S_1\in\mathbb{R}^{N_1\times N_S},\quad S_2\in\mathbb{R}^{N_2\times N_S}. S = [ S 1 S 2 ] , S 1 ∈ R N 1 × N S , S 2 ∈ R N 2 × N S .
To ensure that the first condition in (4.4) is satisfied, a possible strategy is to choose U 1 U_1 U 1 of the form U 1 = Q Y U_1=QY U 1 = Q Y , where Y ∈ R N 1 × n 1 Y\in\mathbb{R}^{N_1\times n_1} Y ∈ R N 1 × n 1 needs to be suitably constructed and Q ∈ R N 1 × N 1 Q\in\mathbb{R}^{N_1\times N_1} Q ∈ R N 1 × N 1 is an orthogonal matrix that diagonalizes the symmetric positive semi-definite matrix G 1 G_1 G 1 . More in details, let r : = rank ( G 1 ) r:=\operatorname{rank}(G_1) r := rank ( G 1 ) and let Q = [ Q + Q 0 ] ∈ R N 1 × N 1 Q=[Q_+\ Q_0]\in\mathbb{R}^{N_1\times N_1} Q = [ Q + Q 0 ] ∈ R N 1 × N 1 , with Q + ∈ R N 1 × r Q_+\in\mathbb{R}^{N_1\times r} Q + ∈ R N 1 × r an orthonormal basis of Range ( G 1 ) \operatorname{Range}(G_1) Range ( G 1 ) , and Q 0 ∈ R N 1 × ( N 1 − r ) Q_0\in\mathbb{R}^{N_1\times(N_1-r)} Q 0 ∈ R N 1 × ( N 1 − r ) an orthonormal basis of ker ( G 1 ) \ker(G_1) ker ( G 1 ) , so that G 1 = Q + Λ Q + T G_1=Q_+\Lambda Q_+^{\mathsf{T}} G 1 = Q + Λ Q + T with Λ ∈ R r × r \Lambda\in\mathbb{R}^{r\times r} Λ ∈ R r × r diagonal positive definite.
For n 1 ∈ N n_1\in\mathbb{N} n 1 ∈ N fixed, let n + , n 0 ∈ N n_+,n_0\in\mathbb{N} n + , n 0 ∈ N be such that n + + n 0 = n 1 n_++n_0=n_1 n + + n 0 = n 1 , and let Y ∈ R N 1 × n 1 Y\in\mathbb{R}^{N_1\times n_1} Y ∈ R N 1 × n 1 be of the form
Y = [ Y + Y 0 ] , Y + ∈ R r × n + , Y 0 ∈ R ( N 1 − r ) × n 0 , (37) Y=
\begin{bmatrix}
Y_+\\
Y_0
\end{bmatrix},
\qquad
Y_+\in\mathbb{R}^{r\times n_+},\quad
Y_0\in\mathbb{R}^{(N_1-r)\times n_0}, \tag*{(37)} Y = [ Y + Y 0 ] , Y + ∈ R r × n + , Y 0 ∈ R ( N 1 − r ) × n 0 , (37)
so that U 1 = [ Q + Y + Q 0 Y 0 ] U_1 = [Q+Y_+\quad Q_0Y_0] U 1 = [ Q + Y + Q 0 Y 0 ] . With this choice of U 1 U_1 U 1 , one can easily verify that Π U 1 x \Pi_{U_1}x Π U 1 x belongs to ker ( G 1 ) \ker(G_1) ker ( G 1 ) for any x ∈ ker ( G 1 ) x \in\ker(G_1) x ∈ ker ( G 1 ) , and thus the first component U 1 T G 1 Π U 1 ∇ 1 H ( U w ; μ ) U_1^\mathsf{T}G_1\Pi_{U_1}\nabla_1H(Uw;\mu) U 1 T G 1 Π U 1 ∇ 1 H ( U w ; μ ) of (4.3) vanishes for any w ∈ R n w \in\mathbb{R}^{n} w ∈ R n .
In (4.5), Y + Y_+ Y + is meant to reduce the state components in the range of G 1 G_1 G 1 , while Y 0 Y_0 Y 0 those in its kernel. Since the space spanned by the columns of U 1 = Q Y U_1 = QY U 1 = Q Y should provide an approximation space for the first component of the solution vector, a natural idea is to construct U 1 U_1 U 1 from the snapshot matrix S 1 S_1 S 1 or, equivalently, construct Y Y Y from the matrix Q T S 1 ∈ R N 1 × N S Q^\mathsf{T}S_1 \in\mathbb{R}^{N_1 \times N_S} Q T S 1 ∈ R N 1 × N S . More precisely, Y Y Y is taken of the form (4.5) with Y + Y_+ Y + and Y 0 Y_0 Y 0 obtained via POD or a greedy strategy from Q + T S 1 Q_+^\mathsf{T}S_1 Q + T S 1 and Q 0 T S 1 Q_0^\mathsf{T}S_1 Q 0 T S 1 , respectively.
Concerning the construction of the matrix U 2 ∈ R N 2 × n 2 U_2 \in\mathbb{R}^{N_2 \times n_2} U 2 ∈ R N 2 × n 2 in (4.2), several situations can be considered. If G 2 G_2 G 2 has a kernel that is independent of the state variable, the construction above applies mutatis mutandis to U 2 U_2 U 2 . In particular, if G 2 ( u ) G_2(u) G 2 ( u ) is invertible, then U 2 U_2 U 2 can be obtained from a standard POD or greedy strategy applied to the matrix S 2 S_2 S 2 , with n 2 ≤ N 2 n_2 \leq N_2 n 2 ≤ N 2 chosen according to the corresponding algorithm’s criterion. In the more general case where G 2 ( u ) G_2(u) G 2 ( u ) has a state-dependent kernel, there is no general recipe to ensure that the second reduced metriplectic condition is satisfied (equivalently, that (4.3) vanishes). However, a possible way is to set U 2 = I N 2 U_2 = I_{N_2} U 2 = I N 2 which entails that the second component of the state variable is not reduced.
We point out that the above procedure builds a block diagonal reduced basis matrix which assures almost-metriplecticity of the reduced order model obtained by a standard Galerkin projection of the full order model (1.3) under the assumption that the operators J J J and G G G have the form (4.1). Since the construction of U U U is entirely carried out in the offline phase, solving the corresponding reduced order model introduces no additional online costs compared with a standard Galerkin reduced order model of the same dimension.
Approximation properties of the reduced basis space. Consider problem (1.3)-(1.2) with M = I N M = I_N M = I N , and J J J and G G G of the form (4.1) with G 2 G_2 G 2 having a state-independent kernel. Assume that the reduced basis U U U is constructed from a POD strategy according to the steps described in the previous paragraph. We use the notation introduced above and we add a subscript k k k to all quantities associated with the block U k U_k U k , for k ∈ { 1 , 2 } k \in\{1,2\} k ∈ { 1 , 2 } . It is possible to show that the projection error of the snapshot matrix S ∈ R N × N S S \in\mathbb{R}^{N \times N_S} S ∈ R N × N S , where N S N_S N S is the number of snapshots, into the reduced basis space satisfies
∥ S − U U T S ∥ F 2 ≤ ∑ j = m 1 + 1 rank ( S 1 ) σ j ( S 1 ) 2 + ∑ j = m 2 + 1 rank ( S 2 ) σ j ( S 2 ) 2 ≤ ∑ j = min { m 1 , m 2 } + 1 rank ( S ) σ j ( S ) 2 . \lVert S-UU^\mathsf{T}S\rVert_F^2 \leq\sum_{j=m_1+1}^{\operatorname{rank}(S_1)}\sigma_j(S_1)^2+\sum_{j=m_2+1}^{\operatorname{rank}(S_2)}\sigma_j(S_2)^2\leq\sum_{j=\min\{m_1,m_2\}+1}^{\operatorname{rank}(S)}\sigma_j(S)^2. ∥ S − U U T S ∥ F 2 ≤ j = m 1 + 1 ∑ rank ( S 1 ) σ j ( S 1 ) 2 + j = m 2 + 1 ∑ rank ( S 2 ) σ j ( S 2 ) 2 ≤ j = m i n { m 1 , m 2 } + 1 ∑ rank ( S ) σ j ( S ) 2 .
where m k : = min { n k , + , n k , 0 } m_k:=\min\{n_{k,+},n_{k,0}\} m k := min { n k , + , n k , 0 } , for k ∈ { 1 , 2 } k\in\{1,2\} k ∈ { 1 , 2 } , and σ j ( S ) \sigma_j(S) σ j ( S ) denotes the j j j th singular value of the matrix S S S assumed to be taken in decreasing order. Indeed, owing to the definition of U 1 U_1 U 1 and U 2 U_2 U 2 , and by the Eckart–Young–Mirsky theorem, it holds, for any k ∈ { 1 , 2 } k\in\{1,2\} k ∈ { 1 , 2 } ,
∥ S k − U k U k T S k ∥ F 2 = ∑ σ ∈ { 0 , + } ∥ Q k , σ ( I − Y k , σ Y k , σ T ) Q k , σ T S k ∥ F 2 = ∑ j > n k , + σ j ( Q k , + T S k ) 2 + ∑ j > n k , 0 σ j ( Q k , 0 T S k ) 2 ≤ ∑ j > m k σ j ( S k ) 2 . \begin{aligned}
\lVert S_k-U_kU_k^\mathsf{T}S_k\rVert_F^2
&=\sum_{\sigma\in\{0,+\}}\lVert Q_{k,\sigma}(I-Y_{k,\sigma}Y_{k,\sigma}^\mathsf{T})Q_{k,\sigma}^\mathsf{T}S_k\rVert_F^2\\
&=\sum_{j>n_{k,+}}\sigma_j(Q_{k,+}^\mathsf{T}S_k)^2+\sum_{j>n_{k,0}}\sigma_j(Q_{k,0}^\mathsf{T}S_k)^2
\leq\sum_{j>m_k}\sigma_j(S_k)^2.
\end{aligned} ∥ S k − U k U k T S k ∥ F 2 = σ ∈ { 0 , + } ∑ ∥ Q k , σ ( I − Y k , σ Y k , σ T ) Q k , σ T S k ∥ F 2 = j > n k , + ∑ σ j ( Q k , + T S k ) 2 + j > n k , 0 ∑ σ j ( Q k , 0 T S k ) 2 ≤ j > m k ∑ σ j ( S k ) 2 .
Numerical experiments
In this section, we present two numerical examples to assess the effectiveness of the proposed reduction strategies and their conservation properties. A more detailed description of the test cases and of the implementation of the reduction and hyper-reduction methods is provided in the supplementary material.
In the following experiments the approximation of the solution of the generic metriplectic system (1.1)-(1.2) is computed from the solution u Λ u_\Lambda u Λ of a given (hyper-)reduced model as u 0 ( μ ) + U u Λ ( t ; μ ) u_0(\mu)+Uu_\Lambda(t;\mu) u 0 ( μ ) + U u Λ ( t ; μ ) for all t ∈ T t \in\mathcal{T} t ∈ T , where u 0 ( μ ) \mathbf{u}_0(\mu) u 0 ( μ ) is the initial condition of (1) corresponding to the parameter μ ∈ P \mu\in\mathcal{P} μ ∈ P . Accordingly, the (hyper-)reduced initial condition is always zero, implying that the reduced Hamiltonian coincides exactly with the full Hamiltonian at the initial time instance, as shown in Proposition 1.1 and subsequent discussion.
Two thermo-spring system in entropy variables
We compare the performances of the methods proposed in this work with a projection-based reduced order model (POD-ROM) obtained by Galerkin projection of the full order model (1.1 onto a global POD basis, and with the energetically consistent reduced order model (EC-ROM) proposed in [9 ] . The reduced order model (10) based on oblique projections will be dubbed OP-ROM, while the one based on the block construction of Section 4 will be denoted as BD-ROM.
All implemented methods use the same snapshot matrix to construct the corresponding reduced basis via a POD strategy. In particular, for a fixed n n n , POD-ROM and EC-ROM have the same reduced basis, while the ones for BD-ROM and OP-ROM are constructed to satisfy the corresponding constraints. More in details, the reduced basis of each model is constructed from snapshots of the solution ( u , j , g ) (\mathbf{u},\mathbf{j},\mathbf{g}) ( u , j , g ) of the full order model (3) , obtained under variation of time and parameter. In particular, consider a discrete parameter domain P t r a i n ⊂ P \mathcal{P}_{\mathrm{train}} \subset\mathcal{P} P train ⊂ P and a set of time instants T t r a i n : = { t 1 , … , t N t r a i n } \mathcal{T}_{\mathrm{train}} := \{t_1,\ldots,t_{N_{\mathrm{train}}}\} T train := { t 1 , … , t N train } , and let N S = ∣ P t r a i n ∣ N t r a i n N_{\mathrm{S}} = |\mathcal{P}_{\mathrm{train}}|N_{\mathrm{train}} N S = ∣ P train ∣ N train . Once the solutions of the full order model corresponding to the sets above have been computed with a suitable time integration scheme, we collect them in a matrix S ∈ R N × 3 N S \mathbf{S} \in\mathbb{R}^{N \times3N_{\mathrm{S}}} S ∈ R N × 3 N S of the form
S = [ … u ( θ i j ) − u 0 ( μ j ) … … j ( θ i j ) … … g ( θ i j ) … ] , (38) \mathbf{S} = \left[\begin{array}{ccccc}
\ldots& \mathbf{u}(\theta_{ij})-\mathbf{u}_0(\mu_j) & \ldots& \ldots\mathbf{j}(\theta_{ij})\ldots& \ldots\mathbf{g}(\theta_{ij})\ldots
\end{array}\right], \tag*{(38)} S = [ … u ( θ ij ) − u 0 ( μ j ) … … j ( θ ij ) … … g ( θ ij ) … ] , (38)
where θ i j = ( t i , μ j ) ∈ T t r a i n × P t r a i n \theta_{ij}=(t_i,\mu_j)\in\mathcal{T}_{\mathrm{train}}\times\mathcal{P}_{\mathrm{train}} θ ij = ( t i , μ j ) ∈ T train × P train . Note that, since in both examples considered the entropy is linear, its gradient ∇ S \nabla S ∇ S is constant and it is thus included once as the final column of the snapshot matrix, so that S ∈ R N × ( 2 N S + 1 ) \mathbf{S}\in\mathbb{R}^{N\times(2N_{\mathrm{S}}+1)} S ∈ R N × ( 2 N S + 1 ) .
For numerical time integration, linear multistep methods are employed via the LSODA scheme [14 , 23 ] with tolerance of 10 − 14 10^{-14} 1 0 − 14 , as in [9 ] . Since this is an adaptive time-stepping, the numerical solutions obtained with different models are evaluated on a fixed partition of the temporal interval T h : = { t 0 = 0 , … , t N T = T } \mathcal{T}_h:=\{t_0=0,\ldots,t_{N_T}=T\} T h := { t 0 = 0 , … , t N T = T } , Via piecewise polynomial interpolation of a degree consistent with the integration method.
To assess the convergence of the various methods we consider the following errors. Given μ ∈ P \mu\in\mathcal{P} μ ∈ P , let u τ ( μ ) ∈ R N \mathbf{u}^{\tau}(\mu)\in\mathbb{R}^{N} u τ ( μ ) ∈ R N be solution of the full order model at time t τ t_\tau t τ , with 0 ≤ τ ≤ N T 0\leq\tau\leq N_T 0 ≤ τ ≤ N T , obtained with the aforementioned LSODA solver, and let u Λ τ ( μ ) ∈ R n \mathbf{u}_{\Lambda}^{\tau}(\mu)\in\mathbb{R}^{n} u Λ τ ( μ ) ∈ R n be solution of a given reduced or hyper-reduced model (indicated by Λ \Lambda Λ ) at time t τ t_\tau t τ . We consider the relative errors
E Λ μ : = max 1 ≤ τ ≤ N T E Λ μ ( t τ ) , E Λ μ ( t τ ) : = ∥ u τ ( μ ) − U u Λ τ ( μ ) − u 0 ( μ ) ∥ 2 ∥ u τ ( μ ) ∥ 2 , t τ ∈ T h . (39) \mathcal{E}_{\Lambda}^{\mu}:=\max_{1\leq\tau\leq N_T}\mathcal{E}_{\Lambda}^{\mu}(t_\tau),\qquad\mathcal{E}_{\Lambda}^{\mu}(t_\tau):=\frac{\left\|\mathbf{u}^{\tau}(\mu)-\mathbf{U}\mathbf{u}_{\Lambda}^{\tau}(\mu)-\mathbf{u}_0(\mu)\right\|_2}{\left\|\mathbf{u}^{\tau}(\mu)\right\|_2},\qquad t_\tau\in\mathcal{T}_h. \tag*{(39)} E Λ μ := 1 ≤ τ ≤ N T max E Λ μ ( t τ ) , E Λ μ ( t τ ) := ∥ u τ ( μ ) ∥ 2 ∥ u τ ( μ ) − U u Λ τ ( μ ) − u 0 ( μ ) ∥ 2 , t τ ∈ T h . (39)
To assess the behavior of the error in the Hamiltonian and entropy functions evaluated at the approximate solution we introduce, for X ∈ { H , S } X\in\{H,S\} X ∈ { H , S } and t τ ∈ T h t_\tau\in\mathcal{T}_h t τ ∈ T h , the errors
E Λ , X μ : = max 1 ≤ τ ≤ N T E Λ , X μ ( t τ ) , E Λ , X μ ( t τ ) : = ∣ X ( u τ ( μ ) ) − X ( U u Λ τ ( μ ) + u 0 ( μ ) ) ∣ ∣ X ( u τ ( μ ) ) ∣ . (40) \mathcal{E}_{\Lambda,X}^{\mu}:=\max_{1\leq\tau\leq N_T}\mathcal{E}_{\Lambda,X}^{\mu}(t_\tau),\qquad\mathcal{E}_{\Lambda,X}^{\mu}(t_\tau):=\frac{\left|X(\mathbf{u}^{\tau}(\mu))-X(\mathbf{U}\mathbf{u}_{\Lambda}^{\tau}(\mu)+\mathbf{u}_0(\mu))\right|}{\left|X(\mathbf{u}^{\tau}(\mu))\right|}. \tag*{(40)} E Λ , X μ := 1 ≤ τ ≤ N T max E Λ , X μ ( t τ ) , E Λ , X μ ( t τ ) := ∣ X ( u τ ( μ )) ∣ ∣ X ( u τ ( μ )) − X ( U u Λ τ ( μ ) + u 0 ( μ )) ∣ . (40)
Finally, to study the conservation of the Hamiltonian along the approximate trajectories we define
D Λ , H μ ( t τ ) : = ∣ H ( U u Λ τ ( μ ) + u 0 ( μ ) ) − H ( u 0 ( μ ) ) ∣ ∣ H ( u 0 ( μ ) ) ∣ , t τ ∈ T h . (41) \mathcal{D}_{\Lambda,H}^{\mu}(t_\tau):=\frac{\left|H(\mathbf{U}\mathbf{u}_{\Lambda}^{\tau}(\mu)+\mathbf{u}_0(\mu))-H(\mathbf{u}_0(\mu))\right|}{\left|H(\mathbf{u}_0(\mu))\right|},\qquad t_\tau\in\mathcal{T}_h. \tag*{(41)} D Λ , H μ ( t τ ) := ∣ H ( u 0 ( μ )) ∣ ∣ H ( U u Λ τ ( μ ) + u 0 ( μ )) − H ( u 0 ( μ )) ∣ , t τ ∈ T h . (41)
All experiments were presented below were coded in Python 3.12.3 and run on an Acer Swift SFX14-41G with an AMD Ryzen 7 5700U CPU and 8GB of RAM.
Two thermo-spring system in entropy variables
As first test, we consider the entropy-based metriplectic formulation of the two thermo-spring system introduced in [4 Section 4.3.1] . The system consists of two point masses connected by two thermo-springs that exchange heat. The first spring connects the first mass to a fixed point, while the second spring connects the two masses. In order to test model order reduction on this problem, we retain its structure but we increase the mechanical dimension R R R . The state vector is given by
u = [ q 1 T q 2 T p 1 T p 2 T S 1 S 2 ] T ∈ R N , \mathbf{u} = [\mathbf{q}_1^{\mathsf{T}}\quad\mathbf{q}_2^{\mathsf{T}}\quad\mathbf{p}_1^{\mathsf{T}}\quad\mathbf{p}_2^{\mathsf{T}}\quad S_1\quad S_2]^{\mathsf{T}} \in\mathbb{R}^{N}, u = [ q 1 T q 2 T p 1 T p 2 T S 1 S 2 ] T ∈ R N ,
where N : = 4 R + 2 N := 4R+2 N := 4 R + 2 , q 1 , q 2 ∈ R R \mathbf{q}_1,\mathbf{q}_2 \in\mathbb{R}^{R} q 1 , q 2 ∈ R R are the position vectors, p 1 , p 2 ∈ R R \mathbf{p}_1,\mathbf{p}_2 \in\mathbb{R}^{R} p 1 , p 2 ∈ R R are the corresponding momenta, and the thermodynamic state is represented by the entropies S 1 , S 2 S_1,S_2 S 1 , S 2 . Let D ⊆ R N D \subseteq\mathbb{R}^{N} D ⊆ R N be the set of state vectors in R N \mathbb{R}^{N} R N such that q 1 ≠ 0 \mathbf{q}_1 \ne0 q 1 = 0 , and q 1 ≠ q 2 \mathbf{q}_1 \ne\mathbf{q}_2 q 1 = q 2 , and let us consider a generic element u ~ \widetilde{\mathbf{u}} u of D D D , whose components will be denoted with the tilde. The dynamics of this problem can be written in metriplectic form (1) -(2) where the entropy of the system is linear and given by S = S 1 + S 2 S=S_1+S_2 S = S 1 + S 2 , while the Hamiltonian is the total energy
H ( u ~ ) = 1 2 ( ∥ p ~ 1 ∥ 2 2 + ∥ p ~ 2 ∥ 2 2 ) + e 1 ( λ 1 ( u ~ ) , S ~ 1 ) + e 2 ( λ 2 ( u ~ ) , S ~ 2 ) , ∀ u ~ ∈ D , H(\widetilde{\mathbf{u}}) = \frac{1}{2}\left(\lVert\widetilde{\mathbf{p}}_1\rVert_2^2+\lVert\widetilde{\mathbf{p}}_2\rVert_2^2\right)+e_1(\lambda_1(\widetilde{\mathbf{u}}),\widetilde{S}_1)+e_2(\lambda_2(\widetilde{\mathbf{u}}),\widetilde{S}_2),\qquad\forall\widetilde{\mathbf{u}}\in D, H ( u ) = 2 1 ( ∥ p 1 ∥ 2 2 + ∥ p 2 ∥ 2 2 ) + e 1 ( λ 1 ( u ) , S 1 ) + e 2 ( λ 2 ( u ) , S 2 ) , ∀ u ∈ D ,
where λ 1 ( u ~ ) : = ∥ q ~ 1 ∥ 2 \lambda_1(\widetilde{\mathbf{u}}):=\lVert\widetilde{\mathbf{q}}_1\rVert_2 λ 1 ( u ) := ∥ q 1 ∥ 2 , and λ 2 ( u ~ ) : = ∥ q ~ 2 − q ~ 1 ∥ 2 \lambda_2(\widetilde{\mathbf{u}}):=\lVert\widetilde{\mathbf{q}}_2-\widetilde{\mathbf{q}}_1\rVert_2 λ 2 ( u ) := ∥ q 2 − q 1 ∥ 2 are the elongations of the springs, and
e j ( λ j ( u ~ ) , S ~ j ) : = 1 2 log 2 ( λ j ( u ~ ) ) + log ( λ j ( u ~ ) ) + exp ( S ~ j − log ( λ j ( u ~ ) ) ) − 1 , j ∈ { 1 , 2 } . e_j(\lambda_j(\widetilde{\mathbf{u}}),\widetilde{S}_j):=\frac{1}{2}\log^2(\lambda_j(\widetilde{\mathbf{u}}))+\log(\lambda_j(\widetilde{\mathbf{u}}))+\exp\left(\widetilde{S}_j-\log(\lambda_j(\widetilde{\mathbf{u}}))\right)-1,\qquad j\in\{1,2\}. e j ( λ j ( u ) , S j ) := 2 1 log 2 ( λ j ( u )) + log ( λ j ( u )) + exp ( S j − log ( λ j ( u )) ) − 1 , j ∈ { 1 , 2 } .
Moreover, the Poisson and semi-metric operators have the following expressions
J = [ 0 2 R × 2 R I 2 R 0 2 R × 2 − I 2 R 0 2 R × 2 R 0 2 R × 2 0 2 × 2 R 0 2 × 2 R 0 2 × 2 ] , G ( u ~ ) = [ 0 4 R × 4 R 0 4 R × 1 0 4 R × 1 0 1 × 4 R T 2 ( u ~ ) / T 1 ( u ~ ) − 1 0 1 × 4 R − 1 T 1 ( u ~ ) / T 2 ( u ~ ) ] , J=\begin{bmatrix}
0_{2R\times2R} & I_{2R} & 0_{2R\times2}\\
-I_{2R} & 0_{2R\times2R} & 0_{2R\times2}\\
0_{2\times2R} & 0_{2\times2R} & 0_{2\times2}
\end{bmatrix},\qquad
G(\widetilde{\mathbf{u}})=\begin{bmatrix}
0_{4R\times4R} & 0_{4R\times1} & 0_{4R\times1}\\
0_{1\times4R} & T_2(\widetilde{\mathbf{u}})/T_1(\widetilde{\mathbf{u}}) & -1\\
0_{1\times4R} & -1 & T_1(\widetilde{\mathbf{u}})/T_2(\widetilde{\mathbf{u}})
\end{bmatrix}, J = 0 2 R × 2 R − I 2 R 0 2 × 2 R I 2 R 0 2 R × 2 R 0 2 × 2 R 0 2 R × 2 0 2 R × 2 0 2 × 2 , G ( u ) = 0 4 R × 4 R 0 1 × 4 R 0 1 × 4 R 0 4 R × 1 T 2 ( u ) / T 1 ( u ) − 1 0 4 R × 1 − 1 T 1 ( u ) / T 2 ( u ) ,
where, for any u ~ ∈ D \widetilde{\mathbf{u}}\in D u ∈ D ,
T j ( u ~ ) : = ∂ e j ∂ S j ( λ j ( u ~ ) , S ~ j ) = exp ( S ~ j − log ( λ j ( u ~ ) ) ) , j ∈ { 1 , 2 } . T_j(\widetilde{\mathbf{u}}):=\frac{\partial e_j}{\partial S_j}(\lambda_j(\widetilde{\mathbf{u}}),\widetilde{S}_j)=\exp\left(\widetilde{S}_j-\log(\lambda_j(\widetilde{\mathbf{u}}))\right),\qquad j\in\{1,2\}. T j ( u ) := ∂ S j ∂ e j ( λ j ( u ) , S j ) = exp ( S j − log ( λ j ( u )) ) , j ∈ { 1 , 2 } .
It can be easily verified that the degeneracy conditions (2) are satisfied, and therefore the total energy is conserved, and the total entropy is non-decreasing, since T j ( u ~ ) > 0 T_j(\widetilde{\mathbf{u}})>0 T j ( u ) > 0 , j ∈ { 1 , 2 } j\in\{1,2\} j ∈ { 1 , 2 } , for all u ~ ∈ D \widetilde{\mathbf{u}}\in D u ∈ D .
The block diagonal reduced order model (BD-ROM). The two thermo-spring system has the structure discussed in Section 4, with J J J and G G G of the form (33) with N 1 = 4 R N_1=4R N 1 = 4 R and N 2 = 2 N_2=2 N 2 = 2 , G 1 = 0 4 R × 4 R G_1=0_{4R\times4R} G 1 = 0 4 R × 4 R , and
J 1 = [ 0 2 R × 2 R I 2 R − I 2 R 0 2 R × 2 R ] , G 2 ( u ~ ) = [ T 2 ( u ~ ) / T 1 ( u ~ ) − 1 − 1 T 1 ( u ~ ) / T 2 ( u ~ ) ] . J_1=\begin{bmatrix}
0_{2R\times2R} & I_{2R}\\
-I_{2R} & 0_{2R\times2R}
\end{bmatrix},\qquad
G_2(\widetilde{\mathbf{u}})=\begin{bmatrix}
T_2(\widetilde{\mathbf{u}})/T_1(\widetilde{\mathbf{u}}) & -1\\
-1 & T_1(\widetilde{\mathbf{u}})/T_2(\widetilde{\mathbf{u}})
\end{bmatrix}. J 1 = [ 0 2 R × 2 R − I 2 R I 2 R 0 2 R × 2 R ] , G 2 ( u ) = [ T 2 ( u ) / T 1 ( u ) − 1 − 1 T 1 ( u ) / T 2 ( u ) ] .
In the following tests, we consider, for this model, a reduced basis of the form (34) with U 2 = I 2 U_2=I_2 U 2 = I 2 , since the last two variables correspond to the entropy of the system, while U 1 ∈ R N 1 × n 1 U_1\in\mathbb{R}^{N_1\times n_1} U 1 ∈ R N 1 × n 1 is obtained by applying POD to the first 4 R 4R 4 R components of the shifted snapshots. To test the convergence properties of the method, in the numerical experiments, we consider fixed values of n n n . For the block-diagonal model this corresponds to fixing n 1 = n − 2 n_1=n-2 n 1 = n − 2 , given n n n .
The oblique-projection reduced order model (OP-ROM). To derive the OP-ROM in (10) , we set c H = c S = 2 − 1 / 2 ∇ S c_H=c_S=2^{-1/2}\nabla S c H = c S = 2 − 1/2 ∇ S . Clearly, κ S = 2 \kappa_S=\sqrt{2} κ S = 2 , and κ H ( u ~ ) = 2 − 1 / 2 ( T 1 ( u ~ ) + T 2 ( u ~ ) ) > 0 \kappa_H(\tilde{u})=2^{-1/2}(T_1(\tilde{u})+T_2(\tilde{u}))>0 κ H ( u ~ ) = 2 − 1/2 ( T 1 ( u ~ ) + T 2 ( u ~ )) > 0 , for all u ~ ∈ D \tilde{u}\in D u ~ ∈ D . This implies that Ω S , c S = R N \Omega_{S,c_S}=\mathbb{R}^N Ω S , c S = R N and Ω H , c H = D \Omega_{H,c_H}=D Ω H , c H = D . For this model, a reduced space of dimension n n n has been constructed via POD of the snapshot matrix truncated to n − 1 n-1 n − 1 , and the reduced basis has been augmented with the vector c H = c S ∈ R N c_H=c_S\in\mathbb{R}^N c H = c S ∈ R N and then orthonormalized. Finally, the energetically consistent reduced order model (EC-ROM) has been implemented with k 0 = k 1 = N k_0=k_1=N k 0 = k 1 = N as suggested by the authors in [9 Theorem 3.4] .
Remark 5.1. No hyper-reduction has been introduced for this test case; indeed, despite the nonlinearity of the problem, it is possible to make all the computations needed for the reduced order models independent of the full dimension N N N , after suitable parameter-dependent precomputations. The main observation is that the nonlinear terms depend on the full state only through the scalar quantities λ j \lambda_j λ j , and the entropy variables S j S_j S j , j ∈ { 1 , 2 } j\in\{1,2\} j ∈ { 1 , 2 } . A simple computation, which is carried out in detail in Section A, shows that both λ 1 ( U w + u 0 ( μ ) ) , λ 2 ( U w + u 0 ( μ ) ) \lambda_1(U_w+u_0(\mu)),\lambda_2(U_w+u_0(\mu)) λ 1 ( U w + u 0 ( μ )) , λ 2 ( U w + u 0 ( μ )) can be evaluated in O ( n 2 ) O(n^2) O ( n 2 ) operations per instance of w ∈ R n w\in\mathbb{R}^n w ∈ R n , plus O ( n N ) O(nN) O ( n N ) operations for each test parameter. The previous argument also shows that the EC-ROM of [9 ] can be evaluated at a comparable arithmetic complexity.
Set up of the numerical tests. For all the numerical experiments we set R = 1000 R=1000 R = 1000 , so that the dimension of the full order system is N = 4 R + 2 = 4002 N=4R+2=4002 N = 4 R + 2 = 4002 . Let x ∈ R R x\in\mathbb{R}^R x ∈ R R be a vector of R R R uniformly spaced points in [ 0 , 1 ] [0,1] [ 0 , 1 ] . The initial conditions are, for j ∈ { 1 , 2 } j\in\{1,2\} j ∈ { 1 , 2 } ,
q j 0 ( μ ) = exp ( μ j x ) , μ 1 ∈ [ − 0.2 , 5.2 ] , μ 2 ∈ [ − 0.1 , 0.1 ] , p j 0 ( μ ) = ( 1 + μ 2 + j x 2 ) − 1 , μ 3 ∈ [ − 1 , 1 ] , μ 4 ∈ [ − 3 , 3 ] , S j 0 ( μ ) = μ 4 + j , μ 5 ∈ [ 0.9 , 1.1 ] , μ 6 ∈ [ 0.1 , 0.3 ] . \begin{aligned}
q_j^0(\mu)&=\exp(\mu_j x), && \mu_1\in[-0.2,5.2],\ \mu_2\in[-0.1,0.1],\\
p_j^0(\mu)&=(1+\mu_{2+j}x^2)^{-1}, && \mu_3\in[-1,1],\ \mu_4\in[-3,3],\\
S_j^0(\mu)&=\mu_{4+j}, && \mu_5\in[0.9,1.1],\ \mu_6\in[0.1,0.3].
\end{aligned} q j 0 ( μ ) p j 0 ( μ ) S j 0 ( μ ) = exp ( μ j x ) , = ( 1 + μ 2 + j x 2 ) − 1 , = μ 4 + j , μ 1 ∈ [ − 0.2 , 5.2 ] , μ 2 ∈ [ − 0.1 , 0.1 ] , μ 3 ∈ [ − 1 , 1 ] , μ 4 ∈ [ − 3 , 3 ] , μ 5 ∈ [ 0.9 , 1.1 ] , μ 6 ∈ [ 0.1 , 0.3 ] .
In order to construct the snapshot matrix, we randomly select ∣ P t r a i n ∣ = 25 |\mathcal{P}_{\mathrm{train}}|=25 ∣ P train ∣ = 25 vectors of parameters according to a uniform distribution in the six-dimensional parameter domain, and such that u 0 ( μ t r a i n ) u_0(\mu_{\mathrm{train}}) u 0 ( μ train ) is well-defined and belongs to D D D . For each training parameter, the full order problem is solved in the temporal interval T = [ 0 , 8 ] \mathcal{T}=[0,8] T = [ 0 , 8 ] with the LSODA time integrator and snapshots are collected every Δ t = 0.01 \Delta t=0.01 Δ t = 0.01 , so that N t r a i n = 800 N_{\mathrm{train}}=800 N train = 800 .
For post-processing, we use the test parameter μ t e s t = ( 10.45 , 3.12 , 1.25 , 4.08 , 1.54 , 2.22 ) \mu_{\mathrm{test}}=(10.45,3.12,1.25,4.08,1.54,2.22) μ test = ( 10.45 , 3.12 , 1.25 , 4.08 , 1.54 , 2.22 ) , which lies outside the parameter domain used for training. Similar results were obtained with different test parameters.
Numerical results. In Figure 1 (right) we compare the performances of various methods in terms of accuracy and computational time. It can be observed that, in the temporal interval [ 0 , 8 ] [0,8] [ 0 , 8 ] where snapshots are collected, all methods perform similarly in terms of overall accuracy and consistently with the decay of the singular values of the snapshot matrix (5.1), as shown in Figure 1 on the left.
Figure 1. Two thermo-spring system. Left: Decay of the first 200 normalized singular values of the snapshot matrix S S S . Right: Error E Λ μ t e s t \mathcal{E}_{\Lambda}^{\mu_{\mathrm{test}}} E Λ μ test in (39) for different models vs. the mean computational time per right-hand-side evaluation. Each mark corresponds to a different value of the dimension n n n of the reduced order model, with n ∈ { 20 , 30 , 40 , 50 , 60 , 80 , 100 } n \in\{20, 30, 40, 50, 60, 80, 100\} n ∈ { 20 , 30 , 40 , 50 , 60 , 80 , 100 } .
Concerning the computational runtime, Figure 1 (right) displays the mean time required for a single evaluation of the right-hand sides of the corresponding systems, while the total computational runtimes are reported in Table 1 . All methods provide a significant speedup compared to evaluating the full order model. As expected, the EC-ROM and OP-ROM are slightly more expensive as the operators involved are approximated via functions that depend on the state.
Table 1. Two thermo-spring system. Computational times required to solve the reduced order model on one test parameter for various methods and different reduced space dimension n n n . The final time considered is T = 8 T = 8 T = 8 . The runtime of the full order model is 0.2226 s.
In Figure 2 we study the error in the Hamiltonian approximation. First, we observe that the error in the Hamiltonian evaluated at the approximate solution of the structure-preserving models – BD-ROM, OP-ROM and EC-ROM – reaches the tolerance of the solver. The Hamiltonian evaluated at the POD-ROM solution is not preserved, although the error with the Hamiltonian at the full order solution decreases with n n n . This can be associated with the inclusion of the snapshots of the Hamiltonian gradient in the construction of the reduced basis spaces.
Figure 2. Two thermo-spring system. Left: Error E Λ , H μ t e s t \mathcal{E}_{\Lambda,H}^{\mu_{\mathrm{test}}} E Λ , H μ test in (40) between the Hamiltonian evaluated at the full order solution and the Hamiltonian evaluated at the reconstructed reduced solution vs. the reduced space dimension n n n . Right: evolution of the relative error E Λ , H μ t e s t ( t τ ) \mathcal{E}_{\Lambda,H}^{\mu_{\mathrm{test}}}(t_{\tau}) E Λ , H μ test ( t τ ) in (40) , for n = 20 n = 20 n = 20 fixed.
In Figure 3 we compare the approximation of the entropy. As expected, the entropy error of the reduced order models decreases as the dimension n n n of the reduced basis space increases. BD-ROM achieves an approximation error close to the solver tolerance for all tested values of n n n . Choosing U 2 = I 2 U_2 = I_2 U 2 = I 2 corresponds to not reducing the entropy variable and guarantees preservation of the entropies as Casimirs of the reversible dynamics. This highlights the benefits of exploiting the specific structure of the Poisson and semi-metric operators when constructing the reduced basis, as done by BD-ROM. We also observe (Figure 3 on the right) that the POD-ROM does not preserve the metriplectic structure and this result in an unphysical entropy decrease.
Figure 3. Two thermo-spring system. Left: error E Λ , S μ t e s t E_{\Lambda,S}^{\mu_{\mathrm{test}}} E Λ , S μ test in (5.3) between the entropy evaluated at the full order and reconstructed solutions as a function of the reduced dimension n n n . Right: evolution of the entropy S S S at the reconstructed state for n = 20 n = 20 n = 20 . The FOM curve displays S ( u μ t e s t ) S(\mathbf{u}^{\mu_{\mathrm{test}}}) S ( u μ test ) .
Damped thermoelastic rod
As a second test case we consider the dynamical system stemming from the semi-discretization of a damped thermoelastic rod model, as presented in [9 Section 5.2] . The problem describes a one dimensional elastic rod which evolves as a damped Hamiltonian system with friction. For N = 2 R + 1 N = 2R + 1 N = 2 R + 1 , the full state vector is given by u = [ q T p T S ] T ∈ R N \mathbf{u} = [\mathbf{q}^{\mathsf{T}}\ \mathbf{p}^{\mathsf{T}}\ S]^{\mathsf{T}} \in\mathbb{R}^{N} u = [ q T p T S ] T ∈ R N , with q , p ∈ R R \mathbf{q}, \mathbf{p} \in\mathbb{R}^{R} q , p ∈ R R , and S ∈ R S \in\mathbb{R} S ∈ R . Let us consider a generic state vector u ~ ∈ R N \widetilde{\mathbf{u}} \in\mathbb{R}^{N} u ∈ R N whose components will be denoted with a tilde. The system admits a metriplectic formulation (1.1) with
J = [ 0 R × R I R 0 R × 1 − I R 0 R × R 0 R × 1 0 1 × R 0 1 × R 0 ] , G ( u ~ ) = γ [ 0 R × R 0 R × R 0 R × 1 0 R × R I R − p ~ 0 1 × R − p ~ T ∥ p ~ ∥ 2 ] , ∀ u ~ ∈ R N , J = \begin{bmatrix} 0_{R \times R} & I_R & 0_{R \times1} \\ -I_R & 0_{R \times R} & 0_{R \times1} \\ 0_{1 \times R} & 0_{1 \times R} & 0 \end{bmatrix}, \qquad G(\widetilde{\mathbf{u}}) = \gamma\begin{bmatrix} 0_{R \times R} & 0_{R \times R} & 0_{R \times1} \\ 0_{R \times R} & I_R & -\widetilde{\mathbf{p}} \\ 0_{1 \times R} & -\widetilde{\mathbf{p}}^{\mathsf{T}} & \|\widetilde{\mathbf{p}}\|^2 \end{bmatrix}, \qquad\forall\widetilde{\mathbf{u}} \in\mathbb{R}^{N}, J = 0 R × R − I R 0 1 × R I R 0 R × R 0 1 × R 0 R × 1 0 R × 1 0 , G ( u ) = γ 0 R × R 0 R × R 0 1 × R 0 R × R I R − p T 0 R × 1 − p ∥ p ∥ 2 , ∀ u ∈ R N ,
for a given constant γ > 0 \gamma> 0 γ > 0 , and where the Hamiltonian and entropy are given by
H ( u ~ ) = 1 2 ∥ p ~ ∥ 2 2 + S ~ + V ( u ~ ) , S ( u ~ ) = S ~ , ∀ u ~ ∈ R N . H(\widetilde{\mathbf{u}}) = \frac{1}{2}\|\widetilde{\mathbf{p}}\|_2^2 + \widetilde{S} + V(\widetilde{\mathbf{u}}), \qquad S(\widetilde{\mathbf{u}}) = \widetilde{S}, \qquad\forall\widetilde{\mathbf{u}} \in\mathbb{R}^{N}. H ( u ) = 2 1 ∥ p ∥ 2 2 + S + V ( u ) , S ( u ) = S , ∀ u ∈ R N .
In this test we set V ( u ~ ) : = ∑ i = 1 R cos ( q i ) V(\widetilde{\mathbf{u}}) := \sum_{i=1}^{R}\cos(q_i) V ( u ) := ∑ i = 1 R cos ( q i ) , and consider a parametric initial condition u 0 ( μ ) \mathbf{u}_0(\mu) u 0 ( μ ) whose components are denoted with the subscript 0. A straightforward computation shows that the degeneracy conditions (1.2) are satisfied.
Note that J , G J, G J , G do not possess a structure compatible with the block-diagonal reduced basis construction of Section 4, and thus the corresponding reduced order model is not considered here.
The oblique-projection reduced and hyper-reduced models. To construct the reduced model (2.4), we set c H = c S = e N ∈ R N \mathbf{c}_H = \mathbf{c}_S = \mathbf{e}_N \in\mathbb{R}^{N} c H = c S = e N ∈ R N . Since the last component of ∇ X \nabla X ∇ X , for X ∈ { H , S } X \in\{H, S\} X ∈ { H , S } , is equal to one, this choice yields κ X = 1 \kappa_X = 1 κ X = 1 in (7) . Similarly to the previous example, the evaluation of the reduced semi-metric operator G r ( w ) G_r(\mathbf{w}) G r ( w ) can be carried out in O ( n 2 ) O(n^2) O ( n 2 ) operations per instance of the reduced state w \mathbf{w} w plus an additional O ( n N ) O(nN) O ( n N ) operations per parameter instance; we refer to the supplementary material, Section B, for the details. Concerning the reduced Hamiltonian gradient, the gradient-preserving approach of § 3.1 can be applied by splitting the Hamiltonian into a quadratic part L H \mathcal{L}_H L H and the nonlinear part N H ( u ~ ) = V ( q ~ ) \mathcal{N}_H(\widetilde{\mathbf{u}}) = V(\widetilde{\mathbf{q}}) N H ( u ) = V ( q ) . In this case, it is easy to see that the nonlinear term N H \mathcal{N}_H N H can be decomposed as N H ( u ~ ) = a H T h ( q ~ ) \mathcal{N}_H(\widetilde{\mathbf{u}}) = \mathbf{a}_H^{\mathsf{T}}\mathbf{h}(\widetilde{\mathbf{q}}) N H ( u ) = a H T h ( q ) , where a H = 1 ∈ R R \mathbf{a}_H = \mathbf{1} \in\mathbb{R}^R a H = 1 ∈ R R is the vector with all entries equal to 1 1 1 and h i ( q ~ ) : = cos ( q i ) h_i(\widetilde{\mathbf{q}}) := \cos(q_i) h i ( q ) := cos ( q i ) , for 1 ≤ i ≤ R 1 \le i \le R 1 ≤ i ≤ R . Then, the hyper-reduced gradient can be evaluated in O ( n m H + n 2 ) O(nm_H+n^2) O ( n m H + n 2 ) online operations per reduced state instance, where m H m_H m H is the EIM dimension used for the hyper-reduction of ∇ H r \nabla H_r ∇ H r , plus an additional O ( n N ) O(nN) O ( n N ) operations per parameter instance. This is consistent with the findings from Remark 3.1. Indeed, in this case, every entry of h ( q ~ ) \mathbf{h}(\widetilde{\mathbf{q}}) h ( q ) depends on a single entry of q ~ \widetilde{\mathbf{q}} q , and hence s h = 1 s_h = 1 s h = 1 . The evaluation of the linear part of the gradient has arithmetic complexity O ( n 2 ) O(n^2) O ( n 2 ) .
For the hyper-reduced model (3.3), the vector c H E I M ( μ ) \mathbf{c}_{H_{\mathrm{EIM}}}(\mu) c H EIM ( μ ) can be chosen equal to e N \mathbf{e}_N e N since H E I M ( u ~ ) = L H ( u ~ ) + a H T P H h ( q ~ ) H_{\mathrm{EIM}}(\widetilde{\mathbf{u}}) = \mathcal{L}_H(\widetilde{\mathbf{u}})+\mathbf{a}_H^{\mathsf{T}}P_H\mathbf{h}(\widetilde{\mathbf{q}}) H EIM ( u ) = L H ( u ) + a H T P H h ( q ) and the last component of its gradient is constant. Thus, κ H E I M ( u ~ ) = e N T ∇ H E I M ( v ) = 1 ≠ 0 \kappa_{H_{\mathrm{EIM}}}(\widetilde{\mathbf{u}}) = \mathbf{e}_N^{\mathsf{T}}\nabla H_{\mathrm{EIM}}(\mathbf{v}) = 1 \ne0 κ H EIM ( u ) = e N T ∇ H EIM ( v ) = 1 = 0 for all u ~ ∈ R N \widetilde{\mathbf{u}} \in\mathbb{R}^N u ∈ R N . For this model, a reduced space of dimension n n n has been constructed via POD of the snapshot matrix truncated to n − 1 n-1 n − 1 , and the reduced basis has been augmented with the vector c H E I M = c S = e N ∈ R N \mathbf{c}_{H_{\mathrm{EIM}}} = \mathbf{c}_S = \mathbf{e}_N \in\mathbb{R}^N c H EIM = c S = e N ∈ R N and then orthonormalized. For the construction of the approximation space in the gradient-preserving hyper-reduction of the Hamiltonian gradient, we employ the snapshot matrix
S H = [ … D h ( q 0 ( μ j ) + U q U q T ( u ( θ i j ) − u 0 ( μ j ) ) ) U q … ] ∈ R R × n N S , (42) S_H = \left[\ldots\ D_{\mathbf{h}}\left(\mathbf{q}_0(\mu_j)+U_qU_q^{\mathsf{T}}\left(\mathbf{u}(\theta_{ij})-\mathbf{u}_0(\mu_j)\right)\right)U_q\ \ldots\right] \in\mathbb{R}^{R\times nN_S}, \tag*{(42)} S H = [ … D h ( q 0 ( μ j ) + U q U q T ( u ( θ ij ) − u 0 ( μ j ) ) ) U q … ] ∈ R R × n N S , (42)
where θ i j = ( t i , η j ) \theta_{ij}=(t_i,\eta_j) θ ij = ( t i , η j ) are subsamples from T t r a i n × P t r a i n \mathcal{T}_{\mathrm{train}}\times\mathcal{P}_{\mathrm{train}} T train × P train , and U q ∈ R R × n U_q\in\mathbb{R}^{R\times n} U q ∈ R R × n is the matrix containing the first R R R rows of U ∈ R N × n U\in\mathbb{R}^{N\times n} U ∈ R N × n .
Set up of the numerical tests. In the numerical experiments, we set R = 2000 R=2000 R = 2000 so that the full order system has dimension N = 2 R + 1 = 4001 N=2R+1=4001 N = 2 R + 1 = 4001 . Following the setup of the test in [9 ] , the value γ = 8 \gamma=8 γ = 8 was used, and the dependence on a parameter was introduced through the initial conditions
q 0 ( μ ) = e μ 1 x , μ 1 ∈ [ − 0.2 , 5.2 ] , p 0 ( μ ) = ( 1 + μ 2 x 2 ) − 1 , μ 2 ∈ [ − 0.9 , 1 ] , S 0 ( μ ) = μ 3 , μ 3 ∈ [ 1 , 3 ] , \begin{aligned}
\mathbf{q}_0(\mu) &= e^{\mu_1\mathbf{x}}, & \mu_1 &\in[-0.2,5.2],\\
\mathbf{p}_0(\mu) &= (1+\mu_2\mathbf{x}^2)^{-1}, & \mu_2 &\in[-0.9,1],\\
S_0(\mu) &= \mu_3, & \mu_3 &\in[1,3],
\end{aligned} q 0 ( μ ) p 0 ( μ ) S 0 ( μ ) = e μ 1 x , = ( 1 + μ 2 x 2 ) − 1 , = μ 3 , μ 1 μ 2 μ 3 ∈ [ − 0.2 , 5.2 ] , ∈ [ − 0.9 , 1 ] , ∈ [ 1 , 3 ] ,
where x ∈ R R \mathbf{x}\in\mathbb{R}^R x ∈ R R is a vector of R R R uniformly spaced points in [ 0 , 1 ] [0,1] [ 0 , 1 ] . In order to construct the snapshot matrix, we randomly select ∣ P t r a i n ∣ = 25 |\mathcal{P}_{\mathrm{train}}|=25 ∣ P train ∣ = 25 vectors of parameters according to a uniform distribution in the three-dimensional parameter domain. For each training parameter, the full order problem is solved with the LSODA time integrator on T = [ 0 , 8 ] \mathcal{T}=[0,8] T = [ 0 , 8 ] and snapshots are collected every Δ t = 0.02 \Delta t=0.02 Δ t = 0.02 , so that N t r a i n = 400 N_{\mathrm{train}}=400 N train = 400 .
For post-processing, we consider the test parameter μ t e s t = ( 0.65 , − 0.1 , 1.9 ) \mu_{\mathrm{test}}=(0.65,-0.1,1.9) μ test = ( 0.65 , − 0.1 , 1.9 ) , as in [9 ] , reduced dimensions n ∈ { 40 , 80 , 120 , 160 } n\in\{40,80,120,160\} n ∈ { 40 , 80 , 120 , 160 } , and EIM dimensions m H ∈ { 40 , 80 , 150 , 200 , 400 , 600 } m_H\in\{40,80,150,200,400,600\} m H ∈ { 40 , 80 , 150 , 200 , 400 , 600 } .
Numerical results. Table 2 provides a summary of the results over extended integration intervals. The results show that the approximation quality of the POD-ROM deteriorates outside of the training time window, and this is related with the failure to preserve the geometric structure of the problem.
Table 2. Damped thermoelastic rod. Comparison of different methods over longer temporal intervals [ 0 , T ] [0,T] [ 0 , T ] in terms of state error, Hamiltonian preservation error, and total runtime. The reduced dimension is set to n = 40 n=40 n = 40 and for the OP-HROM the hyper-reduced dimension is set to m H = 150 m_H=150 m H = 150 .
We remark that the hyper-reduced model is metriplectic with Hamiltonian given by an approximation of the original Hamiltonian function, and this can be numerically observed in the conservation error reported in the fourth column of Table 2 . However, as the dimension m H m_H m H of the hyper-reduced space increases this error decreases, as reported in Figure 4 on the right.
Figure 4. Damped thermoelastic rod. Temporal interval T = [ 0 , 48 ] \mathcal{T}=[0,48] T = [ 0 , 48 ] . Left: evolution of the error D Λ , H μ t e s t \mathcal{D}_{\Lambda,H}^{\mu_{\mathrm{test}}} D Λ , H μ test in (5.4) between the Hamiltonian evaluated at the solution of the various models and the Hamiltonian at the initial condition of the full order model. The reduced space dimension is set to n = 80 n=80 n = 80 . Right: evolution of D Λ , H μ t e s t \mathcal{D}_{\Lambda,H}^{\mu_{\mathrm{test}}} D Λ , H μ test for the OP-HROM for different values of m H m_H m H .
Finally, the computational times reported in the last column of Table 2 highlight the effectiveness of reduction and the further runtime saving associated with hyper-reduction. In particular, OP-HBROM takes less than a third of the runtime required by the corresponding reduced model without hyper-reduction, while retaining comparable accuracy.
In Figure 4 we study the Hamiltonian conservation for the different methods. The relative error in the Hamiltonian conservation (plot on the left) reaches the numerical integration errors only for the structure-preserving models (EC-ROM and OP-ROM). The right panel shows the Hamiltonian conservation error along the trajectories of the hyper-reduced model, for different values of the EIM dimension m H m_H m H . Although, by Lemma 3.3, OP-HROM preserves the hyper-reduced Hamiltonian rather than the original one, convergence is observed as m H m_H m H increases.
Figure 5 reports the behavior of the entropy for the different models. In this test case, the OP-ROM provides the most accurate approximation of the entropy (left plot). The curve associated with the OP-HROM shows convergence as m H m_H m H increases, as expected. The right panel shows that all the tested ROMs are able to correctly represent the growth of the entropy functional.
Figure 5. Damped thermoelastic rod. Temporal interval T = [ 0 , 48 ] \mathcal{T} = [0,48] T = [ 0 , 48 ] . Left: Error E Λ , S μ t e s t \mathcal{E}_{\Lambda,S}^{\mu_{\mathrm{test}}} E Λ , S μ test in (40) between the entropy evaluated at the full order solution and the entropy evaluated at the reconstructed reduced or hyper-reduced solution vs. the hyper-reduced space dimension m H m_H m H . Right: evolution of the entropy for n = 80 n = 80 n = 80 fixed. The FOM curve displays S ( u μ t e s t ) S(\mathbf{u}^{\mu_{\mathrm{test}}}) S ( u μ test ) .
The particular structure of this example allows to efficiently hyper-reduce the EC-ROM of [9 ] in a structure-preserving way via the gradient-preserving approach of [21 ] . The corresponding model is dubbed EC-HROM. We refer to the supplementary materials for a detailed discussion on the construction. Since the corresponding reduced bases differ, EC-HROM and OP-HROM are constructed from different snapshot matrices (42) and thus use different EIM bases and sets of interpolation indices. We point out that, for general problems, the EC-ROM requires a factorization of the semi-metric tensor G ^ \widehat{G} G , whose complexity scales cubically with N N N .
Table 3 compares the relative state errors E Λ μ t e s t \mathcal{E}_{\Lambda}^{\mu_{\mathrm{test}}} E Λ μ test , defined in (39) , and the computational times. For sufficiently large hyper-reduction spaces, both EC-HROM and OP-HROM recover the accuracy of the corresponding ROM while reducing the computational runtime. Moreover, while their accuracy is comparable over the tested reduced and hyper-reduced spaces, the OP-HROM generally requires less computational time than the EC-HROM.
Conclusions
Conclusions
We developed two structure-preserving model order reduction strategies for metriplectic systems, using oblique projections compatible with hyper-reduction and block-diagonal bases adapted to the operator structure. We established preservation properties, thermodynamical consistency, and approximation error bounds, and demonstrated accuracy and computational gains on two benchmarks. Further investigation should target more demanding tests that include nonlinear entropy, state-dependent Poisson operators, and larger dissipative blocks. Another direction is the development of time integrators that preserve the thermodynamic properties at the fully discrete level.
Acknowledgments
The authors acknowledge the MIUR Excellence Department Project awarded to the Department of Mathematics, University of Pisa, CUP I57G22000700001 and the INdAM-GNCS. The work of A.B. has been supported by the European Union – NextGenerationEU, under the National Recovery and Resilience Plan (NRRP), through the MUR Project CUP I51J23000400007. A.B. wishes to thank Damiano Lombardi (INRIA Paris), Michiel Hochstenbach (Eindhoven University of Technology), and Mark Peletier (Eindhoven University of Technology) for fruitful discussions on topics related to this work.
Example: two thermo-spring system in entropy variables
In this part we provide further details about the entropy-based metriplectic formulation of the two thermo-spring system discussed in § 5.2 and about the implementation of the associated reduced order models.
The system, as described in [4 Section 4.3.1] , consists of two point masses connected by two thermo-springs which exchange heat. The first spring connects the first mass to a fixed point, while the second spring connects the two masses. In order to obtain a problem suitable for model order reduction, we retain the structure as described in [4 ] but increase the mechanical dimension. The state vector is given by
u = [ q 1 T q 2 T p 1 T p 2 T S 1 S 2 ] T ∈ R N , \mathbf{u} = \left[\mathbf{q}_1^{\mathsf{T}}\quad\mathbf{q}_2^{\mathsf{T}}\quad\mathbf{p}_1^{\mathsf{T}}\quad\mathbf{p}_2^{\mathsf{T}}\quad S_1\quad S_2\right]^{\mathsf{T}} \in\mathbb{R}^{N}, u = [ q 1 T q 2 T p 1 T p 2 T S 1 S 2 ] T ∈ R N ,
where N : = 4 R + 2 N := 4R+2 N := 4 R + 2 , q 1 , q 2 ∈ R R \mathbf{q}_1, \mathbf{q}_2 \in\mathbb{R}^{R} q 1 , q 2 ∈ R R are the position vectors, p 1 , p 2 ∈ R R \mathbf{p}_1, \mathbf{p}_2 \in\mathbb{R}^{R} p 1 , p 2 ∈ R R are the corresponding momenta, and the thermodynamic state is represented by the entropies S 1 , S 2 S_1, S_2 S 1 , S 2 .
Let us consider the following notation. Let u ~ \widetilde{\mathbf{u}} u denote a generic state in R N \mathbb{R}^{N} R N and let us use the symbol tilde to refer to its component. Moreover, for a generic element w \mathbf{w} w in R n \mathbb{R}^{n} R n , we denote with w ( r ) ( μ ) : = u 0 ( μ ) + U w \mathbf{w}^{(r)}(\mu) := \mathbf{u}_0(\mu) + U\mathbf{w} w ( r ) ( μ ) := u 0 ( μ ) + U w its lifting to the full order space shifted by the initial condition u 0 ( μ ) \mathbf{u}_0(\mu) u 0 ( μ ) of the full order model (1.1) with parameter μ ∈ P \mu\in\mathcal{P} μ ∈ P . Let us introduce the sets
D : = { u ~ ∈ R N ∣ q ~ 1 ≠ 0 , q ~ 1 ≠ q ~ 2 } , D := \left\{\widetilde{\mathbf{u}} \in\mathbb{R}^{N} \mid\widetilde{\mathbf{q}}_1 \ne0,\ \widetilde{\mathbf{q}}_1 \ne\widetilde{\mathbf{q}}_2\right\}, D := { u ∈ R N ∣ q 1 = 0 , q 1 = q 2 } ,
D r ( μ ) : = { w ∈ R n ∣ w ( r ) ( μ ) = u 0 ( μ ) + U w ∈ D } . D_r(\mu) := \left\{\mathbf{w} \in\mathbb{R}^{n} \mid\mathbf{w}^{(r)}(\mu) = \mathbf{u}_0(\mu) + U\mathbf{w} \in D\right\}. D r ( μ ) := { w ∈ R n ∣ w ( r ) ( μ ) = u 0 ( μ ) + U w ∈ D } .
The dynamics of this problem can be written in metriplectic form (1.1)-(1.2) as
u ˙ ( t ; μ ) = J ∇ H ( u ( t ; μ ) ) + G ( u ( t ; μ ) ) ∇ S ( u ( t ; μ ) ) , ∀ t ∈ T , \dot{\mathbf{u}}(t;\mu) = J\nabla H(\mathbf{u}(t;\mu)) + G(\mathbf{u}(t;\mu))\nabla S(\mathbf{u}(t;\mu)), \qquad\forall t \in\mathcal{T}, u ˙ ( t ; μ ) = J ∇ H ( u ( t ; μ )) + G ( u ( t ; μ )) ∇ S ( u ( t ; μ )) , ∀ t ∈ T ,
where the entropy of the system is linear and given by S = S 1 + S 2 S = S_1 + S_2 S = S 1 + S 2 , while the Hamiltonian is the total energy
H ( u ~ ) = 1 2 ( ∥ p ~ 1 ∥ 2 2 + ∥ p ~ 2 ∥ 2 2 ) + e 1 ( λ 1 ( u ~ ) , S ~ 1 ) + e 2 ( λ 2 ( u ~ ) , S ~ 2 ) , ∀ u ~ ∈ D , H(\widetilde{\mathbf{u}}) = \frac{1}{2}\left(\|\widetilde{\mathbf{p}}_1\|_2^2+\|\widetilde{\mathbf{p}}_2\|_2^2\right) + e_1(\lambda_1(\widetilde{\mathbf{u}}),\widetilde{S}_1) + e_2(\lambda_2(\widetilde{\mathbf{u}}),\widetilde{S}_2), \qquad\forall\widetilde{\mathbf{u}} \in D, H ( u ) = 2 1 ( ∥ p 1 ∥ 2 2 + ∥ p 2 ∥ 2 2 ) + e 1 ( λ 1 ( u ) , S 1 ) + e 2 ( λ 2 ( u ) , S 2 ) , ∀ u ∈ D ,
where λ 1 ( u ~ ) : = ∥ q ~ 1 ∥ 2 \lambda_1(\widetilde{\mathbf{u}}) := \|\widetilde{\mathbf{q}}_1\|_2 λ 1 ( u ) := ∥ q 1 ∥ 2 , and λ 2 ( u ~ ) : = ∥ q ~ 2 − q ~ 1 ∥ 2 \lambda_2(\widetilde{\mathbf{u}}) := \|\widetilde{\mathbf{q}}_2-\widetilde{\mathbf{q}}_1\|_2 λ 2 ( u ) := ∥ q 2 − q 1 ∥ 2 are the elongations of the springs, and, for j ∈ { 1 , 2 } j \in\{1,2\} j ∈ { 1 , 2 } ,
e j ( λ j ( u ~ ) , S ~ j ) = 1 2 log 2 ( λ j ( u ~ ) λ j 0 ) + α j T r e f log ( λ j ( u ~ ) λ j 0 ) + c j T r e f [ exp ( S ~ j − α j log ( λ j ( u ~ ) / λ j 0 ) c j ) − 1 ] . e_j(\lambda_j(\widetilde{\mathbf{u}}),\widetilde{S}_j) = \frac{1}{2}\log^2\left(\frac{\lambda_j(\widetilde{\mathbf{u}})}{\lambda_j^0}\right) + \alpha_j T_{\mathrm{ref}}\log\left(\frac{\lambda_j(\widetilde{\mathbf{u}})}{\lambda_j^0}\right) + c_j T_{\mathrm{ref}}\left[\exp\left(\frac{\widetilde{S}_j-\alpha_j\log(\lambda_j(\widetilde{\mathbf{u}})/\lambda_j^0)}{c_j}\right)-1\right]. e j ( λ j ( u ) , S j ) = 2 1 log 2 ( λ j 0 λ j ( u ) ) + α j T ref log ( λ j 0 λ j ( u ) ) + c j T ref [ exp ( c j S j − α j log ( λ j ( u ) / λ j 0 ) ) − 1 ] .
Here, for j ∈ { 1 , 2 } j \in\{1,2\} j ∈ { 1 , 2 } , the constant λ j 0 \lambda_j^0 λ j 0 is the natural length of the j j j th spring, c j c_j c j is its heat capacity, α j \alpha_j α j accounts for the thermo-mechanical coupling, and T r e f T_{\mathrm{ref}} T ref is the reference temperature at which the unstressed deformation is defined to be zero.
Moreover, the Poisson and semi-metric operators have the following expressions
J = [ 0 2 R × 2 R I 2 R 0 2 R × 1 0 2 R × 1 − I 2 R 0 2 R × 2 R 0 2 R × 1 0 2 R × 1 0 1 × 2 R 0 1 × 2 R 0 0 0 1 × 2 R 0 1 × 2 R 0 0 ] , J =
\begin{bmatrix}
0_{2R\times2R} & I_{2R} & 0_{2R\times1} & 0_{2R\times1}\\
-I_{2R} & 0_{2R\times2R} & 0_{2R\times1} & 0_{2R\times1}\\
0_{1\times2R} & 0_{1\times2R} & 0 & 0\\
0_{1\times2R} & 0_{1\times2R} & 0 & 0
\end{bmatrix}, J = 0 2 R × 2 R − I 2 R 0 1 × 2 R 0 1 × 2 R I 2 R 0 2 R × 2 R 0 1 × 2 R 0 1 × 2 R 0 2 R × 1 0 2 R × 1 0 0 0 2 R × 1 0 2 R × 1 0 0 ,
G ( u ~ ) = k [ 0 2 R × 2 R 0 2 R × 2 R 0 2 R × 1 0 2 R × 1 0 2 R × 2 R 0 2 R × 2 R 0 2 R × 1 0 2 R × 1 0 1 × 2 R 0 1 × 2 R T 2 ( u ~ ) / T 1 ( u ~ ) − 1 0 1 × 2 R 0 1 × 2 R − 1 T 1 ( u ~ ) / T 2 ( u ~ ) ] . G(\widetilde{\mathbf{u}}) = k
\begin{bmatrix}
0_{2R\times2R} & 0_{2R\times2R} & 0_{2R\times1} & 0_{2R\times1}\\
0_{2R\times2R} & 0_{2R\times2R} & 0_{2R\times1} & 0_{2R\times1}\\
0_{1\times2R} & 0_{1\times2R} & T_2(\widetilde{\mathbf{u}})/T_1(\widetilde{\mathbf{u}}) & -1\\
0_{1\times2R} & 0_{1\times2R} & -1 & T_1(\widetilde{\mathbf{u}})/T_2(\widetilde{\mathbf{u}})
\end{bmatrix}. G ( u ) = k 0 2 R × 2 R 0 2 R × 2 R 0 1 × 2 R 0 1 × 2 R 0 2 R × 2 R 0 2 R × 2 R 0 1 × 2 R 0 1 × 2 R 0 2 R × 1 0 2 R × 1 T 2 ( u ) / T 1 ( u ) − 1 0 2 R × 1 0 2 R × 1 − 1 T 1 ( u ) / T 2 ( u ) .
where k ≥ 0 k \ge0 k ≥ 0 is the coefficient of thermal conductivity, and, for any u ~ ∈ D \widetilde{\mathbf{u}} \in D u ∈ D ,
T j ( u ~ ) : = ∂ e j ∂ S ~ j ( λ j ( u ~ ) , S ~ j ) = T r e f exp ( S ~ j − α j log ( λ j ( u ~ ) / λ j 0 ) c j ) , j ∈ { 1 , 2 } . T_j(\widetilde{\mathbf{u}}) := \frac{\partial e_j}{\partial\widetilde{S}_j}(\lambda_j(\widetilde{\mathbf{u}}),\widetilde{S}_j) = T_{\mathrm{ref}}\exp\left(\frac{\widetilde{S}_j-\alpha_j\log\left(\lambda_j(\widetilde{\mathbf{u}})/\lambda_j^0\right)}{c_j}\right), \qquad j \in\{1,2\}. T j ( u ) := ∂ S j ∂ e j ( λ j ( u ) , S j ) = T ref exp ( c j S j − α j log ( λ j ( u ) / λ j 0 ) ) , j ∈ { 1 , 2 } .
The gradient of the Hamiltonian and of the entropy are given, for any u ~ ∈ D \widetilde{\mathbf{u}} \in D u ∈ D , by
∇ H ( u ~ ) = [ 1 ∥ q ~ 1 ∥ 2 ∂ e 1 ∂ λ 1 ( u ~ ) q ~ 1 + 1 ∥ q ~ 1 − q ~ 2 ∥ 2 ∂ e 2 ∂ λ 2 ( u ~ ) ( q ~ 1 − q ~ 2 ) 1 ∥ q ~ 1 − q ~ 2 ∥ 2 ∂ e 2 ∂ λ 2 ( u ~ ) ( q ~ 2 − q ~ 1 ) p ~ 1 p ~ 2 ∂ e 1 ∂ S ~ 1 ( u ~ ) = T 1 ( u ~ ) ∂ e 2 ∂ S ~ 2 ( u ~ ) = T 2 ( u ~ ) ] , ∇ S ( u ~ ) = [ 0 R × 1 0 R × 1 0 R × 1 0 R × 1 1 1 ] . \nabla H(\widetilde{\mathbf{u}})=
\begin{bmatrix}
\frac{1}{\lVert\widetilde{\mathbf{q}}_1\rVert_2}\frac{\partial e_1}{\partial\lambda_1}(\widetilde{\mathbf{u}})\widetilde{\mathbf{q}}_1+
\frac{1}{\lVert\widetilde{\mathbf{q}}_1-\widetilde{\mathbf{q}}_2\rVert_2}\frac{\partial e_2}{\partial\lambda_2}(\widetilde{\mathbf{u}})(\widetilde{\mathbf{q}}_1-\widetilde{\mathbf{q}}_2)\\
\frac{1}{\lVert\widetilde{\mathbf{q}}_1-\widetilde{\mathbf{q}}_2\rVert_2}\frac{\partial e_2}{\partial\lambda_2}(\widetilde{\mathbf{u}})(\widetilde{\mathbf{q}}_2-\widetilde{\mathbf{q}}_1)\\
\widetilde{\mathbf{p}}_1\\
\widetilde{\mathbf{p}}_2\\
\frac{\partial e_1}{\partial\widetilde{S}_1}(\widetilde{\mathbf{u}})=T_1(\widetilde{\mathbf{u}})\\
\frac{\partial e_2}{\partial\widetilde{S}_2}(\widetilde{\mathbf{u}})=T_2(\widetilde{\mathbf{u}})
\end{bmatrix},
\qquad
\nabla S(\widetilde{\mathbf{u}})=
\begin{bmatrix}
0_{R\times1}\\
0_{R\times1}\\
0_{R\times1}\\
0_{R\times1}\\
1\\
1
\end{bmatrix}. ∇ H ( u ) = ∥ q 1 ∥ 2 1 ∂ λ 1 ∂ e 1 ( u ) q 1 + ∥ q 1 − q 2 ∥ 2 1 ∂ λ 2 ∂ e 2 ( u ) ( q 1 − q 2 ) ∥ q 1 − q 2 ∥ 2 1 ∂ λ 2 ∂ e 2 ( u ) ( q 2 − q 1 ) p 1 p 2 ∂ S 1 ∂ e 1 ( u ) = T 1 ( u ) ∂ S 2 ∂ e 2 ( u ) = T 2 ( u ) , ∇ S ( u ) = 0 R × 1 0 R × 1 0 R × 1 0 R × 1 1 1 .
It can be easily verified that the degeneracy conditions (1.2) are satisfied, and therefore the total energy is conserved, and the total entropy is non-decreasing, since T j ( u ~ ) > 0 T_j(\widetilde{\mathbf{u}})>0 T j ( u ) > 0 , j ∈ { 1 , 2 } j\in\{1,2\} j ∈ { 1 , 2 } , for all u ~ ∈ D \widetilde{\mathbf{u}}\in D u ∈ D . In particular, if t ↦ u ( t ; μ ) t\mapsto\mathbf{u}(t;\mu) t ↦ u ( t ; μ ) is solution of the full order model for the parameter μ ∈ P \mu\in\mathcal{P} μ ∈ P , then
S ˙ ( u ( t ; μ ) ) = k ( T 2 ( u ( t ; μ ) ) − T 1 ( u ( t ; μ ) ) ) 2 T 1 ( u ( t ; μ ) ) T 2 ( u ( t ; μ ) ) ≥ 0. \dot{S}(\mathbf{u}(t;\mu))=k\frac{\left(T_2(\mathbf{u}(t;\mu))-T_1(\mathbf{u}(t;\mu))\right)^2}{T_1(\mathbf{u}(t;\mu))T_2(\mathbf{u}(t;\mu))}\ge0. S ˙ ( u ( t ; μ )) = k T 1 ( u ( t ; μ )) T 2 ( u ( t ; μ )) ( T 2 ( u ( t ; μ )) − T 1 ( u ( t ; μ )) ) 2 ≥ 0.
In the numerical experiments of Section 5.1, we set λ j 0 = c j = α j = T r e f = k = 1 \lambda_j^0=c_j=\alpha_j=T_{\mathrm{ref}}=k=1 λ j 0 = c j = α j = T ref = k = 1 , for j ∈ { 1 , 2 } j\in\{1,2\} j ∈ { 1 , 2 } , obtaining the simplified expressions reported in the main text.
The block diagonal reduced order model (BD-ROM). The two thermo-spring system has the structure discussed in Section 4, that is it can be written as
u ˙ ( t , μ ) = [ u ˙ 1 ( t , μ ) u ˙ 2 ( t , μ ) ] = [ J 1 ∇ 1 H ( u ( t , μ ) ) G 2 ( u ( t , μ ) ) ∇ 2 S ] . \dot{\mathbf{u}}(t,\mu)=
\begin{bmatrix}
\dot{\mathbf{u}}_1(t,\mu)\\
\dot{\mathbf{u}}_2(t,\mu)
\end{bmatrix}
=
\begin{bmatrix}
J_1\nabla_1H(\mathbf{u}(t,\mu))\\
G_2(\mathbf{u}(t,\mu))\nabla_2S
\end{bmatrix}. u ˙ ( t , μ ) = [ u ˙ 1 ( t , μ ) u ˙ 2 ( t , μ ) ] = [ J 1 ∇ 1 H ( u ( t , μ )) G 2 ( u ( t , μ )) ∇ 2 S ] .
with J J J and G G G of the form (4.1) with, for any u ~ ∈ D \widetilde{\mathbf{u}}\in D u ∈ D ,
J 1 = [ 0 2 R × 2 R I 2 R − I 2 R 0 2 R × 2 R ] , G 2 ( u ~ ) = k [ T 2 ( u ~ ) / T 1 ( u ~ ) − 1 − 1 T 1 ( u ~ ) / T 2 ( u ~ ) ] , G 1 = 0 4 R × 4 R . (43) J_1=
\begin{bmatrix}
0_{2R\times2R} & I_{2R}\\
-I_{2R} & 0_{2R\times2R}
\end{bmatrix},
\qquad
G_2(\widetilde{\mathbf{u}})=k
\begin{bmatrix}
T_2(\widetilde{\mathbf{u}})/T_1(\widetilde{\mathbf{u}}) & -1\\
-1 & T_1(\widetilde{\mathbf{u}})/T_2(\widetilde{\mathbf{u}})
\end{bmatrix},
\qquad
G_1=0_{4R\times4R}. \tag*{(43)} J 1 = [ 0 2 R × 2 R − I 2 R I 2 R 0 2 R × 2 R ] , G 2 ( u ) = k [ T 2 ( u ) / T 1 ( u ) − 1 − 1 T 1 ( u ) / T 2 ( u ) ] , G 1 = 0 4 R × 4 R . (43)
so that N 1 = 4 R N_1=4R N 1 = 4 R and N 2 = 2 N_2=2 N 2 = 2 .
For this model, it is meaningful to consider a reduced basis of the form (4.2) with U 2 = I 2 U_2=I_2 U 2 = I 2 , n 2 = N 2 = 2 n_2=N_2=2 n 2 = N 2 = 2 , since the last two variables correspond to the entropy of the system. Consequently, S r = S S_r=S S r = S . The block U 1 ∈ R N 1 × n 1 U_1\in\mathbb{R}^{N_1\times n_1} U 1 ∈ R N 1 × n 1 can be obtained by applying POD to the first 4 R 4R 4 R components of the snapshot matrix.
Concerning the reduced metriplectic conditions (1.6), the first one is trivially satisfied, owing to the block structure of U U U . For the second condition (4.3), let w ( r ) = u 0 ( μ ) + U w \mathbf{w}^{(r)}=\mathbf{u}_0(\mu)+U\mathbf{w} w ( r ) = u 0 ( μ ) + U w , with w ∈ R n \mathbf{w}\in\mathbb{R}^n w ∈ R n . Using the fact that G 1 = 0 4 R × 4 R G_1=0_{4R\times4R} G 1 = 0 4 R × 4 R and I U 2 = I 2 IU_2=I_2 I U 2 = I 2 , results in
G r ( w ) ∇ H r ( w ; μ ) = [ 0 n 1 × 1 G 2 ( w ( r ) ) ∇ 2 H ( w ( r ) ) ] = k [ 0 n 1 × 1 T 2 ( w ( r ) ) T 1 ( w ( r ) ) T 1 ( w ( r ) ) − T 2 ( w ( r ) ) − T 1 ( w ( r ) ) + T 1 ( w ( r ) ) T 2 ( w ( r ) ) T 2 ( w ( r ) ) ] = 0 n × 1 . G_r(\mathbf{w})\nabla H_r(\mathbf{w};\mu)=
\begin{bmatrix}
0_{n_1\times1}\\
G_2(\mathbf{w}^{(r)})\nabla_2H(\mathbf{w}^{(r)})
\end{bmatrix}
=
k\begin{bmatrix}
0_{n_1\times1}\\
\frac{T_2(\mathbf{w}^{(r)})}{T_1(\mathbf{w}^{(r)})}T_1(\mathbf{w}^{(r)})-T_2(\mathbf{w}^{(r)})\\
-T_1(\mathbf{w}^{(r)})+\frac{T_1(\mathbf{w}^{(r)})}{T_2(\mathbf{w}^{(r)})}T_2(\mathbf{w}^{(r)})
\end{bmatrix}
=0_{n\times1}. G r ( w ) ∇ H r ( w ; μ ) = [ 0 n 1 × 1 G 2 ( w ( r ) ) ∇ 2 H ( w ( r ) ) ] = k 0 n 1 × 1 T 1 ( w ( r ) ) T 2 ( w ( r ) ) T 1 ( w ( r ) ) − T 2 ( w ( r ) ) − T 1 ( w ( r ) ) + T 2 ( w ( r ) ) T 1 ( w ( r ) ) T 2 ( w ( r ) ) = 0 n × 1 .
The oblique-projection reduced order model (OP-ROM). To derive the OP-ROM in (10) , we set c H = c S = 2 − 1 / 2 ∇ S c_H=c_S=2^{-1/2}\nabla S c H = c S = 2 − 1/2 ∇ S . Clearly,
κ S = 2 , κ H ( u ~ ) = 1 2 ( T 1 ( u ~ ) + T 2 ( u ~ ) ) > 0 , ∀ u ~ ∈ D . \kappa_S=\sqrt{2},\qquad\kappa_H(\widetilde{\mathbf{u}})=\frac{1}{\sqrt{2}}\left(T_1(\widetilde{\mathbf{u}})+T_2(\widetilde{\mathbf{u}})\right)>0,\qquad\forall\widetilde{\mathbf{u}}\in D. κ S = 2 , κ H ( u ) = 2 1 ( T 1 ( u ) + T 2 ( u ) ) > 0 , ∀ u ∈ D .
This implies that Ω S , c S = R N \Omega_{S,c_S}=\mathbb{R}^{N} Ω S , c S = R N and Ω H , c H = D \Omega_{H,c_H}=D Ω H , c H = D , and, for any w ( r ) = u 0 ( μ ) + U w \mathbf{w}^{(r)}=\mathbf{u}_0(\mu)+U\mathbf{w} w ( r ) = u 0 ( μ ) + U w ,
Q S = I n − 1 2 ∇ S r ∇ S r T , Q H ( w ( r ) ) = I n − 1 T 1 ( w ( r ) ) + T 2 ( w ( r ) ) ∇ S r ∇ H r ( w ) T . Q_S=I_n-\frac{1}{2}\nabla S_r\nabla S_r^{\mathsf{T}},\qquad Q_H(\mathbf{w}^{(r)})=I_n-\frac{1}{T_1(\mathbf{w}^{(r)})+T_2(\mathbf{w}^{(r)})}\nabla S_r\nabla H_r(\mathbf{w})^{\mathsf{T}}. Q S = I n − 2 1 ∇ S r ∇ S r T , Q H ( w ( r ) ) = I n − T 1 ( w ( r ) ) + T 2 ( w ( r ) ) 1 ∇ S r ∇ H r ( w ) T .
The metriplectic reduced order model reads: given μ ∈ P \mu\in\mathcal{P} μ ∈ P and u r ( 0 ; μ ) = 0 \mathbf{u}_r(0;\mu)=0 u r ( 0 ; μ ) = 0 , find u r ( ⋅ ; μ ) ∈ C 1 ( T ; R n ) \mathbf{u}_r(\cdot;\mu)\in C^1(\mathcal{T};\mathbb{R}^{n}) u r ( ⋅ ; μ ) ∈ C 1 ( T ; R n ) such that
u ˙ r ( t ; μ ) = J o p ∇ H r ( u r ( t ; μ ) ; μ ) + G o p ( U u r ( t ; μ ) + u 0 ( μ ) ) ∇ S r , ∀ t ∈ T , (44) \dot{\mathbf{u}}_r(t;\mu)=J_{\mathrm{op}}\nabla H_r(\mathbf{u}_r(t;\mu);\mu)+G_{\mathrm{op}}(U\mathbf{u}_r(t;\mu)+\mathbf{u}_0(\mu))\nabla S_r,\qquad\forall t\in\mathcal{T}, \tag*{(44)} u ˙ r ( t ; μ ) = J op ∇ H r ( u r ( t ; μ ) ; μ ) + G op ( U u r ( t ; μ ) + u 0 ( μ )) ∇ S r , ∀ t ∈ T , (44)
with
J o p = Q S U T J U Q S T , G o p ( w ( r ) ) = Q H ( w ( r ) ) U T G ( w ( r ) ) U Q H ( w ( r ) ) T , J_{\mathrm{op}}=Q_SU^{\mathsf{T}}JUQ_S^{\mathsf{T}},\qquad G_{\mathrm{op}}(\mathbf{w}^{(r)})=Q_H(\mathbf{w}^{(r)})U^{\mathsf{T}}G(\mathbf{w}^{(r)})UQ_H(\mathbf{w}^{(r)})^{\mathsf{T}}, J op = Q S U T J U Q S T , G op ( w ( r ) ) = Q H ( w ( r ) ) U T G ( w ( r ) ) U Q H ( w ( r ) ) T ,
for all w ( r ) = u 0 ( μ ) + U w ∈ D \mathbf{w}^{(r)}=\mathbf{u}_0(\mu)+U\mathbf{w}\in D w ( r ) = u 0 ( μ ) + U w ∈ D .
For this model, a reduced space of dimension n n n satisfying the assumptions of Lemma 2.3 can be constructed via POD of the snapshot matrix truncated to n − 1 n-1 n − 1 , then augmented with the vector c H = c S ∈ R N \mathbf{c}_H=\mathbf{c}_S\in\mathbb{R}^{N} c H = c S ∈ R N and finally orthonormalized. The resulting reduced order model is thus metriplectic.
Efficient evaluation of the reduced order model. We show that, for this test case, the reduced order model OP-ROM in (A.2) can be solved at a cost independent of the dimension of the full order model, despite the nonlinearity in ∇ H r \nabla H_r ∇ H r and in G o p G_{\mathrm{op}} G op .
Let us introduce the following notation for the reduced basis U ∈ R N × n U\in\mathbb{R}^{N\times n} U ∈ R N × n ,
U = [ U q 1 T U q 2 T U p 1 T U p 2 T U S 1 T U S 2 T ] T . U=\begin{bmatrix}U_{q_1}^{\mathsf{T}}&U_{q_2}^{\mathsf{T}}&U_{p_1}^{\mathsf{T}}&U_{p_2}^{\mathsf{T}}&U_{S_1}^{\mathsf{T}}&U_{S_2}^{\mathsf{T}}\end{bmatrix}^{\mathsf{T}}. U = [ U q 1 T U q 2 T U p 1 T U p 2 T U S 1 T U S 2 T ] T .
where U q 1 , U q 2 , U p 1 , U p 2 ∈ R R × n U_{q_1},U_{q_2},U_{p_1},U_{p_2}\in\mathbb{R}^{R\times n} U q 1 , U q 2 , U p 1 , U p 2 ∈ R R × n , and U S 1 , U S 2 ∈ R 1 × n U_{S_1},U_{S_2}\in\mathbb{R}^{1\times n} U S 1 , U S 2 ∈ R 1 × n .
By definition of H H H , the gradient of the reduced Hamiltonian reads
∇ H r ( w ) = U T ∇ H ( w ( r ) ( μ ) ) = U q 1 T q 1 ( r ) ( μ ) ∑ j = 1 , 2 λ j − 1 ( w ( r ) ( μ ) ) ∂ e j ∂ λ j ( w ( r ) ( μ ) ) − λ 2 − 1 ( w ( r ) ( μ ) ) ∂ e 2 ∂ λ 2 ( w ( r ) ( μ ) ) ( U q 1 T q 2 ( r ) ( μ ) + U q 2 T ( q 1 ( r ) ( μ ) − q 2 ( r ) ( μ ) ) ) + U p 1 T p 1 ( r ) ( μ ) + U p 2 T p 2 ( r ) ( μ ) + T 1 ( w ( r ) ( μ ) ) U S 1 T + T 2 ( w ( r ) ( μ ) ) U S 2 T , \begin{aligned}
\nabla H_r(\mathbf{w})&=U^{\mathsf{T}}\nabla H(\mathbf{w}^{(r)}(\mu))=U_{q_1}^{\mathsf{T}}\mathbf{q}_1^{(r)}(\mu)\sum_{j=1,2}\lambda_j^{-1}(\mathbf{w}^{(r)}(\mu))\frac{\partial e_j}{\partial\lambda_j}(\mathbf{w}^{(r)}(\mu))\\
&\quad-\lambda_2^{-1}(\mathbf{w}^{(r)}(\mu))\frac{\partial e_2}{\partial\lambda_2}(\mathbf{w}^{(r)}(\mu))\left(U_{q_1}^{\mathsf{T}}\mathbf{q}_2^{(r)}(\mu)+U_{q_2}^{\mathsf{T}}(\mathbf{q}_1^{(r)}(\mu)-\mathbf{q}_2^{(r)}(\mu))\right)\\
&\quad+U_{p_1}^{\mathsf{T}}\mathbf{p}_1^{(r)}(\mu)+U_{p_2}^{\mathsf{T}}\mathbf{p}_2^{(r)}(\mu)+T_1(\mathbf{w}^{(r)}(\mu))U_{S_1}^{\mathsf{T}}+T_2(\mathbf{w}^{(r)}(\mu))U_{S_2}^{\mathsf{T}},
\end{aligned} ∇ H r ( w ) = U T ∇ H ( w ( r ) ( μ )) = U q 1 T q 1 ( r ) ( μ ) j = 1 , 2 ∑ λ j − 1 ( w ( r ) ( μ )) ∂ λ j ∂ e j ( w ( r ) ( μ )) − λ 2 − 1 ( w ( r ) ( μ )) ∂ λ 2 ∂ e 2 ( w ( r ) ( μ )) ( U q 1 T q 2 ( r ) ( μ ) + U q 2 T ( q 1 ( r ) ( μ ) − q 2 ( r ) ( μ )) ) + U p 1 T p 1 ( r ) ( μ ) + U p 2 T p 2 ( r ) ( μ ) + T 1 ( w ( r ) ( μ )) U S 1 T + T 2 ( w ( r ) ( μ )) U S 2 T ,
where the superscript r r r refers to the components of the vector w ( r ) ( μ ) = u 0 ( μ ) + U w \mathbf{w}^{(r)}(\mu)=\mathbf{u}_0(\mu)+U\mathbf{w} w ( r ) ( μ ) = u 0 ( μ ) + U w . For i , j ∈ { 1 , 2 } i,j\in\{1,2\} i , j ∈ { 1 , 2 } , it trivially holds
U q i T q j ( r ) ( μ ) = U q i T ( q 0 , j ( μ ) + U q j w ) , U_{q_i}^{\mathsf{T}}\mathbf{q}_j^{(r)}(\mu)=U_{q_i}^{\mathsf{T}}\left(\mathbf{q}_{0,j}(\mu)+U_{q_j}\mathbf{w}\right), U q i T q j ( r ) ( μ ) = U q i T ( q 0 , j ( μ ) + U q j w ) ,
where the matrix product U q i T U q j ∈ R n × n U_{q_i}^{\mathsf{T}}U_{q_j}\in\mathbb{R}^{n\times n} U q i T U q j ∈ R n × n can be computed offline, and the operations involving the initial condition can be performed once per instance of the parameter, so that a total of O ( n 2 ) O(n^2) O ( n 2 ) online operations are required per instance of the reduced state w ∈ R n \mathbf{w}\in\mathbb{R}^{n} w ∈ R n . Similar considerations can be made for the remaining terms, since
λ 1 ( w ( r ) ( μ ) ) 2 = ∥ q 0 , 1 ( μ ) + U q 1 w ∥ 2 2 = ∥ q 0 , 1 ( μ ) ∥ 2 2 + 2 q 0 , 1 ( μ ) T U q 1 w + ∥ U q 1 w ∥ 2 2 , \lambda_1(\mathbf{w}^{(r)}(\mu))^2=\left\|\mathbf{q}_{0,1}(\mu)+U_{q_1}\mathbf{w}\right\|_2^2=\left\|\mathbf{q}_{0,1}(\mu)\right\|_2^2+2\mathbf{q}_{0,1}(\mu)^{\mathsf{T}}U_{q_1}\mathbf{w}+\left\|U_{q_1}\mathbf{w}\right\|_2^2, λ 1 ( w ( r ) ( μ ) ) 2 = ∥ q 0 , 1 ( μ ) + U q 1 w ∥ 2 2 = ∥ q 0 , 1 ( μ ) ∥ 2 2 + 2 q 0 , 1 ( μ ) T U q 1 w + ∥ U q 1 w ∥ 2 2 ,
and similarly for λ 2 ( w ( r ) ( μ ) ) 2 \lambda_2(\mathbf{w}^{(r)}(\mu))^2 λ 2 ( w ( r ) ( μ ) ) 2 , and the fact that the term T j T_j T j , j ∈ { 1 , 2 } j\in\{1,2\} j ∈ { 1 , 2 } , is a scalar function of λ j \lambda_j λ j and S j S_j S j .
In order to cheaply evaluate the semi-metric operator G o p G_{\mathrm{op}} G op , one can exploit the block structure (33) with blocks given in (A.1). Denoting by U S ∈ R 2 × n U_S \in\mathbb{R}^{2 \times n} U S ∈ R 2 × n the part of the reduced basis U S : = [ U S 1 ⊤ U S 2 ⊤ ] ⊤ ∈ R 2 × n U_S := \begin{bmatrix} U_{S_1}^{\top} & U_{S_2}^{\top} \end{bmatrix}^{\top} \in\mathbb{R}^{2 \times n} U S := [ U S 1 ⊤ U S 2 ⊤ ] ⊤ ∈ R 2 × n , it holds
U ⊤ G ( u 0 ( μ ) + U w ) U = U S ⊤ G 2 ( u 0 ( μ ) + U w ) U S , ∀ w ∈ D r ( μ ) . U^{\top}G(\mathbf{u}_0(\mu)+U\mathbf{w})U=U_S^{\top}G_2(\mathbf{u}_0(\mu)+U\mathbf{w})U_S,\qquad\forall\mathbf{w}\in D_r(\mu). U ⊤ G ( u 0 ( μ ) + U w ) U = U S ⊤ G 2 ( u 0 ( μ ) + U w ) U S , ∀ w ∈ D r ( μ ) .
The evaluation at the reconstructed state entails the computation of T 1 T_1 T 1 and T 2 T_2 T 2 at the lifted state variable, which can be done in O ( n 2 ) O(n^2) O ( n 2 ) operations per state instance; the matrix products can be performed in O ( n 2 ) O(n^2) O ( n 2 ) operations per state instance.
Note that, since in this case the initial condition is parameter-dependent, an additional O ( n N ) O(nN) O ( n N ) operations are needed once per parameter instance in order to precompute the quantities that depend on the initial condition. Hence evaluating the reduced order model requires O ( n 2 ) O(n^2) O ( n 2 ) online operations per instance of the reduced state and O ( n N ) O(nN) O ( n N ) operations per instance of the parameter μ \mu μ .
The previous arguments also show that the EC-ROM of [9 ] can be solved with arithmetic complexity independent of the full dimension N N N . Indeed, from Theorem 3.4 of [9 ] , the reduced conservative part requires only the evaluation of the reduced Hamiltonian gradient, which can be computed in O ( n 2 ) O(n^2) O ( n 2 ) operations per instance of the reduced state. Moreover, since G ( u ~ ) G(\widetilde{\mathbf{u}}) G ( u ) has rank one for any u ~ ∈ D \widetilde{\mathbf{u}}\in D u ∈ D , the entropy term of the EC-ROM can be written as
G E C ( w ; μ ) ∇ S r : = k ( ∇ S r ⊤ m ( w ) ) m ( w ) , ∀ w ∈ D r ( μ ) . G_{\mathrm{EC}}(\mathbf{w};\mu)\nabla S_r:=k\left(\nabla S_r^{\top}\mathbf{m}(\mathbf{w})\right)\mathbf{m}(\mathbf{w}),\qquad\forall\mathbf{w}\in D_r(\mu). G EC ( w ; μ ) ∇ S r := k ( ∇ S r ⊤ m ( w ) ) m ( w ) , ∀ w ∈ D r ( μ ) .
where
m ( w ) : = ( U S 2 ∇ H r ( w ) ) U S 1 ⊤ − ( U S 1 ∇ H r ( w ) ) U S 2 ⊤ T 1 ( u 0 ( μ ) + U w ) T 2 ( u 0 ( μ ) + U w ) , ∀ w ∈ D r ( μ ) . \mathbf{m}(\mathbf{w}):=\frac{\left(U_{S_2}\nabla H_r(\mathbf{w})\right)U_{S_1}^{\top}-\left(U_{S_1}\nabla H_r(\mathbf{w})\right)U_{S_2}^{\top}}{\sqrt{T_1(\mathbf{u}_0(\mu)+U\mathbf{w})T_2(\mathbf{u}_0(\mu)+U\mathbf{w})}},\qquad\forall\mathbf{w}\in D_r(\mu). m ( w ) := T 1 ( u 0 ( μ ) + U w ) T 2 ( u 0 ( μ ) + U w ) ( U S 2 ∇ H r ( w ) ) U S 1 ⊤ − ( U S 1 ∇ H r ( w ) ) U S 2 ⊤ , ∀ w ∈ D r ( μ ) .
Since computing m ( w ) ∈ R n \mathbf{m}(\mathbf{w})\in\mathbb{R}^n m ( w ) ∈ R n only requires the temperatures T 1 ( u 0 ( μ ) + U w ) , T 2 ( u 0 ( μ ) + U w ) T_1(\mathbf{u}_0(\mu)+U\mathbf{w}),T_2(\mathbf{u}_0(\mu)+U\mathbf{w}) T 1 ( u 0 ( μ ) + U w ) , T 2 ( u 0 ( μ ) + U w ) and the Hamiltonian gradient ∇ H r ( w ) \nabla H_r(\mathbf{w}) ∇ H r ( w ) , the entropy term can be assembled in O ( n 2 ) O(n^2) O ( n 2 ) online operations. As before, an additional O ( n N ) O(nN) O ( n N ) cost is incurred once per parameter instance.
Example: the damped thermoelastic rod
This supplementary material contains further details on the damped thermoelastic rod system discussed in Section 5.2 and the implementation of the associated (hyper-)reduced order models.
The problem models a 1D elastic rod with space coordinate x ∈ [ 0 , L ] x\in[0,L] x ∈ [ 0 , L ] which evolves as a damped Hamiltonian system with friction. In this case, the full state vector is given by u = [ q ⊤ p ⊤ S ] ⊤ ∈ R N \mathbf{u}=\begin{bmatrix}\mathbf{q}^{\top}&\mathbf{p}^{\top}&S\end{bmatrix}^{\top}\in\mathbb{R}^N u = [ q ⊤ p ⊤ S ] ⊤ ∈ R N with q , p ∈ R R \mathbf{q},\mathbf{p}\in\mathbb{R}^R q , p ∈ R R , S ∈ R S\in\mathbb{R} S ∈ R , and N = 2 R + 1 N=2R+1 N = 2 R + 1 . The system can be expressed in metriplectic formulation (1.1)–(1.2) as
u ˙ ( t ; μ ) = J ∇ H ( u ( t ; μ ) ) + G ( u ( t ; μ ) ) ∇ S , ∀ t ∈ T , \dot{\mathbf{u}}(t;\mu)=J\nabla H(\mathbf{u}(t;\mu))+G(\mathbf{u}(t;\mu))\nabla S,\qquad\forall t\in\mathcal{T}, u ˙ ( t ; μ ) = J ∇ H ( u ( t ; μ )) + G ( u ( t ; μ )) ∇ S , ∀ t ∈ T ,
where, for any u ~ = [ q ~ ⊤ p ~ ⊤ S ~ ] ⊤ ∈ R N \widetilde{\mathbf{u}}=\begin{bmatrix}\widetilde{\mathbf{q}}^{\top}&\widetilde{\mathbf{p}}^{\top}&\widetilde{S}\end{bmatrix}^{\top}\in\mathbb{R}^N u = [ q ⊤ p ⊤ S ] ⊤ ∈ R N ,
J = [ 0 R × R I R 0 R × 1 − I R 0 R × R 0 R × 1 0 1 × R 0 1 × R 0 ] , G ( u ~ ) = γ [ 0 R × R 0 R × R 0 R × 1 0 R × R I R − p ~ 0 1 × R − p ~ ⊤ ∥ p ~ ∥ 2 2 ] , (45) J=\begin{bmatrix}
0_{R\times R} & I_R & 0_{R\times1}\\
-I_R & 0_{R\times R} & 0_{R\times1}\\
0_{1\times R} & 0_{1\times R} & 0
\end{bmatrix},\qquad
G(\widetilde{\mathbf{u}})=\gamma\begin{bmatrix}
0_{R\times R} & 0_{R\times R} & 0_{R\times1}\\
0_{R\times R} & I_R & -\widetilde{\mathbf{p}}\\
0_{1\times R} & -\widetilde{\mathbf{p}}^{\top} & \|\widetilde{\mathbf{p}}\|_2^2
\end{bmatrix}, \tag*{(45)} J = 0 R × R − I R 0 1 × R I R 0 R × R 0 1 × R 0 R × 1 0 R × 1 0 , G ( u ) = γ 0 R × R 0 R × R 0 1 × R 0 R × R I R − p ⊤ 0 R × 1 − p ∥ p ∥ 2 2 , (45)
with γ ≥ 0 \gamma\geq0 γ ≥ 0 , and
H ( u ~ ) = H ( q ~ , p ~ , S ~ ) = 1 2 ∥ p ~ ∥ 2 2 + S ~ + V ( q ~ ) , V ( q ~ ) = ∑ i = 1 R cos ( q ~ i ) . H(\widetilde{\mathbf{u}})=H(\widetilde{\mathbf{q}},\widetilde{\mathbf{p}},\widetilde{S})=\frac{1}{2}\|\widetilde{\mathbf{p}}\|_2^2+\widetilde{S}+V(\widetilde{\mathbf{q}}),\qquad V(\widetilde{\mathbf{q}})=\sum_{i=1}^{R}\cos(\widetilde{q}_i). H ( u ) = H ( q , p , S ) = 2 1 ∥ p ∥ 2 2 + S + V ( q ) , V ( q ) = i = 1 ∑ R cos ( q i ) .
In this example, the mass matrix is the identity M = I N M=I_N M = I N . A straightforward computation shows that J ∇ S = 0 J\nabla S=0 J ∇ S = 0 and G ( u ~ ) ∇ H ( u ~ ) = 0 G(\widetilde{\mathbf{u}})\nabla H(\widetilde{\mathbf{u}})=0 G ( u ) ∇ H ( u ) = 0 for all u ~ ∈ R N \widetilde{\mathbf{u}}\in\mathbb{R}^N u ∈ R N , and thus the system is indeed metriplectic.
The oblique-projection reduced order model. To construct the reduced model (10) , we set c H = c S = e N ∈ R N c_H=c_S=e_N\in\mathbb{R}^N c H = c S = e N ∈ R N . Since the last component of ∇ X \nabla_X ∇ X , for X ∈ { H , S } X\in\{H,S\} X ∈ { H , S } , is equal to one, this choice yields κ X = 1 \kappa_X=1 κ X = 1 in (7) , so that
Q S = I n − U ⊤ e N ∇ S ⊤ U , Q H ( U w + u 0 ( μ ) ) = I n − U ⊤ e N ∇ H r ( w ) ⊤ , ∀ w ∈ R n . Q_S=I_n-U^\top e_N\nabla S^\top U,\qquad Q_H(Uw+u_0(\mu))=I_n-U^\top e_N\nabla H_r(w)^\top,\qquad\forall w\in\mathbb{R}^n. Q S = I n − U ⊤ e N ∇ S ⊤ U , Q H ( U w + u 0 ( μ )) = I n − U ⊤ e N ∇ H r ( w ) ⊤ , ∀ w ∈ R n .
Similarly to the previous example, the evaluation of the reduced semi-metric operator G r ( w ) G_r(w) G r ( w ) can be carried out in O ( n 2 ) O(n^2) O ( n 2 ) operations per instance of the reduced state w w w , plus an additional O ( n N ) O(nN) O ( n N ) operations per parameter instance.
Hyper-reduction of the OP-ROM. We split the Hamiltonian into a quadratic part L H \mathcal{L}_H L H and a nonlinear part N H \mathcal{N}_H N H defined as
L H ( u ~ ) : = 1 2 ∥ p ~ ∥ 2 2 + S ~ , N H ( u ~ ) = V ( q ~ ) , ∀ u ~ ∈ R N . \mathcal{L}_H(\tilde{\mathbf{u}}):=\frac{1}{2}\lVert\tilde{\mathbf{p}}\rVert_2^2+\tilde{S},\qquad\mathcal{N}_H(\tilde{\mathbf{u}})=V(\tilde{\mathbf{q}}),\qquad\forall\tilde{\mathbf{u}}\in\mathbb{R}^N. L H ( u ~ ) := 2 1 ∥ p ~ ∥ 2 2 + S ~ , N H ( u ~ ) = V ( q ~ ) , ∀ u ~ ∈ R N .
In this case, the nonlinear term N H \mathcal{N}_H N H admits the decomposition
N H ( u ~ ) = a H ⊤ h ( q ~ ) , ∀ u ~ ∈ R N . \mathcal{N}_H(\tilde{\mathbf{u}})=\mathbf{a}_H^\top\mathbf{h}(\tilde{\mathbf{q}}),\qquad\forall\tilde{\mathbf{u}}\in\mathbb{R}^N. N H ( u ~ ) = a H ⊤ h ( q ~ ) , ∀ u ~ ∈ R N .
where a H = 1 ∈ R R \mathbf{a}_H=1\in\mathbb{R}^R a H = 1 ∈ R R is the vector with all entries equal to 1 1 1 and h i ( q ~ ) : = cos ( q ~ i ) h_i(\tilde{\mathbf{q}}):=\cos(\tilde{q}_i) h i ( q ~ ) := cos ( q ~ i ) , for 1 ≤ i ≤ R 1\leq i\leq R 1 ≤ i ≤ R . Note that here d = R d=R d = R .
Let U ∈ R N × n U\in\mathbb{R}^{N\times n} U ∈ R N × n be such that U ⊤ U = I n U^\top U=I_n U ⊤ U = I n , and let
u 0 ( μ ) = [ q 0 ( μ ) ⊤ p 0 ( μ ) ⊤ S 0 ( μ ) ] ⊤ ∈ R N \mathbf{u}_0(\mu)=\begin{bmatrix}\mathbf{q}_0(\mu)^\top& \mathbf{p}_0(\mu)^\top& S_0(\mu)\end{bmatrix}^\top\in\mathbb{R}^N u 0 ( μ ) = [ q 0 ( μ ) ⊤ p 0 ( μ ) ⊤ S 0 ( μ ) ] ⊤ ∈ R N
be the initial condition of the full order model. We consider the following representation
U = [ U q U p u S ⊤ ] , with U q ∈ R R × n , U p ∈ R R × n , u S ∈ R n . (46) U=\begin{bmatrix}U_q\\ U_p\\ u_S^\top\end{bmatrix},\qquad\text{with }\ U_q\in\mathbb{R}^{R\times n},\ U_p\in\mathbb{R}^{R\times n},\ u_S\in\mathbb{R}^n. \tag*{(46)} U = U q U p u S ⊤ , with U q ∈ R R × n , U p ∈ R R × n , u S ∈ R n . (46)
If the reduced basis U ∈ R N × n U\in\mathbb{R}^{N\times n} U ∈ R N × n is split as in (B.2), the hyper-reduced Hamiltonian is given by
H h r ( w ; μ ) = L H ( u 0 ( μ ) + U w ) + N H , h r ( w ; μ ) = 1 2 ∥ p 0 ( μ ) + U p w ∥ 2 2 + S 0 ( μ ) + u S ⊤ w + 1 ⊤ P H h ( q 0 ( μ ) + U q w ) , ∀ w ∈ R n . (47) \begin{aligned}
H_{\mathrm{hr}}(w;\mu)=\mathcal{L}_H(\mathbf{u}_0(\mu)+Uw)+\mathcal{N}_{H,\mathrm{hr}}(w;\mu) \\
&=\frac{1}{2}\lVert\mathbf{p}_0(\mu)+U_pw\rVert_2^2+S_0(\mu)+u_S^\top w+\mathbf{1}^\top P_H\mathbf{h}(\mathbf{q}_0(\mu)+U_qw),\qquad\forall w\in\mathbb{R}^n. \tag*{(47)}
\end{aligned} H hr ( w ; μ ) = L H ( u 0 ( μ ) + U w ) + N H , hr ( w ; μ ) = 2 1 ∥ p 0 ( μ ) + U p w ∥ 2 2 + S 0 ( μ ) + u S ⊤ w + 1 ⊤ P H h ( q 0 ( μ ) + U q w ) , ∀ w ∈ R n . (47)
where P H ∈ R R × R P_H\in\mathbb{R}^{R\times R} P H ∈ R R × R is a suitable EIM projection built as discussed in § 3.1 and H E I M ( u ~ ) = L H ( u ~ ) + 1 ⊤ P H h ( q ~ ) H_{\mathrm{EIM}}(\tilde{\mathbf{u}})=\mathcal{L}_H(\tilde{\mathbf{u}})+\mathbf{1}^\top P_H\mathbf{h}(\tilde{\mathbf{q}}) H EIM ( u ~ ) = L H ( u ~ ) + 1 ⊤ P H h ( q ~ ) , for any u ~ ∈ R N \tilde{\mathbf{u}}\in\mathbb{R}^N u ~ ∈ R N .
The hyper-reduced nonlinear gradient term approximation is thus given by
∇ N H , h r ( w ; μ ) = U q ⊤ D H ( q 0 ( μ ) + U q w ) P H ⊤ 1 = − U q ⊤ diag ( sin ( q 0 ( μ ) + U q w ) ) P H ⏟ I 1 ( P H ⊤ Ξ H = Ξ H ) ⊤ Ξ H 1 ⏟ I 2 , ∀ w ∈ R n . \begin{aligned}
\nabla\mathcal{N}_{H,\mathrm{hr}}(w;\mu)=U_q^\top D_H(\mathbf{q}_0(\mu)+U_qw)P_H^\top\mathbf{1} \\
&=-U_q^\top\underbrace{\operatorname{diag}(\sin(\mathbf{q}_0(\mu)+U_qw))P_H}_{I_1}\underbrace{(P_H^\top\Xi_H=\Xi_H)^\top\Xi_H\mathbf{1}}_{I_2},\qquad\forall w\in\mathbb{R}^n.
\end{aligned} ∇ N H , hr ( w ; μ ) = U q ⊤ D H ( q 0 ( μ ) + U q w ) P H ⊤ 1 = − U q ⊤ I 1 diag ( sin ( q 0 ( μ ) + U q w )) P H I 2 ( P H ⊤ Ξ H = Ξ H ) ⊤ Ξ H 1 , ∀ w ∈ R n .
where D H D_H D H is the Jacobian matrix of h \mathbf{h} h . The term I 2 I_2 I 2 does not depend on the state, and can thus be computed offline; on the other hand, the term I 1 I_1 I 1 can be efficiently evaluated online, since
I 1 = [ sin ( q 0 , i 1 ( μ ) + U q i 1 w ) U q i 1 ⊤ ⋯ sin ( q 0 , i m H ( μ ) + U q i m H w ) U q i m H ⊤ ] I_1=\begin{bmatrix}\sin(q_{0,i_1}(\mu)+U_{q_{i_1}}w)U_{q_{i_1}}^\top&\cdots&\sin(q_{0,i_{m_H}}(\mu)+U_{q_{i_{m_H}}}w)U_{q_{i_{m_H}}}^\top\end{bmatrix} I 1 = [ sin ( q 0 , i 1 ( μ ) + U q i 1 w ) U q i 1 ⊤ ⋯ sin ( q 0 , i m H ( μ ) + U q i m H w ) U q i m H ⊤ ]
where i 1 , … , i m H i_1,\ldots,i_{m_H} i 1 , … , i m H are the EIM interpolation indices, q 0 , j q_{0,j} q 0 , j is the j j j th component of q 0 \mathbf{q}_0 q 0 and U q j ∈ R 1 × n U_{q_j}\in\mathbb{R}^{1\times n} U q j ∈ R 1 × n denotes the j j j th row of U q U_q U q . Evaluating the m H m_H m H terms U q i 1 w , … , U q i m H w U_{q_{i_1}}w,\ldots,U_{q_{i_{m_H}}}w U q i 1 w , … , U q i m H w requires m H m_H m H scalar products; thus the cost of evaluating the I 1 I_1 I 1 term is O ( n m H ) O(nm_H) O ( n m H ) , independent of N N N . The hyper-reduced Hamiltonian gradient can thus be expressed, for all w ∈ R n \mathbf{w} \in\mathbb{R}^n w ∈ R n , as
∇ H h r ( w ; μ ) = − U q ⊤ diag ( sin ( q 0 ( μ ) + U q w ) ) P H ( P H ⊤ Ξ H ) − ⊤ Ξ H ⊤ 1 + U p ⊤ ( p 0 ( μ ) + U p w ) + u S , \nabla H_{\mathrm{hr}}(\mathbf{w};\mu)=-U_q^{\top}\operatorname{diag}\left(\sin(\mathbf{q}_0(\mu)+U_q\mathbf{w})\right)P_H(P_H^{\top}\Xi_H)^{-\top}\Xi_H^{\top}\mathbf{1}
+U_p^{\top}(\mathbf{p}_0(\mu)+U_p\mathbf{w})+\mathbf{u}_S, ∇ H hr ( w ; μ ) = − U q ⊤ diag ( sin ( q 0 ( μ ) + U q w ) ) P H ( P H ⊤ Ξ H ) − ⊤ Ξ H ⊤ 1 + U p ⊤ ( p 0 ( μ ) + U p w ) + u S ,
which can be evaluated with an online cost of O ( n m H + n 2 ) O(nm_H+n^2) O ( n m H + n 2 ) algebraic operations per instance of the reduced state. Again, since the initial condition is parameter dependent, the precomputable terms involving the initial condition need to be recomputed for each parameter instance, but only once per time simulation. This amounts to an extra O ( n N ) O(nN) O ( n N ) cost once per parameter instance. Note that this complexity analysis is consistent with the findings from Remark 3.1. Indeed, in this case, every entry of h ( q ~ ) \mathbf{h}(\widetilde{\mathbf{q}}) h ( q ) depends on a single entry of q ~ \widetilde{\mathbf{q}} q , and hence s h = 1 s_h=1 s h = 1 , giving an online cost for the evaluation of the hyper-reduced gradient of the nonlinear term of O ( n m H s h ) = O ( n m H ) O(nm_Hs_h)=O(nm_H) O ( n m H s h ) = O ( n m H ) , per state instance.
Regarding the semi-metric operator, one could derive G ‾ h r \overline{G}_{\mathrm{hr}} G hr via EIM approximation of vec ( G ) \operatorname{vec}(G) vec ( G ) where G G G is defined in (B.1). However, it is possible to assemble and evaluate the reduced semi-metric operator G r G_r G r with arithmetic complexity independent of N N N , as follows. From the definition of G G G one can easily verify that
G ‾ ( u ~ ) = U ⊤ G ( u ~ ) U = γ ( U p ⊤ U p − U p ⊤ p ~ u S ⊤ − u S p ~ ⊤ U p + ∥ p ~ ∥ 2 2 u S u S ⊤ ) , ∀ u ~ ∈ R N . (48) \overline{G}(\widetilde{\mathbf{u}})=U^{\top}G(\widetilde{\mathbf{u}})U=\gamma\left(U_p^{\top}U_p-U_p^{\top}\widetilde{\mathbf{p}}\mathbf{u}_S^{\top}-\mathbf{u}_S\widetilde{\mathbf{p}}^{\top}U_p+\lVert\widetilde{\mathbf{p}}\rVert_2^2\mathbf{u}_S\mathbf{u}_S^{\top}\right),\qquad\forall\widetilde{\mathbf{u}}\in\mathbb{R}^N. \tag*{(48)} G ( u ) = U ⊤ G ( u ) U = γ ( U p ⊤ U p − U p ⊤ p u S ⊤ − u S p ⊤ U p + ∥ p ∥ 2 2 u S u S ⊤ ) , ∀ u ∈ R N . (48)
Then, for any w ∈ R n \mathbf{w}\in\mathbb{R}^n w ∈ R n ,
G ‾ ( u 0 ( μ ) + U w ) = U ⊤ G ( u 0 ( μ ) + U w ) U = γ ( U p ⊤ U p − U p ⊤ p 0 ( μ ) u S ⊤ − U p ⊤ U p w u S ⊤ − u S p 0 ( μ ) ⊤ U p − u S w ⊤ U p ⊤ U p + ( ∥ p 0 ( μ ) ∥ 2 2 + 2 p 0 ( μ ) ⊤ U p w + w ⊤ U p ⊤ U p w ) u S u S ⊤ ) , \begin{aligned}
\overline{G}(\mathbf{u}_0(\mu)+U\mathbf{w})=U^{\top}G(\mathbf{u}_0(\mu)+U\mathbf{w})U \\
&=\gamma\left(U_p^{\top}U_p-U_p^{\top}\mathbf{p}_0(\mu)\mathbf{u}_S^{\top}-U_p^{\top}U_p\mathbf{w}\mathbf{u}_S^{\top}-\mathbf{u}_S\mathbf{p}_0(\mu)^{\top}U_p
-\mathbf{u}_S\mathbf{w}^{\top}U_p^{\top}U_p+\left(\lVert\mathbf{p}_0(\mu)\rVert_2^2+2\mathbf{p}_0(\mu)^{\top}U_p\mathbf{w}+\mathbf{w}^{\top}U_p^{\top}U_p\mathbf{w}\right)\mathbf{u}_S\mathbf{u}_S^{\top}\right),
\end{aligned} G ( u 0 ( μ ) + U w ) = U ⊤ G ( u 0 ( μ ) + U w ) U = γ ( U p ⊤ U p − U p ⊤ p 0 ( μ ) u S ⊤ − U p ⊤ U p w u S ⊤ − u S p 0 ( μ ) ⊤ U p − u S w ⊤ U p ⊤ U p + ( ∥ p 0 ( μ ) ∥ 2 2 + 2 p 0 ( μ ) ⊤ U p w + w ⊤ U p ⊤ U p w ) u S u S ⊤ ) ,
which can be evaluated with O ( n N ) + O ( n 2 ) O(nN)+O(n^2) O ( n N ) + O ( n 2 ) operations per instance of the parameter μ \mu μ , and O ( n 2 ) O(n^2) O ( n 2 ) operations per instance of the state w ∈ R n \mathbf{w}\in\mathbb{R}^n w ∈ R n .
The hyper-reduced model (15) reads: given μ ∈ P \mu\in\mathcal{P} μ ∈ P and u h r ( 0 ; μ ) = 0 ∈ R n \mathbf{u}_{\mathrm{hr}}(0;\mu)=\mathbf{0}\in\mathbb{R}^n u hr ( 0 ; μ ) = 0 ∈ R n , find u h r ( ⋅ ; μ ) ∈ C 1 ( T ; R n ) \mathbf{u}_{\mathrm{hr}}(\cdot;\mu)\in C^1(\mathcal{T};\mathbb{R}^n) u hr ( ⋅ ; μ ) ∈ C 1 ( T ; R n ) such that
u ˙ h r ( t ; μ ) = J o p ∇ H h r ( u h r ( t ; μ ) ; μ ) + G o p ( U u h r ( t ; μ ) + u 0 ( μ ) ; μ ) U ⊤ ∇ S , ∀ t ∈ T . \dot{\mathbf{u}}_{\mathrm{hr}}(t;\mu)=J_{\mathrm{op}}\nabla H_{\mathrm{hr}}(\mathbf{u}_{\mathrm{hr}}(t;\mu);\mu)+G_{\mathrm{op}}(U\mathbf{u}_{\mathrm{hr}}(t;\mu)+\mathbf{u}_0(\mu);\mu)U^{\top}\nabla S,\qquad\forall t\in\mathcal{T}. u ˙ hr ( t ; μ ) = J op ∇ H hr ( u hr ( t ; μ ) ; μ ) + G op ( U u hr ( t ; μ ) + u 0 ( μ ) ; μ ) U ⊤ ∇ S , ∀ t ∈ T .
The function H h r H_{\mathrm{hr}} H hr is given in (B.3), while the hyper-reduced Poisson and semi-metric tensors are defined, for any u ~ ∈ R N \widetilde{\mathbf{u}}\in\mathbb{R}^N u ∈ R N , as
J o p ( u ~ ; μ ) : = Q S ( u ~ ; μ ) J ‾ ( u ~ ) Q S ( u ~ ; μ ) ⊤ , J_{\mathrm{op}}(\widetilde{\mathbf{u}};\mu):=Q_S(\widetilde{\mathbf{u}};\mu)\overline{J}(\widetilde{\mathbf{u}})Q_S(\widetilde{\mathbf{u}};\mu)^{\top}, J op ( u ; μ ) := Q S ( u ; μ ) J ( u ) Q S ( u ; μ ) ⊤ ,
G o p ( u ~ ; μ ) : = Q H E I M ( u ~ ; μ ) G ‾ ( u ~ ) Q H E I M ( u ~ ; μ ) ⊤ , G_{\mathrm{op}}(\widetilde{\mathbf{u}};\mu):=Q_{\mathrm{HEIM}}(\widetilde{\mathbf{u}};\mu)\overline{G}(\widetilde{\mathbf{u}})Q_{\mathrm{HEIM}}(\widetilde{\mathbf{u}};\mu)^{\top}, G op ( u ; μ ) := Q HEIM ( u ; μ ) G ( u ) Q HEIM ( u ; μ ) ⊤ ,
where the operators Q S Q_S Q S and Q H E I M Q_{\mathrm{HEIM}} Q HEIM are defined as in (9) . Since the last component of both ∇ H E I M \nabla H_{\mathrm{EIM}} ∇ H EIM and ∇ S \nabla S ∇ S is equal to one at all times, setting c H E I M ( μ ) = c S ( μ ) c_{\mathrm{HEIM}}(\mu)=c_S(\mu) c HEIM ( μ ) = c S ( μ ) equal to the N N N th vector e N \mathbf{e}_N e N of the canonical basis in R N \mathbb{R}^N R N , gives
κ H E I M ( u ~ ; μ ) = κ S ( u ~ ; μ ) = 1 ∀ u ~ ∈ R N , μ ∈ P . \kappa_{\mathrm{HEIM}}(\widetilde{\mathbf{u}};\mu)=\kappa_S(\widetilde{\mathbf{u}};\mu)=1\qquad\forall\widetilde{\mathbf{u}}\in\mathbb{R}^N,\ \mu\in\mathcal{P}. κ HEIM ( u ; μ ) = κ S ( u ; μ ) = 1 ∀ u ∈ R N , μ ∈ P .
In the following we assume that the reduced basis matrix U ∈ R N × n U\in\mathbb{R}^{N\times n} U ∈ R N × n employed in the OP-ROM and OP-HROM is such that e N ∈ Range ( U ) \mathbf{e}_N\in\operatorname{Range}(U) e N ∈ Range ( U ) . Observe that J ‾ = U ⊤ J U = U q ⊤ U p − U p ⊤ U q ∈ R n × n \overline{J}=U^{\top}JU=U_q^{\top}U_p-U_p^{\top}U_q\in\mathbb{R}^{n\times n} J = U ⊤ J U = U q ⊤ U p − U p ⊤ U q ∈ R n × n and, since κ S ( ⋅ ; μ ) ≡ 1 \kappa_S(\cdot;\mu)\equiv1 κ S ( ⋅ ; μ ) ≡ 1 , then
Π S , c S ( u ~ ; μ ) : = U ⊤ M c S ( μ ) ∇ S ( u ~ ; μ ) ⊤ U = U ⊤ e N e N ⊤ U = u S u S ⊤ , ∀ u ~ ∈ R N . \Pi_{S,c_S}(\widetilde{\mathbf{u}};\mu):=U^{\top}M_{c_S(\mu)}\nabla S(\widetilde{\mathbf{u}};\mu)^{\top}U=U^{\top}\mathbf{e}_N\mathbf{e}_N^{\top}U=\mathbf{u}_S\mathbf{u}_S^{\top},\qquad\forall\widetilde{\mathbf{u}}\in\mathbb{R}^N. Π S , c S ( u ; μ ) := U ⊤ M c S ( μ ) ∇ S ( u ; μ ) ⊤ U = U ⊤ e N e N ⊤ U = u S u S ⊤ , ∀ u ∈ R N .
Moreover, since U U ⊤ e N = U u S = e N UU^{\top}\mathbf{e}_N=U\mathbf{u}_S=\mathbf{e}_N U U ⊤ e N = U u S = e N , it holds u S ⊤ u S = 1 \mathbf{u}_S^{\top}\mathbf{u}_S=1 u S ⊤ u S = 1 and U q q S = U p p S = 0 U_q\mathbf{q}_S=U_p\mathbf{p}_S=0 U q q S = U p p S = 0 . This implies that Π S , c S ( ⋅ ; μ ) J ‾ = 0 \Pi_{S,c_S}(\cdot;\mu)\overline{J}=0 Π S , c S ( ⋅ ; μ ) J = 0 , and, hence,
J o p ( u ~ ; μ ) : = ( I n − Π S , c S ( u ~ ; μ ) ) J ‾ ( I n − Π S , c S ( u ~ ; μ ) ) ⊤ = J ‾ , ∀ u ~ ∈ R N . J_{\mathrm{op}}(\widetilde{\mathbf{u}};\mu):=(I_n-\Pi_{S,c_S}(\widetilde{\mathbf{u}};\mu))\overline{J}(I_n-\Pi_{S,c_S}(\widetilde{\mathbf{u}};\mu))^{\top}=\overline{J},\qquad\forall\widetilde{\mathbf{u}}\in\mathbb{R}^N. J op ( u ; μ ) := ( I n − Π S , c S ( u ; μ )) J ( I n − Π S , c S ( u ; μ ) ) ⊤ = J , ∀ u ∈ R N .
Moreover, since κ H E I M ≡ 1 \kappa_{\mathrm{HEIM}} \equiv1 κ HEIM ≡ 1 , we have
Π H E I M , c H E I M ( u ~ ; μ ) : = U T M c H E I M ( μ ) ∇ H H E I M ( u ~ ) T U = u S ∇ H H E I M ( u ~ ) T U , ∀ u ~ ∈ R N \Pi_{\mathrm{HEIM},c_{\mathrm{HEIM}}}(\tilde{\mathbf{u}};\mu) := U^{\mathsf{T}}M_{c_{\mathrm{HEIM}}}(\mu)\nabla H_{\mathrm{HEIM}}(\tilde{\mathbf{u}})^{\mathsf{T}}U = u_S\nabla H_{\mathrm{HEIM}}(\tilde{\mathbf{u}})^{\mathsf{T}}U,\quad\forall\ \tilde{\mathbf{u}}\in\mathbb{R}^{N} Π HEIM , c HEIM ( u ~ ; μ ) := U T M c HEIM ( μ ) ∇ H HEIM ( u ~ ) T U = u S ∇ H HEIM ( u ~ ) T U , ∀ u ~ ∈ R N
so that G o p G_{\mathrm{op}} G op reads, for any u ~ ∈ R N \tilde{\mathbf{u}}\in\mathbb{R}^{N} u ~ ∈ R N ,
G o p ( u ~ ; μ ) = G o p ( u ~ ) = ( I n − u S ∇ H H E I M ( u ~ ) T U ) U T G ( u ~ ) U ( I n − U T ∇ H H E I M ( u ~ ) u S T ) . (49) G_{\mathrm{op}}(\tilde{\mathbf{u}};\mu)=G_{\mathrm{op}}(\tilde{\mathbf{u}})=\left(I_n-u_S\nabla H_{\mathrm{HEIM}}(\tilde{\mathbf{u}})^{\mathsf{T}}U\right)U^{\mathsf{T}}G(\tilde{\mathbf{u}})U\left(I_n-U^{\mathsf{T}}\nabla H_{\mathrm{HEIM}}(\tilde{\mathbf{u}})u_S^{\mathsf{T}}\right). \tag*{(49)} G op ( u ~ ; μ ) = G op ( u ~ ) = ( I n − u S ∇ H HEIM ( u ~ ) T U ) U T G ( u ~ ) U ( I n − U T ∇ H HEIM ( u ~ ) u S T ) . (49)
Hyper-reduction of the EC-ROM of [9 ] . For the numerical experiments of Table 3 , we consider, for the sake of comparison, the EC-ROM of [9 ] with a hyper-reduction of the nonlinear terms analogous to the one discussed in the previous paragraph. Indeed, from [9 ] , it can be easily verified that the conservative part of the dynamics can be written in terms of J r J_r J r , ∇ H r \nabla H_r ∇ H r , and ∇ S r \nabla S_r ∇ S r , which, in this test case, can be either precomputed or hyper-reduced through the gradient-preserving EIM technique recalled in § 3.1 . Next we show that the entropy term can be written in terms of G G G , ∇ H r \nabla H_r ∇ H r , and ∇ S r \nabla S_r ∇ S r and, thus, the discussion from the previous paragraph holds in this case as well.
Table 3. Damped thermoelastic rod. Temporal interval T = [ 0 , 48 ] \mathcal{T} = [0,48] T = [ 0 , 48 ] . Comparison of the proposed methods and the one of [9 ] with and without hyper-reduction, in terms of state error (39) , and total runtime. The reduced dimension is either n = 40 n = 40 n = 40 or n = 80 n = 80 n = 80 and different values of the hyper-reduced space dimension m H m_H m H are considered. The FOM runtime is 110.2268 s.
Using the notation from [9 ] , let us write the semi-metric operator G G G
G ( u ~ ) = ∑ α = 1 R m α ( u ~ ) m α ( u ~ ) T , m α ( u ~ ) : = γ [ 0 R × 1 e α − p ~ α ] , ∀ u ~ ∈ R N . (50) G(\tilde{\mathbf{u}})=\sum_{\alpha=1}^{R}\mathbf{m}^{\alpha}(\tilde{\mathbf{u}})\mathbf{m}^{\alpha}(\tilde{\mathbf{u}})^{\mathsf{T}},\qquad\mathbf{m}^{\alpha}(\tilde{\mathbf{u}}):=\sqrt{\gamma}\begin{bmatrix}0_{R\times1}\\ e_{\alpha}\\ -\tilde{p}_{\alpha}\end{bmatrix},\qquad\forall\ \tilde{\mathbf{u}}\in\mathbb{R}^{N}. \tag*{(50)} G ( u ~ ) = α = 1 ∑ R m α ( u ~ ) m α ( u ~ ) T , m α ( u ~ ) := γ 0 R × 1 e α − p ~ α , ∀ u ~ ∈ R N . (50)
If we denote with G E C G_{\mathrm{EC}} G EC the semi-metric operator in the EC-ROM, by [9 ] , one has, for all w ∈ R n \mathbf{w}\in\mathbb{R}^{n} w ∈ R n ,
G E C ( w ; μ ) ∇ S r = ∑ α = 1 R ( ∇ S r T A ^ α ( u 0 ( μ ) + U w ) ∇ H r ( w ) ) A ^ α ( u 0 ( μ ) + U w ) ∇ H r ( w ) , G_{\mathrm{EC}}(\mathbf{w};\mu)\nabla S_r=\sum_{\alpha=1}^{R}\left(\nabla S_r^{\mathsf{T}}\hat{A}^{\alpha}(\mathbf{u}_0(\mu)+U\mathbf{w})\nabla H_r(\mathbf{w})\right)\hat{A}^{\alpha}(\mathbf{u}_0(\mu)+U\mathbf{w})\nabla H_r(\mathbf{w}), G EC ( w ; μ ) ∇ S r = α = 1 ∑ R ( ∇ S r T A ^ α ( u 0 ( μ ) + U w ) ∇ H r ( w ) ) A ^ α ( u 0 ( μ ) + U w ) ∇ H r ( w ) ,
where
A ^ α ( u ~ ) : = a ^ α ( u ~ ) u S T − u S a ^ α ( u ~ ) T , a ^ α ( u ~ ) : = U T m α ( u ~ ) , ∀ u ~ ∈ R N ; \hat{A}^{\alpha}(\tilde{\mathbf{u}}):=\hat{a}^{\alpha}(\tilde{\mathbf{u}})u_S^{\mathsf{T}}-u_S\hat{a}^{\alpha}(\tilde{\mathbf{u}})^{\mathsf{T}},\qquad\hat{a}^{\alpha}(\tilde{\mathbf{u}}):=U^{\mathsf{T}}\mathbf{m}^{\alpha}(\tilde{\mathbf{u}}),\qquad\forall\ \tilde{\mathbf{u}}\in\mathbb{R}^{N}; A ^ α ( u ~ ) := a ^ α ( u ~ ) u S T − u S a ^ α ( u ~ ) T , a ^ α ( u ~ ) := U T m α ( u ~ ) , ∀ u ~ ∈ R N ;
Let B ( u ~ ) : = ∑ α = 1 R a ^ α ( u ~ ) a ^ α ( u ~ ) T B(\tilde{\mathbf{u}}):=\sum_{\alpha=1}^{R}\hat{a}^{\alpha}(\tilde{\mathbf{u}})\hat{a}^{\alpha}(\tilde{\mathbf{u}})^{\mathsf{T}} B ( u ~ ) := ∑ α = 1 R a ^ α ( u ~ ) a ^ α ( u ~ ) T , for any u ~ ∈ R N \tilde{\mathbf{u}}\in\mathbb{R}^{N} u ~ ∈ R N , and c ( w ; μ ) : = u S T ∇ H r ( w ; μ ) c(\mathbf{w};\mu):=u_S^{\mathsf{T}}\nabla H_r(\mathbf{w};\mu) c ( w ; μ ) := u S T ∇ H r ( w ; μ ) , for any w ∈ R n \mathbf{w}\in\mathbb{R}^{n} w ∈ R n . Recalling that ∇ S r = u S \nabla S_r=u_S ∇ S r = u S , a straightforward computation yields
G E C ( w ; μ ) ∇ S r = c ( w ; μ ) 2 B ( u 0 ( μ ) + U w ) u S − c ( w ; μ ) ∥ u S ∥ 2 2 B ( u 0 ( μ ) + U w ) ∇ H r ( w ; μ ) − ( c ( w ; μ ) u S T − ∥ u S ∥ 2 2 ∇ H r ( w ; μ ) T ) B ( u 0 ( μ ) + U w ) ∇ H r ( w ; μ ) u S . \begin{aligned}
G_{\mathrm{EC}}(\mathbf{w};\mu)\nabla S_r={}&c(\mathbf{w};\mu)^2B(\mathbf{u}_0(\mu)+U\mathbf{w})u_S\\
&-c(\mathbf{w};\mu)\lVert u_S\rVert_2^2B(\mathbf{u}_0(\mu)+U\mathbf{w})\nabla H_r(\mathbf{w};\mu)\\
&-\left(c(\mathbf{w};\mu)u_S^{\mathsf{T}}-\lVert u_S\rVert_2^2\nabla H_r(\mathbf{w};\mu)^{\mathsf{T}}\right)B(\mathbf{u}_0(\mu)+U\mathbf{w})\nabla H_r(\mathbf{w};\mu)u_S.
\end{aligned} G EC ( w ; μ ) ∇ S r = c ( w ; μ ) 2 B ( u 0 ( μ ) + U w ) u S − c ( w ; μ ) ∥ u S ∥ 2 2 B ( u 0 ( μ ) + U w ) ∇ H r ( w ; μ ) − ( c ( w ; μ ) u S T − ∥ u S ∥ 2 2 ∇ H r ( w ; μ ) T ) B ( u 0 ( μ ) + U w ) ∇ H r ( w ; μ ) u S .
Moreover, the identity
B ( u ~ ) = ∑ α = 1 R a ^ α ( u ~ ) a ^ α ( u ~ ) T = ∑ α = 1 R U T m α ( u ~ ) m α ( u ~ ) T U = U T G ( u ~ ) U , ∀ u ~ ∈ R N , B(\tilde{\mathbf{u}})=\sum_{\alpha=1}^{R}\hat{a}^{\alpha}(\tilde{\mathbf{u}})\hat{a}^{\alpha}(\tilde{\mathbf{u}})^{\mathsf{T}}=\sum_{\alpha=1}^{R}U^{\mathsf{T}}\mathbf{m}^{\alpha}(\tilde{\mathbf{u}})\mathbf{m}^{\alpha}(\tilde{\mathbf{u}})^{\mathsf{T}}U=U^{\mathsf{T}}G(\tilde{\mathbf{u}})U,\qquad\forall\ \tilde{\mathbf{u}}\in\mathbb{R}^{N}, B ( u ~ ) = α = 1 ∑ R a ^ α ( u ~ ) a ^ α ( u ~ ) T = α = 1 ∑ R U T m α ( u ~ ) m α ( u ~ ) T U = U T G ( u ~ ) U , ∀ u ~ ∈ R N ,
implies that B ( u 0 ( μ ) + U w ) = G r ( w ; μ ) B(\mathbf{u}_0(\mu)+U\mathbf{w})=G_r(\mathbf{w};\mu) B ( u 0 ( μ ) + U w ) = G r ( w ; μ ) , for any w ∈ R n \mathbf{w}\in\mathbb{R}^{n} w ∈ R n . This means that the term G E C ( w ; μ ) ∇ S r G_{\mathrm{EC}}(\mathbf{w};\mu)\nabla S_r G EC ( w ; μ ) ∇ S r can be efficiently computed via hyper-reduction of ∇ H r \nabla H_r ∇ H r , as discussed in the previous paragraph.
Verification of the hypotheses of Theorem 3.5. We verify that this example satisfies the hypotheses of the convergence Theorem 3.5 under the hypothesis that, for any parameter μ ∈ P \mu\in\mathcal{P} μ ∈ P the initial condition of the full order model satisfies the uniform bound
∥ q 0 ( μ ) ∥ 2 2 + ∥ p 0 ( μ ) ∥ 2 2 ≤ P 0 2 , (51) \lVert q_0(\mu)\rVert_2^2+\lVert p_0(\mu)\rVert_2^2\le P_0^2, \tag*{(51)} ∥ q 0 ( μ ) ∥ 2 2 + ∥ p 0 ( μ ) ∥ 2 2 ≤ P 0 2 , (51)
for some P 0 ∈ R P_0 \in\mathbb{R} P 0 ∈ R . In order to simplify the notation, here we consider the unshifted reconstruction of the full order state, i.e., u ( t ; μ ) \mathbf{u}(t;\mu) u ( t ; μ ) is approximated by U u h r ( t ; μ ) U\mathbf{u}_{\mathrm{hr}}(t;\mu) U u hr ( t ; μ ) , so that the initial condition of (3.3) is u h r ( 0 ; μ ) = U ⊤ u 0 ( μ ) \mathbf{u}_{\mathrm{hr}}(0;\mu)=U^\top\mathbf{u}_0(\mu) u hr ( 0 ; μ ) = U ⊤ u 0 ( μ ) .
First, we observe that the operator V o p , h r V_{\mathrm{op},\mathrm{hr}} V op , hr is defined in this example as
V o p , h r ( u ~ ) = J ‾ U ⊤ ∇ H E I M ( u ~ ) + G o p ( u ~ ) U ⊤ ∇ S , ∀ u ~ ∈ R N . (52) V_{\mathrm{op},\mathrm{hr}}(\widetilde{\mathbf{u}})=\overline{J}U^\top\nabla H_{\mathrm{EIM}}(\widetilde{\mathbf{u}})+G_{\mathrm{op}}(\widetilde{\mathbf{u}})U^\top\nabla S,\qquad\forall\widetilde{\mathbf{u}}\in\mathbb{R}^{N}. \tag*{(52)} V op , hr ( u ) = J U ⊤ ∇ H EIM ( u ) + G op ( u ) U ⊤ ∇ S , ∀ u ∈ R N . (52)
Since the operator V o p , h r V_{\mathrm{op},\mathrm{hr}} V op , hr is of the form above, we need to verify only hypotheses (3.7), (3.9) and the first equation in (3.8) in the form
∥ e N ∥ M max { ∥ M − 1 ∇ H E I M ( u ( t ; μ ) ) ∥ M , ∥ M − 1 ∇ S ∥ M } ≤ β H , \|\mathbf{e}_N\|_M\max\{\|M^{-1}\nabla H_{\mathrm{EIM}}(\mathbf{u}(t;\mu))\|_M,\|M^{-1}\nabla S\|_M\}\leq\beta_H, ∥ e N ∥ M max { ∥ M − 1 ∇ H EIM ( u ( t ; μ )) ∥ M , ∥ M − 1 ∇ S ∥ M } ≤ β H ,
with u \mathbf{u} u solution of the full order model.
To verify hypothesis (3.7), observe that, for any u ~ = ( q ~ ⊤ , p ~ ⊤ , S ~ ) ⊤ ∈ R N \widetilde{\mathbf{u}}=(\widetilde{\mathbf{q}}^\top,\widetilde{\mathbf{p}}^\top,\widetilde{S})^\top\in\mathbb{R}^{N} u = ( q ⊤ , p ⊤ , S ) ⊤ ∈ R N , it holds
∥ M − 1 J ^ ( u ~ ) ∥ M → M = ∥ J ∥ 2 = 1 , ∥ M − 1 G ^ ( u ~ ) ∥ M → M = ∥ G ( u ~ ) ∥ 2 = γ ( 1 + ∥ p ~ ∥ 2 2 ) . \|M^{-1}\widehat{J}(\widetilde{\mathbf{u}})\|_{M\to M}=\|J\|_2=1,\qquad\|M^{-1}\widehat{G}(\widetilde{\mathbf{u}})\|_{M\to M}=\|G(\widetilde{\mathbf{u}})\|_2=\gamma(1+\|\widetilde{\mathbf{p}}\|_2^2). ∥ M − 1 J ( u ) ∥ M → M = ∥ J ∥ 2 = 1 , ∥ M − 1 G ( u ) ∥ M → M = ∥ G ( u ) ∥ 2 = γ ( 1 + ∥ p ∥ 2 2 ) .
To bound the 2-norm of G G G , we take the mechanical energy
E ( u ~ ) : = 1 2 ∥ p ~ ∥ 2 2 + V ( q ~ ) E(\widetilde{\mathbf{u}}):=\frac{1}{2}\|\widetilde{\mathbf{p}}\|_2^2+V(\widetilde{\mathbf{q}}) E ( u ) := 2 1 ∥ p ∥ 2 2 + V ( q )
and observe that it satisfies E ˙ ( u ( t ; μ ) ) = − γ ∥ p ( t ; μ ) ∥ 2 2 ≤ 0 \dot{E}(\mathbf{u}(t;\mu))=-\gamma\|\mathbf{p}(t;\mu)\|_2^2\leq0 E ˙ ( u ( t ; μ )) = − γ ∥ p ( t ; μ ) ∥ 2 2 ≤ 0 for u \mathbf{u} u solution of the full order model. If the initial condition u 0 ( μ ) = ( q 0 ⊤ ( μ ) , p 0 ⊤ ( μ ) , S 0 ( μ ) ) ∈ R N \mathbf{u}_0(\mu)=(\mathbf{q}_0^\top(\mu),\mathbf{p}_0^\top(\mu),S_0(\mu))\in\mathbb{R}^{N} u 0 ( μ ) = ( q 0 ⊤ ( μ ) , p 0 ⊤ ( μ ) , S 0 ( μ )) ∈ R N satisfies ∥ p 0 ( μ ) ∥ 2 ≤ P 0 \|\mathbf{p}_0(\mu)\|_2\leq P_0 ∥ p 0 ( μ ) ∥ 2 ≤ P 0 uniformly in μ \mu μ for some P 0 ∈ R P_0\in\mathbb{R} P 0 ∈ R , then
1 2 ∥ p ( t ; μ ) ∥ 2 2 ≤ E ( q 0 ( μ ) , p 0 ( μ ) ) − V ( q ( t ; μ ) ) ≤ 1 2 P 0 2 + 2 R , \frac{1}{2}\|\mathbf{p}(t;\mu)\|_2^2\leq E(\mathbf{q}_0(\mu),\mathbf{p}_0(\mu))-V(\mathbf{q}(t;\mu))\leq\frac{1}{2}P_0^2+2R, 2 1 ∥ p ( t ; μ ) ∥ 2 2 ≤ E ( q 0 ( μ ) , p 0 ( μ )) − V ( q ( t ; μ )) ≤ 2 1 P 0 2 + 2 R ,
since − R ≤ V ( z ) ≤ R -R\leq V(\mathbf{z})\leq R − R ≤ V ( z ) ≤ R for any z ∈ R R \mathbf{z}\in\mathbb{R}^{R} z ∈ R R . Thus, α J = 1 \alpha_J=1 α J = 1 and α G = γ ( 1 + P 0 2 + 4 R ) \alpha_G=\gamma(1+P_0^2+4R) α G = γ ( 1 + P 0 2 + 4 R ) in (3.7).
Concerning the bound in (3.9), observe that the definition of the hyper-reduced Hamiltonian, with D H ( U q w ) = − diag ( sin ( U q w ) ) D_H(U_q\mathbf{w})=-\operatorname{diag}(\sin(U_q\mathbf{w})) D H ( U q w ) = − diag ( sin ( U q w )) , for any w ∈ R n \mathbf{w}\in\mathbb{R}^{n} w ∈ R n , gives
U ⊤ ∇ H E I M ( u ~ ) = U q ⊤ D H ( q ~ ) T H 1 + U p ⊤ p ~ + u S , ∀ u ~ ∈ R N , U^\top\nabla H_{\mathrm{EIM}}(\widetilde{\mathbf{u}})=U_q^\top D_H(\widetilde{\mathbf{q}})\mathbb{T}_H\mathbf{1}+U_p^\top\widetilde{\mathbf{p}}+u_S,\qquad\forall\widetilde{\mathbf{u}}\in\mathbb{R}^{N}, U ⊤ ∇ H EIM ( u ) = U q ⊤ D H ( q ) T H 1 + U p ⊤ p + u S , ∀ u ∈ R N ,
meaning that the first term of V o p , h r V_{\mathrm{op},\mathrm{hr}} V op , hr in (B.7) is equal to J ‾ f h r ( u ) \overline{J}f_{\mathrm{hr}}(\mathbf{u}) J f hr ( u ) with f h r ( u ~ ) : = U q ⊤ D H ( q ~ ) T H 1 + U p ⊤ p ~ f_{\mathrm{hr}}(\widetilde{\mathbf{u}}):=U_q^\top D_H(\widetilde{\mathbf{q}})\mathbb{T}_H\mathbf{1}+U_p^\top\widetilde{\mathbf{p}} f hr ( u ) := U q ⊤ D H ( q ) T H 1 + U p ⊤ p . If we evaluate f h r f_{\mathrm{hr}} f hr at the solution u \mathbf{u} u of the full order model and use the bound for the norm of p \mathbf{p} p , we get
∥ f h r ( u ) ∥ 2 2 ≤ ∥ diag ( sin ( q ) ) ∥ 2 2 ∥ T H ∥ 2 2 + ∥ p ∥ 2 2 ≤ R ∥ T H ∥ 2 2 + ∥ p ∥ 2 2 ≤ R ∥ T H ∥ 2 2 + P 0 2 + 4 R . (53) \|f_{\mathrm{hr}}(\mathbf{u})\|_2^2\leq\|\operatorname{diag}(\sin(\mathbf{q}))\|_2^2\|\mathbb{T}_H\|_2^2+\|\mathbf{p}\|_2^2\leq R\|\mathbb{T}_H\|_2^2+\|\mathbf{p}\|_2^2\leq R\|\mathbb{T}_H\|_2^2+P_0^2+4R. \tag*{(53)} ∥ f hr ( u ) ∥ 2 2 ≤ ∥ diag ( sin ( q )) ∥ 2 2 ∥ T H ∥ 2 2 + ∥ p ∥ 2 2 ≤ R ∥ T H ∥ 2 2 + ∥ p ∥ 2 2 ≤ R ∥ T H ∥ 2 2 + P 0 2 + 4 R . (53)
For the second term of V o p , h r ( ⋅ ; μ ) V_{\mathrm{op},\mathrm{hr}}(\cdot;\mu) V op , hr ( ⋅ ; μ ) , we use the expression of G o p G_{\mathrm{op}} G op derived in (B.5). Since U ⊤ ∇ S ( u ; μ ) = u S U^\top\nabla S(\mathbf{u};\mu)=u_S U ⊤ ∇ S ( u ; μ ) = u S , standard calculations show that the second term of V o p , h r V_{\mathrm{op},\mathrm{hr}} V op , hr reads
G o p ( u ~ ) u S = γ ( − U p ⊤ U p f h r ( u ~ ) + u S f h r ( u ~ ) ⊤ U p ⊤ U p f h r ( u ~ ) ) , ∀ u ~ ∈ R N . G_{\mathrm{op}}(\widetilde{\mathbf{u}})u_S=\gamma\left(-U_p^\top U_p f_{\mathrm{hr}}(\widetilde{\mathbf{u}})+u_Sf_{\mathrm{hr}}(\widetilde{\mathbf{u}})^\top U_p^\top U_p f_{\mathrm{hr}}(\widetilde{\mathbf{u}})\right),\qquad\forall\widetilde{\mathbf{u}}\in\mathbb{R}^{N}. G op ( u ) u S = γ ( − U p ⊤ U p f hr ( u ) + u S f hr ( u ) ⊤ U p ⊤ U p f hr ( u ) ) , ∀ u ∈ R N .
Putting all terms together yields, for all u ~ ∈ R N \widetilde{\mathbf{u}}\in\mathbb{R}^{N} u ∈ R N ,
V o p , h r ( u ~ ; μ ) = V o p , h r ( u ~ ) = J ‾ U ⊤ ∇ H E I M ( u ~ ) + G o p ( u ~ ) u S = ( J ‾ − γ U p ⊤ U p ) f h r ( u ~ ) + γ u S f h r ( u ~ ) ⊤ U p ⊤ U p f h r ( u ~ ) . \begin{aligned}
V_{\mathrm{op},\mathrm{hr}}(\widetilde{\mathbf{u}};\mu)&=V_{\mathrm{op},\mathrm{hr}}(\widetilde{\mathbf{u}})=\overline{J}U^\top\nabla H_{\mathrm{EIM}}(\widetilde{\mathbf{u}})+G_{\mathrm{op}}(\widetilde{\mathbf{u}})u_S\\
&=(\overline{J}-\gamma U_p^\top U_p)f_{\mathrm{hr}}(\widetilde{\mathbf{u}})+\gamma u_Sf_{\mathrm{hr}}(\widetilde{\mathbf{u}})^\top U_p^\top U_p f_{\mathrm{hr}}(\widetilde{\mathbf{u}}).
\end{aligned} V op , hr ( u ; μ ) = V op , hr ( u ) = J U ⊤ ∇ H EIM ( u ) + G op ( u ) u S = ( J − γ U p ⊤ U p ) f hr ( u ) + γ u S f hr ( u ) ⊤ U p ⊤ U p f hr ( u ) .
To find the bound in (3.9), we observe that, for any u ^ , u ~ ∈ R N \widehat{\mathbf{u}},\widetilde{\mathbf{u}}\in\mathbb{R}^{N} u , u ∈ R N ,
V o p , h r ( u ^ ; μ ) − V o p , h r ( u ~ ; μ ) = ( J ‾ − γ U p ⊤ U p ) ( f h r ( u ^ ) − f h r ( u ~ ) ) + γ u S f h r ( u ^ ) ⊤ U p ⊤ U p f h r ( u ^ ) − γ u S f h r ( u ~ ) ⊤ U p ⊤ U p f h r ( u ~ ) . \begin{aligned}
V_{\mathrm{op},\mathrm{hr}}(\widehat{\mathbf{u}};\mu)-V_{\mathrm{op},\mathrm{hr}}(\widetilde{\mathbf{u}};\mu)&=(\overline{J}-\gamma U_p^\top U_p)(f_{\mathrm{hr}}(\widehat{\mathbf{u}})-f_{\mathrm{hr}}(\widetilde{\mathbf{u}}))\\
&\quad+\gamma u_Sf_{\mathrm{hr}}(\widehat{\mathbf{u}})^\top U_p^\top U_p f_{\mathrm{hr}}(\widehat{\mathbf{u}})-\gamma u_Sf_{\mathrm{hr}}(\widetilde{\mathbf{u}})^\top U_p^\top U_p f_{\mathrm{hr}}(\widetilde{\mathbf{u}}).
\end{aligned} V op , hr ( u ; μ ) − V op , hr ( u ; μ ) = ( J − γ U p ⊤ U p ) ( f hr ( u ) − f hr ( u )) + γ u S f hr ( u ) ⊤ U p ⊤ U p f hr ( u ) − γ u S f hr ( u ) ⊤ U p ⊤ U p f hr ( u ) .
Since U p ⊤ U p U_p^\top U_p U p ⊤ U p is symmetric we have
f h r ( u ^ ) ⊤ U p ⊤ U p f h r ( u ^ ) − f h r ( u ~ ) ⊤ U p ⊤ U p f h r ( u ~ ) = ( f h r ( u ^ ) − f h r ( u ~ ) ) ⊤ U p ⊤ U p ( f h r ( u ^ ) + f h r ( u ~ ) ) . f_{\mathrm{hr}}(\hat{\mathbf{u}})^\top U_p^\top U_p f_{\mathrm{hr}}(\hat{\mathbf{u}})-f_{\mathrm{hr}}(\tilde{\mathbf{u}})^\top U_p^\top U_p f_{\mathrm{hr}}(\tilde{\mathbf{u}})=\left(f_{\mathrm{hr}}(\hat{\mathbf{u}})-f_{\mathrm{hr}}(\tilde{\mathbf{u}})\right)^\top U_p^\top U_p\left(f_{\mathrm{hr}}(\hat{\mathbf{u}})+f_{\mathrm{hr}}(\tilde{\mathbf{u}})\right). f hr ( u ^ ) ⊤ U p ⊤ U p f hr ( u ^ ) − f hr ( u ~ ) ⊤ U p ⊤ U p f hr ( u ~ ) = ( f hr ( u ^ ) − f hr ( u ~ ) ) ⊤ U p ⊤ U p ( f hr ( u ^ ) + f hr ( u ~ ) ) .
Then, using the fact that
∥ J ‾ ∥ 2 = ∥ U q ⊤ U p − U p ⊤ U q ∥ 2 ≤ 1 , ∥ U p ⊤ U p ∥ 2 ≤ 1 , \lVert\overline{J}\rVert_2=\lVert U_q^\top U_p-U_p^\top U_q\rVert_2\le1,\qquad\lVert U_p^\top U_p\rVert_2\le1, ∥ J ∥ 2 = ∥ U q ⊤ U p − U p ⊤ U q ∥ 2 ≤ 1 , ∥ U p ⊤ U p ∥ 2 ≤ 1 ,
gives, for any u ^ , u ~ ∈ R N \hat{\mathbf{u}},\tilde{\mathbf{u}}\in\mathbb{R}^N u ^ , u ~ ∈ R N ,
∥ V o p , h r ( u ^ ; μ ) − V o p , h r ( u ~ ; μ ) ∥ 2 2 ≤ ∥ f h r ( u ^ ) − f h r ( u ~ ) ∥ 2 2 ( 1 + γ ) 2 + 2 γ 2 ∥ u S ∥ 2 2 ∥ U p ⊤ U p ∥ 2 2 ( ∥ f h r ( u ^ ) ∥ 2 2 + ∥ f h r ( u ~ ) ∥ 2 2 ) . \lVert V_{\mathrm{op,hr}}(\hat{\mathbf{u}};\mu)-V_{\mathrm{op,hr}}(\tilde{\mathbf{u}};\mu)\rVert_2^2\le\lVert f_{\mathrm{hr}}(\hat{\mathbf{u}})-f_{\mathrm{hr}}(\tilde{\mathbf{u}})\rVert_2^2(1+\gamma)^2+2\gamma^2\lVert u_S\rVert_2^2\lVert U_p^\top U_p\rVert_2^2\left(\lVert f_{\mathrm{hr}}(\hat{\mathbf{u}})\rVert_2^2+\lVert f_{\mathrm{hr}}(\tilde{\mathbf{u}})\rVert_2^2\right). ∥ V op , hr ( u ^ ; μ ) − V op , hr ( u ~ ; μ ) ∥ 2 2 ≤ ∥ f hr ( u ^ ) − f hr ( u ~ ) ∥ 2 2 ( 1 + γ ) 2 + 2 γ 2 ∥ u S ∥ 2 2 ∥ U p ⊤ U p ∥ 2 2 ( ∥ f hr ( u ^ ) ∥ 2 2 + ∥ f hr ( u ~ ) ∥ 2 2 ) .
To bound the term ∥ f h r ( u ^ ) ∥ 2 \lVert f_{\mathrm{hr}}(\hat{\mathbf{u}})\rVert_2 ∥ f hr ( u ^ ) ∥ 2 one can use (B.8), if u ^ = u \hat{\mathbf{u}}=\mathbf{u} u ^ = u is the solution of the full order model. When u ^ = U u h r \hat{\mathbf{u}}=U\mathbf{u}_{\mathrm{hr}} u ^ = U u hr , with u h r \mathbf{u}_{\mathrm{hr}} u hr solution of the hyper-reduced model, one can only conclude that
∥ f h r ( U u h r ) ∥ 2 2 ≤ R ∥ P H ∥ 2 2 + ∥ U p u h r ∥ 2 2 . \lVert f_{\mathrm{hr}}(U\mathbf{u}_{\mathrm{hr}})\rVert_2^2\le R\lVert P_H\rVert_2^2+\lVert U_p\mathbf{u}_{\mathrm{hr}}\rVert_2^2. ∥ f hr ( U u hr ) ∥ 2 2 ≤ R ∥ P H ∥ 2 2 + ∥ U p u hr ∥ 2 2 .
Let E h r E_{\mathrm{hr}} E hr denote the hyper-reduction of the mechanical energy E E E , that is
E h r ( w ) : = 1 2 ∥ U p w ∥ 2 2 + N H , h r ( w ) = 1 2 ∥ U p w ∥ 2 2 + 1 ⊤ P H h ( U q w ) , ∀ w ∈ R n . E_{\mathrm{hr}}(\mathbf{w}):=\frac{1}{2}\lVert U_p\mathbf{w}\rVert_2^2+\mathcal{N}_{H,\mathrm{hr}}(\mathbf{w})=\frac{1}{2}\lVert U_p\mathbf{w}\rVert_2^2+\mathbf{1}^\top P_H h(U_q\mathbf{w}),\qquad\forall\ \mathbf{w}\in\mathbb{R}^n. E hr ( w ) := 2 1 ∥ U p w ∥ 2 2 + N H , hr ( w ) = 2 1 ∥ U p w ∥ 2 2 + 1 ⊤ P H h ( U q w ) , ∀ w ∈ R n .
Then, since u S ⊤ f h r = 0 u_S^\top f_{\mathrm{hr}}=0 u S ⊤ f hr = 0 and J ‾ \overline{J} J is skew-symmetric, it holds
d d t E h r ( u h r ) = ∇ E h r ( u h r ) ⊤ u ˙ h r = f h r ( U u h r ) ⊤ V o p , h r ( U u h r ) = f h r ( U u h r ) ⊤ ( J ‾ − γ U p ⊤ U p ) f h r ( U u h r ) + γ f h r ( U u h r ) ⊤ u S f h r ( U u h r ) ⊤ U p ⊤ U p f h r ( U u h r ) = − γ ∥ U p f h r ( U u h r ) ∥ 2 2 ≤ 0. \begin{aligned}
\frac{d}{dt}E_{\mathrm{hr}}(\mathbf{u}_{\mathrm{hr}})&=\nabla E_{\mathrm{hr}}(\mathbf{u}_{\mathrm{hr}})^\top\dot{\mathbf{u}}_{\mathrm{hr}}=f_{\mathrm{hr}}(U\mathbf{u}_{\mathrm{hr}})^\top V_{\mathrm{op,hr}}(U\mathbf{u}_{\mathrm{hr}})\\
&=f_{\mathrm{hr}}(U\mathbf{u}_{\mathrm{hr}})^\top\left(\overline{J}-\gamma U_p^\top U_p\right)f_{\mathrm{hr}}(U\mathbf{u}_{\mathrm{hr}})\\
&\quad+\gamma f_{\mathrm{hr}}(U\mathbf{u}_{\mathrm{hr}})^\top u_Sf_{\mathrm{hr}}(U\mathbf{u}_{\mathrm{hr}})^\top U_p^\top U_pf_{\mathrm{hr}}(U\mathbf{u}_{\mathrm{hr}})\\
&=-\gamma\lVert U_pf_{\mathrm{hr}}(U\mathbf{u}_{\mathrm{hr}})\rVert_2^2\le0.
\end{aligned} d t d E hr ( u hr ) = ∇ E hr ( u hr ) ⊤ u ˙ hr = f hr ( U u hr ) ⊤ V op , hr ( U u hr ) = f hr ( U u hr ) ⊤ ( J − γ U p ⊤ U p ) f hr ( U u hr ) + γ f hr ( U u hr ) ⊤ u S f hr ( U u hr ) ⊤ U p ⊤ U p f hr ( U u hr ) = − γ ∥ U p f hr ( U u hr ) ∥ 2 2 ≤ 0.
This implies that E h r ( u h r ( t ; μ ) ) ≤ E h r ( u h r ( 0 ; μ ) ) E_{\mathrm{hr}}(\mathbf{u}_{\mathrm{hr}}(t;\mu))\le E_{\mathrm{hr}}(\mathbf{u}_{\mathrm{hr}}(0;\mu)) E hr ( u hr ( t ; μ )) ≤ E hr ( u hr ( 0 ; μ )) . Moreover, since − ∥ P H ⊤ 1 ∥ 1 ≤ 1 ⊤ P H h ( z ) ≤ ∥ P H ⊤ 1 ∥ 1 -\lVert P_H^\top\mathbf{1}\rVert_1\le\mathbf{1}^\top P_Hh(\mathbf{z})\le\lVert P_H^\top\mathbf{1}\rVert_1 − ∥ P H ⊤ 1 ∥ 1 ≤ 1 ⊤ P H h ( z ) ≤ ∥ P H ⊤ 1 ∥ 1 , for any z ∈ R R \mathbf{z}\in\mathbb{R}^R z ∈ R R , then
1 2 ∥ U p u h r ( t ; μ ) ∥ 2 2 ≤ 1 2 ∥ U p u h r ( 0 ; μ ) ∥ 2 2 + 1 ⊤ P H ( h ( U q u h r ( 0 ; μ ) ) − h ( U q u h r ( t ; μ ) ) ) ≤ 1 2 P 0 2 + 2 ∥ P H ⊤ 1 ∥ 1 , \frac{1}{2}\lVert U_p\mathbf{u}_{\mathrm{hr}}(t;\mu)\rVert_2^2\le\frac{1}{2}\lVert U_p\mathbf{u}_{\mathrm{hr}}(0;\mu)\rVert_2^2+\mathbf{1}^\top P_H\left(h(U_q\mathbf{u}_{\mathrm{hr}}(0;\mu))-h(U_q\mathbf{u}_{\mathrm{hr}}(t;\mu))\right)
\le\frac{1}{2}P_0^2+2\lVert P_H^\top\mathbf{1}\rVert_1, 2 1 ∥ U p u hr ( t ; μ ) ∥ 2 2 ≤ 2 1 ∥ U p u hr ( 0 ; μ ) ∥ 2 2 + 1 ⊤ P H ( h ( U q u hr ( 0 ; μ )) − h ( U q u hr ( t ; μ )) ) ≤ 2 1 P 0 2 + 2 ∥ P H ⊤ 1 ∥ 1 ,
if we assume that, for any parameter μ ∈ P \mu\in\mathcal{P} μ ∈ P for which the hyper-reduced model is tested,
∥ U p u h r ( 0 ; μ ) ∥ 2 2 = ∥ U p ( U q ⊤ q 0 ( μ ) + U p ⊤ p 0 ( μ ) ) ∥ 2 2 ≤ ∥ q 0 ( μ ) ∥ 2 2 + ∥ p 0 ( μ ) ∥ 2 2 ≤ P 0 2 . \lVert U_p\mathbf{u}_{\mathrm{hr}}(0;\mu)\rVert_2^2=\lVert U_p(U_q^\top\mathbf{q}_0(\mu)+U_p^\top\mathbf{p}_0(\mu))\rVert_2^2\le\lVert\mathbf{q}_0(\mu)\rVert_2^2+\lVert\mathbf{p}_0(\mu)\rVert_2^2\le P_0^2. ∥ U p u hr ( 0 ; μ ) ∥ 2 2 = ∥ U p ( U q ⊤ q 0 ( μ ) + U p ⊤ p 0 ( μ )) ∥ 2 2 ≤ ∥ q 0 ( μ ) ∥ 2 2 + ∥ p 0 ( μ ) ∥ 2 2 ≤ P 0 2 .
This implies that
∥ f h r ( U u h r ) ∥ 2 2 ≤ R ∥ P H ∥ 2 2 + P 0 2 + 4 ∥ P H ⊤ 1 ∥ 1 . \lVert f_{\mathrm{hr}}(U\mathbf{u}_{\mathrm{hr}})\rVert_2^2\le R\lVert P_H\rVert_2^2+P_0^2+4\lVert P_H^\top\mathbf{1}\rVert_1. ∥ f hr ( U u hr ) ∥ 2 2 ≤ R ∥ P H ∥ 2 2 + P 0 2 + 4 ∥ P H ⊤ 1 ∥ 1 .
Finally, we observe that, for u ^ = ( q ^ ⊤ , p ^ ⊤ , S ^ ) ⊤ \hat{\mathbf{u}}=(\hat{\mathbf{q}}^\top,\hat{\mathbf{p}}^\top,\hat{S})^\top u ^ = ( q ^ ⊤ , p ^ ⊤ , S ^ ) ⊤ , u ~ = ( q ~ ⊤ , p ~ ⊤ , S ~ ) ⊤ ∈ R N \tilde{\mathbf{u}}=(\tilde{\mathbf{q}}^\top,\tilde{\mathbf{p}}^\top,\tilde{S})^\top\in\mathbb{R}^N u ~ = ( q ~ ⊤ , p ~ ⊤ , S ~ ) ⊤ ∈ R N , it holds
∥ f h r ( u ^ ) − f h r ( u ~ ) ∥ 2 2 = ∥ U ⊤ ( ( D H ( q ^ ) − D H ( q ~ ) ) P H ⊤ 1 p ^ − p ~ 0 ) ∥ 2 2 ≤ ∥ D H ( q ^ ) − D H ( q ~ ) ∥ F 2 ∥ P H ⊤ 1 ∥ 2 2 + ∥ u ^ − u ~ ∥ 2 2 ≤ ( 1 + R ∥ P H ∥ 2 2 ) ∥ u ^ − u ~ ∥ 2 2 . \lVert f_{\mathrm{hr}}(\hat{\mathbf{u}})-f_{\mathrm{hr}}(\tilde{\mathbf{u}})\rVert_2^2=
\left\lVert U^\top
\begin{pmatrix}
\left(D_H(\hat{\mathbf{q}})-D_H(\tilde{\mathbf{q}})\right)P_H^\top\mathbf{1}\\
\hat{\mathbf{p}}-\tilde{\mathbf{p}}\\
0
\end{pmatrix}
\right\rVert_2^2
\le\lVert D_H(\hat{\mathbf{q}})-D_H(\tilde{\mathbf{q}})\rVert_F^2\lVert P_H^\top\mathbf{1}\rVert_2^2+\lVert\hat{\mathbf{u}}-\tilde{\mathbf{u}}\rVert_2^2
\le\left(1+R\lVert P_H\rVert_2^2\right)\lVert\hat{\mathbf{u}}-\tilde{\mathbf{u}}\rVert_2^2. ∥ f hr ( u ^ ) − f hr ( u ~ ) ∥ 2 2 = U ⊤ ( D H ( q ^ ) − D H ( q ~ ) ) P H ⊤ 1 p ^ − p ~ 0 2 2 ≤ ∥ D H ( q ^ ) − D H ( q ~ ) ∥ F 2 ∥ P H ⊤ 1 ∥ 2 2 + ∥ u ^ − u ~ ∥ 2 2 ≤ ( 1 + R ∥ P H ∥ 2 2 ) ∥ u ^ − u ~ ∥ 2 2 .
This implies that, for
C : = ( 1 + γ ) 2 + 2 γ 2 ( 2 P 0 2 + 4 R + 2 R ∥ P H ∥ 2 2 + 4 ∥ P H T 1 ∥ 1 ) 1 + R ∥ P H ∥ 2 2 , C := \sqrt{(1+\gamma)^2 + 2\gamma^2\left(2P_0^2 + 4R + 2R\lVert P_H\rVert_2^2 + 4\lVert P_H^{\mathsf{T}}\mathbf{1}\rVert_1\right)}\sqrt{1+R\lVert P_H\rVert_2^2}, C := ( 1 + γ ) 2 + 2 γ 2 ( 2 P 0 2 + 4 R + 2 R ∥ P H ∥ 2 2 + 4 ∥ P H T 1 ∥ 1 ) 1 + R ∥ P H ∥ 2 2 ,
it holds
⟨ e ( t ; μ ) , V o p , h r ( u ( t ; μ ) ; μ ) − V o p , h r ( U u h r ( t ; μ ) ; μ ) ⟩ ≤ C ∥ e ( t ; μ ) ∥ 2 ∥ u − U u h r ∥ 2 ≤ ∥ e ( t ; μ ) ∥ 2 ( C e ∥ e ( t ; μ ) ∥ 2 + C u ∥ ( I N − Π U ) u ( t ; μ ) ∥ M ) , \begin{aligned}
\langle e(t;\mu), V_{\mathrm{op,hr}}(\mathbf{u}(t;\mu);\mu) - V_{\mathrm{op,hr}}(U\mathbf{u}_{\mathrm{hr}}(t;\mu);\mu)\rangle&\le C\lVert e(t;\mu)\rVert_2\lVert\mathbf{u}-U\mathbf{u}_{\mathrm{hr}}\rVert_2 \\
&\le\lVert e(t;\mu)\rVert_2\left(C_e\lVert e(t;\mu)\rVert_2 + C_u\lVert(I_N-\Pi_U)\mathbf{u}(t;\mu)\rVert_M\right),
\end{aligned} ⟨ e ( t ; μ ) , V op , hr ( u ( t ; μ ) ; μ ) − V op , hr ( U u hr ( t ; μ ) ; μ )⟩ ≤ C ∥ e ( t ; μ ) ∥ 2 ∥ u − U u hr ∥ 2 ≤ ∥ e ( t ; μ ) ∥ 2 ( C e ∥ e ( t ; μ ) ∥ 2 + C u ∥( I N − Π U ) u ( t ; μ ) ∥ M ) ,
which corresponds to the bound (3.9) with C u = C e = C C_u=C_e=C C u = C e = C .
Condition (3.8) requires us to find β H > 0 \beta_H>0 β H > 0 such that
∥ e N ∥ M max { ∥ M − 1 ∇ H E I M ( u ( t ; μ ) ) ∥ M , ∥ M − 1 ∇ S ( u ( t ; μ ) ) ∥ M } ≤ β H . \lVert e_N\rVert_M\max\left\{\lVert M^{-1}\nabla H_{\mathrm{EIM}}(\mathbf{u}(t;\mu))\rVert_M,\lVert M^{-1}\nabla S(\mathbf{u}(t;\mu))\rVert_M\right\}\le\beta_H. ∥ e N ∥ M max { ∥ M − 1 ∇ H EIM ( u ( t ; μ )) ∥ M , ∥ M − 1 ∇ S ( u ( t ; μ )) ∥ M } ≤ β H .
Using the fact that M M M is the identity matrix, and the definition of S S S , we get that ∥ M − 1 ∇ S ( u ( t ; μ ) ) ∥ M = ∥ ∇ S ∥ 2 = 1 \lVert M^{-1}\nabla S(\mathbf{u}(t;\mu))\rVert_M=\lVert\nabla S\rVert_2=1 ∥ M − 1 ∇ S ( u ( t ; μ )) ∥ M = ∥ ∇ S ∥ 2 = 1 , while
∥ ∇ H E I M ( u ( t ; μ ) ) ∥ 2 2 = ∥ D H ( q ( t ; μ ) ) T P H T ∥ 2 2 + ∥ p ( t ; μ ) ∥ 2 2 + 1 ≤ R ∥ P H ∥ 2 2 + P 0 2 + 4 R + 1 , \lVert\nabla H_{\mathrm{EIM}}(\mathbf{u}(t;\mu))\rVert_2^2=\lVert D_H(\mathbf{q}(t;\mu))^{\mathsf{T}}P_H^{\mathsf{T}}\rVert_2^2+\lVert\mathbf{p}(t;\mu)\rVert_2^2+1\le R\lVert P_H\rVert_2^2+P_0^2+4R+1, ∥ ∇ H EIM ( u ( t ; μ )) ∥ 2 2 = ∥ D H ( q ( t ; μ ) ) T P H T ∥ 2 2 + ∥ p ( t ; μ ) ∥ 2 2 + 1 ≤ R ∥ P H ∥ 2 2 + P 0 2 + 4 R + 1 ,
with a reasoning similar to (B.8). Then, condition (3.8) holds with
β H = R ∥ P H ∥ 2 2 + P 0 2 + 4 R + 1 . \beta_H=\sqrt{R\lVert P_H\rVert_2^2+P_0^2+4R+1}. β H = R ∥ P H ∥ 2 2 + P 0 2 + 4 R + 1 .