Port-Hamiltonian fluid PDEs for 1D propagation
General hypotheses
In this manuscript, all the models considered share the general hypotheses:
- (H1): Before reduction to 1D, viscous effects are neglected resulting in a fully conservative fluid flow. As they influence the behavior of the fluid through dissipations, thermal effects are not taken into account and a homentropic (constant entropy in space and time) flow is considered.
- (H2): Small density variations around the rest state are assumed, resulting in the use of a linearized equation of state relating pressure \(P\) and density \(\rho\), given by $$ \begin{equation} P = P_0 + \frac{\partial P}{\partial \rho} \bigg|_{\rho = \rho_0} (\rho - \rho_0) = P_0 + c_0^2 (\rho - \rho_0) \end{equation} $$ where \(P_0\) is the pressure at rest state, \(\rho_0\) the density at rest state and \(c_0\) the speed of sound. This assumption will be used to derive a closed form of the internal energy function \(u(\rho)\).
- (H3): The flow is supposed irrotational. This assumption is strong, as it is known that it is not valid everywhere in the larynx (or near exciters in wind instruments). However, it is a convenient hypothesis for the reduction to a quasi-1D model. Some effects related to the formation of rotational structures downstream of the glottis are however represented as lumped dissipation laws introduced in the discrete models.
The spatial domain of interest for representing the fluid in the vocal apparatus, or wind instruments is a tube with open ends and moving walls. In Cartesian coordinates, the domain is defined as $$ \begin{equation} \Omega(t) = {\xi = (x, y, z) | x \in (0, l_0), (y, z) \in S(x, t) }, \label{eq:domain} \end{equation} $$ with \(S(x, t)\) the cross-section of the tube at position \(x\) and time \(t\), of area \(A(x, t)\) and boundary \(\partial S(x, t)\). The shape of the cross-section is not yet specified but supposed to be a connected space. The boundary of the domain is separated into two parts:
- Fluid-fluid boundaries, denoted \(\partial\Omega_f = \{\xi = (x, y, z) \in \Omega(t) | x = \{0, l_0\} \}\), corresponding to interfaces through which the fluid can flow. The boundaries are considered fixed in time.
- Fluid-structure boundaries, denoted \(\partial\Omega_s = \partial\Omega \backslash \partial\Omega_f\), corresponding to interfaces with tissues or mechanical parts. These boundaries are assumed to be impervious, meaning that the normal velocity of the fluid \(\mathbf v . \mathbf n\) is equal to the normal velocity of the structure \(\mathbf w . \mathbf n\): $$ \begin{equation} \mathbf v . \mathbf n \vert_{\partial \Omega_s} = \mathbf w . \mathbf n \vert_{\partial \Omega_s}, \label{eq:bcwalls} \end{equation} $$ where \(\mathbf v\) denotes the fluid velocity, \(\mathbf n\) the normal vector to \(\partial\Omega_s\) and \(\mathbf w\) the structure velocity.
This choice appropriately represents the vocal apparatus from lungs to lips with a few exceptions coming from the hypothesis that \(S(x, t)\) is a connected space. Indeed, at the exit of the larynx, the epiglottis separates the cross-section in two disconnected spaces. Also, the nasal tract is separated from the mouth and may play an important role on the vocal tract resonant frequencies. On this last point however, note that it is possible to build several domains compatible with \eqref{eq:domain} and connect them together using compatibility conditions at the interfaces.
Specific density
The expression of the specific energy (i.e. per-unit mass density of internal energy) of the fluid \(u(\rho)\) is derived using Gibbs equation and hypothesis (H1) and (H2). The specific enthalpy \(\mathfrak h = u(\rho) + \frac{P}{\rho}\) is also introduced. The Gibbs equation in its mass specific form writes $$ \begin{equation} (a): d u = T\; {\rm d} s - P\; {\rm d}\frac{1}{\rho} \overset{(H1)}{=} - P\; {\rm d}\frac{1}{\rho} = \frac{P}{\rho^2} d\rho \quad \Leftrightarrow \quad (b): \frac{1}{\rho} {\rm d} P = {\rm d} \mathfrak{h} \label{eq:gibbs} \end{equation} $$ Integrating (a) from \(u_0 = u(\rho_0)\) yields $$ \begin{align} u(\rho) - u_0 &= \int_{\rho_0}^\rho \frac{d u}{d \rho} d\rho,\nonumber\\ &= \int_{\rho_0}^\rho \frac{P (\rho)}{\rho^2} d\rho, \nonumber\\ &\overset{(H2)}{=} \int_{\rho_0}^\rho \frac{P_0 + c_0^2 (\rho - \rho_0)}{\rho^2} d\rho, \nonumber\\ &= (P_0 - c_0^2 \rho_0) \left(\frac{1}{\rho_0} - \frac{1}{\rho}\right) + c_0^2 \ln\left(\frac{\rho}{\rho_0}\right), \label{eq:internal_energy} \end{align} $$ for the expression of the internal energy. The enthalpy is then given by: $$ \begin{equation} \mathfrak{h}(\rho) = \frac{\partial (\rho u(\rho))}{\partial \rho} = \mathfrak{h}_0 + c_0^2 \ln\left(\frac{\rho}{\rho_0}\right), \text{ with } \mathfrak{h}_0 = \frac{P_0}{\rho_0} + u_0. \label{eq:enthalpy} \end{equation} $$
Quadratic expansion of the potential energy
Under the above hypotheses, the potential energy volume density writes
and is not quadratic. Performing a second order expansion around \(\rho = \rho_0\) yields the following quadratic formulation:
where \(\tilde \rho\) denote small variations around \(\rho_0\). Setting \(u_0 = \frac{P_0}{\rho_0}\) and discarding the constant offset \(\rho_O u_0\) results in the classical expression for wave propagation
Euler equations for 3D flows
Consider the following set of PDE to describe the motion of a compressible inviscid fluid in the domain \(\Omega \subset \mathbb R^3\) (Euler equations), where \(\frac{\rm d}{\rm dt}:= \partial_t + \mathbf v. {\rm grad}\) denotes the material derivative:
Choosing state \(\alpha = [\rho, \mathbf{v}]^\intercal\), the Hamiltonian counting the total energy inside \(\Omega(t)\) is given by $$ \begin{equation} \mathcal H (\alpha, \Omega(t)) = \int_{\Omega(t)} \left( \frac{1}{2} \mathbf{v}^2 + u(\rho) \right) \rho\; d\Omega, \end{equation} $$ from which the effort is derived using variational derivatives
and includes the total enthalpy \(\mathfrak{h}_{tot} = \mathfrak{h} + \frac{1}{2} \mathbf{v}^2\) and mass flow rate \(\mathbf q = \rho \mathbf v\). Rewriting the equations of conservation in a matrix form yields the following pseudo-pH (as the dynamics of the domain \(\Omega(t)\) are not included) formulation
In order to show that the operator \(S\) is a formally skew-adjoint operator (as expected for conservative systems), the power balance is computed using the Leibniz integral rule for differentiation of integral with moving domains, and the divergence theorem $$ \begin{align} \frac{\rm d}{\rm dt} \mathcal H (\alpha, \Omega(t)) &= \int_\Omega - {\rm div}(\mathbf q\; \mathfrak h_{tot})\; {\rm d} \Omega + \int_{\partial \Omega} \left( \frac{1}{2} \mathbf{v}^2 + u(\rho) \right)\rho \mathbf w. \mathbf n \; {\rm d}\gamma,\\ &= - \int_{\partial \Omega_f} \mathbf q. \mathbf n \; \mathfrak h_{tot} \; {\rm d}\gamma- \int_{\partial \Omega_s} \mathbf v. \mathbf n \; P \; {\rm d}\gamma. \label{eq:pbaltD} \end{align} $$ On the open boundary \(\partial \Omega_f\), the power exchanged with the surrounding fluid therefore writes as the product of the trace of the efforts at the boundaries (mass flow times total enthalpy). On the closed boundaries, this is not directly the case as the geometry variation is not yet represented in the state. It is however useful to clearly identify this contribution as the product of the volume flow and pressure to later compare it with its equivalent after reduction to a 1D system and spatial discretization.
3D to 1D reduction
Keeping all nonlinearities
A set of one dimensional equations, derived from \eqref{eq:pH_compressible}, is obtained by integrating over the cross-section \(S(x, t)\) of area \(A(x, t)\). The following additional assumptions are considered:
- (H2.1): The contribution of the transverse velocity components \(v_y\) and \(v_z\) to the kinetic energy \(\frac{1}{2}\ \rho \mathbf{v}^2\) is negligible, i.e. \(\frac{1}{2}\ \rho \mathbf{v}^2 \approx \frac{1}{2}\ \rho v_x^2\).
- (H2.2): \(v_x\) and \(\rho\) are independent of the transverse coordinates (\(y\) and \(z\)). This assumption corresponds to a plane wave model in acoustics, and is valid in the vocal tract for frequencies below \(5000\) Hz (see e.g. [Chapter 4] of Flanagan 20132).
Mass equation: using linear mass density \(\mu = \rho A\) and axial mass flow \(q_x = A\rho v_x\), integration of \eqref{eq:mass} over \(S(x, t)\) yields, using \eqref{eq:bcwalls}:
Axial momentum equation: integration of \eqref{eq:velocity} and use of (H2.1) and (H2.2) yields
The state vector is defined as $$ \alpha = \begin{bmatrix} v_x, & \mu, & A \end{bmatrix}^\intercal. $$ It includes the geometry configuration through variable \(A\). The Hamiltonian may then be written using only the state as
The dynamical equations write as a pHs with a distributed input \(u_{dis}\) accounting for the rate of area variation \(\partial_t A\)
The power balance writes $$ \begin{align} \frac{d}{dt} \mathcal H(\alpha) &= - \left[q_x \mathfrak h_{tot}\right]^{l_0}_{0} - \int_0^{l_0} P \partial_t A \; dx, \label{eq:pow_bal_euler1D} \end{align} $$ which is the direct equivalent of \eqref{eq:pbaltD} in the 1D case, as \(\int_{\partial S} \mathbf v . \mathbf n \; {\rm d} \gamma = \partial_t A\). If the distributed input term is zero, then the system reduces to a (nonlinear) horn equation.
Using the second-order expansion of the potential energy
Considering the quadratic potential energy \eqref{eq:quadratic_pot}, the system can be reduced further. In this case, and in order to have a meaningful rest state, a change of state is performed to the new state:
with corresponding Hamiltonian
and equations of motion
With quadratic kinetic energy
The dynamics can be further linearized by considering the quadratic expansion of the kinetic energy, yielding the Hamiltonian
and equations of motion
With decomposition of small and big area variations
After this first step, \Rth{note that} the Hamiltonian of the one dimensional model is not quadratic in the state variables, as \(A\) is included in the state. Two mechanisms are responsible for area variations in the vocal tract:
- (i): Articulation of vowels and consonants, which may be of great amplitude, but usually known as they result from a provided input to the system.
- (ii): Vibrations of the surrounding soft tissues, which are assumed to be small but are unknown a priori, as they result from coupling with a tissue model.
In order to ease the design of efficient stable numerical scheme, an additional step is useful to separate these two contributions. The cross-section area is written as the sum of an externally controlled area \(A_0\) (for addressing (i)) and a small perturbation \(\tilde A\) (for addressing (ii)):
In the following, \(A_0\) is included in the state vector \Rth{(and controlled by an input devoted to articulation)}, whereas \(\tilde A\) is considered as a port variable only (to be connected to the soft tissue model). The Hamiltonian is modified into
The mass conservation equation is modified accordingly, yielding the pHs
When connected to a linear soft tissue model representing the dynamics of \(\tilde A\), efficient and stable integration schemes are available. Indeed, considering \(A_0\) as a known signal (forced by the control port \(u_{dis} = \partial_t A_0\)), we can benefit from the linearity of \eqref{eq:pH_1D_linA} with respect to the other state variables in the design of a power-balanced numerical scheme.
Adding visous dissipations
Several mechanisms may be responsible for dissipations in the flow. This section follows Birkholz and Hasner 20261, tailored for the vocal tract. In the paper, the author propose models for each of these losses and optimize the parameters with respect to measurements on two different experimental setups described in the following figures (reproduced form the paper):
for acoustic measurments, and

for aerodynamic measurements.
Equations are given in a pressure drop form:
where \(R'= {\rm max}(R'_{\rm ac}, R'_{\rm flow})\) is a per-unit-length resistance. Losses are separated into two main components:
- A viscous boundary layer loss for acoustic wave propagation \(R'_{\rm ac} = R_{\rm ac} \left(\frac{A_{\rm ref}}{A}\right)^\alpha \sqrt{f_{\rm ac}}\),
- A visous resistance to steady airflow \(R'_{\rm flow} = R_{\rm flow} \left(\frac{A_{\rm ref}}{A}\right)^\beta\),
for which the reference area is set to \(A_{ref} = 1{\rm cm}^2\). \(R_{\rm ac}\), \(R_{\rm flow}\), \(\alpha\) and \(\beta\) are optimized parameters. Note that the point-wise maximum bewtween the two losses is taken instead of the sum, as the sum overstimates losses for small channels.
Adapting these dissipations law to the previous system is done directly by including an symmetric dissipation matrix to the velocity equation: