Introduction
Electrohydrodynamic (EHD) flows arise from the interaction of electric fields with electric charges in a dielectric fluid[1 ] . Electroconvection driven by unipolar charge injection is an electrohydrodynamic instability in which Coulomb forces generated by space charge can destabilize an otherwise motionless dielectric liquid. One of the most studied configurations consists of a horizontal layer of dielectric liquid confined between two parallel electrodes, with a strong electric field applied across the layer and unipolar charge injection at one of the electrodes. The electric field acts on the injected space charge, generating a body force that can drive fluid motion and lead to the formation of vortical structures known as electroconvective rolls.
While this flow bears a strong geometric and physical resemblance to thermal Rayleigh–Bénard convection, its charge transport mechanisms lead to fundamentally distinct bifurcation dynamics. The stability of the flow is governed by a dimensionless parameter, the electric Rayleigh number T = ϵ V 0 μ K T = \frac{\epsilon V_0}{\mu K} T = μ K ϵ V 0 , which represents the ratio of electric to viscous forces, where ϵ \epsilon ϵ is the permittivity of the fluid, V 0 V_0 V 0 is the applied voltage, μ \mu μ is the dynamic viscosity and K K K is the ionic mobility. The critical value of this parameter, denoted T c T_c T c , marks the onset of electroconvective motion.
Early experiments had already reported electrically driven vortical motion in dielectric liquids, with observations dating back at least to Avsec and Luntz[2 ] . Measurements by Watson, Schneider, and Till [3 ] confirmed the onset of electroconvective motion and current enhancement in insulating liquids under space-charge-limited conditions. Subsequent experiments by Lacroix, Atten, and Hopfinger [4 ] described convective cell velocity fields and verified the subcritical hysteresis loop, with convection setting in near T ≈ 100 T \approx100 T ≈ 100 , well below the linear prediction. Current fluctuation measurements by Malraison and Atten [5 ] further demonstrated that in moderate-to-large aspect ratio cells the flow undergoes a direct transition from rest into time-dependent chaotic motion, shifting from a viscous-dominated regime at moderate voltages to an inertially dominated regime at high voltages. Later transient experiments by Pontiga, Castellanos, and Malraison [6 ] broadened this empirical foundation to non-autonomous, field-dependent charge injection in salt-doped nonpolar liquids by tracking step-voltage responses and apparent ionic mobility.
Linear stability analysis of unipolar charge injection between parallel plate electrodes was established by Schneider and Watson [7 ] and Atten and Moreau [8 ] , who formulated the governing equations. Under space-charge-limited (SCL) autonomous injection, classical modal stability theory predicts that the hydrostatic rest state loses stability to infinitesimal disturbances at a critical threshold T c ≈ 161 T_c \approx161 T c ≈ 161 (or 160.75) [7 ] , whereas in the weak injection regime the marginal criterion scales as T c C 2 ≈ 220.75 T_c C^2 \approx220.75 T c C 2 ≈ 220.75 . Here, C = q i H 2 / ( ϵ V 0 ) C = q_i H^2/(\epsilon V_0) C = q i H 2 / ( ϵ V 0 ) is the injection level parameter, where q i q_i q i is the charge density at the injector and H H H is the electrode separation. Pontiga, Castellanos, and Malraison [6 ] extended this linear framework to non-autonomous, field-dependent charge injection (governed by the Schottky effect), demonstrating that while field-dependent boundary conditions noticeably alter marginal stability at moderate injection levels, the threshold in the strong injection limit remains T c ≈ 161 T_c \approx161 T c ≈ 161 . Although classical models neglected charge diffusion because of its small magnitude relative to ionic drift, subsequent analyses by Pérez and Castellanos [9 ] and Zhang et al. [10 ] showed that incorporating realistic charge diffusion smooths charge density gradients and lowers the theoretical linear threshold to T c ≈ 140 T_c \approx140 T c ≈ 140 .
Non-modal stability theory provides an alternative to the classical eigenvalue approach by focusing on the finite-time amplification of perturbations rather than on their asymptotic exponential growth. In linear systems this approach is particularly relevant when the linearized evolution operator is non-normal, since a superposition of decaying eigenmodes may undergo substantial transient amplification [11 , 12 ] . The corresponding optimal perturbation is defined as the initial disturbance, subject to a prescribed norm, that maximizes a chosen measure of the perturbation at a specified target time. In fluid mechanics, linear optimal perturbations and transient growth have become standard tools for identifying the disturbance structures that are most efficiently amplified by the underlying flow dynamics.
The same optimization concept can be extended to finite-amplitude disturbances by retaining the nonlinear terms in the governing equations. In this case the optimal perturbation is obtained by maximizing a finite-time objective functional subject to the full nonlinear evolution equations and to a prescribed initial disturbance amplitude. The resulting constrained optimization problem is commonly solved by a direct–adjoint looping procedure. An initial perturbation is first evolved forward in time, the associated adjoint equations are then integrated backward from the target time, and the initial condition is iteratively updated in the direction of the gradient of the objective functional. This nonlinear extension of transient-growth analysis was developed in the context of transition to turbulence by Pringle and Kerswell [13 ] and Cherubini et al. [14 ] , and was subsequently used to identify finite-amplitude optimal perturbations and minimal seeds for transition [15 , 16 ] . More recently, the framework has been extended to other forms of finite-amplitude optimization, including sparse nonlinear optimal perturbations [17 ] .
Although nonlinear non-modal optimization has been applied extensively to hydrodynamic transition problems, its application to electrohydrodynamic instability remains comparatively unexplored. A first indication of the possible role of non-modal effects in unipolar-injection electroconvection was provided by Zhang et al. [10 ] , who performed a linear transient-growth analysis of the problem. For the configuration without cross-flow they found a finite but relatively small transient amplification, insufficient to account for the discrepancy between the linear stability threshold and the lower finite-amplitude onset observed experimentally. This suggests that the essential mechanism responsible for subcritical electroconvection cannot be captured within an infinitesimal, linearized description. A different explanation was explored by Feng et al. [18 ] , who attributed the discrepancy to the inhomogeneity of the ion-exchange membranes used as injectors in the experiments. Modeling it with stochastic boundary conditions for the charge density and the electric potential, they found that, owing to the subcritical nature of the flow, the threshold for the onset of convection decreases as the amplitude of the fluctuations increases and approaches the experimental values. The present work quantifies, with an optimization approach, the smallest charge perturbation that can trigger convection below the linear threshold.
Figure 1 summarizes the picture that guides this work. The unipolar-injection problem is subcritical. Between a nonlinear threshold T N L T_{\mathrm{NL}} T NL and T c T_c T c the stable hydrostatic state coexists with a stable convective state [Figure 1 (a)]. The two are separated by an unstable branch of edge states (dashed line), which bifurcates from the hydrostatic state at T c T_c T c and meets the stable convective branch at a saddle-node bifurcation at T N L T_{\mathrm{NL}} T NL . In phase space [Figure 1 (b)], a state on this unstable branch[19 , 20 ] has a single unstable direction, which leads either to rest or to convection. Its stable manifold, the edge, separates the basins of attraction of the two stable states. The minimal seed is the point of the edge closest to the hydrostatic state, i.e., the perturbation of smallest amplitude that can trigger convection[15 , 16 ] , and the sphere E 0 = E 0 c E_0=E_0^c E 0 = E 0 c (dashed circle) touches the edge there. Its amplitude E 0 c ( T ) E_0^c(T) E 0 c ( T ) measures the robustness of the hydrostatic state. In Figure 1 (a) the branches are represented by the maximum velocity U max U_{\max} U m a x , which identifies them unambiguously. The hydrostatic state has U max = 0 U_{\max}=0 U m a x = 0 . The insets show the charge distribution in the hydrostatic state, which is flat and has no rolls, and in a convective state, with two counter-rotating rolls. The red curve is only illustrative. It is not a state, since the minimal seed is a charge perturbation with zero initial velocity. It indicates that, for every T T T between T N L T_{\mathrm{NL}} T NL and T c T_c T c , the minimal seed lies on the stable manifold of the edge state. Smaller perturbations decay directly. Perturbations just above (blue) and just below (green) E 0 c E_0^c E 0 c follow the edge to the neighborhood of the edge state and leave it along its unstable manifold, towards convection or back to rest. The minimal seed itself would converge to the edge state. The curves are qualitative, and Figure 11 shows the computed diagram.
Figure 1. Sketch of the subcritical transition. (a) Bifurcation diagram in terms of the maximum velocity U max U_{\max} U m a x , with stable branches (solid) and edge states (dashed). The red curve is only illustrative. It is not a state, and indicates that the minimal seed lies on the stable manifold of the edge state. Insets: total charge q b + q ′ q_b+q' q b + q ′ (logarithmic color scale, as in Figure 10 ) in a convective state at T = 112.23 T=112.23 T = 112.23 , close to T N L T_{\mathrm{NL}} T NL , with streamlines, and in the hydrostatic state, which has no rolls. (b) Phase space at fixed T N L < T < T c T_{\mathrm{NL}}<T<T_c T NL < T < T c . The edge (grey) separates the basins of the base and convective states, and the sphere E 0 = E 0 c E_0=E_0^c E 0 = E 0 c (dashed red) touches it at the minimal seed. Blue and green: perturbations just above and just below E 0 c E_0^c E 0 c . The curves are qualitative.
Figure 11. Computed bifurcation diagram on the production mesh, showing the maximum velocity of the convective state (filled symbols) and of the edge state, computed by Newton’s method and pseudo-arclength continuation down to T / T c h = 0.76 T/T_c^h = 0.76 T / T c h = 0.76 (solid line) and estimated from the plateau of the trajectories that bracket the critical amplitude within 4% (open symbols). Dashed: pitchfork law near T c h T_c^h T c h and interpolation between computed and estimated edge states. Dotted: schematic saddle-node.
The nonlinear optimization problem is discretized with Firedrake[21 ] , a finite-element library. The corresponding discrete adjoint equations and gradients are generated automatically with the Python library Pyadjoint[22 ] , which succeeds the dolfin-adjoint library[23 ] . It exploits the high-level variational representation of the forward problem to construct discrete tangent-linear and adjoint models directly from the finite-element formulation, avoiding the need to derive and implement the discrete adjoint system by hand.
The paper is organized as follows. § 1.1 presents the governing equations of unipolar-injection electroconvection in a periodic layer, the hydrostatic base state and the classical linear modal problem, whose discrete threshold serves as the reference for the rest of the work. Section III formulates the nonlinear non-modal optimization problem and describes its discretization and the direct–adjoint optimization procedure. Section IV assesses the spatial and temporal convergence of the method, determines the amplitude below which the optimization behaves linearly, and shows that the non-modal framework recovers the linear instability threshold. § 1.4 contains the main results. These are the finite-amplitude optimal perturbations below the linear threshold and their structure, the nonlinear mechanism that favors charge-deficit perturbations, the minimal seed for transition to the convective state, the edge state and the end of the convective branch T N L T_{\mathrm{NL}} T NL , compared with direct numerical simulations, and a decomposition of the optimal trajectories on direct and adjoint temporal eigenmodes. The implications for the onset of electroconvection are discussed in § 1.4 F. Section VI identifies the damped oscillatory modes revealed by this decomposition as transit-time modes of the ion drift, shows that the convective mode is the first of them made stationary by the flow, and verifies that none of them becomes unstable. Conclusions are drawn in Sec. VII. The derivation of the adjoint equations is given in Appendix A, the monolithic weak formulation of the direct problem in Appendix B, and the exact solution for the horizontally uniform transit-time modes in Appendix C.
Governing equations and linear stability reference
Dimensional equations
We consider a horizontal layer of dielectric liquid of thickness H H H confined between two parallel electrodes, with a strong electric field applied across the layer and unipolar charge injected at the lower electrode. The governing equations for the fluid motion, charge transport and electric field are the incompressible Navier–Stokes equations coupled with charge conservation and Poisson’s equation:
ρ ( ∂ u ∂ t + u ⋅ ∇ u ) = − ∇ p + μ ∇ 2 u + q E , (1) \rho\left(\frac{\partial\mathbf{u}}{\partial t}+\mathbf{u}\cdot\nabla\mathbf{u}\right)=-\nabla p+\mu\nabla^2\mathbf{u}+q\mathbf{E}, \tag*{(1)} ρ ( ∂ t ∂ u + u ⋅ ∇ u ) = − ∇ p + μ ∇ 2 u + q E , (1)
∇ ⋅ u = 0 , (2) \nabla\cdot\mathbf{u}=0, \tag*{(2)} ∇ ⋅ u = 0 , (2)
∂ q ∂ t + ∇ ⋅ [ q ( u + K E ) ] = 0 , (3) \frac{\partial q}{\partial t}+\nabla\cdot\left[q(\mathbf{u}+K\mathbf{E})\right]=0, \tag*{(3)} ∂ t ∂ q + ∇ ⋅ [ q ( u + K E ) ] = 0 , (3)
∇ 2 ϕ = − q / ε , E = − ∇ ϕ . (4) \nabla^2\phi=-q/\varepsilon,\qquad\mathbf{E}=-\nabla\phi. \tag*{(4)} ∇ 2 ϕ = − q / ε , E = − ∇ ϕ . (4)
Here u \mathbf{u} u is the fluid velocity, p p p the pressure, ϕ \phi ϕ the electric potential, q q q the electric charge density, E \mathbf{E} E the electric field, ε \varepsilon ε the electric permittivity of the fluid, ρ \rho ρ the fluid mass density, μ \mu μ the dynamic viscosity and K K K the ionic mobility. The electric force is due only to the Coulomb force q E q\mathbf{E} q E , as the liquid is assumed isothermal. The electrostriction force, being the gradient of a scalar function, can always be absorbed into the pressure. In this study, we analyze how the non-modal and nonlinear aspects of the system affect the predictions of the classical linear stability analysis, which does not include charge diffusion. Therefore, we neglect charge diffusion in Eq. (3) .
The boundary conditions [Figure 2 (a)] are
Figure 2. Domain geometry and boundary conditions for the electroconvection problem. (a) Dimensional. (b) Nondimensional.
y = 0 : u = 0 , ϕ = V 0 , q = q i , y = H : u = 0 , ϕ = 0 , u , p , q , ϕ periodic in x with period L d . (5) \begin{aligned}
y &= 0:\quad\mathbf{u} = 0,\quad\phi= V_0,\quad q = q_i,\\
y &= H:\quad\mathbf{u} = 0,\quad\phi= 0,\\
&\mathbf{u},\ p,\ q,\ \phi\ \text{periodic in }x\text{ with period }L_d. \tag*{(5)}
\end{aligned} y y = 0 : u = 0 , ϕ = V 0 , q = q i , = H : u = 0 , ϕ = 0 , u , p , q , ϕ periodic in x with period L d . (5)
Here q i q_i q i is the charge density at the injector electrode, V 0 V_0 V 0 is the applied voltage and L d L_d L d is the lateral period of the domain. At y = 0 y = 0 y = 0 we impose no slip, a fixed potential and a prescribed injected charge density. At y = H y = H y = H we impose no slip and a grounded potential. In the horizontal direction the layer is periodic, which models a laterally unbounded layer and allows perturbations of any horizontal phase. The charge conservation equation, Eq. (3) , is hyperbolic, so a charge boundary condition is needed only where the charge transport velocity u + K E \mathbf{u} + K\mathbf{E} u + K E enters the domain, i.e., at the injector. At the collector the charge leaves the domain and no condition is imposed.
Equations (1) –(4) have a steady base state corresponding to the hydrostatic conduction state,
u b = 0 , q b = q b ( y ) , ϕ b = ϕ b ( y ) , (6) \mathbf{u}_b = 0,\qquad q_b = q_b(y),\qquad\phi_b = \phi_b(y), \tag*{(6)} u b = 0 , q b = q b ( y ) , ϕ b = ϕ b ( y ) , (6)
where q b ( y ) q_b(y) q b ( y ) and ϕ b ( y ) \phi_b(y) ϕ b ( y ) are the base charge density and electric potential profiles. They are determined by the steady versions of Eqs. (3) and (4) , which reduce to
d E b d y = q b ϵ , d d y ( q b E b ) = 0. (7) \frac{\mathrm{d}E_b}{\mathrm{d}y} = \frac{q_b}{\epsilon},\qquad\frac{\mathrm{d}}{\mathrm{d}y}\left(q_b E_b\right) = 0. \tag*{(7)} d y d E b = ϵ q b , d y d ( q b E b ) = 0. (7)
Their solution is
E b ( y ) = E i 1 + 2 q i ϵ E i y , q b ( y ) = q i ( 1 + 2 q i ϵ E i y ) − 1 / 2 , (8) \begin{aligned}
E_b(y) &= E_i\sqrt{1+\frac{2q_i}{\epsilon E_i}y},\\
q_b(y) &= q_i\left(1+\frac{2q_i}{\epsilon E_i}y\right)^{-1/2}, \tag*{(8)}
\end{aligned} E b ( y ) q b ( y ) = E i 1 + ϵ E i 2 q i y , = q i ( 1 + ϵ E i 2 q i y ) − 1/2 , (8)
where E i E_i E i is the electric field at the injector electrode. It can be computed imposing that the potential drop across the layer equals the applied voltage:
V 0 = ∫ 0 H E b ( y ) d y ⟹ E i 2 [ ( 1 + 2 q i H ϵ E i ) 3 / 2 − 1 ] = 3 q i V 0 ϵ . (9) V_0 = \int_0^H E_b(y)\,\mathrm{d}y \quad\Longrightarrow\quad
E_i^2\left[\left(1+\frac{2q_iH}{\epsilon E_i}\right)^{3/2}-1\right] = \frac{3q_iV_0}{\epsilon}. \tag*{(9)} V 0 = ∫ 0 H E b ( y ) d y ⟹ E i 2 [ ( 1 + ϵ E i 2 q i H ) 3/2 − 1 ] = ϵ 3 q i V 0 . (9)
This equation is solved numerically for E i E_i E i , after which the base-state profiles E b ( y ) E_b(y) E b ( y ) and q b ( y ) q_b(y) q b ( y ) follow from Eq. (8) .
Nondimensional equations and parameters
We choose the characteristic scales
x , y ∼ H , t ∼ H 2 K V 0 , u ∼ K V 0 H , p ∼ ρ K 2 V 0 2 H 2 , ϕ ∼ V 0 , E ∼ V 0 H , q ∼ q i . (10) \begin{aligned}
x,y &\sim H, & t &\sim\frac{H^2}{K V_0}, & u &\sim\frac{K V_0}{H}, & p &\sim\frac{\rho K^2 V_0^2}{H^2}, \\
\phi&\sim V_0, & E &\sim\frac{V_0}{H}, & q &\sim q_i. \tag*{(10)}
\end{aligned} x , y ϕ ∼ H , ∼ V 0 , t E ∼ K V 0 H 2 , ∼ H V 0 , u q ∼ H K V 0 , ∼ q i . p ∼ H 2 ρ K 2 V 0 2 , (10)
The nondimensional version of Eqs. (1) –(4) is
∂ u ∂ t + u ⋅ ∇ u = − ∇ p + M 2 T ∇ 2 u + C M 2 q E , (11) \frac{\partial u}{\partial t}+u\cdot\nabla u=-\nabla p+\frac{M^2}{T}\nabla^2u+CM^2qE, \tag*{(11)} ∂ t ∂ u + u ⋅ ∇ u = − ∇ p + T M 2 ∇ 2 u + C M 2 q E , (11)
∇ ⋅ u = 0 , (12) \nabla\cdot u=0, \tag*{(12)} ∇ ⋅ u = 0 , (12)
∂ q ∂ t + ∇ ⋅ [ q ( u + E ) ] = 0 , (13) \frac{\partial q}{\partial t}+\nabla\cdot\left[q(u+E)\right]=0, \tag*{(13)} ∂ t ∂ q + ∇ ⋅ [ q ( u + E ) ] = 0 , (13)
∇ 2 ϕ = − C q , E = − ∇ ϕ . (14) \nabla^2\phi=-Cq,\qquad E=-\nabla\phi. \tag*{(14)} ∇ 2 ϕ = − C q , E = − ∇ ϕ . (14)
From now on all variables are nondimensional unless otherwise stated. The nondimensional boundary conditions [Figure 2 (b)] are
y = 0 : u = 0 , ϕ = 1 , q = 1 , y = 1 : u = 0 , ϕ = 0 , u , p , q , ϕ periodic in x with period L . (15) \begin{aligned}
y=0 &: \quad u=0,\quad\phi=1,\quad q=1,\\
y=1 &: \quad u=0,\quad\phi=0,\\
&\quad u,\ p,\ q,\ \phi\ \text{periodic in }x\text{ with period }L. \tag*{(15)}
\end{aligned} y = 0 y = 1 : u = 0 , ϕ = 1 , q = 1 , : u = 0 , ϕ = 0 , u , p , q , ϕ periodic in x with period L . (15)
The nondimensional parameters are
T = ε V 0 μ K , C = q i H 2 ε V 0 , M = ε / ρ K , L = L d H . (16) T=\frac{\varepsilon V_0}{\mu K},\qquad C=\frac{q_iH^2}{\varepsilon V_0},\qquad M=\frac{\sqrt{\varepsilon/\rho}}{K},\qquad L=\frac{L_d}{H}. \tag*{(16)} T = μ K ε V 0 , C = ε V 0 q i H 2 , M = K ε / ρ , L = H L d . (16)
The electric Rayleigh number T T T represents the ratio of electric to viscous forces and will be the stability parameter. The injection number C C C characterizes the strength of charge injection. The mobility number M M M is the ratio of the hydrodynamic mobility to the ionic mobility2 and depends only on the properties of the fluid. Finally, L L L is the aspect ratio of the layer.
The nondimensional base state is
q b ( y ) = ( 1 + 2 C E i y ) − 1 / 2 , E b ( y ) = E i ( 1 + 2 C E i y ) 1 / 2 , (17) \begin{aligned}
q_b(y)&=\left(1+\frac{2C}{E_i}y\right)^{-1/2},\\
E_b(y)&=E_i\left(1+\frac{2C}{E_i}y\right)^{1/2}, \tag*{(17)}
\end{aligned} q b ( y ) E b ( y ) = ( 1 + E i 2 C y ) − 1/2 , = E i ( 1 + E i 2 C y ) 1/2 , (17)
where the injector field E i E_i E i is determined by
E i 2 3 C [ ( 1 + 2 C E i ) 3 / 2 − 1 ] = 1. (18) \frac{E_i^2}{3C}\left[\left(1+\frac{2C}{E_i}\right)^{3/2}-1\right]=1. \tag*{(18)} 3 C E i 2 [ ( 1 + E i 2 C ) 3/2 − 1 ] = 1. (18)
The base pressure balances the Coulomb force, p b ( y ) = C M 2 E i y p_b(y)=CM^2E_i y p b ( y ) = C M 2 E i y .
With the scales of Eq. (10) , the drift velocity of the ions relative to the fluid is E E E , and velocities are measured in the drift-velocity scale K V 0 / H KV_0/H K V 0 / H . In weak injection E b ≃ 1 E_b\simeq1 E b ≃ 1 across the layer, so a unit velocity is the local drift velocity. In strong injection this is not the case. For C = 10 C=10 C = 10 the hydrostatic field grows from E i = 0.11 E_i=0.11 E i = 0.11 at the injector to $1.49$ at the collector, close to the space-charge-limited profile 3 2 y \frac{3}{2}\sqrt{y} 2 3 y , and the local drift velocity varies accordingly. Its average across the layer, however, is exactly one in any state, conductive or convective, since ∫ 0 1 E y d y \int_0^1 E_y\,\mathrm{d}y ∫ 0 1 E y d y is the applied voltage. A maximum fluid velocity $U_{\max}>1 therefore means that the flow is faster than the mean ionic drift, so that convection competes with migration in transporting the charge. We use this comparison below as an indicator, not as a local criterion. Since E E E is irrotational, the transport velocity u + E \boldsymbol{u}+\boldsymbol{E} u + E can only have closed orbits where the flow overcomes the local drift. In the core of the layer E b E_b E b is close to one, so this requires U max U_{\max} U m a x of order one. The charge obeys ∂ t q + ( u + E ) ⋅ ∇ q = − C q 2 \partial_t q+(\boldsymbol{u}+\boldsymbol{E})\cdot\nabla q=-Cq^2 ∂ t q + ( u + E ) ⋅ ∇ q = − C q 2 , so it decreases monotonically along the orbits of u + E \boldsymbol{u}+\boldsymbol{E} u + E . In a steady state it must therefore vanish on closed orbits, which are not fed from the injector. This produces the charge void discussed in § 1.4 D.
Linear modal stability
In the linear stability analysis, the governing equations are linearized introducing infinitesimal perturbations. The resulting linearized equations determine the growth or decay of these perturbations, and the onset of instability is identified with a neutral perturbation, that is, a perturbation that neither grows nor decays. The perturbations are defined with respect to the base state,
u ′ = u , q ′ = q − q b ( y ) , ϕ ′ = ϕ − ϕ b ( y ) , p ′ = p − p b ( y ) , (19) \boldsymbol{u}'=\boldsymbol{u}, \qquad q'=q-q_b(y),
\qquad\phi'=\phi-\phi_b(y), \qquad p'=p-p_b(y), \tag*{(19)} u ′ = u , q ′ = q − q b ( y ) , ϕ ′ = ϕ − ϕ b ( y ) , p ′ = p − p b ( y ) , (19)
and sought in the form
( u ′ , p ′ , ϕ ′ , q ′ ) = ( u ^ , p ^ , ϕ ^ , q ^ ) exp ( σ t ) , (20) (\boldsymbol{u}',p',\phi',q')=(\hat{\boldsymbol{u}},\hat{p},\hat{\phi},\hat{q})\exp(\sigma t), \tag*{(20)} ( u ′ , p ′ , ϕ ′ , q ′ ) = ( u ^ , p ^ , ϕ ^ , q ^ ) exp ( σ t ) , (20)
where σ \sigma σ is the temporal growth rate. The base state is linearly stable when all admissible perturbations have Re σ < 0 \operatorname{Re}\sigma<0 Re σ < 0 . In the present problem the principle of exchange of stabilities applies, as proved by Atten and Moreau [8 ] for weak injection and verified numerically for strong injection (Sec. VI), and the marginal state is obtained for σ = 0 \sigma=0 σ = 0 . With this condition the mobility parameter M M M drops out of the linear stability problem, and the threshold depends only on the injection parameter, the aspect ratio and T T T .
For a layer of infinite horizontal extent, translational invariance allows the perturbations to be decomposed into Fourier modes,
( u ′ , p ′ , ϕ ′ , q ′ ) = ( u ^ ( y ) , p ^ ( y ) , ϕ ^ ( y ) , q ^ ( y ) ) exp ( i k x + σ t ) . (21) (\boldsymbol{u}',p',\phi',q')=(\hat{\boldsymbol{u}}(y),\hat{p}(y),\hat{\phi}(y),\hat{q}(y))\exp(ikx+\sigma t). \tag*{(21)} ( u ′ , p ′ , ϕ ′ , q ′ ) = ( u ^ ( y ) , p ^ ( y ) , ϕ ^ ( y ) , q ^ ( y )) exp ( ik x + σ t ) . (21)
For each horizontal wavenumber k k k , the linearized equations define an eigenvalue problem for T T T . The neutral curve T = T ( k ) T=T(k) T = T ( k ) gives the value at which a perturbation of wavenumber k k k becomes marginally unstable, and the classical linear threshold is
T c = min k T ( k ) , k c = arg min k T ( k ) . (22) T_c=\min_k T(k), \qquad k_c=\operatorname{arg\,min}_k T(k). \tag*{(22)} T c = k min T ( k ) , k c = arg min k T ( k ) . (22)
This is essentially the procedure followed in the classical analysis of Atten and Moreau [8 ] . The instability results from the coupling between the convective displacement of the space charge and the Coulomb force generated by the resulting perturbation of the electric field. The critical value depends strongly on the injection strength C C C . In particular, Atten and Moreau obtained the well-known linear thresholds for the weak and strong injection limits.
Pérez et al. [24 ] extended this formulation by solving the linearized partial differential equations directly with finite elements. This becomes necessary when rigid lateral walls are introduced, because the perturbations can no longer be separated into independent functions of x x x and y y y . After spatial discretization, the marginal stability equations take the generalized eigenvalue form
A x = T B x , (23) A\boldsymbol{x}=T B\boldsymbol{x}, \tag*{(23)} A x = T B x , (23)
where the eigenvector x \boldsymbol{x} x contains the discrete velocity, pressure, electric potential and charge density perturbations. The calculation therefore provides not only the critical value of T T T but also the complete spatial structure of the corresponding linear eigenmode.
Table 1. Discrete modal threshold T c h T_c^h T c h in the periodic layer (C = 10 C = 10 C = 10 , L = 1.228 L = 1.228 L = 1.228 ) for the discretization of Sec. III C.
For C = 10 C = 10 C = 10 and symmetry lateral walls, Pérez et al. [24 ] obtained T c = 164.09 T_c = 164.09 T c = 164.09 for a single roll of width L c = 0.614 L_c = 0.614 L c = 0.614 , i.e., one half of the critical wavelength, in agreement with T c ≃ 164.1 T_c \simeq164.1 T c ≃ 164.1 and L c ≃ 0.614 L_c \simeq0.614 L c ≃ 0.614 of Atten and Moreau [8 ] .
In the present work all computations, modal and non-modal, are carried out in a laterally periodic layer of one critical wavelength, L = 2 L c = 1.228 L = 2L_c = 1.228 L = 2 L c = 1.228 , which contains two counter-rotating rolls. The marginal problem, Eq. (23) , is assembled from the same discretization used for the optimization (Sec. III C). The operator is the exact linearization, at the base state, of the discrete residual of the time stepper, including the SUPG stabilization. Its smallest eigenvalue T c h T_c^h T c h is therefore the threshold of the semi-discrete problem solved by the optimization, to which the non-modal threshold of Sec. IV B must converge.
The problem in the periodic layer is invariant under horizontal translations and under the reflection ( x , u ) ↦ ( − x , − u ) (x,u) \mapsto(-x,-u) ( x , u ) ↦ ( − x , − u ) . Because the fields are L L L -periodic, x x x can be regarded as an angle, θ = 2 π x / L \theta= 2\pi x/L θ = 2 π x / L , so that a translation x ↦ x + a x \mapsto x + a x ↦ x + a is a rotation of this circle by 2 π a / L 2\pi a/L 2 π a / L . With the reflection, these rotations form the group O(2). On a mode of wavenumber k k k , z ′ = A z ^ ( y ) e i k x + c . c . z' = A \hat{z}(y)e^{ikx}+\mathrm{c.c.} z ′ = A z ^ ( y ) e ik x + c.c. , a translation multiplies the complex amplitude by e i k a e^{ika} e ik a , i.e., it rotates the pair ( Re A , Im A ) (\operatorname{Re} A,\operatorname{Im} A) ( Re A , Im A ) , while the reflection maps A A A to A ˉ \bar{A} A ˉ . Since every direction of this plane can be rotated into any other, the eigenvalue of each mode with k ≠ 0 k \ne0 k = 0 is double, and the critical eigenspace consists of rolls of arbitrary horizontal phase [25 , 26 ] . Due to the reflection symmetry and the exchange of stabilities [8 ] , they are steady. On a uniform periodic mesh, such as the one used in the present work, the symmetry group reduces to the dihedral group generated by translations by whole cells and the reflection, which still leaves the critical eigenvalue exactly double.
Table I lists T c h T_c^h T c h on four meshes. The threshold converges monotonically with observed order p = 2.10 p = 2.10 p = 2.10 to T ∞ = 164.06 T_\infty= 164.06 T ∞ = 164.06 , within 0.02 % 0.02\% 0.02% of the published value. The production mesh of the rest of the paper, with 62 × 100 cells per roll, gives T c h = 163.82 T_c^h = 163.82 T c h = 163.82 , 0.14 % 0.14\% 0.14% below T ∞ T_\infty T ∞ . As a cross-check, the discretization of Pérez et al. [24 ] (triangles, P 2 P_2 P 2 charge, no stabilization, h = 0.01 h = 0.01 h = 0.01 ) gives T c = 163.92 T_c = 163.92 T c = 163.92 in the periodic layer, 0.1 % 0.1\% 0.1% below the published value.
Figure 3 shows the critical mode on the production mesh. The charge perturbation consists of vertical columns of alternating sign spanning the whole layer, with maxima at y ≃ 0.6 y \simeq0.6 y ≃ 0.6 and thin layers of opposite sign next to the injector, and the velocity field consists of two counter-rotating rolls. The charge perturbation is antisymmetric about the center of each roll.
Figure 3. Critical eigenmode in the periodic layer (C = 10 C = 10 C = 10 , L = 1.228 L = 1.228 L = 1.228 , 62 × 100 cells per roll, T c = 163.82 T_{\mathrm{c}} = 163.82 T c = 163.82 ). (a) Charge density perturbation. (b) Streamlines of the velocity perturbation, colored by the speed. The horizontal phase is arbitrary.
Non-modal nonlinear stability analysis
Optimization problem
The aim of the nonlinear non-modal analysis is to identify the initial perturbation that maximizes a given objective functional at a prescribed target time τ \tau τ , which we will refer to as the horizon. The optimization problem is defined by the governing equations, the initial perturbation amplitude and the objective functional.
We consider initial perturbations of the charge only, with the velocity initially at rest. This choice models fluctuations of the injected charge, which are the natural disturbances of the hydrostatic state. The initial amplitude is prescribed through
E 0 = ∫ Ω ( q 0 ′ ) 2 d Ω . (24) E_0 = \int_{\Omega} (q'_0)^2 \,\mathrm{d}\Omega. \tag*{(24)} E 0 = ∫ Ω ( q 0 ′ ) 2 d Ω. (24)
Here Ω \Omega Ω is the computational domain, with boundary ∂ Ω = Γ i ∪ Γ c ∪ Γ s \partial\Omega= \Gamma_i \cup\Gamma_c \cup\Gamma_s ∂ Ω = Γ i ∪ Γ c ∪ Γ s , where Γ i \Gamma_i Γ i and Γ c \Gamma_c Γ c denote the injecting and collecting electrodes and Γ s \Gamma_s Γ s the lateral (periodic) boundaries. The control q 0 ′ q'_0 q 0 ′ is the perturbation with respect to the base state q b ( y ) q_b(y) q b ( y ) . Since the base state is hydrostatic, we choose the total kinetic energy at the target time as the objective functional,
J ( τ ) = 1 2 ∫ Ω ∣ u ( τ ) ∣ 2 d Ω , (25) J(\tau) = \frac{1}{2} \int_{\Omega} \lvert\mathbf{u}(\tau) \rvert^2 \,\mathrm{d}\Omega, \tag*{(25)} J ( τ ) = 2 1 ∫ Ω ∣ u ( τ ) ∣ 2 d Ω , (25)
and measure the amplification of the initial perturbation by the gain
G q ( τ ) = J ( τ ) E 0 . (26) G_q(\tau) = \frac{J(\tau)}{E_0}. \tag*{(26)} G q ( τ ) = E 0 J ( τ ) . (26)
Since G q G_q G q compares a kinetic energy with a charge norm, its value depends on the scales of Eq. (10) and on the parameters C C C and M M M . It is therefore not directly comparable with the energy gains of Zhang et al. 10, whose norm combines velocity and charge perturbations. The optimization problem is
max q 0 ′ J ( τ ) subject to ∫ Ω ( q 0 ′ ) 2 d Ω = E 0 . (27) \max_{q'_0} J(\tau) \quad\text{subject to} \quad\int_{\Omega} (q'_0)^2 \,\mathrm{d}\Omega= E_0. \tag*{(27)} q 0 ′ max J ( τ ) subject to ∫ Ω ( q 0 ′ ) 2 d Ω = E 0 . (27)
To obtain the gradient of the objective functional with respect to the initial charge perturbation, we adopt a Lagrangian approach[16 ] . The governing equations are enforced through adjoint fields u † \mathbf{u}^{\dagger} u † , p † p^{\dagger} p † , q † q^{\dagger} q † and ϕ † \phi^{\dagger} ϕ † , associated respectively with the momentum equation, incompressibility, charge conservation and Poisson’s equation. The augmented Lagrangian is
L = J − λ ( ∫ Ω ( q 0 ′ ) 2 d Ω − E 0 ) − ∫ 0 τ ∫ Ω u † ⋅ [ ∂ u ∂ t + ( u ⋅ ∇ ) u + ∇ p − M 2 T ∇ 2 u − C M 2 q E ] d Ω d t − ∫ 0 τ ∫ Ω p † ∇ ⋅ u d Ω d t − ∫ 0 τ ∫ Ω q † [ ∂ q ∂ t + ∇ ⋅ ( q ( u + E ) ) ] d Ω d t − ∫ 0 τ ∫ Ω ϕ † ( ∇ 2 ϕ + C q ) d Ω d t , (28) \begin{aligned}
\mathcal{L} ={}& J-\lambda\left(\int_{\Omega}(q'_0)^2\,\mathrm{d}\Omega-E_0\right) \\
&-\int_0^\tau\int_{\Omega}\mathbf{u}^{\dagger}\cdot\left[\frac{\partial\mathbf{u}}{\partial t}+(\mathbf{u}\cdot\nabla)\mathbf{u}+\nabla p-\frac{M^2}{T}\nabla^2\mathbf{u}-CM^2q\mathbf{E}\right]\,\mathrm{d}\Omega\,\mathrm{d}t \\
&-\int_0^\tau\int_{\Omega}p^{\dagger}\nabla\cdot\mathbf{u}\,\mathrm{d}\Omega\,\mathrm{d}t \\
&-\int_0^\tau\int_{\Omega}q^{\dagger}\left[\frac{\partial q}{\partial t}+\nabla\cdot\left(q(\mathbf{u}+\mathbf{E})\right)\right]\,\mathrm{d}\Omega\,\mathrm{d}t \\
&-\int_0^\tau\int_{\Omega}\phi^{\dagger}\left(\nabla^2\phi+Cq\right)\,\mathrm{d}\Omega\,\mathrm{d}t, \tag*{(28)}
\end{aligned} L = J − λ ( ∫ Ω ( q 0 ′ ) 2 d Ω − E 0 ) − ∫ 0 τ ∫ Ω u † ⋅ [ ∂ t ∂ u + ( u ⋅ ∇ ) u + ∇ p − T M 2 ∇ 2 u − C M 2 q E ] d Ω d t − ∫ 0 τ ∫ Ω p † ∇ ⋅ u d Ω d t − ∫ 0 τ ∫ Ω q † [ ∂ t ∂ q + ∇ ⋅ ( q ( u + E ) ) ] d Ω d t − ∫ 0 τ ∫ Ω ϕ † ( ∇ 2 ϕ + C q ) d Ω d t , (28)
where λ \lambda λ is the Lagrange multiplier associated with the amplitude constraint. The adjoint equations and boundary conditions follow by requiring the first variation of L \mathcal{L} L to vanish for arbitrary admissible variations of the direct variables u \mathbf{u} u , p p p , q q q and ϕ \phi ϕ . The detailed derivation is given in Appendix A, together with the final form of the adjoint equations and boundary conditions.
Optimization algorithm
The nonlinear optimization is carried out by direct–adjoint iteration. Starting from an admissible initial charge perturbation q 0 ′ q'_0 q 0 ′ satisfying Eq. (24) , the nonlinear direct problem is integrated forward in time from t = 0 t=0 t = 0 to t = τ t=\tau t = τ and the objective functional, Eq. (25) , is evaluated. The adjoint equations are then integrated backward in time from t = τ t=\tau t = τ to t = 0 t=0 t = 0 to obtain the gradient of J J J with respect to the initial perturbation,
g = δ J δ q 0 ′ . (29) g=\frac{\delta J}{\delta q'_0}. \tag*{(29)} g = δ q 0 ′ δ J . (29)
Here g g g is the L 2 L^2 L 2 Riesz representer of the derivative of J J J [27 ] . The adjoint provides this derivative as a linear functional of the variation of q 0 ′ q'_0 q 0 ′ , and g g g is the function that represents it in the L 2 L^2 L 2 inner product, the same inner product that defines the amplitude constraint, Eq. (24) . The control space is A = { q 0 ′ : q 0 ′ = 0 on Γ i } \mathcal{A}=\{q'_0:q'_0=0\text{ on }\Gamma_i\} A = { q 0 ′ : q 0 ′ = 0 on Γ i } , so that, after discretization, g g g is the solution of a mass-matrix problem with homogeneous Dirichlet conditions on the injector. Using the mass matrix, rather than the raw derivative with respect to the degrees of freedom, makes the gradient independent of the mesh[28 ] .
Because the control is constrained to the hypersphere defined by Eq. (24) , only the component of the gradient tangent to this manifold is admissible. The projected gradient is
g T = g − ⟨ g , q 0 ′ ⟩ ⟨ q 0 ′ , q 0 ′ ⟩ q 0 ′ = g − ⟨ g , q 0 ′ ⟩ E 0 q 0 ′ . (30) g_T=g-\frac{\langle g,q'_0\rangle}{\langle q'_0,q'_0\rangle}q'_0=g-\frac{\langle g,q'_0\rangle}{E_0}q'_0. \tag*{(30)} g T = g − ⟨ q 0 ′ , q 0 ′ ⟩ ⟨ g , q 0 ′ ⟩ q 0 ′ = g − E 0 ⟨ g , q 0 ′ ⟩ q 0 ′ . (30)
The control is updated along an ascent direction d d d tangent to the sphere,
q ~ 0 ′ = q 0 ′ + α d . (31) \tilde{q}'_0=q'_0+\alpha d. \tag*{(31)} q ~ 0 ′ = q 0 ′ + α d . (31)
In the simplest algorithm, the value of d d d is computed using the steepest ascent d = g T d=g_T d = g T . In this work, d d d is computed with the Riemannian limited-memory BFGS method[29 , 30 ] , and the step length α \alpha α is selected by an Armijo backtracking line search[31 , 32 ] . The updated perturbation is projected back onto the constraint,
q 0 ′ ← E 0 ∫ Ω ( q ~ 0 ′ ) 2 d Ω q ~ 0 ′ . (32) q'_0 \leftarrow\sqrt{\frac{E_0}{\int_{\Omega}(\tilde{q}'_0)^2\,\mathrm{d}\Omega}}\,\tilde{q}'_0. \tag*{(32)} q 0 ′ ← ∫ Ω ( q ~ 0 ′ ) 2 d Ω E 0 q ~ 0 ′ . (32)
The forward integration, backward adjoint integration, gradient projection, line search and renormalization are repeated until the projected gradient is sufficiently small. Convergence is monitored through the ratio
∥ g T ∥ ∥ g ∥ , (33) \frac{\lVert g_T\rVert}{\lVert g\rVert}, \tag*{(33)} ∥ g ∥ ∥ g T ∥ , (33)
which vanishes at a constrained stationary point. Convergence is declared when ∥ g T ∥ / ∥ g ∥ ≤ 10 − 4 \lVert g_T\rVert/\lVert g\rVert\le10^{-4} ∥ g T ∥ / ∥ g ∥ ≤ 1 0 − 4 . Close to an optimum the error in J J J is quadratic in this ratio, so G q G_q G q is then accurate to better than 10 − 7 10^{-7} 1 0 − 7 . The adjoint gradient was verified with Taylor tests at the analytical initial guess and at converged optima, in the linear regime and at finite amplitude. In all cases the Taylor remainder converges at rate 2.00, two adjoint solutions on the same trajectory agree to 10 − 15 10^{-15} 1 0 − 15 , and the Riesz map reproduces the discrete derivative to round-off.
Discretization and discrete adjoint
The gradient, Eq. (29) , is obtained with the discrete adjoint generated automatically by the Python library Pyadjoint[22 ] from the Firedrake implementation of the forward problem[21 ] . The choice of this automatic-differentiation framework motivates the monolithic formulation of the direct problem.
It is usual to apply split methods to the time integration of incompressible flows, due to the saddle-point structure of the equations. However, the adjoint of a split scheme is not the split of the adjoint, and the adjoint of a projection scheme is not a projection scheme. Therefore, we adopt a monolithic formulation of the direct problem. Equations (11) –(14) , together with the boundary conditions of Eq. (15) , are discretized in time as a single system, and the velocity, pressure, electric potential and charge density are solved fully coupled at each time step. The unknowns are the perturbation fields z ′ = ( u ′ , p ′ , q ′ , ϕ ′ ) z'=(u',p',q',\phi') z ′ = ( u ′ , p ′ , q ′ , ϕ ′ ) with respect to the base state of Eq. (17) . Writing R ( z ) \mathcal{R}(z) R ( z ) for the discrete residual of the full equations, Eqs. (11) –(14) , each time step solves
R ′ ( z ′ ) ≡ R ( z b + z ′ ) − R ( z b ) = 0 , (34) \mathcal{R}'(z') \equiv\mathcal{R}(z_b+z')-\mathcal{R}(z_b)=0, \tag*{(34)} R ′ ( z ′ ) ≡ R ( z b + z ′ ) − R ( z b ) = 0 , (34)
where z b z_b z b is the interpolated base state. Subtracting the discrete base residual makes z ′ = 0 z'=0 z ′ = 0 an exact solution of the discrete problem. Without this subtraction, the interpolation error of the base state would act as a spurious forcing.
The domain is the periodic layer [ 0 , L ) × [ 0 , 1 ] [0,L)\times[0,1] [ 0 , L ) × [ 0 , 1 ] with L = 1.228 L=1.228 L = 1.228 , one critical wavelength (two rolls), discretized with a structured quadrilateral mesh. The mesh is invariant under horizontal translations by one cell and under the reflection x ↦ − x x\mapsto-x x ↦ − x . We use Q 2 Q_2 Q 2 elements for velocity and potential, and Q 1 Q_1 Q 1 elements for pressure and charge density. Since diffusion is neglected, the charge transport equation, Eq. (13) , is hyperbolic, and its discretization is stabilized with a streamline-upwind Petrov–Galerkin (SUPG) term[33 ] with the time-step-independent parameter
τ S U P G = [ ( 2 ∣ v q ∣ / h K ) 2 + ( 2 C q ) 2 ] − 1 / 2 , v q = u − ∇ ϕ , (35) \tau_{\mathrm{SUPG}}=\left[(2\lvert\boldsymbol{v}_q\rvert/h_K)^2+(2Cq)^2\right]^{-1/2},\qquad\boldsymbol{v}_q=\boldsymbol{u}-\nabla\phi, \tag*{(35)} τ SUPG = [ ( 2 ∣ v q ∣ / h K ) 2 + ( 2 C q ) 2 ] − 1/2 , v q = u − ∇ ϕ , (35)
where h K h_K h K is the cell diameter. Time integration uses the second-order backward differentiation formula (BDF2), started with one backward-Euler step[34 , 35 ] . At each step the monolithic nonlinear system is solved with Newton’s method and a direct (LU) linear solver. The pressure null space is removed in both the direct and the adjoint problems, and null pivots of the LU factorizations are detected explicitly. Without this safeguard, the singular adjoint system can occasionally return a corrupted gradient. The complete weak formulation is given in Appendix B.
During the forward integration, Pyadjoint records on a tape every operation that contributes to J J J , namely the interpolation of the initial perturbation, each nonlinear time step, and the assembly of the objective functional. Each time step is recorded as a single block, defined by its residual in variational form, and not by the Newton iterations used to solve it. In the reverse sweep the tape is traversed backwards. For each time step, the Jacobian of the residual with respect to the unknowns of that step is obtained by symbolic differentiation of the variational form and its transpose is assembled. The adjoint variables of the step are then the solution of a single linear system with this transposed Jacobian, whose right-hand side collects the sensitivities propagated from the later steps and from J J J . The backward integration is therefore linear, and each adjoint step costs one linear solve, against the several Newton iterations of the corresponding forward step. The result of the sweep is the derivative of the discrete objective functional with respect to the degrees of freedom of q 0 ′ q'_0 q 0 ′ , a linear functional from which the gradient g g g is obtained by the Riesz map of Sec. III B.
Since the adjoint is derived from the discrete equations actually solved, it contains the transposed SUPG contributions, which do not appear in the continuous adjoint equations of Appendix A. The optimization is therefore internally consistent with the numerical forward problem, and convergence towards the continuous optimization problem must be assessed through spatial and temporal refinement.
Amplitude measure, symmetry and computational configuration
Amplitudes are given by the initial charge energy E 0 E_0 E 0 of Eq. (24) , integrated over the layer (∣ Ω ∣ = L = 1.228 |\Omega| = L = 1.228 ∣Ω∣ = L = 1.228 ). For physical interpretation we also quote the root-mean-square initial charge perturbation
q r m s ′ = ( E 0 ∣ Ω ∣ ) 1 / 2 , (36) q'_{\mathrm{rms}} = \left(\frac{E_0}{|\Omega|}\right)^{1/2}, \tag*{(36)} q rms ′ = ( ∣Ω∣ E 0 ) 1/2 , (36)
which is expressed in units of the injected charge density q i q_i q i .
Equations (11) –(14) , the base state and the periodic mesh are invariant under the reflection P : x ↦ − x \mathcal{P}: x \mapsto-x P : x ↦ − x (modulo L L L ), under which ( u x , u y ) ↦ ( − u x , u y ) (u_x,u_y) \mapsto(-u_x,u_y) ( u x , u y ) ↦ ( − u x , u y ) and p p p , q q q , φ \varphi φ are mapped to their mirror images. The subspace of P \mathcal{P} P -even fields is therefore invariant under the full nonlinear evolution. It is exactly the single roll with symmetry walls of Pérez et al. [24 ] , which the periodic layer contains as a special case. The P \mathcal{P} P -odd subspace is invariant only under the linearized dynamics, because q ′ ↦ − q ′ q' \mapsto-q' q ′ ↦ − q ′ is not a symmetry of the quadratic terms in Eq. (13) . Finite-amplitude optimizations are started from the seed y [ cos k x + 1 2 sin 2 k x ] y[\cos kx+\frac{1}{2}\sin2kx] y [ cos k x + 2 1 sin 2 k x ] , k = 2 π / L k=2\pi/L k = 2 π / L , which has no reflection axis and lets the optimizer break both the reflection and the translation symmetries.
Unless stated otherwise, all results use C = 10 C=10 C = 10 , M = 10 M=10 M = 10 , the periodic layer discretized with 62 × 100 62 \times100 62 × 100 cells per roll (124 × 100 124 \times100 124 × 100 in the layer) and Δ t = 0.02 \Delta t=0.02 Δ t = 0.02 . Section IV shows that this resolution carries errors of about 0.02% (spatial) and 0.2% (temporal) on optimal gains, and shifts the threshold to T c h = 163.82 T_c^h=163.82 T c h = 163.82 . To keep every case at the intended distance from threshold, values of the electric Rayleigh number are referred to the discrete threshold. A case defined in terms of Δ T = T c − T \Delta T=T_c-T Δ T = T c − T is computed at T = T c h − Δ T T=T_c^h-\Delta T T = T c h − Δ T . In particular, the reference subcritical case of the validation and of § 1.4 , Δ T = 4.1 \Delta T=4.1 Δ T = 4.1 (i.e., T = 160 T=160 T = 160 for T c = 164.09 T_c=164.09 T c = 164.09 ), is computed at T = 159.73 T=159.73 T = 159.73 .
Numerical validation
Spatial and temporal convergence
The discretization was assessed with the small-amplitude optimization (E 0 = 10 − 8 E_0 = 10^{-8} E 0 = 1 0 − 8 , τ = 0.4 \tau= 0.4 τ = 0.4 ). Table II shows the optimal gain at fixed T = 158.93 T = 158.93 T = 158.93 on three successively doubled meshes at Δ t = 0.02 \Delta t = 0.02 Δ t = 0.02 . The gain converges monotonically with observed order about 2.5. The production mesh (62 × \times × 100 cells per roll) differs from the finest one by 0.015%, and the coarsest one (31 × \times × 50) by 0.10%.
Table II. Spatial convergence of the optimal gain (T = 158.93 T = 158.93 T = 158.93 , E 0 = 10 − 8 E_0 = 10^{-8} E 0 = 1 0 − 8 , τ = 0.4 \tau= 0.4 τ = 0.4 , Δ t = 0.02 \Delta t = 0.02 Δ t = 0.02 ).
Table III shows the temporal convergence on the production mesh at the reference value T = 159.73 T = 159.73 T = 159.73 . The differences decrease by a factor of four per halving of Δ t \Delta t Δ t , and the observed order is 2.09, as expected for BDF2. Richardson extrapolation gives G q = 641.652 G_q = 641.652 G q = 641.652 . At the working time step Δ t = 0.02 \Delta t = 0.02 Δ t = 0.02 the temporal error is 0.18%, which is the dominant discretization error of the production computations.
Table III. Temporal convergence of the optimal gain on the production mesh (T = 159.73 T = 159.73 T = 159.73 , E 0 = 10 − 8 E_0 = 10^{-8} E 0 = 1 0 − 8 , τ = 0.4 \tau= 0.4 τ = 0.4 ).
Determination of the linear-amplitude limit and recovery of the linear instability threshold
In the linearized problem the velocity at time τ \tau τ is proportional to q 0 ′ q'_0 q 0 ′ , so J J J and E 0 E_0 E 0 are both quadratic in the amplitude of q 0 ′ q'_0 q 0 ′ and the gain becomes independent of E 0 E_0 E 0 as E 0 → 0 E_0 \to0 E 0 → 0 . Table IV and Figure 4 show the optimal gain near threshold (T = 163.73 T = 163.73 T = 163.73 , Δ T = 0.1 \Delta T = 0.1 Δ T = 0.1 ) for τ = 1.5 \tau= 1.5 τ = 1.5 , 2, 2.5 and three amplitudes. Between E 0 = 10 − 10 E_0 = 10^{-10} E 0 = 1 0 − 10 and 10 − 8 10^{-8} 1 0 − 8 the gain changes by at most 0.017%, whereas E 0 = 10 − 6 E_0 = 10^{-6} E 0 = 1 0 − 6 already deviates by 1.1--1.8%, increasing with τ \tau τ . We therefore use E 0 = 10 − 8 E_0 = 10^{-8} E 0 = 1 0 − 8 to represent the linear regime.
Table IV. Optimal gain versus initial amplitude near threshold (T = 163.73 T = 163.73 T = 163.73 , production mesh).
Figure 4. Optimal gain as a function of the initial charge energy E 0 E_0 E 0 near threshold (T = 163.73 T = 163.73 T = 163.73 ) for three horizons.
For small amplitude and long horizon the optimal response is dominated by the least stable eigenmode, so that
J o p t ( τ ) ≃ A ( T ) exp [ 2 σ ( T ) τ ] . (37) J_{\mathrm{opt}}(\tau) \simeq A(T)\exp\left[2\sigma(T)\tau\right]. \tag*{(37)} J opt ( τ ) ≃ A ( T ) exp [ 2 σ ( T ) τ ] . (37)
Table 5. Asymptotic growth rates on the production mesh (E 0 = 10 − 8 E_0 = 10^{-8} E 0 = 1 0 − 8 , Δ t = 0.02 \Delta t = 0.02 Δ t = 0.02 ), fitted over τ ∈ { 1.5 , 2 , 2.5 } \tau\in\{1.5, 2, 2.5\} τ ∈ { 1.5 , 2 , 2.5 } .
The asymptotic growth rate is obtained from a least-squares fit of ln ( J o p t ) = a + b τ \ln(J_{\mathrm{opt}}) = a + b\tau ln ( J opt ) = a + b τ over τ ∈ { 1.5 , 2 , 2.5 } \tau\in\{1.5, 2, 2.5\} τ ∈ { 1.5 , 2 , 2.5 } , and σ N M = b / 2 \sigma_{\mathrm{NM}} = b/2 σ NM = b /2 . The fits for E 0 = 10 − 8 E_0 = 10^{-8} E 0 = 1 0 − 8 and four values of T T T around the discrete threshold are shown in Figure 5 (a). All coefficients of determination exceed 0.9994. The growth rate is linear in T T T with slope d σ N M / d T = 0.0282 \mathrm{d}\sigma_{\mathrm{NM}}/\mathrm{d}T = 0.0282 d σ NM / d T = 0.0282 [Figure 5 (b) and Table V], and its zero gives the non-modal threshold
Figure 5. Recovery of the linear threshold. (a) ln ( J o p t ) \ln(J_{\mathrm{opt}}) ln ( J opt ) versus τ \tau τ with least-squares fits (E 0 = 10 − 8 E_0 = 10^{-8} E 0 = 1 0 − 8 ). (b) σ N M ( T ) \sigma_{\mathrm{NM}}(T) σ NM ( T ) . Dotted: zero crossing T c N M = 163.827 T_{\mathrm{c}}^{\mathrm{NM}} = 163.827 T c NM = 163.827 . Dashed: discrete modal threshold T c h = 163.822 T_{\mathrm{c}}^{\mathrm{h}} = 163.822 T c h = 163.822 .
T c N M = 163.827 , (38) T_c^{\mathrm{NM}} = 163.827, \tag*{(38)} T c NM = 163.827 , (38)
which coincides with the discrete modal threshold T c h = 163.822 T_c^{h} = 163.822 T c h = 163.822 of the same mesh to within 0.003%. The direct–adjoint optimization thus recovers the modal threshold of its own discretization essentially exactly, and the mesh convergence of T c h T_c^{h} T c h (Table I) carries it to the continuous value.
Nonlinear optimal perturbations
The finite-amplitude calculations are performed at T = 159.73 T = 159.73 T = 159.73 (Δ T = 4.1 \Delta T = 4.1 Δ T = 4.1 , linearly stable) for the horizons τ ∈ { 0.1 , 0.5 , 1 , 1.5 , 2 } \tau\in\{0.1, 0.5, 1, 1.5, 2\} τ ∈ { 0.1 , 0.5 , 1 , 1.5 , 2 } . For each horizon the optimization is continued in amplitude over E 0 = 10 − 8 , 10 − 7 , … , 10 − 4 E_0 = 10^{-8}, 10^{-7}, \ldots, 10^{-4} E 0 = 1 0 − 8 , 1 0 − 7 , … , 1 0 − 4 , each stage starting from the optimum of the previous one and the first from the symmetry-breaking seed of Sec. III D. All optimizations converged to ∥ g T ∥ / ∥ g ∥ < 10 − 4 \lVert g_T \rVert/\lVert g \rVert< 10^{-4} ∥ g T ∥ / ∥ g ∥ < 1 0 − 4 .
Finite-amplitude optimal growth
Figure 6 shows the optimal gain G q = J o p t / E 0 G_q = J_{\mathrm{opt}}/E_0 G q = J opt / E 0 normalized by its small-amplitude value, G N L = G q / G q l i n G_{\mathrm{NL}} = G_q/G_q^{\mathrm{lin}} G NL = G q / G q lin , and the structural similarity defined below. In the linear regime the optimal gain is not monotonic in τ \tau τ . It takes the values G q l i n = 368.7 G_q^{\mathrm{lin}} = 368.7 G q lin = 368.7 , 684.6, 601.2, 539.9 and 480.3 for τ = 0.1 \tau= 0.1 τ = 0.1 , 0.5, 1, 1.5 and 2. Transient amplification peaks near τ ≈ 0.5 \tau\approx0.5 τ ≈ 0.5 , after which the response decays at the asymptotic rate σ N M < 0 \sigma_{\mathrm{NM}} < 0 σ NM < 0 of this linearly stable state.
Figure 6. Finite-amplitude optimal growth at T = 159.73 T = 159.73 T = 159.73 . (a) Optimal gain normalized by its small-amplitude value. (b) Translation-aligned correlation of Eq. (39) between the optimal perturbation at amplitude E 0 E_0 E 0 and the small-amplitude optimum.
Up to E 0 ≃ 10 − 6 E_0 \simeq10^{-6} E 0 ≃ 1 0 − 6 the gain is independent of the amplitude to within 1.3% for all horizons. At larger amplitude the horizons separate. At E 0 = 10 − 5 E_0 = 10^{-5} E 0 = 1 0 − 5 , G N L = 1.07 G_{\mathrm{NL}} = 1.07 G NL = 1.07 , 1.11 and 1.14 for τ = 1 \tau= 1 τ = 1 , 1.5 and 2, and at E 0 = 10 − 4 E_0 = 10^{-4} E 0 = 1 0 − 4 , G N L = 1.66 G_{\mathrm{NL}} = 1.66 G NL = 1.66 , 2.62 and 4.29. For the shortest horizons the nonlinearity has no time to act, with G N L = 0.999 G_{\mathrm{NL}} = 0.999 G NL = 0.999 (τ = 0.1 \tau= 0.1 τ = 0.1 ) and 1.003 (τ = 0.5 \tau= 0.5 τ = 0.5 ) at the largest amplitude. At E 0 = 10 − 4 E_0 = 10^{-4} E 0 = 1 0 − 4 and τ = 2 \tau= 2 τ = 2 the maximum velocity reaches U max = 1.10 U_{\max} = 1.10 U m a x = 1.10 at t = τ t = \tau t = τ , i.e., of the order of the drift-velocity scale. The optimal perturbation is driving the layer towards the convective state within the horizon.
Structure of the finite-amplitude optimal perturbation
In the periodic layer every translate of an optimum is also an optimum, so the similarity between optima at different amplitudes is measured by the correlation maximized over translations,
∣ C ( E 0 , τ ) ∣ = max s ∈ [ 0 , L ) ∣ ⟨ q 0 ′ ( x + s , y ; E 0 , τ ) , q 0 ′ ( x , y ; E 0 , r e f , τ ) ⟩ ∣ ∥ q 0 ′ ( E 0 , τ ) ∥ ∥ q 0 ′ ( E 0 , r e f , τ ) ∥ (39) \lvert C(E_0,\tau) \rvert= \max_{s \in[0,L)} \frac{\left\lvert\left\langle q'_0(x+s,y;E_0,\tau),q'_0(x,y;E_{0,\mathrm{ref}},\tau) \right\rangle\right\rvert}{\lVert q'_0(E_0,\tau) \rVert\lVert q'_0(E_{0,\mathrm{ref}},\tau) \rVert} \tag*{(39)} ∣ C ( E 0 , τ )∣ = s ∈ [ 0 , L ) max ∥ q 0 ′ ( E 0 , τ )∥ ∥ q 0 ′ ( E 0 , ref , τ )∥ ∣ ⟨ q 0 ′ ( x + s , y ; E 0 , τ ) , q 0 ′ ( x , y ; E 0 , ref , τ ) ⟩ ∣ (39)
with E 0 , r e f = 10 − 8 E_{0,\mathrm{ref}} = 10^{-8} E 0 , ref = 1 0 − 8 . The correlation stays above 0.997 up to E 0 = 10 − 6 E_0 = 10^{-6} E 0 = 1 0 − 6 and decreases to 0.93, 0.89, 0.87 and 0.86 for τ = 0.5 \tau= 0.5 τ = 0.5 , 1, 1.5 and 2 at E 0 = 10 − 4 E_0 = 10^{-4} E 0 = 1 0 − 4 [Fig. 6(b)]. This means that the structure of the optimal perturbation changes with the amplitude of the initial perturbation.
Figure 7 shows this change for τ = 1 \tau= 1 τ = 1 . The small-amplitude optimum (E 0 = 10 − 8 E_0 = 10^{-8} E 0 = 1 0 − 8 ) is a single horizontal Fourier mode concentrated near the injector. The maximum is at y ≃ 0.25 y \simeq0.25 y ≃ 0.25 , much lower than the critical eigenmode (Figure 3 ), with lobes of equal strength (max q 0 ′ = 2.17 × 10 − 4 \max q'_0 = 2.17 \times10^{-4} max q 0 ′ = 2.17 × 1 0 − 4 , min q 0 ′ = − 2.20 × 10 − 4 \min q'_0 = -2.20 \times10^{-4} min q 0 ′ = − 2.20 × 1 0 − 4 ). For E 0 = 10 − 4 E_0 = 10^{-4} E 0 = 1 0 − 4 the optimum is strongly asymmetric in sign. It consists of a compact charge deficit (min q 0 ′ = − 3.95 × 10 − 2 \min q'_0 = -3.95 \times10^{-2} min q 0 ′ = − 3.95 × 1 0 − 2 ) flanked by weak excess regions (max q 0 ′ = 1.10 × 10 − 2 \max q'_0 = 1.10 \times10^{-2} max q 0 ′ = 1.10 × 1 0 − 2 ). The asymmetry appears in the horizontal Fourier content as a horizontally uniform component k 0 = 0 k_0 = 0 k 0 = 0 , a charge deficit in the bulk of the layer, and a second harmonic k 2 = 2 k k_2 = 2k k 2 = 2 k [Figure 7 (c) and Figure 7 (d)]. Their energy fractions grow linearly with E 0 E_0 E 0 , as expected for quadratic interactions of the fundamental mode, and reach 3.3% (k 0 k_0 k 0 ) and 13.4% (k 2 k_2 k 2 ) of the perturbation energy for τ = 1 \tau= 1 τ = 1 at E 0 = 10 − 4 E_0 = 10^{-4} E 0 = 1 0 − 4 (6.7% and 4.2% for τ = 0.5 \tau= 0.5 τ = 0.5 ). The third harmonic k 3 = 3 k k_3 = 3k k 3 = 3 k , produced by the interaction of the fundamental with k 2 k_2 k 2 , is of third order in the amplitude, and its energy fraction grows as E 0 2 E_0^2 E 0 2 , from 1.8 × 10 − 9 1.8 \times10^{-9} 1.8 × 1 0 − 9 at E 0 = 10 − 8 E_0 = 10^{-8} E 0 = 1 0 − 8 to 2.4% at E 0 = 10 − 4 E_0 = 10^{-4} E 0 = 1 0 − 4 for τ = 1 \tau= 1 τ = 1 . Between E 0 = 10 − 5 E_0 = 10^{-5} E 0 = 1 0 − 5 and 10 − 4 10^{-4} 1 0 − 4 all fractions depart from these power laws (the second harmonic grows by a factor of 4 instead of 10), and the fundamental retains only 80% of the perturbation energy. At this amplitude the optimal trajectory reaches U max = 0.80 U_{\max} = 0.80 U m a x = 0.80 within the horizon, close to the drift-velocity scale, and higher-order interactions are no longer small.
Figure 7. Optimal initial charge perturbation at T = 159.73 T = 159.73 T = 159.73 . (a) Small-amplitude optimum, E 0 = 10 − 8 E_0 = 10^{-8} E 0 = 1 0 − 8 , τ = 1 \tau= 1 τ = 1 . (b) Finite-amplitude optimum, E 0 = 10 − 4 E_0 = 10^{-4} E 0 = 1 0 − 4 , τ = 1 \tau= 1 τ = 1 . Both are normalized by max ∣ q 0 ′ ∣ \max|q'_0| max ∣ q 0 ′ ∣ . (c) Horizontal mean ⟨ q 0 ′ ⟩ x ( y ) / max ∣ q 0 ′ ∣ \langle q'_0\rangle_x(y)/\max|q'_0| ⟨ q 0 ′ ⟩ x ( y ) / max ∣ q 0 ′ ∣ for the three largest amplitudes, for τ = 1 \tau= 1 τ = 1 (solid) and τ = 0.5 \tau= 0.5 τ = 0.5 (dashed). (d) Fraction of the perturbation energy in the horizontal wavenumbers k n = 2 π n / L k_n = 2\pi n/L k n = 2 π n / L , with the same line styles.
Although the seed and the optimizer allow it, no optimum breaks the reflection symmetry. The energy fraction odd about the best reflection axis stays below 5 × 10 − 8 5 \times10^{-8} 5 × 1 0 − 8 for all amplitudes and horizons. A single-stage optimization at E 0 = 10 − 4 E_0 = 10^{-4} E 0 = 1 0 − 4 , τ = 1 \tau= 1 τ = 1 , started directly from the symmetry-breaking seed (without continuation) converges to G q = 996.117 G_q = 996.117 G q = 996.117 , the value obtained by continuation, with ∥ g T ∥ / ∥ g ∥ = 7 × 10 − 6 \lVert g_T \rVert/\lVert g \rVert= 7 \times10^{-6} ∥ g T ∥ / ∥ g ∥ = 7 × 1 0 − 6 . The finite-amplitude optimum is therefore mirror-symmetric and coincides with the optimum of a single roll with symmetry walls at the same amplitude per roll.
Nonlinear mechanism: asymmetry between charge excess and deficit
The sign asymmetry can be traced to the nonlinear part of the charge equation. Using Eqs. (14) and (12) , Eq. (13) reads ∂ t q + ( u + E ) ⋅ ∇ q + C q 2 = 0 \partial_t q + (u + E) \cdot\nabla q + Cq^2 = 0 ∂ t q + ( u + E ) ⋅ ∇ q + C q 2 = 0 . Inserting q = q b + q ′ q = q_b + q' q = q b + q ′ and E = E b + E ′ E = E_b + E' E = E b + E ′ and subtracting the base state gives
∂ t q ′ + ( u + E b + E ′ ) ⋅ ∇ q ′ + ( u + E ′ ) ⋅ ∇ q b = − C ( 2 q b + q ′ ) q ′ . (40) \partial_t q' + (u + E_b + E') \cdot\nabla q' + (u + E') \cdot\nabla q_b = -C(2q_b + q')q'. \tag*{(40)} ∂ t q ′ + ( u + E b + E ′ ) ⋅ ∇ q ′ + ( u + E ′ ) ⋅ ∇ q b = − C ( 2 q b + q ′ ) q ′ . (40)
The right-hand side is the Coulomb self-repulsion of the perturbation charge. Its local relaxation rate C ( 2 q b + q ′ ) C(2q_b + q') C ( 2 q b + q ′ ) is larger for a charge excess (q ′ > 0 q' > 0 q ′ > 0 ) than for a charge deficit (q ′ < 0 q' < 0 q ′ < 0 ) of the same magnitude. In the linearized problem it is 2 C q b 2Cq_b 2 C q b for both signs, which is why the linear optimum has symmetric lobes. At finite amplitude a deficit relaxes more slowly and persists longer to modify the Coulomb force that drives the roll.
The interpretation can be tested by reversing the sign of an optimum, which leaves its spatial structure and amplitude unchanged but turns the charge deficit into an excess. Just above the critical amplitude (E 0 = 3.492 × 10 − 5 E_0 = 3.492 \times10^{-5} E 0 = 3.492 × 1 0 − 5 , 0.4 % 0.4\% 0.4% above E c E_c E c , § 1.4 D) the optimum reaches the convective state, whereas its sign reversal decays to rest without approaching the edge state [Figure 13 (a)]. § 1.4 E shows that the two signs separate within the first time unit.
Figure 13. Optimal trajectories at the critical amplitude, T = 159.73 T = 159.73 T = 159.73 . (a) Optimal perturbations just above (E 0 = 3.492 × 10 − 5 E_0 = 3.492 \times10^{-5} E 0 = 3.492 × 1 0 − 5 ) and just below (E 0 = 3.461 × 10 − 5 E_0 = 3.461 \times10^{-5} E 0 = 3.461 × 1 0 − 5 ) the critical amplitude, and sign reversal of the first, showing the kinetic energy K K K (solid) and the energy of the leading pair (dotted). Dashed: linear decay from t = 1 t = 1 t = 1 . (b) Separation of the trajectories above and below the critical amplitude, with an exponential fit ∝ e λ t \propto e^{\lambda t} ∝ e λ t , λ = 0.211 \lambda= 0.211 λ = 0.211 .
Minimal seed
For values of T T T between T N L T_{\mathrm{NL}} T NL and the linear threshold, both the hydrostatic and the convective states are stable (Figure 1 ). The minimal seed is the smallest initial perturbation that, starting from the hydrostatic state, reaches the convective state. Its amplitude E c 0 ( T ) E_c^0(T) E c 0 ( T ) measures how robust the hydrostatic state is. Following Pringle and Kerswell [13 ] it is approached from below with optimal perturbations. For each amplitude, the perturbation maximizing J ( τ ) J(\tau) J ( τ ) with τ = 1 \tau= 1 τ = 1 is computed and evolved to t e n d = 20 t_{\mathrm{end}} = 20 t end = 20 (40 or 60 where needed, see below). The amplitude is scanned by decades and then bracketed by bisection in log E 0 \log E_0 log E 0 , each step restarted from the nearest non-transitioning optimum. A trajectory is classified as transitioning when, at t e n d t_{\mathrm{end}} t end , the maximum fluid velocity exceeds the drift-velocity scale,
U max ≥ 1 U_{\max} \ge1 U m a x ≥ 1 , as on the convective branch[36 ] , and its kinetic energy has reached a plateau, K ( t e n d ) ≥ 0.97 K ( 0.75 t e n d ) K(t_{\mathrm{end}}) \ge0.97K(0.75t_{\mathrm{end}}) K ( t end ) ≥ 0.97 K ( 0.75 t end ) . All the other trajectories decay, with U max ( t e n d ) < 0.5 U_{\max}(t_{\mathrm{end}}) < 0.5 U m a x ( t end ) < 0.5 and decreasing. The convective states reached have U max ≥ 1.34 U_{\max} \ge1.34 U m a x ≥ 1.34 (Table VI ), well above the threshold, so the classification does not depend on its exact value. A transitioning optimum proves E 0 l ≥ E 0 c E_0^l \ge E_0^c E 0 l ≥ E 0 c irrespective of how well it is converged. A decaying optimum is accepted as a lower bound only if its optimization reached ∥ g T ∥ / ∥ g ∥ ≤ 10 − 2 \lVert g_T\rVert/\lVert g\rVert\le10^{-2} ∥ g T ∥ / ∥ g ∥ ≤ 1 0 − 2 . The searches use this tolerance and up to 12 iterations, increased to 30 iterations and 10 − 3 10^{-3} 1 0 − 3 for Δ T ≥ 46.6 \Delta T \ge46.6 Δ T ≥ 46.6 , where the optimization at large amplitude is harder. Trajectories are integrated to t = 40 t = 40 t = 40 at Δ T = 4.1 \Delta T = 4.1 Δ T = 4.1 and 46.6 46.6 46.6 –49.1 49.1 49.1 , and to t = 60 t = 60 t = 60 at Δ T = 51.6 \Delta T = 51.6 Δ T = 51.6 and 54.1 54.1 54.1 .
Table VI. Minimal-seed amplitude bracket E 0 c < E 0 l ≤ E 0 h E_0^c < E_0^l \le E_0^h E 0 c < E 0 l ≤ E 0 h (τ = 1 \tau= 1 τ = 1 ) at a distance Δ T = T c h − T \Delta T = T_c^h - T Δ T = T c h − T from the discrete threshold T c h = 163.82 T_c^h = 163.82 T c h = 163.82 . U max c o n v U_{\max}^{\mathrm{conv}} U m a x conv is the maximum velocity of the convective state reached.
The classification is unambiguous away from the bracket. Decaying trajectories reach K ( t e n d ) ≲ 10 − 11 K(t_{\mathrm{end}}) \lesssim10^{-11} K ( t end ) ≲ 1 0 − 11 in most cases, and transitioning ones saturate on the convective state [Figure 8 (b)]. Close to the critical amplitude, trajectories approach a state of intermediate amplitude and remain near it for several time units before either decaying or departing towards convection. At T = 149.73 T = 149.73 T = 149.73 the smallest transitioning optimum stays at U max ≃ 0.75 U_{\max} \simeq0.75 U m a x ≃ 0.75 until t ≃ 3 t \simeq3 t ≃ 3 and crosses U max = 1 U_{\max} = 1 U m a x = 1 only at t = 5.1 t = 5.1 t = 5.1 .
Figure 8. Minimal seed. (a) Critical amplitude E 0 c E_0^c E 0 c versus T / T c h T/T_c^h T / T c h on the production mesh and on a mesh with half the resolution (31× \times × 50 cells per roll), at the same distance from the discrete threshold of each mesh. (b) Maximum velocity of the optimal trajectories at T = 149.73 T = 149.73 T = 149.73 (Δ T = 14.1 \Delta T = 14.1 Δ T = 14.1 ) for four amplitudes of the search, namely the two that bracket E 0 c E_0^c E 0 c and one further amplitude on each side. Solid lines are transitioning trajectories and dashed lines non-transitioning ones.
Table VI and Figure 8 give the result. The minimal seed grows monotonically as the layer moves away from threshold. Between Δ T = 14.1 \Delta T = 14.1 Δ T = 14.1 and 44.1 44.1 44.1 the critical amplitude increases by a factor of about 5.6, roughly as E 0 c ∝ Δ T 1.5 E_0^c \propto\Delta T^{1.5} E 0 c ∝ Δ T 1.5 , and by a further factor of 1.6 between Δ T = 44.1 \Delta T = 44.1 Δ T = 44.1 and 51.6 51.6 51.6 . The root-mean-square perturbation, Eq. (36) , at E 0 c E_0^c E 0 c grows from 0.53% of the injected charge at Δ T = 4.1 \Delta T = 4.1 Δ T = 4.1 to 2.5% at Δ T = 44.1 \Delta T = 44.1 Δ T = 44.1 and 3.0% at Δ T = 51.6 \Delta T = 51.6 Δ T = 51.6 . At the same time the convective state reached weakens steadily, U max c o n v U_{\max}^{\mathrm{conv}} U m a x conv decreasing from 3.0 to 1.3 and its kinetic energy from 1.10 to 0.32 (Table VI ).
The minimal seed is converged in resolution to the precision of the bisection. On a mesh with half the resolution in each direction (31 × 50 cells per roll), the brackets are identical or higher by one bisection step [Figure 8 (a)].
a. Lower end of the subcritical range. The convective state reached by the transitioning trajectories weakens steadily as T T T decreases (Table VI ), which indicates that the convective branch ends at a nonlinear threshold T N L T_{\mathrm{NL}} T NL , at a saddle-node bifurcation where it merges with the branch of edge states [Figure 1 (a)]. A convective state still exists at the lowest value of the search, T / T c h = 0.670 T/T_c^h = 0.670 T / T c h = 0.670 (Δ T = 54.1 \Delta T = 54.1 Δ T = 54.1 ), with U max = 1.34 U_{\max} = 1.34 U m a x = 1.34 , already close to the drift-velocity scale, and K = 0.32 K = 0.32 K = 0.32 . The end of the branch thus lies just below,
T N L ≈ 0.67 T c . (41) T_{\mathrm{NL}} \approx0.67T_c. \tag*{(41)} T NL ≈ 0.67 T c . (41)
Down to the end of the branch the minimal seed is a perturbation of a few percent of the injected charge. Below T N L T_{\mathrm{NL}} T NL transition becomes impossible because the convective branch itself ceases to exist.
This value agrees with direct numerical simulations of the convective branch. In a cell of width 0.614 with stress-free, zero-flux lateral boundaries, which is equivalent to the P P P -even subspace of our periodic layer (Sec. III D), Traoré and Pérez[37 ] and Wu et al.[38 ] follow the convective state while decreasing T T T and find that, for C = M = 10 C = M = 10 C = M = 10 , the motion stops at T f = 108.2 T_f = 108.2 T f = 108.2 with their finest grid. This corresponds to T f / T c = 0.66 T_f/T_c = 0.66 T f / T c = 0.66 , against T N L < 109.73 T_{\rm NL} < 109.73 T NL < 109.73 (0.670 T c h 0.670\,T_c^h 0.670 T c h ) in our computations. Both determinations locate the end of the same branch, by continuation in their case and from the evolution of optimal perturbations in ours. Wu et al. 36 also show that T f T_f T f is very sensitive to the numerical diffusion of the charge equation. As in their simulations, the convective state keeps U max U_{\max} U m a x above the drift-velocity scale down to the end of the branch. The nonlinear stability analysis of Atten and Lacroix 39, which assumes M → ∞ M \to\infty M → ∞ and a modal velocity field, gives the higher values 125 and 116 for one and two modes. The difference is due to the self-similar velocity field assumed in that analysis[36 ] .
b. Edge state. For values of T T T near the threshold (Δ T = 4.1 \Delta T = 4.1 Δ T = 4.1 in Table VI ), the bracket was narrowed to 0.9% by integrating to t = 40 t = 40 t = 40 , which reveals how trajectories behave close to the minimal seed [Figure 9 (a)]. All perturbations first relax within t ≈ 1 t \approx1 t ≈ 1 to a common state of intermediate amplitude, U max ≈ 0.4 U_{\max} \approx0.4 U m a x ≈ 0.4 , and stay near it. Those above the critical amplitude eventually leave it towards the convective state, and those below it decay. The time at which the transitioning trajectories reach U max = 1 U_{\max} = 1 U m a x = 1 diverges logarithmically as the amplitude approaches the critical one [Figure 9 (b)],
Figure 9. Approach to the minimal seed at T = 159.73 T = 159.73 T = 159.73 (Δ T = 4.1 \Delta T = 4.1 Δ T = 4.1 ). (a) Maximum velocity of the optimal trajectories for the largest non-transitioning amplitude of the bracket (dashed) and the three transitioning amplitudes (solid) used in (b). (b) Time at which U max = 1 U_{\max} = 1 U m a x = 1 versus E 0 − E 0 c E_0 - E_0^c E 0 − E 0 c , with the law of Eq. (42) , λ = 0.211 \lambda= 0.211 λ = 0.211 . The colors match those of (a).
t c r o s s ≃ b − 1 λ ln ( E 0 − E 0 c ) , λ = 0.211 , E 0 c = 3.477 × 10 − 5 , (42) t_{\mathrm{cross}} \simeq b - \frac{1}{\lambda}\ln(E_0-E_0^c),
\qquad
\lambda= 0.211,\quad E_0^c = 3.477 \times10^{-5}, \tag*{(42)} t cross ≃ b − λ 1 ln ( E 0 − E 0 c ) , λ = 0.211 , E 0 c = 3.477 × 1 0 − 5 , (42)
where λ \lambda λ is the growth rate measured independently in Sec. V E. With this value the three trajectories within 5% of E 0 c E_0^c E 0 c are fitted with residuals of 0.02 time units, and a free three-parameter fit gives λ = 0.214 \lambda= 0.214 λ = 0.214 .
This behavior identifies an edge state[19 , 20 ] , a saddle with a single unstable direction whose stable manifold separates the basins of attraction of the hydrostatic and convective states. The minimal seed is the point of smallest amplitude on this manifold [Figure 1 (b)]. A perturbation of amplitude E 0 E_0 E 0 starts at a distance δ ∝ E 0 − E 0 c \delta\propto E_0-E_0^c δ ∝ E 0 − E 0 c from the manifold. Its stable components decay quickly, so it is carried along the manifold to the neighborhood of the edge state, which produces the plateau. There, its component along the unstable direction grows as δ e λ t \delta e^{\lambda t} δ e λ t , so it leaves after a time λ − 1 ln ( δ − 1 ) \lambda^{-1}\ln(\delta^{-1}) λ − 1 ln ( δ − 1 ) [40 ] (chap. 6). This is the logarithm in Eq. (42) , whose slope therefore measures the unstable eigenvalue. The time spent reaching the plateau does not depend on δ \delta δ and is absorbed into b b b .
The edge state can be computed directly as a steady solution of the discrete equations. Starting from the plateau of the bracketing trajectories at T = 159.73 T = 159.73 T = 159.73 , Newton’s method converges to a steady state, with U max = 0.389 U_{\max} = 0.389 U m a x = 0.389 and K = 0.0268 K = 0.0268 K = 0.0268 , within 0.4% of the plateau values. Its linearization has a single unstable eigenvalue, σ 1 = 0.2108 \sigma_1 = 0.2108 σ 1 = 0.2108 , which coincides with the escape rate λ = 0.211 \lambda= 0.211 λ = 0.211 measured from the trajectories, a zero eigenvalue associated with horizontal translations, and a stable remainder (Re σ ≤ − 2.9 \operatorname{Re}\sigma\le-2.9 Re σ ≤ − 2.9 ). The edge state was followed in T T T by pseudo-arclength continuation, restricted to mirror-symmetric fields, down to T / T c h = 0.76 T/T_c^h = 0.76 T / T c h = 0.76 (Figure 10 ). Near threshold U max ∝ T c h − T U_{\max} \propto T_c^h-T U m a x ∝ T c h − T , and extrapolating it to zero gives T = 163.78 T = 163.78 T = 163.78 , against the linear value computed in § 1.1 C, T c h = 163.82 T_c^h = 163.82 T c h = 163.82 . The edge states form the unstable branch of the subcritical pitchfork that leaves the hydrostatic state at the linear threshold. Figure 10 (b) shows the evolution of the edge states as T T T moves away from the linear threshold. Close to it, the edge state has the structure of the critical mode. Further from threshold the rolls strengthen and the charge perturbation concentrates into a deficit, the same sign asymmetry as the finite-amplitude optimal perturbations. The unstable eigenvalue grows to σ 1 ≃ 1.1 \sigma_1 \simeq1.1 σ 1 ≃ 1.1 near T / T c h = 0.78 T/T_c^h = 0.78 T / T c h = 0.78 and then decreases, as it must vanish at the end of the unstable branch when it approaches the saddle node. When U max U_{\max} U m a x exceeds the drift-velocity scale, near T / T c h = 0.82 T/T_c^h = 0.82 T / T c h = 0.82 , a charge void forms inside each roll, where the charge, carried by u + E \boldsymbol{u}+\boldsymbol{E} u + E , follows closed orbits and decays to zero. The void is displaced from the center of the roll towards the down-flow, around the point where u + E = 0 \boldsymbol{u}+\boldsymbol{E} = 0 u + E = 0 . The spectrum then acquires a cluster of weakly damped modes associated with the void. The continuation was stopped at T / T c h = 0.76 T/T_c^h = 0.76 T / T c h = 0.76 because Newton’s method no longer converges reliably with the stabilized discretization, which produces small negative charge undershoots inside the void.
Figure 10. Computed edge states (production mesh). (a) Total charge q b + q ′ q_b+q' q b + q ′ (logarithmic scale) and streamlines. (b) Charge perturbation q ′ q' q ′ , normalized by its maximum. From left to right, T / T c h = 0.975 T/T_c^h=0.975 T / T c h = 0.975 , 0.888 0.888 0.888 , 0.792 0.792 0.792 and 0.760 0.760 0.760 , with U max = 0.39 U_{\max}=0.39 U m a x = 0.39 , 0.82 0.82 0.82 , 1.07 1.07 1.07 and 1.11 1.11 1.11 and max ∣ q ′ ∣ = 0.016 \max|q'|=0.016 max ∣ q ′ ∣ = 0.016 , 0.044 0.044 0.044 , 0.081 0.081 0.081 and 0.12 0.12 0.12 . (c) Maximum velocity along the branch, with the law U max ∝ ( T c h − T ) 1 / 2 U_{\max}\propto(T_c^h-T)^{1/2} U m a x ∝ ( T c h − T ) 1/2 near threshold (dashed). The dotted line is the drift-velocity scale, U max = 1 U_{\max}=1 U m a x = 1 . (d) Unstable eigenvalue of the edge state.
c. Bifurcation diagram. Figure 11 collects the convective and edge states. Below T / T c h = 0.76 T/T_c^h = 0.76 T / T c h = 0.76 , where the continuation stops, the edge state can still be estimated from the trajectories near the critical amplitude, wherever the bisection bracket is narrow enough (at most 4%) for them to linger near it. Its maximum velocity, read on the plateau of the smallest transitioning trajectory, is U max = 1.19 U_{\max} = 1.19 U m a x = 1.19 –1.22 1.22 1.22 between T / T c h = 0.716 T/T_c^h = 0.716 T / T c h = 0.716 and 0.685 0.685 0.685 , continuing the computed branch, which reaches U max = 1.1 U_{\max} = 1.1 U m a x = 1.1 at T / T c h = 0.760 T/T_c^h = 0.760 T / T c h = 0.760 . Over the same range the convective state weakens from U max = 1.61 U_{\max} = 1.61 U m a x = 1.61 to 1.40 1.40 1.40 , and the two branches approach each other and merge at the saddle node T N L T_{\mathrm{NL}} T NL , close to the finite-amplitude criterion T f T_f T f of Wu et al. [36 ] . Both the convective state and the edge state have U max U_{\max} U m a x above the drift-velocity scale near the end of the branches.
Modal anatomy of the optimal trajectories
The trajectories can be decomposed on the eigenmodes of the linearized dynamics at the same T T T . The discrete perturbation problem is the differential–algebraic system M z ˙ ′ + S ′ ( z ′ ) = 0 \mathbf{M}\dot{z}'+\mathbf{S}'(z')=0 M z ˙ ′ + S ′ ( z ′ ) = 0 (Appendix B), where M \mathbf{M} M contains the time-derivative terms of velocity and charge (including the SUPG term) and is singular in p ′ p' p ′ and ϕ ′ \phi' ϕ ′ . With J \mathbf{J} J the Jacobian of S ′ \mathbf{S}' S ′ at z ′ = 0 z'=0 z ′ = 0 , the temporal modes and the adjoint modes satisfy
− J z ^ j = σ j M z ^ j , − J T z ^ j † = σ j M T z ^ j † , (43) -\mathbf{J}\hat{z}_j=\sigma_j\mathbf{M}\hat{z}_j,\qquad-\mathbf{J}^{\mathsf{T}}\hat{z}_j^\dagger=\sigma_j\mathbf{M}^{\mathsf{T}}\hat{z}_j^\dagger, \tag*{(43)} − J z ^ j = σ j M z ^ j , − J T z ^ j † = σ j M T z ^ j † , (43)
and are biorthogonal, z ^ i † T M z ^ j = 0 \hat{z}_i^{\dagger\mathsf{T}}\mathbf{M}\hat{z}_j=0 z ^ i † T M z ^ j = 0 for σ i ≠ σ j \sigma_i\ne\sigma_j σ i = σ j . Because the operator is non-normal the direct modes are far from orthogonal, so a state is expanded with the direct modes, but using the orthogonality of the adjoint modes to compute the coefficients,
z ′ ( t ) = ∑ j a j ( t ) z ^ j + r ( t ) , a j = z ^ j † T M z ′ z ^ j † T M z ^ j , (44) z'(t)=\sum_j a_j(t)\hat{z}_j+r(t),\qquad a_j=\frac{\hat{z}_j^{\dagger\mathsf{T}}\mathbf{M}z'}{\hat{z}_j^{\dagger\mathsf{T}}\mathbf{M}\hat{z}_j}, \tag*{(44)} z ′ ( t ) = j ∑ a j ( t ) z ^ j + r ( t ) , a j = z ^ j † T M z ^ j z ^ j † T M z ′ , (44)
which is exact for each retained mode whatever the content of the rest of the spectrum and gives a j ( t ) = a j ( 0 ) e σ j t a_j(t)=a_j(0)e^{\sigma_jt} a j ( t ) = a j ( 0 ) e σ j t in the linear regime[41 , 42 ] . The forty modes with the largest Re σ \operatorname{Re}\sigma Re σ are computed by shift-and-invert Arnoldi on Eq. (43) with J \mathbf{J} J and M \mathbf{M} M assembled from the residual of the time stepper. In the periodic layer they come in degenerate pairs (translations of each other), and the kinetic energy K g K_g K g of the component of each pair is independent of the horizontal phase. At T = 159.73 T = 159.73 T = 159.73 the least stable pair is the n = 1 n = 1 n = 1 roll, σ 1 = − 0.1166 \sigma_1 = -0.1166 σ 1 = − 0.1166 , consistent with the slope d σ N M / d T \mathrm{d}\sigma_{\mathrm{NM}}/\mathrm{d}T d σ NM / d T of Sec. IV B. The next n = 1 n = 1 n = 1 pairs are oscillatory and strongly damped, σ = − 5.42 ± 9.08 i \sigma= -5.42 \pm9.08\mathrm{i} σ = − 5.42 ± 9.08 i and − 6.84 ± 14.56 i -6.84 \pm14.56\mathrm{i} − 6.84 ± 14.56 i .
a. Linear optimum. Figure 12 shows the evolution in time of the kinetic energy for a direct simulation using the linear optimum as the initial condition (E 0 = 10 − 8 E_0 = 10^{-8} E 0 = 1 0 − 8 , τ = 1 \tau= 1 τ = 1 ). At t = 0 t = 0 t = 0 the velocity is zero, yet the leading pair already carries a kinetic energy K 1 = 7.7 × 10 − 6 K_1 = 7.7 \times10^{-6} K 1 = 7.7 × 1 0 − 6 . This kinetic energy is cancelled by the two oscillatory n = 1 n = 1 n = 1 pairs, whose components carry 1.0 × 10 − 5 1.0 \times10^{-5} 1.0 × 1 0 − 5 and 1.5 × 10 − 5 1.5 \times10^{-5} 1.5 × 1 0 − 5 .
Figure 12. Linear optimum at T = 159.73 T = 159.73 T = 159.73 (E 0 = 10 − 8 E_0 = 10^{-8} E 0 = 1 0 − 8 , τ = 1 \tau= 1 τ = 1 ). Decomposition on the temporal eigenmodes, showing the kinetic energy K K K , the energy K 1 K_1 K 1 of the component of the leading n = 1 n = 1 n = 1 pair, energies of the components of the first and second oscillatory n = 1 n = 1 n = 1 pairs (σ = − 5.42 ± 9.08 i \sigma= -5.42 \pm9.08\,\mathrm{i} σ = − 5.42 ± 9.08 i and − 6.84 ± 14.56 i -6.84 \pm14.56\,\mathrm{i} − 6.84 ± 14.56 i ), and ∑ g K g \sum_g K_g ∑ g K g , which exceeds K K K when the modal components cancel.
Each oscillatory pair, σ = − γ ± i ω \sigma= -\gamma\pm\mathrm{i}\omega σ = − γ ± i ω , contributes to the velocity a term proportional to e − γ t cos ( ω t + φ ) e^{-\gamma t}\cos(\omega t+\varphi) e − γ t cos ( ω t + φ ) . Its kinetic energy oscillates at frequency 2 ω 2\omega 2 ω inside an envelope that decays as e − 2 γ t e^{-2\gamma t} e − 2 γ t , which produces the lobes in Figure 12 . The damping times, 1 / γ = 0.18 1/\gamma= 0.18 1/ γ = 0.18 and 0.15 0.15 0.15 , are shorter than the periods, 2 π / ω = 0.69 2\pi/\omega= 0.69 2 π / ω = 0.69 and 0.43 0.43 0.43 , so the oscillatory components decay in less than one period. As they decay, the cancellation disappears and the leading mode is unmasked. The kinetic energy exceeds that of the leading pair by at most 4%, at t ≃ 0.65 t \simeq0.65 t ≃ 0.65 , and the difference K − K 1 K - K_1 K − K 1 changes sign every half period π / ω \pi/\omega π / ω of the first oscillatory pair. Because the modes are not orthogonal, K K K is not the sum of the modal energies. It also contains cross terms, of order 2 K 1 K o s c 2\sqrt{K_1K_{\mathrm{osc}}} 2 K 1 K osc , which are much larger than the energy K o s c K_{\mathrm{osc}} K osc of the oscillatory components themselves. The truncation of the expansion plays no role here, since for t > 0.55 t > 0.55 t > 0.55 the residual r \boldsymbol{r} r carries less than 10 − 4 10^{-4} 1 0 − 4 of the kinetic energy. The oscillatory modes are transit-time modes of the ion transport, and they are discussed in detail in Sec. VI.
The kinetic energy rises to its maximum 6.9 × 10 − 6 6.9 \times10^{-6} 6.9 × 1 0 − 6 at t = 0.58 t = 0.58 t = 0.58 , after which K K K approaches K 1 K_1 K 1 and decays at the rate 2 σ 1 2\sigma_1 2 σ 1 . The optimum maximizes the leading-mode content per unit charge energy (K 1 / E 0 = 765 K_1/E_0 = 765 K 1 / E 0 = 765 ) while making the initial velocity vanish by superposing non-orthogonal fast modes. This is the mechanism of non-modal growth[11 ] .
b. Minimal seed. Figure 13 (a) shows the optimal perturbations just above and just below the critical amplitude (E 0 = 3.492 × 10 − 5 E_0 = 3.492 \times10^{-5} E 0 = 3.492 × 1 0 − 5 and 3.461 × 10 − 5 3.461 \times10^{-5} 3.461 × 1 0 − 5 , 0.9% apart) and the sign reversal of the first. Up to t ≈ 0.6 t \approx0.6 t ≈ 0.6 the evolution repeats that of the linear optimum, with K K K rising to 0.027 and U max U_{\max} U m a x to 0.39. Then, between t ≈ 1 t \approx1 t ≈ 1 and 15, both trajectories stay on a plateau where K K K hardly changes, with K ( 10 ) / K ( 1 ) = 1.06 K(10)/K(1) = 1.06 K ( 10 ) / K ( 1 ) = 1.06 above and 0.99 below the critical amplitude, against 0.12 for linear decay. The leading n = 1 n = 1 n = 1 pair accounts for the plateau energy to within 3% (K 1 / K = 1.03 K_1/K = 1.03 K 1 / K = 1.03 ). The rest of the expansion consists of n = 2 n = 2 n = 2 harmonics forced quadratically and a residual outside the retained modes with 6% of the kinetic energy. The edge state is therefore, to within a few percent, a finite-amplitude version of the least stable linear mode, in which the nonlinear terms balance its linear decay. The two trajectories separate exponentially,
∣ K a b o v e − K b e l o w ∣ ∝ e λ t , λ = 0.211 , (45) \left|K_{\mathrm{above}} - K_{\mathrm{below}}\right| \propto e^{\lambda t}, \qquad\lambda= 0.211, \tag*{(45)} ∣ K above − K below ∣ ∝ e λ t , λ = 0.211 , (45)
with λ \lambda λ between 0.210 and 0.213 on every window between t = 2 t = 2 t = 2 and 18 [Figure 13 (b)]. This λ \lambda λ is the growth rate of the single unstable direction of the edge state, the value used in Eq. (42) . Above the critical amplitude the trajectory leaves the space spanned by the linear modes (on the convective state the residual r \boldsymbol{r} r carries seven times the kinetic energy of the flow, so the expansion loses its meaning), whereas below it returns to the linear regime and decays at 2 σ 1 2\sigma_1 2 σ 1 .
c. Sign reversal. The linear part of the expansion is identical for ± q 0 ′ \pm q'_0 ± q 0 ′ , and the leading-pair energy at t = 0 t = 0 t = 0 is K 1 = 2.38 × 10 − 2 K_1 = 2.38 \times10^{-2} K 1 = 2.38 × 1 0 − 2 in both cases. The difference is produced by the nonlinear terms during the initial transient. At t = 1 t = 1 t = 1 the optimum has raised K 1 K_1 K 1 to 2.71 × 10 − 2 2.71 \times10^{-2} 2.71 × 1 0 − 2 , enough to reach the edge state, whereas its sign reversal has lowered it to 1.64 × 10 − 2 1.64 \times10^{-2} 1.64 × 1 0 − 2 and decays without plateau, eventually at the linear rate. The charge-deficit asymmetry of § 1.4 C thus acts within the first time unit, by setting how much energy reaches the mode that leads to the edge state. The minimal seed puts about 11% less energy per unit E 0 E_0 E 0 into the leading mode than the linear optimum (K 1 / E 0 = 682 K_1/E_0 = 682 K 1 / E 0 = 682 against 765), trading linear efficiency for the sign-asymmetric structure that gains energy nonlinearly.
Implications for the onset of electroconvection
These results bear directly on the discrepancy between the linear threshold and the experimental onset of electroconvection. Between T c T_c T c and T N L ≈ 0.67 T c T_{\mathrm{NL}} \approx0.67T_c T NL ≈ 0.67 T c the hydrostatic state is destabilized by charge perturbations whose root-mean-square value is a few percent of the injected charge, and the most efficient such perturbations are concentrated charge deficits. Such fluctuations are plausible in experiments, for example from inhomogeneous injection through ion-exchange membranes[18 ] . Finite-amplitude triggering can therefore lower the onset of convection from T c T_c T c to about two thirds of it, but not below the end of the convective branch. The experimental onset T ≈ 100 T \approx100 T ≈ 100 (T / T c ≈ 0.6 T/T_c \approx0.6 T / T c ≈ 0.6 ) reported by Lacroix, Atten, and Hopfinger [4 ] lies somewhat lower. Charge diffusion, which lowers the stability thresholds[9 ] , and three-dimensional or finite-size effects in the experiments are possible reasons for the remaining difference.
Oscillatory transit-time modes
The decomposition of § 1.4 E shows that, after the leading roll mode, the least damped n = 1 n = 1 n = 1 modes are oscillatory pairs, and that non-modal growth relies on them. Their existence bears on a question left open by Atten and Moreau [8 ] . For weak injection they proved the exchange of stabilities. Oscillatory perturbations can exist, but always with a negative growth rate. For arbitrary injection they could not extend the proof, searched numerically for C = 5 C=5 C = 5 for neutral oscillatory solutions σ = i β \sigma=i\beta σ = i β (0 ≤ T ≤ 2000 0\leq T\leq2000 0 ≤ T ≤ 2000 , 2 ≤ k ≤ 12 2\leq k\leq12 2 ≤ k ≤ 12 , 0 ≤ β ≤ 50 0\leq\beta\leq50 0 ≤ β ≤ 50 ), and, finding none, concluded that the instability sets in as a steady cellular motion. In this section we identify the oscillatory modes, explain their origin and show that they remain damped for C = 10 C=10 C = 10 .
Spectral computation
The temporal spectrum of the linearized problem is computed for a single horizontal Fourier mode, ( u ′ , p ′ , ϕ ′ , q ′ ) = ( u ^ , p ^ , ϕ ^ , q ^ ) ( y ) e i k x + σ t (u',p',\phi',q')=(\hat{u},\hat{p},\hat{\phi},\hat{q})(y)e^{ikx+\sigma t} ( u ′ , p ′ , ϕ ′ , q ′ ) = ( u ^ , p ^ , ϕ ^ , q ^ ) ( y ) e ik x + σ t , which reduces it to a one-dimensional generalized eigenvalue problem for the vertical velocity, the charge density and the electric potential. The vertical structure is discretized by Chebyshev collocation with N = 60 N=60 N = 60 , and the complete spectrum is obtained with a dense QZ solver. This code gives T c = 164.06 T_c=164.06 T c = 164.06 and k c = 5.113 k_c=5.113 k c = 5.113 (λ c = 1.229 \lambda_c=1.229 λ c = 1.229 ), against T c ≃ 164.1 T_c\simeq164.1 T c ≃ 164.1 and k c = 5.113 k_c=5.113 k c = 5.113 of Atten and Moreau [8 ] and T c = 164.09 T_c=164.09 T c = 164.09 of Pérez et al. [24 ] . At T = 159.73 T=159.73 T = 159.73 and k = 2 π / L k=2\pi/L k = 2 π / L it gives σ 1 = − 0.124 \sigma_1=-0.124 σ 1 = − 0.124 and the oscillatory pairs − 5.36 ± 9.08 i -5.36\pm9.08i − 5.36 ± 9.08 i and − 6.72 ± 14.49 i -6.72\pm14.49i − 6.72 ± 14.49 i . The frequencies agree with those of the two-dimensional discrete operator of § 1.4 E to within 0.5%. The difference in σ 1 \sigma_1 σ 1 reflects the threshold of the production mesh, T c h = 163.82 T_c^{\mathrm{h}}=163.82 T c h = 163.82 , against 164.06 for the converged problem. Increasing N N N to 90 changes these eigenvalues by less than 10 − 3 10^{-3} 1 0 − 3 . Because the problem separates in x x x , a complete spectrum costs about 10 − 2 s 10^{-2}\,\mathrm{s} 1 0 − 2 s , several orders of magnitude less than shift-and-invert Arnoldi on the two-dimensional operator, which makes it possible to explore the ( k , T , M ) (k,T,M) ( k , T , M ) parameter space systematically.
Physical origin of the oscillatory modes
The physical origin of the oscillatory modes is the transport of charge by the electric field. Dividing the momentum equation, Eq. (11) , by M 2 M^2 M 2 we can see that the inertia disappears as M → ∞ M\to\infty M → ∞ . The oscillatory pairs persist in this limit, with frequencies converging to 9.59 and 15.12 (against 9.08 and 14.49 for M = 10 M=10 M = 10 ). Horizontally uniform modes (n = 0 n=0 n = 0 ), which carry no flow, are oscillatory as well, with frequencies independent of M M M . For them the linearized problem can be solved exactly along the ion paths (Appendix C), and their growth rates are the roots of
P ( σ ) = C 2 e − σ t t r , (46) P(\sigma)=C^2e^{-\sigma t_{\mathrm{tr}}}, \tag*{(46)} P ( σ ) = C 2 e − σ t tr , (46)
where P P P is a cubic polynomial and t t r = ∫ 0 1 d y / E b = 1.248 t_{\mathrm{tr}} = \int_0^1 \mathrm{d}y/E_b = 1.248 t tr = ∫ 0 1 d y / E b = 1.248 is the transit time of the ions across the layer. The roots form an infinite sequence of damped modes with frequencies spaced by about 2 π / t t r 2\pi/t_{\mathrm{tr}} 2 π / t tr . The first is − 3.014 ± 6.092 i -3.014 \pm6.092i − 3.014 ± 6.092 i . The spectral code reproduces them with a relative error below 3 × 10 − 5 3 \times10^{-5} 3 × 1 0 − 5 (Table VII ). Each mode is a charge wave carried from the injector to the collector at the drift velocity, and the delay of one transit sets its frequency [Figure 14 (a)]. The field perturbation created at the injector is carried along the ion paths, and when it leaves the layer at the collector, one transit later, the fixed applied voltage requires a compensating change of the current, which starts a new perturbation at the injector. The charge waves of the oscillatory n = 1 n = 1 n = 1 modes travel along the same ion paths [Figure 14 (b)].
Figure 14. Charge perturbation of the least damped oscillatory modes in the ( t , y ) (t,y) ( t , y ) plane, C = 10 C=10 C = 10 , with the decay factor removed. (a) Horizontally uniform mode (n = 0 n=0 n = 0 , no flow), exact solution, σ = − 3.01 ± 6.09 i \sigma=-3.01\pm6.09i σ = − 3.01 ± 6.09 i . (b) First oscillatory n = 1 n=1 n = 1 mode of the complete problem (M = 10 M=10 M = 10 , T = 159.73 T=159.73 T = 159.73 , k = 2 π / L k=2\pi/L k = 2 π / L , spectral code of Sec. VI), σ = − 5.36 ± 9.08 i \sigma=-5.36\pm9.08i σ = − 5.36 ± 9.08 i , at the horizontal position of maximum amplitude. Thin lines: paths of the ions of the hydrostatic state, t − ∫ 0 y d y ′ E b = const. t-\int_0^y \frac{dy'}{E_b}=\text{const.} t − ∫ 0 y E b d y ′ = const.
Table VII. Horizontally uniform transit-time modes for C = 10 C=10 C = 10 (t t r = 1.248 t_{\mathrm{tr}}=1.248 t tr = 1.248 , 2 π / t t r = 5.04 2\pi/t_{\mathrm{tr}}=5.04 2 π / t tr = 5.04 ). Roots of Eq. (110) and n = 0 n=0 n = 0 eigenvalues of the spectral code of Sec. VI for N = 60 N=60 N = 60 and of the finite-element operator of § 1.4 E, which are the same for every M M M and T T T .
From transit modes to the convective mode
Below T c T_c T c the base state is at rest, and the velocity appears only as a component of the perturbation modes. In a mode, the velocity perturbation that accompanies the charge perturbation follows from the balance between the viscous and Coulomb forces in Eq. (11) , ( M 2 / T ) ∇ 2 u ′ ∼ C M 2 q ′ E (M^2/T)\nabla^2u' \sim CM^2q'E ( M 2 / T ) ∇ 2 u ′ ∼ C M 2 q ′ E , and is of order T C ∣ q ′ ∣ TC|q'| T C ∣ q ′ ∣ in units of the drift velocity. For T T T well below T c T_c T c this velocity component is small and hardly modifies the charge transport, and the modes are close to the transit modes of the n = 1 n=1 n = 1 electrical problem, in which the velocity perturbation is suppressed. For k = 2 π / L k=2\pi/L k = 2 π / L these are − 5.67 ± 6.27 i -5.67 \pm6.27\mathrm{i} − 5.67 ± 6.27 i , − 6.58 ± 10.85 i -6.58 \pm10.85\mathrm{i} − 6.58 ± 10.85 i and − 7.27 ± 15.85 i -7.27 \pm15.85\mathrm{i} − 7.27 ± 15.85 i . They are close in frequency to the n = 0 n=0 n = 0 modes, but more damped, because the field perturbation is screened over a distance 1 / k 1/k 1/ k . At M = 10 M=10 M = 10 and T = 10 T=10 T = 10 the first two pairs, − 5.94 ± 5.92 i -5.94 \pm5.92\mathrm{i} − 5.94 ± 5.92 i and − 6.52 ± 10.65 i -6.52 \pm10.65\mathrm{i} − 6.52 ± 10.65 i , differ from them by 5% and 2%, and the deviation grows linearly with T T T . As T T T increases at fixed M M M , which is the path followed in an experiment when the voltage is raised, the coupling between the charge and velocity perturbations becomes important.
Figure 15 (a) follows the modes from T = 1 T=1 T = 1 to T = 159.73 T=159.73 T = 159.73 for M = 10 M=10 M = 10 and k = 2 π / L k=2\pi/L k = 2 π / L . The second and third modes (orange and cyan in the figure) become the oscillatory pairs − 5.36 ± 9.08 i -5.36 \pm9.08\mathrm{i} − 5.36 ± 9.08 i and − 6.72 ± 14.49 i -6.72 \pm14.49\mathrm{i} − 6.72 ± 14.49 i , with frequencies lowered by 16% and 9% with respect to the electrical problem. The first mode becomes more damped and its frequency decreases. At T = 55.6 T=55.6 T = 55.6 its imaginary part vanishes, and the two complex-conjugate eigenvalues of the pair meet on the real axis (σ ≃ − 7.97 \sigma\simeq-7.97 σ ≃ − 7.97 ) and split into two real modes. One of them becomes the convective mode, σ 1 = − 0.124 \sigma_1=-0.124 σ 1 = − 0.124 at T = 159.73 T=159.73 T = 159.73 . The other moves to the left and, at T = 96.6 T=96.6 T = 96.6 (σ ≃ − 28.2 \sigma\simeq-28.2 σ ≃ − 28.2 ), meets the least damped viscous mode of the flow. Without coupling, this mode is the slowest viscous decay of a flow perturbation between rigid walls. Its growth rate is σ = − ( M 2 / T ) μ 1 \sigma=-(M^2/T)\mu_1 σ = − ( M 2 / T ) μ 1 , where μ 1 \mu_1 μ 1 is the smallest eigenvalue of ( D 2 − k 2 ) 2 ψ = − μ ( D 2 − k 2 ) ψ (D^2-k^2)^2\psi=-\mu(D^2-k^2)\psi ( D 2 − k 2 ) 2 ψ = − μ ( D 2 − k 2 ) ψ with ψ = D ψ = 0 \psi=D\psi=0 ψ = D ψ = 0 at y = 0 , 1 y=0,1 y = 0 , 1 , and D = d / d y D=\mathrm{d}/\mathrm{d}y D = d / d y . It depends only on k k k , and μ 1 = 47.55 \mu_1=47.55 μ 1 = 47.55 for k = 2 π / L k=2\pi/L k = 2 π / L . The viscous mode is thus strongly damped for small T T T and approaches the transit modes as T T T increases. After the second collision the two form a strongly damped oscillatory pair, − 17.73 ± 18.46 i -17.73 \pm18.46\mathrm{i} − 17.73 ± 18.46 i at T = 159.73 T=159.73 T = 159.73 .
Figure 15. Continuation in T T T of the first transit-time modes and of the slowest viscous mode, C = 10 C = 10 C = 10 , k = 2 π / L k = 2\pi/L k = 2 π / L (Chebyshev, N = 60 N = 60 N = 60 ). (a) Eigenvalues in the complex plane for M = 10 M = 10 M = 10 , as T T T increases from 1 (open circles) to 159.73 (filled symbols). The second and third transit modes become the oscillatory pairs − 5.36 ± 9.08 i -5.36 \pm9.08i − 5.36 ± 9.08 i and − 6.72 ± 14.49 i -6.72 \pm14.49i − 6.72 ± 14.49 i , whose conjugates are not shown. Dashed: conjugate of the first mode, and the decaying real branch. After the first collision (T = 55.6 T = 55.6 T = 55.6 ) the two real branches are the convective mode (thick line) and a decaying branch, which at the second collision (T = 96.6 T = 96.6 T = 96.6 ) merges with the slowest viscous mode into a strongly damped pair (square at T = 159.73 T = 159.73 T = 159.73 ). (b), (c) Real part of the eigenvalues as a function of T T T for M = 10 M = 10 M = 10 and M = 3 M = 3 M = 3 . × \times × : points where two eigenvalues meet. After a pair reaches the real axis its two real branches are drawn in a new color, solid for the one that rises and dashed for the one that moves down. Dotted: T c = 164.06 T_c = 164.06 T c = 164.06 .
Figure 15 (b) shows the real parts of the same modes as functions of T T T , up to T = 2000 T=2000 T = 2000 . The collision of the first pair and that of the decaying branch with the viscous mode are the left and middle crosses. The second pair behaves in the same way at higher T T T . Its two eigenvalues meet on the real axis at T = 698 T=698 T = 698 (σ ≃ − 7.46 \sigma\simeq-7.46 σ ≃ − 7.46 , right cross), and one of the resulting real branches becomes unstable at T = 1267 = 7.7 T c T=1267=7.7T_c T = 1267 = 7.7 T c . The collision of the first pair moves up to T = 61.8 T=61.8 T = 61.8 for M = 30 M=30 M = 30 and to 62.6 in the inertia-free limit, and down to T = 40.2 T=40.2 T = 40.2 (σ ≃ − 10.5 \sigma\simeq-10.5 σ ≃ − 10.5 ) for M = 5 M=5 M = 5 . For smaller M M M the sequence is different. For M = 3 M=3 M = 3 [Figure 15 (c)] the first transit pair remains oscillatory up to T c T_c T c (− 6.37 ± 7.28 i -6.37 \pm7.28\mathrm{i} − 6.37 ± 7.28 i there), and the mode that becomes unstable is the slowest viscous mode, which the Coulomb coupling makes less and less damped as T T T increases (σ = − 15.5 \sigma=-15.5 σ = − 15.5 at T = 20 T=20 T = 20 , against − ( M 2 / T ) μ 1 = − 21.4 -(M^2/T)\mu_1=-21.4 − ( M 2 / T ) μ 1 = − 21.4 without coupling) until it crosses zero. Since M M M drops out of the marginal problem, the marginal mode at T c T_c T c is the same in all cases. What depends on inertia is the branch of the stable spectrum from which it is reached.
The change of branches occurs at M ∗ ≃ 4.8 M^* \simeq4.8 M ∗ ≃ 4.8 . This can be understood by comparing the damping rates of the two branches. The slowest viscous mode decays at the rate ( M 2 / T ) μ 1 (M^2/T)\mu_1 ( M 2 / T ) μ 1 , where M 2 / T = ν / ( K V 0 ) M^2/T=\nu/(KV_0) M 2 / T = ν / ( K V 0 ) is the ratio of the drift time to the viscous time, the inverse of the parameter R = K V 0 / ν R=KV_0/\nu R = K V 0 / ν of Atten and Moreau [43 ] . At T c T_c T c this rate is 2.6 for M = 3 M=3 M = 3 , 6.5 for M = 4.75 M=4.75 M = 4.75 , 7.2 for M = 5 M=5 M = 5 and 29 for M = 10 M=10 M = 10 . The first transit mode decays at a rate of about 6–8, set by the transit of the ions. The Coulomb feedback destabilizes the less damped of the two. For small M M M the flow is the slow variable and the charge adapts to it, so the instability grows out of the viscous mode. For large M M M the flow adapts quickly and the slow variable is the charge transport, so the instability grows out of a transit mode. The same happens in Rayleigh–Bénard convection, where the Prandtl number decides whether the critical mode continues the slowest viscous or the slowest thermal mode, although there both modes are real and need not collide[43 ] .
Exchange of stabilities
The continuation of Sec. VI C shows that, at k = 2 π / L k = 2\pi/L k = 2 π / L , the mode that becomes unstable is real for all the values of M M M considered. To check whether any oscillatory mode becomes unstable, the spectrum was computed on a grid of 59 wavenumbers 0.5 ≤ k ≤ 15 0.5 \le k \le15 0.5 ≤ k ≤ 15 and 90 values 5 ≤ T ≤ 2000 5 \le T \le2000 5 ≤ T ≤ 2000 , for M = 1 M = 1 M = 1 , 3, 10, 30, 100 and in the inertia-free limit, about 3 × 10 4 3 \times10^4 3 × 1 0 4 spectra in a few minutes. No oscillatory mode becomes unstable. Over the whole grid and for every M M M , the least damped one has Re σ ≤ − 3.0 \operatorname{Re}\sigma\le-3.0 Re σ ≤ − 3.0 . It is always found at small wavenumbers, k ≤ 0.75 k \le0.75 k ≤ 0.75 , where the modes approach the horizontally uniform transit modes, and near k c k_c k c the oscillatory modes stay between Re σ = − 7.2 \operatorname{Re}\sigma= -7.2 Re σ = − 7.2 and − 4.5 -4.5 − 4.5 (Figure 16 ). For C = 10 C = 10 C = 10 and the range explored by Atten and Moreau, the instability therefore sets in through a real eigenvalue, and the continuation of Sec. VI C explains why. Each steady mode is either a transit-time pair made real by the flow feedback (M > M ∗ M > M^* M > M ∗ ) or the slowest viscous mode destabilized by it (M < M ∗ M < M^* M < M ∗ ), while the remaining pairs stay strongly damped. This is a numerical result for one injection strength, not a proof of the exchange of stabilities.
Figure 16. Least damped oscillatory eigenvalue in the ( k , T ) (k,T) ( k , T ) plane, C = 10 C = 10 C = 10 , M = 10 M = 10 M = 10 (Chebyshev, N = 60 N = 60 N = 60 ). Colors: its real part, negative everywhere. The real eigenvalue of the steady mode is not included. Black line: neutral curve of the steady mode, above which the base state is linearly unstable through this real eigenvalue. Dashed: its growth rate, σ = 1 \sigma= 1 σ = 1 , 2 and 5. Dot: ( k c , T c ) (k_c,T_c) ( k c , T c ) .
Conclusions
We have formulated and validated a nonlinear non-modal optimization framework for electroconvection driven by unipolar injection between two infinite parallel plates, modeled by a periodic domain of one critical wavelength. We have used a monolithic finite-element discretization in perturbation variables and an automatically derived discrete adjoint. Writing the discrete problem as the difference between the residuals of the perturbed and base states makes the zero perturbation an exact discrete solution, and Taylor tests confirm that the gradient is exact in the linear and nonlinear regimes. The initial perturbation on the injected charge is constrained by its energy, and the objective functional is the kinetic energy at a given horizon.
In the small-amplitude, long-horizon limit the asymptotic growth rate of the optimal response reproduces the linear threshold. The asymptotic growth rate vanishes at T c N M = 163.827 T_c^{\mathrm{NM}} = 163.827 T c NM = 163.827 , which coincides with the discrete modal threshold of the same discretization to within 0.003%. The modal threshold converges at second order to 164.06, within 0.02% of the published values[8 , 24 ] .
Below the linear threshold, nonlinear effects on the optimal perturbation become noticeable for an amplitude of the initial perturbation of E 0 ≳ 10 − 6 E_0 \gtrsim10^{-6} E 0 ≳ 1 0 − 6 and strong for E 0 ∼ 10 − 4 E_0 \sim10^{-4} E 0 ∼ 1 0 − 4 , where the optimal gain increases by a factor of up to four for the longest horizons and the optimal initial charge differs structurally from the linear one. The finite-amplitude optimum remains mirror-symmetric but becomes strongly asymmetric in sign, concentrating into a charge deficit with a horizontally uniform component and a second harmonic. This follows from the amplitude-dependent Coulomb relaxation rate C ( 2 q b + q ′ ) C(2q_b + q') C ( 2 q b + q ′ ) .
The minimal seed grows monotonically with the distance to threshold, from E 0 c = 3.5 × 10 − 5 E_0^{c} = 3.5 \times10^{-5} E 0 c = 3.5 × 1 0 − 5 at T / T c = 0.975 T/T_c = 0.975 T / T c = 0.975 to ( 6.5 – 7.5 ) × 10 − 4 (6.5\text{--}7.5) \times10^{-4} ( 6.5 – 7.5 ) × 1 0 − 4 at T / T c = 0.73 T/T_c = 0.73 T / T c = 0.73 and 1.1 × 10 − 3 1.1 \times10^{-3} 1.1 × 1 0 − 3 at T / T c = 0.69 T/T_c = 0.69 T / T c = 0.69 , i.e., root-mean-square charge perturbations of 0.5–3% of the injected charge, converged in resolution to the precision of the bracketing. The convective state reached weakens as T T T decreases and the convective branch ends near T N L ≈ 0.67 T c T_{\mathrm{NL}} \approx0.67T_c T NL ≈ 0.67 T c , where it meets the branch of edge states. This end of the branch agrees with the finite-amplitude criterion obtained by continuation of the convective state in direct numerical simulations[36 ] .
A decomposition of the trajectories on the direct and adjoint temporal eigenmodes explains these dynamics. Linear transient growth unmasks the least stable roll mode, initially cancelled by fast oscillatory modes. Near the critical amplitude, trajectories linger on an edge state that is a finite-amplitude version of that mode, with a single unstable direction of growth rate λ = 0.21 \lambda= 0.21 λ = 0.21 . The time to transition diverges as λ − 1 ln ( E 0 − E 0 c ) − 1 \lambda^{-1}\ln(E_0 - E_0^c)^{-1} λ − 1 ln ( E 0 − E 0 c ) − 1 , and the sign of the perturbation decides, within the first time unit, whether the edge state is reached. Finite-amplitude triggering by small charge fluctuations thus lowers the onset of electroconvection to about two thirds of the linear threshold, accounting for most of the gap between the linear threshold and the experimental onset.
The fast oscillatory modes involved in this growth are transit-time modes of the ion drift. For horizontally uniform perturbations they are the roots of an exact dispersion relation, P ( σ ) = C 2 e − σ t t r P(\sigma) = C^2 e^{-\sigma t_{\mathrm{tr}}} P ( σ ) = C 2 e − σ t tr , with frequencies spaced by about 2 π / t t r 2\pi/t_{\mathrm{tr}} 2 π / t tr . As T T T increases towards T c T_c T c , the coupling between charge and velocity perturbations grows and the first of them becomes the steady convective mode for M = 10 M = 10 M = 10 , and the others remain oscillatory and strongly damped. A scan of the spectrum for C = 10 C = 10 C = 10 , T ≤ 2000 T \le2000 T ≤ 2000 and 0.5 ≤ k ≤ 15 0.5 \le k \le15 0.5 ≤ k ≤ 15 finds no unstable oscillatory mode, which supports, for strong injection, the exchange of stabilities proved by Atten and Moreau for weak injection. Which branch of the stable spectrum leads to the convective mode depends on the mobility parameter. For M > M ∗ ≈ 4.8 M > M^* \approx4.8 M > M ∗ ≈ 4.8 it is the first transit mode, and for smaller M M M the slowest viscous mode. The change of branch takes place far below threshold, at T ≈ 40 T \approx40 T ≈ 40 , and has no observable effect near it. Liquids, with M M M of order 10 or larger, are in the first regime, whereas gases, with M ∼ 10 − 2 M \sim10^{-2} M ∼ 1 0 − 2 , are deep in the second. Since the non-modal growth found here relies on the transit modes, the transient dynamics below threshold may differ in gases, where charge diffusion, neglected here, also becomes more important.
A natural continuation of this work is to include charge diffusion, which is known to lower the linear threshold. Three-dimensional effects may also lower the onset of convection.
Supplementary Material
See the supplementary material for the Python scripts used in this work, with documentation, a license file, and instructions to reproduce the results. The scripts include the Firedrake implementation of the direct–adjoint optimization of the nonlinear electrohydrodynamic equations (Secs. III–§ 1.4 and Appendices A–B), the computation of edge states by Newton’s method and pseudo-arclength continuation, and the Chebyshev spectral code for the transit-time modes and their continuation in T T T (Sec. VI and Appendix C). A short check that reproduces values of Tables I, Table II and Table VII is described in the accompanying README file.
Acknowledgments
The authors acknowledge financial support from MCIN/AEI/10.13039/501100011033/FEDER, UE (Grant No. PID2022-138890NB-I00). During preparation of this manuscript, the authors used Claude (Anthropic, Opus 5.5) to assist with writing scripts, analyzing data, and correcting the manuscript’s grammar. The authors reviewed the results and take full responsibility for the final content.
Author Declarations
Conflict of Interest
The authors have no conflicts to disclose.
Author Contributions
Pedro A. Vázquez: Conceptualization (equal); Methodology (lead); Software (lead); Formal analysis (lead); Investigation (lead); Visualization (lead); Writing – original draft (lead); Writing – review & editing (equal). A. T. Pérez: Conceptualization (equal); Formal analysis (supporting); Funding acquisition (lead); Writing – review & editing (equal).
Data Availability Statement
The data that support the findings of this study are available from the corresponding author upon reasonable request. The scripts used for the nonlinear non-modal optimization and for the spectral computation of the transit-time modes are provided as supplementary material.
Derivation of the adjoint equations
This appendix derives the continuous adjoint equations associated with the nonlinear optimization problem of Sec. III A. The computational domain is Ω \Omega Ω , with boundary ∂ Ω = Γ i ∪ Γ c ∪ Γ s \partial\Omega= \Gamma_i \cup\Gamma_c \cup\Gamma_s ∂ Ω = Γ i ∪ Γ c ∪ Γ s . The nondimensional direct equations are Eqs. (11) –(14) with the boundary conditions of Eq. (15) . The control variable is the initial charge perturbation constrained by Eq. (24) , the objective functional is given by Eq. (25) , and the augmented Lagrangian by Eq. (28) . The adjoint equations, boundary conditions and terminal conditions are obtained by requiring the first variation of L \mathcal{L} L to vanish for arbitrary admissible variations of the direct variables u \mathbf{u} u , p p p , q q q and ϕ \phi ϕ . The derivation extends the procedure described by Kerswell 16 for the Navier–Stokes equations. For concision we write
ν = M 2 / T , β = C M 2 . (47) \nu= M^2/T,\qquad\beta= CM^2. \tag*{(47)} ν = M 2 / T , β = C M 2 . (47)
The variation of the Lagrangian is
δ L = L ( u + δ u , p + δ p , q + δ q , ϕ + δ ϕ ) − L ( u , p , q , ϕ ) . (48) \delta\mathcal{L}=\mathcal{L}(\mathbf{u}+\delta\mathbf{u},p+\delta p,q+\delta q,\phi+\delta\phi)-\mathcal{L}(\mathbf{u},p,q,\phi). \tag*{(48)} δ L = L ( u + δ u , p + δ p , q + δ q , ϕ + δ ϕ ) − L ( u , p , q , ϕ ) . (48)
Neglecting second-order terms,
δ L = ∫ Ω u ( τ ) ⋅ δ u ( τ ) d Ω − 2 λ ∫ Ω q † δ q † d Ω − ∫ 0 τ ∫ Ω u † ⋅ [ ∂ t δ u + ( δ u ⋅ ∇ ) u + ( u ⋅ ∇ ) δ u + ∇ δ p − ν ∇ 2 δ u + β δ q ∇ ϕ + β q ∇ δ ϕ ] d Ω d t − ∫ 0 τ ∫ Ω p † ∇ ⋅ δ u d Ω d t − ∫ 0 τ ∫ Ω q † [ ∂ t δ q + ∇ ⋅ [ δ q ( u − ∇ ϕ ) + q ( δ u − ∇ δ ϕ ) ] ] d Ω d t − ∫ 0 τ ∫ Ω ϕ † ( ∇ 2 δ ϕ + C δ q ) d Ω d t . (49) \begin{aligned}
\delta\mathcal{L}={}&\int_{\Omega}\mathbf{u}(\tau)\cdot\delta\mathbf{u}(\tau)\,\mathrm{d}\Omega-2\lambda\int_{\Omega}q^\dagger\delta q^\dagger\,\mathrm{d}\Omega\\
&-\int_0^\tau\int_{\Omega}\mathbf{u}^\dagger\cdot\left[\partial_t\delta\mathbf{u}+(\delta\mathbf{u}\cdot\nabla)\mathbf{u}+(\mathbf{u}\cdot\nabla)\delta\mathbf{u}+\nabla\delta p\right.\\
&\left.\qquad-\nu\nabla^2\delta\mathbf{u}+\beta\,\delta q\nabla\phi+\beta q\nabla\delta\phi\right]\mathrm{d}\Omega\,\mathrm{d}t\\
&-\int_0^\tau\int_{\Omega}p^\dagger\nabla\cdot\delta\mathbf{u}\,\mathrm{d}\Omega\,\mathrm{d}t-\int_0^\tau\int_{\Omega}q^\dagger\left[\partial_t\delta q+\nabla\cdot\left[\delta q(\mathbf{u}-\nabla\phi)\right.\right.\\
&\left.\left.\qquad+q(\delta\mathbf{u}-\nabla\delta\phi)\right]\right]\mathrm{d}\Omega\,\mathrm{d}t\\
&-\int_0^\tau\int_{\Omega}\phi^\dagger(\nabla^2\delta\phi+C\delta q)\,\mathrm{d}\Omega\,\mathrm{d}t. \tag*{(49)}
\end{aligned} δ L = ∫ Ω u ( τ ) ⋅ δ u ( τ ) d Ω − 2 λ ∫ Ω q † δ q † d Ω − ∫ 0 τ ∫ Ω u † ⋅ [ ∂ t δ u + ( δ u ⋅ ∇ ) u + ( u ⋅ ∇ ) δ u + ∇ δ p − ν ∇ 2 δ u + β δ q ∇ ϕ + β q ∇ δ ϕ ] d Ω d t − ∫ 0 τ ∫ Ω p † ∇ ⋅ δ u d Ω d t − ∫ 0 τ ∫ Ω q † [ ∂ t δ q + ∇ ⋅ [ δ q ( u − ∇ ϕ ) + q ( δ u − ∇ δ ϕ ) ] ] d Ω d t − ∫ 0 τ ∫ Ω ϕ † ( ∇ 2 δ ϕ + C δ q ) d Ω d t . (49)
The integrals are now manipulated by integration by parts, term by term. Throughout, n \mathbf{n} n is the outward unit normal, ∂ n = n ⋅ ∇ \partial_n=\mathbf{n}\cdot\nabla ∂ n = n ⋅ ∇ , indices are summed when repeated, and [ ( ∇ u ) T ⋅ u † ] j = u i † ∂ j u i \left[(\nabla\mathbf{u})^\mathsf{T}\cdot\mathbf{u}^\dagger\right]_j=u_i^\dagger\partial_j u_i [ ( ∇ u ) T ⋅ u † ] j = u i † ∂ j u i .
Integration by parts
Navier–Stokes terms. The time derivative gives
− ∫ 0 τ ∫ Ω u † ⋅ ∂ t δ u d Ω d t = − ∫ Ω u † ( τ ) ⋅ δ u ( τ ) d Ω + ∫ Ω u † ( 0 ) ⋅ δ u ( 0 ) d Ω + ∫ 0 τ ∫ Ω ∂ t u † ⋅ δ u d Ω d t . (50) -\int_0^\tau\int_{\Omega}\mathbf{u}^\dagger\cdot\partial_t\delta\mathbf{u}\,\mathrm{d}\Omega\,\mathrm{d}t
=-\int_{\Omega}\mathbf{u}^\dagger(\tau)\cdot\delta\mathbf{u}(\tau)\,\mathrm{d}\Omega+\int_{\Omega}\mathbf{u}^\dagger(0)\cdot\delta\mathbf{u}(0)\,\mathrm{d}\Omega+\int_0^\tau\int_{\Omega}\partial_t\mathbf{u}^\dagger\cdot\delta\mathbf{u}\,\mathrm{d}\Omega\,\mathrm{d}t. \tag*{(50)} − ∫ 0 τ ∫ Ω u † ⋅ ∂ t δ u d Ω d t = − ∫ Ω u † ( τ ) ⋅ δ u ( τ ) d Ω + ∫ Ω u † ( 0 ) ⋅ δ u ( 0 ) d Ω + ∫ 0 τ ∫ Ω ∂ t u † ⋅ δ u d Ω d t . (50)
The first convective term is already in the desired form,
− ∫ 0 τ ∫ Ω u † ⋅ ( δ u ⋅ ∇ ) u d Ω d t = − ∫ 0 τ ∫ Ω δ u ⋅ [ ( ∇ u ) T ⋅ u † ] d Ω d t , (51) -\int_0^\tau\int_{\Omega}\mathbf{u}^\dagger\cdot(\delta\mathbf{u}\cdot\nabla)\mathbf{u}\,\mathrm{d}\Omega\,\mathrm{d}t
=-\int_0^\tau\int_{\Omega}\delta\mathbf{u}\cdot\left[(\nabla\mathbf{u})^\mathsf{T}\cdot\mathbf{u}^\dagger\right]\,\mathrm{d}\Omega\,\mathrm{d}t, \tag*{(51)} − ∫ 0 τ ∫ Ω u † ⋅ ( δ u ⋅ ∇ ) u d Ω d t = − ∫ 0 τ ∫ Ω δ u ⋅ [ ( ∇ u ) T ⋅ u † ] d Ω d t , (51)
while the second one, using ∇ ⋅ u = 0 \nabla\cdot\mathbf{u}=0 ∇ ⋅ u = 0 , becomes
− ∫ 0 τ ∫ Ω u † ⋅ ( u ⋅ ∇ ) δ u d Ω d t = − ∫ 0 τ ∫ ∂ Ω ( u ⋅ n ) ( u † ⋅ δ u ) d S d t + ∫ 0 τ ∫ Ω δ u ⋅ ( u ⋅ ∇ ) u † d Ω d t . (52) -\int_0^\tau\int_{\Omega}\mathbf{u}^\dagger\cdot(\mathbf{u}\cdot\nabla)\delta\mathbf{u}\,\mathrm{d}\Omega\,\mathrm{d}t
=-\int_0^\tau\int_{\partial\Omega}(\mathbf{u}\cdot\mathbf{n})(\mathbf{u}^\dagger\cdot\delta\mathbf{u})\,\mathrm{d}S\,\mathrm{d}t+\int_0^\tau\int_{\Omega}\delta\mathbf{u}\cdot(\mathbf{u}\cdot\nabla)\mathbf{u}^\dagger\,\mathrm{d}\Omega\,\mathrm{d}t. \tag*{(52)} − ∫ 0 τ ∫ Ω u † ⋅ ( u ⋅ ∇ ) δ u d Ω d t = − ∫ 0 τ ∫ ∂ Ω ( u ⋅ n ) ( u † ⋅ δ u ) d S d t + ∫ 0 τ ∫ Ω δ u ⋅ ( u ⋅ ∇ ) u † d Ω d t . (52)
For the pressure and continuity terms,
− ∫ 0 τ ∫ Ω u † ⋅ ∇ δ p d Ω d t = − ∫ 0 τ ∫ ∂ Ω ( u † ⋅ n ) δ p d S d t + ∫ 0 τ ∫ Ω δ p ∇ ⋅ u † d Ω d t , (53) -\int_0^\tau\int_{\Omega}\mathbf{u}^\dagger\cdot\nabla\delta p\,\mathrm{d}\Omega\,\mathrm{d}t
=-\int_0^\tau\int_{\partial\Omega}(\mathbf{u}^\dagger\cdot\mathbf{n})\,\delta p\,\mathrm{d}S\,\mathrm{d}t+\int_0^\tau\int_{\Omega}\delta p\,\nabla\cdot\mathbf{u}^\dagger\,\mathrm{d}\Omega\,\mathrm{d}t, \tag*{(53)} − ∫ 0 τ ∫ Ω u † ⋅ ∇ δ p d Ω d t = − ∫ 0 τ ∫ ∂ Ω ( u † ⋅ n ) δ p d S d t + ∫ 0 τ ∫ Ω δ p ∇ ⋅ u † d Ω d t , (53)
− ∫ 0 τ ∫ Ω p † ∇ ⋅ δ u d Ω d t = − ∫ 0 τ ∫ ∂ Ω p † ( δ u ⋅ n ) d S d t + ∫ 0 τ ∫ Ω δ u ⋅ ∇ p † d Ω d t , (54) -\int_0^\tau\int_{\Omega}p^\dagger\nabla\cdot\delta\mathbf{u}\,\mathrm{d}\Omega\,\mathrm{d}t
=-\int_0^\tau\int_{\partial\Omega}p^\dagger(\delta\mathbf{u}\cdot\mathbf{n})\,\mathrm{d}S\,\mathrm{d}t+\int_0^\tau\int_{\Omega}\delta\mathbf{u}\cdot\nabla p^\dagger\,\mathrm{d}\Omega\,\mathrm{d}t, \tag*{(54)} − ∫ 0 τ ∫ Ω p † ∇ ⋅ δ u d Ω d t = − ∫ 0 τ ∫ ∂ Ω p † ( δ u ⋅ n ) d S d t + ∫ 0 τ ∫ Ω δ u ⋅ ∇ p † d Ω d t , (54)
and Green’s second identity applied to the viscous term gives
ν ∫ 0 τ ∫ Ω u † ⋅ ∇ 2 δ u d Ω d t = ν ∫ 0 τ ∫ ∂ Ω ( u † ⋅ ∂ n δ u − δ u ⋅ ∂ n u † ) d S d t + ν ∫ 0 τ ∫ Ω δ u ⋅ ∇ 2 u † d Ω d t . (55) \nu\int_0^\tau\int_{\Omega}\mathbf{u}^\dagger\cdot\nabla^2\delta\mathbf{u}\,\mathrm{d}\Omega\,\mathrm{d}t
=\nu\int_0^\tau\int_{\partial\Omega}\left(\mathbf{u}^\dagger\cdot\partial_n\delta\mathbf{u}-\delta\mathbf{u}\cdot\partial_n\mathbf{u}^\dagger\right)\,\mathrm{d}S\,\mathrm{d}t+\nu\int_0^\tau\int_{\Omega}\delta\mathbf{u}\cdot\nabla^2\mathbf{u}^\dagger\,\mathrm{d}\Omega\,\mathrm{d}t. \tag*{(55)} ν ∫ 0 τ ∫ Ω u † ⋅ ∇ 2 δ u d Ω d t = ν ∫ 0 τ ∫ ∂ Ω ( u † ⋅ ∂ n δ u − δ u ⋅ ∂ n u † ) d S d t + ν ∫ 0 τ ∫ Ω δ u ⋅ ∇ 2 u † d Ω d t . (55)
b. Force terms in the momentum equation. The term
− β ∫ 0 τ ∫ Ω ( u † ⋅ ∇ ϕ ) δ q d Ω d t (56) -\beta\int_0^\tau\int_\Omega(\mathbf{u}^\dagger\cdot\nabla\phi)\,\delta q\,\mathrm{d}\Omega\,\mathrm{d}t \tag*{(56)} − β ∫ 0 τ ∫ Ω ( u † ⋅ ∇ ϕ ) δ q d Ω d t (56)
is already in the desired form. The other term is integrated by parts,
− β ∫ 0 τ ∫ Ω ( q u † ) ⋅ ∇ δ ϕ d Ω d t = − β ∫ 0 τ ∮ ∂ Ω q ( u † ⋅ n ) δ ϕ d S d t + β ∫ 0 τ ∫ Ω ∇ ⋅ ( q u † ) δ ϕ d Ω d t , (57) -\beta\int_0^\tau\int_\Omega(q\mathbf{u}^\dagger)\cdot\nabla\delta\phi\,\mathrm{d}\Omega\,\mathrm{d}t
= -\beta\int_0^\tau\oint_{\partial\Omega} q(\mathbf{u}^\dagger\cdot\mathbf{n})\,\delta\phi\,\mathrm{d}S\,\mathrm{d}t
+\beta\int_0^\tau\int_\Omega\nabla\cdot(q\mathbf{u}^\dagger)\,\delta\phi\,\mathrm{d}\Omega\,\mathrm{d}t, \tag*{(57)} − β ∫ 0 τ ∫ Ω ( q u † ) ⋅ ∇ δ ϕ d Ω d t = − β ∫ 0 τ ∮ ∂ Ω q ( u † ⋅ n ) δ ϕ d S d t + β ∫ 0 τ ∫ Ω ∇ ⋅ ( q u † ) δ ϕ d Ω d t , (57)
where the divergence theorem has been used for the surface integral.
c. Charge equation. For the time derivative,
− ∫ 0 τ ∫ Ω q t † δ q d Ω d t = − ∫ Ω q † ( τ ) δ q ( τ ) d Ω + ∫ Ω q † ( 0 ) δ q ( 0 ) d Ω + ∫ 0 τ ∫ Ω ∂ t q † δ q d Ω d t , (58) -\int_0^\tau\int_\Omega q^\dagger_t\,\delta q\,\mathrm{d}\Omega\,\mathrm{d}t
= -\int_\Omega q^\dagger(\tau)\,\delta q(\tau)\,\mathrm{d}\Omega
+\int_\Omega q^\dagger(0)\,\delta q(0)\,\mathrm{d}\Omega
+\int_0^\tau\int_\Omega\partial_tq^\dagger\,\delta q\,\mathrm{d}\Omega\,\mathrm{d}t, \tag*{(58)} − ∫ 0 τ ∫ Ω q t † δ q d Ω d t = − ∫ Ω q † ( τ ) δ q ( τ ) d Ω + ∫ Ω q † ( 0 ) δ q ( 0 ) d Ω + ∫ 0 τ ∫ Ω ∂ t q † δ q d Ω d t , (58)
where q † ( τ ) q^\dagger(\tau) q † ( τ ) is short for q † ( x , τ ) q^\dagger(\mathbf{x},\tau) q † ( x , τ ) , etc. For the first advection term,
− ∫ 0 τ ∫ Ω q † ∇ ⋅ [ δ q ( u − ∇ ϕ ) ] d Ω d t = − ∫ 0 τ ∮ ∂ Ω q † [ ( u − ∇ ϕ ) ⋅ n ] δ q d S d t + ∫ 0 τ ∫ Ω ( u − ∇ ϕ ) ⋅ ∇ q † δ q d Ω d t . (59) -\int_0^\tau\int_\Omega q^\dagger\nabla\cdot[\delta q(\mathbf{u}-\nabla\phi)]\,\mathrm{d}\Omega\,\mathrm{d}t
= -\int_0^\tau\oint_{\partial\Omega}q^\dagger[(\mathbf{u}-\nabla\phi)\cdot\mathbf{n}]\,\delta q\,\mathrm{d}S\,\mathrm{d}t
+\int_0^\tau\int_\Omega(\mathbf{u}-\nabla\phi)\cdot\nabla q^\dagger\,\delta q\,\mathrm{d}\Omega\,\mathrm{d}t. \tag*{(59)} − ∫ 0 τ ∫ Ω q † ∇ ⋅ [ δ q ( u − ∇ ϕ )] d Ω d t = − ∫ 0 τ ∮ ∂ Ω q † [( u − ∇ ϕ ) ⋅ n ] δ q d S d t + ∫ 0 τ ∫ Ω ( u − ∇ ϕ ) ⋅ ∇ q † δ q d Ω d t . (59)
The second advection term contains one contribution in δ u \delta\mathbf{u} δ u ,
− ∫ 0 τ ∫ Ω q † ∇ ⋅ ( q δ u ) d Ω d t = − ∫ 0 τ ∮ ∂ Ω q † q ( δ u ⋅ n ) d S d t + ∫ 0 τ ∫ Ω q ( ∇ q † ⋅ δ u ) d Ω d t , (60) -\int_0^\tau\int_\Omega q^\dagger\nabla\cdot(q\,\delta\mathbf{u})\,\mathrm{d}\Omega\,\mathrm{d}t
= -\int_0^\tau\oint_{\partial\Omega}q^\dagger q(\delta\mathbf{u}\cdot\mathbf{n})\,\mathrm{d}S\,\mathrm{d}t
+\int_0^\tau\int_\Omega q(\nabla q^\dagger\cdot\delta\mathbf{u})\,\mathrm{d}\Omega\,\mathrm{d}t, \tag*{(60)} − ∫ 0 τ ∫ Ω q † ∇ ⋅ ( q δ u ) d Ω d t = − ∫ 0 τ ∮ ∂ Ω q † q ( δ u ⋅ n ) d S d t + ∫ 0 τ ∫ Ω q ( ∇ q † ⋅ δ u ) d Ω d t , (60)
and one in δ ϕ \delta\phi δ ϕ ,
∫ 0 τ ∫ Ω q † ∇ ⋅ ( q ∇ δ ϕ ) d Ω d t = ∫ 0 τ ∮ ∂ Ω q † q ( ∇ δ ϕ ⋅ n ) d S d t − ∫ 0 τ ∮ ∂ Ω q ( ∇ q † ⋅ n ) δ ϕ d S d t + ∫ 0 τ ∫ Ω ∇ ⋅ ( q ∇ q † ) δ ϕ d Ω d t , (61) \int_0^\tau\int_\Omega q^\dagger\nabla\cdot(q\nabla\delta\phi)\,\mathrm{d}\Omega\,\mathrm{d}t
= \int_0^\tau\oint_{\partial\Omega}q^\dagger q(\nabla\delta\phi\cdot\mathbf{n})\,\mathrm{d}S\,\mathrm{d}t
-\int_0^\tau\oint_{\partial\Omega}q(\nabla q^\dagger\cdot\mathbf{n})\,\delta\phi\,\mathrm{d}S\,\mathrm{d}t
+\int_0^\tau\int_\Omega\nabla\cdot(q\nabla q^\dagger)\,\delta\phi\,\mathrm{d}\Omega\,\mathrm{d}t, \tag*{(61)} ∫ 0 τ ∫ Ω q † ∇ ⋅ ( q ∇ δ ϕ ) d Ω d t = ∫ 0 τ ∮ ∂ Ω q † q ( ∇ δ ϕ ⋅ n ) d S d t − ∫ 0 τ ∮ ∂ Ω q ( ∇ q † ⋅ n ) δ ϕ d S d t + ∫ 0 τ ∫ Ω ∇ ⋅ ( q ∇ q † ) δ ϕ d Ω d t , (61)
where the divergence theorem has been used twice.
d. Poisson’s equation. Using Green’s second identity,
− ∫ 0 τ ∫ Ω ϕ † ( ∇ 2 δ ϕ + C δ q ) d Ω d t = − ∫ 0 τ ∫ Ω ∇ 2 ϕ † δ ϕ d Ω d t + ∫ 0 τ ∮ ∂ Ω ( ∇ ϕ † ⋅ n δ ϕ − ϕ † ∇ δ ϕ ⋅ n ) d S d t − C ∫ 0 τ ∫ Ω ϕ † δ q d Ω d t . (62) -\int_0^\tau\int_\Omega\phi^\dagger(\nabla^2\delta\phi+C\,\delta q)\,\mathrm{d}\Omega\,\mathrm{d}t
= -\int_0^\tau\int_\Omega\nabla^2\phi^\dagger\,\delta\phi\,\mathrm{d}\Omega\,\mathrm{d}t
+\int_0^\tau\oint_{\partial\Omega}(\nabla\phi^\dagger\cdot\mathbf{n}\,\delta\phi-\phi^\dagger\nabla\delta\phi\cdot\mathbf{n})\,\mathrm{d}S\,\mathrm{d}t
-C\int_0^\tau\int_\Omega\phi^\dagger\,\delta q\,\mathrm{d}\Omega\,\mathrm{d}t. \tag*{(62)} − ∫ 0 τ ∫ Ω ϕ † ( ∇ 2 δ ϕ + C δ q ) d Ω d t = − ∫ 0 τ ∫ Ω ∇ 2 ϕ † δ ϕ d Ω d t + ∫ 0 τ ∮ ∂ Ω ( ∇ ϕ † ⋅ n δ ϕ − ϕ † ∇ δ ϕ ⋅ n ) d S d t − C ∫ 0 τ ∫ Ω ϕ † δ q d Ω d t . (62)
Complete first variation grouped by direct variable
Collecting all the contributions above, and writing w = u − ∇ ϕ \mathbf{w}=\mathbf{u}-\nabla\phi w = u − ∇ ϕ for the charge transport velocity, the first variation of the Lagrangian is the sum of the contributions of the variations of the four direct fields,
δ L = δ L u + δ L p + δ L q + δ L ϕ , (63) \delta L=\delta L_{\mathbf{u}}+\delta L_p+\delta L_q+\delta L_\phi, \tag*{(63)} δ L = δ L u + δ L p + δ L q + δ L ϕ , (63)
each of which contains its terminal and initial, volume and boundary terms.
a. Velocity variation. The terms in δ u \delta\mathbf{u} δ u are
δ L u = ∫ Ω [ u ( τ ) − u † ( τ ) ] ⋅ δ u ( τ ) d Ω + ∫ Ω u † ( 0 ) ⋅ δ u ( 0 ) d Ω + ∫ 0 τ ∫ Ω δ u ⋅ [ ∂ t u † + ( u ⋅ ∇ ) u † − ( ∇ u ) T ⋅ u † + ∇ p † + ν ∇ 2 u † + q ∇ q † ] d Ω d t + ∫ 0 τ ∮ ∂ Ω { δ u ⋅ [ − ( u ⋅ n ) u † − ν ∂ n u † − ( p † + q q † ) n ] + ν u † ⋅ ∂ n δ u } d S d t . (64) \begin{aligned}
\delta\mathcal{L}_{\mathbf{u}}={}&\int_{\Omega}\left[\mathbf{u}(\tau)-\mathbf{u}^{\dagger}(\tau)\right]\cdot\delta\mathbf{u}(\tau)\,\mathrm{d}\Omega+\int_{\Omega}\mathbf{u}^{\dagger}(0)\cdot\delta\mathbf{u}(0)\,\mathrm{d}\Omega\\
&+\int_{0}^{\tau}\int_{\Omega}\delta\mathbf{u}\cdot\left[\partial_t\mathbf{u}^{\dagger}+(\mathbf{u}\cdot\nabla)\mathbf{u}^{\dagger}-(\nabla\mathbf{u})^{\mathsf{T}}\cdot\mathbf{u}^{\dagger}+\nabla p^{\dagger}+\nu\nabla^2\mathbf{u}^{\dagger}+q\nabla q^{\dagger}\right]\,\mathrm{d}\Omega\,\mathrm{d}t\\
&+\int_{0}^{\tau}\oint_{\partial\Omega}\left\{\delta\mathbf{u}\cdot\left[-(\mathbf{u}\cdot\mathbf{n})\mathbf{u}^{\dagger}-\nu\partial_n\mathbf{u}^{\dagger}-(p^{\dagger}+qq^{\dagger})\mathbf{n}\right]+\nu\mathbf{u}^{\dagger}\cdot\partial_n\delta\mathbf{u}\right\}\,\mathrm{d}S\,\mathrm{d}t. \tag*{(64)}
\end{aligned} δ L u = ∫ Ω [ u ( τ ) − u † ( τ ) ] ⋅ δ u ( τ ) d Ω + ∫ Ω u † ( 0 ) ⋅ δ u ( 0 ) d Ω + ∫ 0 τ ∫ Ω δ u ⋅ [ ∂ t u † + ( u ⋅ ∇ ) u † − ( ∇ u ) T ⋅ u † + ∇ p † + ν ∇ 2 u † + q ∇ q † ] d Ω d t + ∫ 0 τ ∮ ∂ Ω { δ u ⋅ [ − ( u ⋅ n ) u † − ν ∂ n u † − ( p † + q q † ) n ] + ν u † ⋅ ∂ n δ u } d S d t . (64)
b. Pressure variation. The pressure enters only through the term ∇ δ p \nabla\delta p ∇ δ p of the momentum equation, which gives
δ L p = ∫ 0 τ ∫ Ω δ p ∇ ⋅ u † d Ω d t − ∫ 0 τ ∮ ∂ Ω ( u † ⋅ n ) δ p d S d t . (65) \delta\mathcal{L}_{p}=\int_{0}^{\tau}\int_{\Omega}\delta p\,\nabla\cdot\mathbf{u}^{\dagger}\,\mathrm{d}\Omega\,\mathrm{d}t-\int_{0}^{\tau}\oint_{\partial\Omega}(\mathbf{u}^{\dagger}\cdot\mathbf{n})\,\delta p\,\mathrm{d}S\,\mathrm{d}t. \tag*{(65)} δ L p = ∫ 0 τ ∫ Ω δ p ∇ ⋅ u † d Ω d t − ∫ 0 τ ∮ ∂ Ω ( u † ⋅ n ) δ p d S d t . (65)
c. Charge variation. With δ q ( x , 0 ) = δ q 0 ′ ( x ) \delta q(\mathbf{x},0)=\delta q'_0(\mathbf{x}) δ q ( x , 0 ) = δ q 0 ′ ( x ) ,
δ L q = − ∫ Ω q † ( τ ) δ q ( τ ) d Ω + ∫ Ω [ q † ( 0 ) − 2 λ q 0 ′ ] δ q 0 ′ d Ω + ∫ 0 τ ∫ Ω δ q [ ∂ t q † + w ⋅ ∇ q † − β u † ⋅ ∇ ϕ − C ϕ † ] d Ω d t − ∫ 0 τ ∮ ∂ Ω q † ( w ⋅ n ) δ q d S d t . (66) \begin{aligned}
\delta\mathcal{L}_{q}={}&-\int_{\Omega}q^{\dagger}(\tau)\,\delta q(\tau)\,\mathrm{d}\Omega+\int_{\Omega}\left[q^{\dagger}(0)-2\lambda q'_0\right]\delta q'_0\,\mathrm{d}\Omega\\
&+\int_{0}^{\tau}\int_{\Omega}\delta q\left[\partial_tq^{\dagger}+\mathbf{w}\cdot\nabla q^{\dagger}-\beta\mathbf{u}^{\dagger}\cdot\nabla\phi-C\phi^{\dagger}\right]\,\mathrm{d}\Omega\,\mathrm{d}t-\int_{0}^{\tau}\oint_{\partial\Omega}q^{\dagger}(\mathbf{w}\cdot\mathbf{n})\,\delta q\,\mathrm{d}S\,\mathrm{d}t. \tag*{(66)}
\end{aligned} δ L q = − ∫ Ω q † ( τ ) δ q ( τ ) d Ω + ∫ Ω [ q † ( 0 ) − 2 λ q 0 ′ ] δ q 0 ′ d Ω + ∫ 0 τ ∫ Ω δ q [ ∂ t q † + w ⋅ ∇ q † − β u † ⋅ ∇ ϕ − C ϕ † ] d Ω d t − ∫ 0 τ ∮ ∂ Ω q † ( w ⋅ n ) δ q d S d t . (66)
d. Potential variation. The terms in δ ϕ \delta\phi δ ϕ are
δ L ϕ = ∫ 0 τ ∫ Ω δ ϕ [ β ∇ ⋅ ( q u † ) + ∇ ⋅ ( q ∇ q † ) − ∇ 2 ϕ † ] d Ω d t + ∫ 0 τ ∮ ∂ Ω [ ( q q † − ϕ † ) ∂ n δ ϕ + ( ∂ n ϕ † − q ∂ n q † − β q u † ⋅ n ) δ ϕ ] d S d t . (67) \begin{aligned}
\delta\mathcal{L}_{\phi}={}&\int_{0}^{\tau}\int_{\Omega}\delta\phi\left[\beta\nabla\cdot(q\mathbf{u}^{\dagger})+\nabla\cdot(q\nabla q^{\dagger})-\nabla^2\phi^{\dagger}\right]\,\mathrm{d}\Omega\,\mathrm{d}t\\
&+\int_{0}^{\tau}\oint_{\partial\Omega}\left[(qq^{\dagger}-\phi^{\dagger})\partial_n\delta\phi+\left(\partial_n\phi^{\dagger}-q\partial_nq^{\dagger}-\beta q\mathbf{u}^{\dagger}\cdot\mathbf{n}\right)\delta\phi\right]\,\mathrm{d}S\,\mathrm{d}t. \tag*{(67)}
\end{aligned} δ L ϕ = ∫ 0 τ ∫ Ω δ ϕ [ β ∇ ⋅ ( q u † ) + ∇ ⋅ ( q ∇ q † ) − ∇ 2 ϕ † ] d Ω d t + ∫ 0 τ ∮ ∂ Ω [ ( q q † − ϕ † ) ∂ n δ ϕ + ( ∂ n ϕ † − q ∂ n q † − β q u † ⋅ n ) δ ϕ ] d S d t . (67)
Each bracket multiplying a variation in the interior of Ω × ( 0 , τ ) \Omega\times(0,\tau) Ω × ( 0 , τ ) gives one adjoint equation. Each boundary bracket gives the adjoint boundary conditions compatible with the admissible variations of the direct fields. The terminal terms give the terminal conditions of the backward integration, and the remaining initial term gives the gradient with respect to the control. These steps are carried out below. The same terms, reorganized into volume and boundary contributions, are collected in Eqs. (68) –(69) .
Adjoint equations
a. Volume and boundary contributions. The variation decomposes into volume and boundary contributions, δ L = δ L Ω + δ L ∂ Ω \delta\mathcal{L}=\delta\mathcal{L}_{\Omega}+\delta\mathcal{L}_{\partial\Omega} δ L = δ L Ω + δ L ∂ Ω . Writing w = u − ∇ ϕ \mathbf{w}=\mathbf{u}-\nabla\phi w = u − ∇ ϕ for the charge transport velocity, the volume contribution grouped by variations of the direct fields is
δ L Ω = ∫ Ω [ u ( τ ) − u † ( τ ) ] ⋅ δ u ( τ ) d Ω + ∫ Ω u † ( 0 ) ⋅ δ u ( 0 ) d Ω + ∫ 0 τ ∫ Ω δ u ⋅ [ ∂ t u † + ( u ⋅ ∇ ) u † − ( ∇ u ) T ⋅ u † + ∇ p † + ν ∇ 2 u † + q ∇ q † ] d Ω d t + ∫ 0 τ ∫ Ω δ p ∇ ⋅ u † d Ω d t − ∫ Ω q † ( τ ) δ q ( τ ) d Ω + ∫ Ω q † ( 0 ) δ q ( 0 ) d Ω − 2 λ ∫ Ω q 0 ′ δ q 0 ′ d Ω + ∫ 0 τ ∫ Ω δ q [ ∂ t q † + w ⋅ ∇ q † − β u † ⋅ ∇ ϕ − C ϕ † ] d Ω d t + ∫ 0 τ ∫ Ω δ ϕ [ β ∇ ⋅ ( q u † ) + ∇ ⋅ ( q ∇ q † ) − ∇ 2 ϕ † ] d Ω d t . (68) \begin{aligned}
\delta\mathcal{L}_{\Omega}={}&\int_{\Omega}\left[\mathbf{u}(\tau)-\mathbf{u}^{\dagger}(\tau)\right]\cdot\delta\mathbf{u}(\tau)\,\mathrm{d}\Omega+\int_{\Omega}\mathbf{u}^{\dagger}(0)\cdot\delta\mathbf{u}(0)\,\mathrm{d}\Omega\\
&+\int_{0}^{\tau}\int_{\Omega}\delta\mathbf{u}\cdot\left[\partial_t\mathbf{u}^{\dagger}+(\mathbf{u}\cdot\nabla)\mathbf{u}^{\dagger}-(\nabla\mathbf{u})^{\mathrm{T}}\cdot\mathbf{u}^{\dagger}+\nabla p^{\dagger}+\nu\nabla^2\mathbf{u}^{\dagger}+q\nabla q^{\dagger}\right]\,\mathrm{d}\Omega\,\mathrm{d}t\\
&+\int_{0}^{\tau}\int_{\Omega}\delta p\,\nabla\cdot\mathbf{u}^{\dagger}\,\mathrm{d}\Omega\,\mathrm{d}t\\
&-\int_{\Omega}q^{\dagger}(\tau)\,\delta q(\tau)\,\mathrm{d}\Omega+\int_{\Omega}q^{\dagger}(0)\,\delta q(0)\,\mathrm{d}\Omega-2\lambda\int_{\Omega}q'_0\,\delta q'_0\,\mathrm{d}\Omega\\
&+\int_{0}^{\tau}\int_{\Omega}\delta q\left[\partial_tq^{\dagger}+\mathbf{w}\cdot\nabla q^{\dagger}-\beta\mathbf{u}^{\dagger}\cdot\nabla\phi-C\phi^{\dagger}\right]\,\mathrm{d}\Omega\,\mathrm{d}t\\
&+\int_{0}^{\tau}\int_{\Omega}\delta\phi\left[\beta\nabla\cdot(q\mathbf{u}^{\dagger})+\nabla\cdot(q\nabla q^{\dagger})-\nabla^2\phi^{\dagger}\right]\,\mathrm{d}\Omega\,\mathrm{d}t. \tag*{(68)}
\end{aligned} δ L Ω = ∫ Ω [ u ( τ ) − u † ( τ ) ] ⋅ δ u ( τ ) d Ω + ∫ Ω u † ( 0 ) ⋅ δ u ( 0 ) d Ω + ∫ 0 τ ∫ Ω δ u ⋅ [ ∂ t u † + ( u ⋅ ∇ ) u † − ( ∇ u ) T ⋅ u † + ∇ p † + ν ∇ 2 u † + q ∇ q † ] d Ω d t + ∫ 0 τ ∫ Ω δ p ∇ ⋅ u † d Ω d t − ∫ Ω q † ( τ ) δ q ( τ ) d Ω + ∫ Ω q † ( 0 ) δ q ( 0 ) d Ω − 2 λ ∫ Ω q 0 ′ δ q 0 ′ d Ω + ∫ 0 τ ∫ Ω δ q [ ∂ t q † + w ⋅ ∇ q † − β u † ⋅ ∇ ϕ − C ϕ † ] d Ω d t + ∫ 0 τ ∫ Ω δ ϕ [ β ∇ ⋅ ( q u † ) + ∇ ⋅ ( q ∇ q † ) − ∇ 2 ϕ † ] d Ω d t . (68)
The boundary contribution is
δ L ∂ Ω = ∫ 0 τ ∫ ∂ Ω [ − ( u ⋅ n ) ( u † ⋅ δ u ) + ν u † ⋅ ∂ n δ u − ν δ u ⋅ ∂ n u † − p † δ u ⋅ n − q q † δ u ⋅ n ] d S d t − ∫ 0 τ ∫ ∂ Ω ( u † ⋅ n ) δ p d S d t − ∫ 0 τ ∫ ∂ Ω q † ( w ⋅ n ) δ q d S d t + ∫ 0 τ ∫ ∂ Ω [ ( q q † − ϕ † ) ∂ n δ ϕ + ( ∂ n ϕ † − q ∂ n q † − β q u † ⋅ n ) δ ϕ ] d S d t . (69) \begin{aligned}
\delta\mathcal{L}_{\partial\Omega}={}&\int_{0}^{\tau}\int_{\partial\Omega}\left[-(\mathbf{u}\cdot\mathbf{n})(\mathbf{u}^{\dagger}\cdot\delta\mathbf{u})+\nu\mathbf{u}^{\dagger}\cdot\partial_n\delta\mathbf{u}\right.\\
&\left.-\nu\delta\mathbf{u}\cdot\partial_n\mathbf{u}^{\dagger}-p^{\dagger}\delta\mathbf{u}\cdot\mathbf{n}-qq^{\dagger}\delta\mathbf{u}\cdot\mathbf{n}\right]\,\mathrm{d}S\,\mathrm{d}t\\
&-\int_{0}^{\tau}\int_{\partial\Omega}(\mathbf{u}^{\dagger}\cdot\mathbf{n})\,\delta p\,\mathrm{d}S\,\mathrm{d}t-\int_{0}^{\tau}\int_{\partial\Omega}q^{\dagger}(\mathbf{w}\cdot\mathbf{n})\,\delta q\,\mathrm{d}S\,\mathrm{d}t\\
&+\int_{0}^{\tau}\int_{\partial\Omega}\left[(qq^{\dagger}-\phi^{\dagger})\partial_n\delta\phi\right.\\
&\left.\qquad+(\partial_n\phi^{\dagger}-q\,\partial_nq^{\dagger}-\beta q\mathbf{u}^{\dagger}\cdot\mathbf{n})\,\delta\phi\right]\,\mathrm{d}S\,\mathrm{d}t. \tag*{(69)}
\end{aligned} δ L ∂ Ω = ∫ 0 τ ∫ ∂ Ω [ − ( u ⋅ n ) ( u † ⋅ δ u ) + ν u † ⋅ ∂ n δ u − ν δ u ⋅ ∂ n u † − p † δ u ⋅ n − q q † δ u ⋅ n ] d S d t − ∫ 0 τ ∫ ∂ Ω ( u † ⋅ n ) δ p d S d t − ∫ 0 τ ∫ ∂ Ω q † ( w ⋅ n ) δ q d S d t + ∫ 0 τ ∫ ∂ Ω [ ( q q † − ϕ † ) ∂ n δ ϕ + ( ∂ n ϕ † − q ∂ n q † − β q u † ⋅ n ) δ ϕ ] d S d t . (69)
Adjoint bulk equations
Since the variations of the direct fields are arbitrary in the interior of Ω \Omega Ω , the coefficients of δ u \delta\mathbf{u} δ u , δ p \delta p δ p , δ q \delta q δ q and δ ϕ \delta\phi δ ϕ in Eq. (68) must vanish independently. This gives the continuous adjoint equations
∂ u † ∂ t + ( u ⋅ ∇ ) u † − ( ∇ u ) T ⋅ u † + ∇ p † + ν ∇ 2 u † + q ∇ q † = 0 , (70) \frac{\partial\mathbf{u}^{\dagger}}{\partial t}+(\mathbf{u}\cdot\nabla)\mathbf{u}^{\dagger}-(\nabla\mathbf{u})^{\mathrm{T}}\cdot\mathbf{u}^{\dagger}+\nabla p^{\dagger}+\nu\nabla^2\mathbf{u}^{\dagger}+q\nabla q^{\dagger}=0, \tag*{(70)} ∂ t ∂ u † + ( u ⋅ ∇ ) u † − ( ∇ u ) T ⋅ u † + ∇ p † + ν ∇ 2 u † + q ∇ q † = 0 , (70)
∇ ⋅ u † = 0 , (71) \nabla\cdot\mathbf{u}^{\dagger}=0, \tag*{(71)} ∇ ⋅ u † = 0 , (71)
∂ q † ∂ t + ( u − ∇ ϕ ) ⋅ ∇ q † − β u † ⋅ ∇ ϕ − C ϕ † = 0 , (72) \frac{\partial q^{\dagger}}{\partial t}+(\mathbf{u}-\nabla\phi)\cdot\nabla q^{\dagger}-\beta\mathbf{u}^{\dagger}\cdot\nabla\phi-C\phi^{\dagger}=0, \tag*{(72)} ∂ t ∂ q † + ( u − ∇ ϕ ) ⋅ ∇ q † − β u † ⋅ ∇ ϕ − C ϕ † = 0 , (72)
β ∇ ⋅ ( q u † ) + ∇ ⋅ ( q ∇ q † ) − ∇ 2 ϕ † = 0. (73) \beta\nabla\cdot(q\mathbf{u}^{\dagger})+\nabla\cdot(q\nabla q^{\dagger})-\nabla^2\phi^{\dagger}=0. \tag*{(73)} β ∇ ⋅ ( q u † ) + ∇ ⋅ ( q ∇ q † ) − ∇ 2 ϕ † = 0. (73)
Using E = − ∇ ϕ E=-\nabla\phi E = − ∇ ϕ , the last two equations can equivalently be written as
∂ q † ∂ t + ( u + E ) ⋅ ∇ q † + β u † ⋅ E − C ϕ † = 0 , (74) \frac{\partial q^{\dagger}}{\partial t}+(\mathbf{u}+E)\cdot\nabla q^{\dagger}+\beta\mathbf{u}^{\dagger}\cdot E-C\phi^{\dagger}=0, \tag*{(74)} ∂ t ∂ q † + ( u + E ) ⋅ ∇ q † + β u † ⋅ E − C ϕ † = 0 , (74)
∇ 2 ϕ † − ∇ ⋅ [ q ( ∇ q † + β u † ) ] = 0. (75) \nabla^2\phi^{\dagger}-\nabla\cdot\left[q\left(\nabla q^{\dagger}+\beta\mathbf{u}^{\dagger}\right)\right]=0. \tag*{(75)} ∇ 2 ϕ † − ∇ ⋅ [ q ( ∇ q † + β u † ) ] = 0. (75)
Equations (A24)–(A27) are solved backward in time, from t = τ t=\tau t = τ to t = 0 t=0 t = 0 , along the nonlinear direct trajectory.
Adjoint boundary conditions
The adjoint boundary conditions follow by requiring the boundary contribution, Eq. (69) , to vanish for every admissible variation of the direct fields. At the electrodes the direct velocity satisfies no slip, so δ u = 0 \delta\mathbf{u}=0 δ u = 0 on Γ i ∪ Γ c \Gamma_i\cup\Gamma_c Γ i ∪ Γ c . Although δ u \delta\mathbf{u} δ u vanishes there, its normal derivative is arbitrary, and the viscous boundary term requires
u † = 0 on Γ i ∪ Γ c . (76) \mathbf{u}^{\dagger}=0\quad\text{on }\Gamma_i\cup\Gamma_c. \tag*{(76)} u † = 0 on Γ i ∪ Γ c . (76)
In the periodic layer used in the computations, the contributions of the two lateral boundaries cancel pairwise and no lateral adjoint conditions arise. For a domain bounded by symmetry walls instead, the direct symmetry conditions u x = 0 u_x=0 u x = 0 , ∂ u y / ∂ x = 0 \partial u_y/\partial x=0 ∂ u y / ∂ x = 0 imply δ u x = 0 \delta u_x=0 δ u x = 0 , ∂ δ u y / ∂ x = 0 \partial\delta u_y/\partial x=0 ∂ δ u y / ∂ x = 0 , and substitution into the velocity boundary terms gives the adjoint symmetry conditions
u x † = 0 , ∂ u y † ∂ x = 0 on Γ s . (77) u_x^\dagger=0,\qquad\frac{\partial u_y^\dagger}{\partial x}=0\quad\text{on }\Gamma_s. \tag*{(77)} u x † = 0 , ∂ x ∂ u y † = 0 on Γ s . (77)
These conditions also make the boundary term in δ p \delta p δ p vanish, since u † ⋅ n = 0 \mathbf{u}^\dagger\cdot\mathbf{n}=0 u † ⋅ n = 0 on ∂ Ω \partial\Omega ∂ Ω .
For the charge density, the direct value is prescribed at the injector, so δ q = 0 \delta q=0 δ q = 0 on Γ i \Gamma_i Γ i . At the collector δ q \delta q δ q is arbitrary. Since the charge transport velocity w = u − ∇ ϕ \mathbf{w}=\mathbf{u}-\nabla\phi w = u − ∇ ϕ has a nonzero normal component there, the charge boundary term requires
q † = 0 on Γ c . (78) q^\dagger=0\quad\text{on }\Gamma_c. \tag*{(78)} q † = 0 on Γ c . (78)
On the lateral symmetry boundaries u ⋅ n = 0 \mathbf{u}\cdot\mathbf{n}=0 u ⋅ n = 0 and ∂ n ϕ = 0 \partial_n\phi=0 ∂ n ϕ = 0 , so w ⋅ n = 0 \mathbf{w}\cdot\mathbf{n}=0 w ⋅ n = 0 . The charge boundary term then vanishes identically and no condition on q † q^\dagger q † arises there.
The electric potential is prescribed at both electrodes, so δ ϕ = 0 \delta\phi=0 δ ϕ = 0 on Γ i ∪ Γ c \Gamma_i\cup\Gamma_c Γ i ∪ Γ c , whereas ∂ n δ ϕ \partial_n\delta\phi ∂ n δ ϕ remains arbitrary. The coefficient of ∂ n δ ϕ \partial_n\delta\phi ∂ n δ ϕ in Eq. (69) must therefore vanish:
ϕ † = q q † on Γ i ∪ Γ c . (79) \phi^\dagger=qq^\dagger\quad\text{on }\Gamma_i\cup\Gamma_c. \tag*{(79)} ϕ † = q q † on Γ i ∪ Γ c . (79)
In particular, since q † = 0 q^\dagger=0 q † = 0 at the collector, ϕ † = 0 \phi^\dagger=0 ϕ † = 0 on Γ c \Gamma_c Γ c . On the lateral boundaries the direct condition is ∂ n ϕ = 0 \partial_n\phi=0 ∂ n ϕ = 0 , hence ∂ n δ ϕ = 0 \partial_n\delta\phi=0 ∂ n δ ϕ = 0 , while δ ϕ \delta\phi δ ϕ is arbitrary. The remaining coefficient of δ ϕ \delta\phi δ ϕ gives ∂ n ϕ † − q ∂ n q † − β q u † ⋅ n = 0 \partial_n\phi^\dagger-q\partial_nq^\dagger-\beta q\mathbf{u}^\dagger\cdot\mathbf{n}=0 ∂ n ϕ † − q ∂ n q † − β q u † ⋅ n = 0 , which, with u † ⋅ n = 0 \mathbf{u}^\dagger\cdot\mathbf{n}=0 u † ⋅ n = 0 , reduces to
∂ n ϕ † = q ∂ n q † on Γ s . (80) \partial_n\phi^\dagger=q\partial_nq^\dagger\quad\text{on }\Gamma_s. \tag*{(80)} ∂ n ϕ † = q ∂ n q † on Γ s . (80)
d. Terminal conditions. The terminal contributions in Eq. (68) are
∫ Ω [ u ( τ ) − u † ( τ ) ] ⋅ δ u ( τ ) d Ω − ∫ Ω q † ( τ ) δ q ( τ ) d Ω . (81) \int_\Omega[\mathbf{u}(\tau)-\mathbf{u}^\dagger(\tau)]\cdot\delta\mathbf{u}(\tau)\,\mathrm{d}\Omega-\int_\Omega q^\dagger(\tau)\,\delta q(\tau)\,\mathrm{d}\Omega. \tag*{(81)} ∫ Ω [ u ( τ ) − u † ( τ )] ⋅ δ u ( τ ) d Ω − ∫ Ω q † ( τ ) δ q ( τ ) d Ω. (81)
Since δ u ( τ ) \delta\mathbf{u}(\tau) δ u ( τ ) and δ q ( τ ) \delta q(\tau) δ q ( τ ) are arbitrary, the terminal conditions for the time-dependent adjoint variables are
u † ( τ ) = u ( τ ) , q † ( τ ) = 0. (82) \mathbf{u}^\dagger(\tau)=\mathbf{u}(\tau),\qquad q^\dagger(\tau)=0. \tag*{(82)} u † ( τ ) = u ( τ ) , q † ( τ ) = 0. (82)
No terminal condition is required for ϕ † \phi^\dagger ϕ † , since Eq. (73) is elliptic and is solved at each instant of the backward integration. Similarly, p † p^\dagger p † acts as the Lagrange multiplier enforcing the adjoint incompressibility constraint.
e. Gradient with respect to the initial charge perturbation. The initial velocity is fixed, and only the initial charge perturbation q 0 ′ q'_0 q 0 ′ is used as control. Since q ( x , 0 ) = q b ( x ) + q 0 ′ ( x ) q(\mathbf{x},0)=q_b(\mathbf{x})+q'_0(\mathbf{x}) q ( x , 0 ) = q b ( x ) + q 0 ′ ( x ) , we have δ q ( x , 0 ) = δ q 0 ′ ( x ) \delta q(\mathbf{x},0)=\delta q'_0(\mathbf{x}) δ q ( x , 0 ) = δ q 0 ′ ( x ) . After imposing the adjoint bulk equations, boundary conditions and terminal conditions, the only remaining first-order contribution associated with the control is
δ L = ∫ Ω [ q † ( x , 0 ) − 2 λ q 0 ′ ( x ) ] δ q 0 ′ ( x ) d Ω . (83) \delta\mathcal{L}=\int_\Omega[q^\dagger(\mathbf{x},0)-2\lambda q'_0(\mathbf{x})]\,\delta q'_0(\mathbf{x})\,\mathrm{d}\Omega. \tag*{(83)} δ L = ∫ Ω [ q † ( x , 0 ) − 2 λ q 0 ′ ( x )] δ q 0 ′ ( x ) d Ω. (83)
The functional derivative of the augmented Lagrangian with respect to the initial perturbation is therefore
δ L δ q 0 ′ = q † ( x , 0 ) − 2 λ q 0 ′ ( x ) . (84) \frac{\delta\mathcal{L}}{\delta q'_0}=q^\dagger(\mathbf{x},0)-2\lambda q'_0(\mathbf{x}). \tag*{(84)} δ q 0 ′ δ L = q † ( x , 0 ) − 2 λ q 0 ′ ( x ) . (84)
At a constrained stationary point this derivative vanishes, so that q † ( x , 0 ) = 2 λ q 0 ′ ( x ) q^\dagger(\mathbf{x},0)=2\lambda q'_0(\mathbf{x}) q † ( x , 0 ) = 2 λ q 0 ′ ( x ) . The optimal initial charge perturbation is parallel to the initial adjoint charge field. If the amplitude constraint is treated separately by projection, the unconstrained gradient of the reduced objective is simply
g = δ J δ q 0 ′ = q ^ † ( x , 0 ) , (85) g = \frac{\delta J}{\delta q'_0} = \hat{q}^{\dagger}(\boldsymbol{x},0), \tag*{(85)} g = δ q 0 ′ δ J = q ^ † ( x , 0 ) , (85)
and only its component tangent to the constant-amplitude hypersphere of Eq. (24) is an admissible ascent direction,
g T = q ^ † ( x , 0 ) − ⟨ q ^ † ( x , 0 ) , q 0 ′ ⟩ E 0 q 0 ′ . (86) g_T = \hat{q}^{\dagger}(\boldsymbol{x},0) - \frac{\langle\hat{q}^{\dagger}(\boldsymbol{x},0),q'_0\rangle}{E_0}q'_0. \tag*{(86)} g T = q ^ † ( x , 0 ) − E 0 ⟨ q ^ † ( x , 0 ) , q 0 ′ ⟩ q 0 ′ . (86)
This appendix gives the discrete direct problem exactly as it is solved and differentiated by the automatic adjoint (Sec. III C).
a. Function spaces. Let T h \mathcal{T}_h T h be the structured quadrilateral mesh of the periodic layer Ω = [ 0 , L ) × [ 0 , 1 ] \Omega= [0,L) \times[0,1] Ω = [ 0 , L ) × [ 0 , 1 ] , and Q k Q_k Q k the space of continuous piecewise polynomials of degree k k k in each coordinate, periodic in x x x . The perturbation fields are sought in
u ′ ∈ V h = { v ∈ Q 2 2 : v = 0 on Γ i ∪ Γ c } , p ′ ∈ Q h = Q 1 / R , u' \in V_h = \{v \in Q_2^2 : v = 0 \text{ on } \Gamma_i \cup\Gamma_c\}, \qquad p' \in Q_h = Q_1/\mathbb{R}, u ′ ∈ V h = { v ∈ Q 2 2 : v = 0 on Γ i ∪ Γ c } , p ′ ∈ Q h = Q 1 / R ,
q ′ ∈ R h = { w ∈ Q 1 : w = 0 on Γ i } , ϕ ′ ∈ P h = { ψ ∈ Q 2 : ψ = 0 on Γ i ∪ Γ c } , (87) q' \in R_h = \{w \in Q_1 : w = 0 \text{ on } \Gamma_i\}, \qquad\phi' \in P_h = \{\psi\in Q_2 : \psi= 0 \text{ on } \Gamma_i \cup\Gamma_c\}, \tag*{(87)} q ′ ∈ R h = { w ∈ Q 1 : w = 0 on Γ i } , ϕ ′ ∈ P h = { ψ ∈ Q 2 : ψ = 0 on Γ i ∪ Γ c } , (87)
and z ′ = ( u ′ , p ′ , q ′ , ϕ ′ ) ∈ W h = V h × Q h × R h × P h z' = (u',p',q',\phi') \in W_h = V_h \times Q_h \times R_h \times P_h z ′ = ( u ′ , p ′ , q ′ , ϕ ′ ) ∈ W h = V h × Q h × R h × P h . The pressure is defined up to a constant, and this null space is removed from the Newton and adjoint linear systems. The base state z b = ( 0 , p b , q b , ϕ b ) z_b = (0,p_b,q_b,\phi_b) z b = ( 0 , p b , q b , ϕ b ) of Eq. (17) , with p b = C M 2 E i y p_b = CM^2E_i y p b = C M 2 E i y , is interpolated in the same spaces (without boundary constraints), and the total fields are
u = u ′ , p = p b + p ′ , q = q b + q ′ , ϕ = ϕ b + ϕ ′ . (88) u = u', \qquad p = p_b + p', \qquad q = q_b + q', \qquad\phi= \phi_b + \phi'. \tag*{(88)} u = u ′ , p = p b + p ′ , q = q b + q ′ , ϕ = ϕ b + ϕ ′ . (88)
Inner products are ( a , b ) = ∫ Ω a b d Ω (a,b) = \int_{\Omega} ab\,\mathrm{d}\Omega ( a , b ) = ∫ Ω ab d Ω , and ν = M 2 / T \nu= M^2/T ν = M 2 / T , β = C M 2 \beta= CM^2 β = C M 2 as in Appendix A.
b. Time discretization. For a perturbation field f f f , the time derivative at level n + 1 n+1 n + 1 is
D t f n + 1 = a 0 f n + 1 + a 1 f n + a 2 f n − 1 Δ t , (89) D_t f^{n+1} = \frac{a_0 f^{n+1} + a_1 f^n + a_2 f^{n-1}}{\Delta t}, \tag*{(89)} D t f n + 1 = Δ t a 0 f n + 1 + a 1 f n + a 2 f n − 1 , (89)
( a 0 , a 1 , a 2 ) = { ( 1 , − 1 , 0 ) , n = 0 (backward Euler) , ( 3 2 , − 2 , 1 2 ) , n ≥ 1 (BDF2) . (a_0,a_1,a_2) =
\begin{cases}
(1,-1,0), & n=0\text{ (backward Euler)},\\
\left(\frac{3}{2},-2,\frac{1}{2}\right), & n \ge1\text{ (BDF2)}.
\end{cases} ( a 0 , a 1 , a 2 ) = { ( 1 , − 1 , 0 ) , ( 2 3 , − 2 , 2 1 ) , n = 0 (backward Euler) , n ≥ 1 (BDF2) .
Since the base state is steady, D t D_t D t acts on the perturbation only. Only u ′ u' u ′ and q ′ q' q ′ carry a time derivative, and p ′ p' p ′ and ϕ ′ \phi' ϕ ′ are determined at each level by the constraints.
c. Steady residual. For a total state z = ( u , p , q , ϕ ) z = (u,p,q,\phi) z = ( u , p , q , ϕ ) and test functions ( v , s , w , ψ ) ∈ W h (v,s,w,\psi) \in W_h ( v , s , w , ψ ) ∈ W h , define the charge transport velocity v q = u − ∇ ϕ v_q = u - \nabla\phi v q = u − ∇ ϕ , the strong charge residual without time derivative
r q ( z ) = v q ⋅ ∇ q + C q 2 , (90) r_q(z) = v_q \cdot\nabla q + Cq^2, \tag*{(90)} r q ( z ) = v q ⋅ ∇ q + C q 2 , (90)
which is the non-conservative form of Eq. (13) after using ∇ ⋅ E = C q \nabla\cdot E = Cq ∇ ⋅ E = C q from Eq. (14) , and the SUPG parameter on each cell K K K
τ K ( z ) = [ ( 2 ∣ v q ∣ h K ) 2 + ( 2 C q ) 2 ] − 1 / 2 , (91) \tau_K(z) = \left[\left(\frac{2|v_q|}{h_K}\right)^2 + (2Cq)^2\right]^{-1/2}, \tag*{(91)} τ K ( z ) = [ ( h K 2∣ v q ∣ ) 2 + ( 2 C q ) 2 ] − 1/2 , (91)
with h K h_K h K the largest distance between two vertices of K K K . The steady residual is
S ( z ; v , s , w , ψ ) = ( ( u ⋅ ∇ ) u , v ) + ν ( ∇ u , ∇ v ) − ( p , ∇ ⋅ v ) + β ( q ∇ ϕ , v ) + ( ∇ ⋅ u , s ) + ( ∇ ϕ , ∇ ψ ) − C ( q , ψ ) + ( r q ( z ) , w ) + ∑ K ∈ T h ( τ K r q ( z ) , v q ⋅ ∇ w ) K . (92) \begin{aligned}
S(z;v,s,w,\psi) ={}& ((u\cdot\nabla)u,v) + \nu(\nabla u,\nabla v) - (p,\nabla\cdot v) + \beta(q\nabla\phi,v) + (\nabla\cdot u,s) \\
&+ (\nabla\phi,\nabla\psi) - C(q,\psi) + (r_q(z),w) + \sum_{K\in\mathcal{T}_h}(\tau_K r_q(z),v_q\cdot\nabla w)_K. \tag*{(92)}
\end{aligned} S ( z ; v , s , w , ψ ) = (( u ⋅ ∇ ) u , v ) + ν ( ∇ u , ∇ v ) − ( p , ∇ ⋅ v ) + β ( q ∇ ϕ , v ) + ( ∇ ⋅ u , s ) + ( ∇ ϕ , ∇ ψ ) − C ( q , ψ ) + ( r q ( z ) , w ) + K ∈ T h ∑ ( τ K r q ( z ) , v q ⋅ ∇ w ) K . (92)
The momentum terms are the weak form of Eq. (11) with − β q E = β q ∇ ϕ -\beta q\mathbf{E}=\beta q\nabla\phi − β q E = β q ∇ ϕ . The boundary integrals vanish because v = 0 \mathbf{v}=0 v = 0 and ψ = 0 \psi=0 ψ = 0 on the electrodes and the lateral boundaries are periodic. No boundary term appears in the charge equation, which is tested in its strong form. The charge condition is imposed only at the injector, and nothing is imposed at the collector, where the charge leaves the layer.
d. Time-step residual. At each level the perturbation z ′ n + 1 ∈ W h \mathbf{z}^{\prime n+1}\in W_h z ′ n + 1 ∈ W h satisfies, for all test functions,
F ( z ′ n + 1 ; v , s , w , ψ ) ≡ ( D t u ′ n + 1 , v ) + ( D t q ′ n + 1 , w ) + ∑ K ( τ K D t q ′ n + 1 , v q ⋅ ∇ w ) K + S ( z b + z ′ n + 1 ; v , s , w , ψ ) − S ( z b ; v , s , w , ψ ) = 0 , (93) \mathcal{F}(\mathbf{z}^{\prime n+1};\mathbf{v},s,w,\psi)\equiv(D_t\mathbf{u}^{\prime n+1},\mathbf{v})+(D_tq^{\prime n+1},w)+\sum_K\left(\tau_KD_tq^{\prime n+1},\mathbf{v}_q\cdot\nabla w\right)_K+S(\mathbf{z}_b+\mathbf{z}^{\prime n+1};\mathbf{v},s,w,\psi)-S(\mathbf{z}_b;\mathbf{v},s,w,\psi)=0, \tag*{(93)} F ( z ′ n + 1 ; v , s , w , ψ ) ≡ ( D t u ′ n + 1 , v ) + ( D t q ′ n + 1 , w ) + K ∑ ( τ K D t q ′ n + 1 , v q ⋅ ∇ w ) K + S ( z b + z ′ n + 1 ; v , s , w , ψ ) − S ( z b ; v , s , w , ψ ) = 0 , (93)
where τ K \tau_K τ K and v q \mathbf{v}_q v q in the time-derivative SUPG term are evaluated at the total state z b + z ′ n + 1 \mathbf{z}_b+\mathbf{z}^{\prime n+1} z b + z ′ n + 1 , so that the SUPG term weights the full strong residual D t q ′ + r q D_tq^{\prime}+r_q D t q ′ + r q . Subtracting the base residual S ( z b ) S(\mathbf{z}_b) S ( z b ) makes z ′ = 0 \mathbf{z}^{\prime}=0 z ′ = 0 an exact discrete solution for any mesh and time step (Sec. III C).
e. Nonlinear solution. Equation (B7) is solved for all unknowns at once by Newton’s method,
J ( z ′ ( k ) ) δ z = − F ( z ′ ( k ) ) , z ′ ( k + 1 ) = z ′ ( k ) + δ z , (94) \mathbf{J}(\mathbf{z}^{\prime(k)})\,\delta\mathbf{z}=-\mathcal{F}(\mathbf{z}^{\prime(k)}),\qquad\mathbf{z}^{\prime(k+1)}=\mathbf{z}^{\prime(k)}+\delta\mathbf{z}, \tag*{(94)} J ( z ′ ( k ) ) δ z = − F ( z ′ ( k ) ) , z ′ ( k + 1 ) = z ′ ( k ) + δ z , (94)
where the Jacobian J \mathbf{J} J is the exact Gâteaux derivative of Eq. (93) , including the derivatives of τ K \tau_K τ K and v q \mathbf{v}_q v q , assembled from the symbolic form. The iteration starts from the previous time level and stops when the residual norm or the relative Newton step falls below prescribed tolerances. The linear systems are solved by a sparse direct factorization with null-pivot detection, and the constant pressure mode is projected out.
f. Initial condition, objective and control. The integration starts from u ′ 0 = 0 \mathbf{u}^{\prime0}=0 u ′0 = 0 and q ′ 0 = q 0 ′ ∈ R h q^{\prime0}=q'_0\in R_h q ′0 = q 0 ′ ∈ R h , with q 0 ′ q'_0 q 0 ′ on the sphere ( q 0 ′ , q 0 ′ ) = E 0 (q'_0,q'_0)=E_0 ( q 0 ′ , q 0 ′ ) = E 0 . After N = τ / Δ t N=\tau/\Delta t N = τ /Δ t steps the objective is
J = 1 2 ( u ′ N , u ′ N ) . (95) J=\frac{1}{2}(\mathbf{u}^{\prime N},\mathbf{u}^{\prime N}). \tag*{(95)} J = 2 1 ( u ′ N , u ′ N ) . (95)
The discrete adjoint is obtained by transposing the Jacobian of Eq. (93) at every level and solving backward in time. It is therefore the exact derivative of J J J with respect to q 0 ′ q'_0 q 0 ′ for this discretization, including the SUPG and time-integration terms, rather than a discretization of the continuous adjoint of Appendix A. The linearization of Eq. (92) at z ′ = 0 \mathbf{z}^{\prime}=0 z ′ = 0 is also the operator of the marginal eigenvalue problem, Eq. (23) , after the rescaling p ′ ↦ ( T / M 2 ) p ′ p'\mapsto(T/M^2)p' p ′ ↦ ( T / M 2 ) p ′ that makes it linear in T T T .
Transit-time modes
In this appendix we derive the dispersion relation, Eq. (46) , for horizontally uniform perturbations of the base state, the transit-time modes. We show that these oscillatory modes are present even in the absence of fluid flow.
Consider a small perturbation of the base state independent of x x x ,
u ′ = u ′ ( y , t ) , p ′ = p ′ ( y , t ) , q ′ = q ′ ( y , t ) , ϕ ′ = ϕ ′ ( y , t ) , (96) \mathbf{u}'=\mathbf{u}'(y,t),\qquad p'=p'(y,t),\qquad q'=q'(y,t),\qquad\phi'=\phi'(y,t), \tag*{(96)} u ′ = u ′ ( y , t ) , p ′ = p ′ ( y , t ) , q ′ = q ′ ( y , t ) , ϕ ′ = ϕ ′ ( y , t ) , (96)
and linearize the equations in the perturbation amplitude. The velocity perturbation is incompressible, ∇ ⋅ u ′ = 0 \nabla\cdot\mathbf{u}'=0 ∇ ⋅ u ′ = 0 , so continuity gives ∂ y u y ′ = 0 \partial_yu'_y=0 ∂ y u y ′ = 0 and the wall conditions give u y ′ ≡ 0 u'_y\equiv0 u y ′ ≡ 0 . The horizontal velocity obeys ∂ t u x ′ = ( M 2 / T ) ∂ y y u x ′ \partial_tu'_x=(M^2/T)\partial_{yy}u'_x ∂ t u x ′ = ( M 2 / T ) ∂ y y u x ′ , since neither the Coulomb force nor the pressure gradient has an x x x -component. Its modes are the viscous shear modes σ = − ( M 2 / T ) ( m π ) 2 \sigma=-(M^2/T)(m\pi)^2 σ = − ( M 2 / T ) ( mπ ) 2 , which the finite-element operator of § 1.4 E reproduces to seven digits. The pressure balances the perturbation of the Coulomb force. The charge is therefore not affected by the flow, and the remaining problem is purely electrical,
∂ t q ′ + ∂ y ( E b q ′ + q b E y ′ ) = 0 , ∂ y E y ′ = C q ′ , q ′ ( 0 , t ) = 0 , ∫ 0 1 E y ′ d y = 0 , (97) \partial_tq'+\partial_y(E_bq'+q_bE'_y)=0,\qquad\partial_yE'_y=Cq',\qquad q'(0,t)=0,\qquad\int_0^1E'_y\,\mathrm{d}y=0, \tag*{(97)} ∂ t q ′ + ∂ y ( E b q ′ + q b E y ′ ) = 0 , ∂ y E y ′ = C q ′ , q ′ ( 0 , t ) = 0 , ∫ 0 1 E y ′ d y = 0 , (97)
the last condition expressing that the applied voltage is fixed. For x x x -independent perturbations the term ∂ y ( q ′ E y ′ ) \partial_y(q'E'_y) ∂ y ( q ′ E y ′ ) is the only nonlinear term dropped, since u y ′ ≡ 0 u'_y \equiv0 u y ′ ≡ 0 holds exactly.
Eliminating q ′ q' q ′ gives ∂ y [ ∂ t E y ′ + C ( E b q ′ + q b E y ′ ) ] = 0 \partial_y[\partial_t E'_y+C(E_bq'+q_bE'_y)]=0 ∂ y [ ∂ t E y ′ + C ( E b q ′ + q b E y ′ )] = 0 . The perturbation of the total current, displacement plus conduction, is therefore uniform across the layer,
∂ t E y ′ + E b ∂ y E y ′ + C q b E y ′ = I ( t ) , (98) \partial_t E'_y+E_b\partial_y E'_y+Cq_bE'_y=I(t), \tag*{(98)} ∂ t E y ′ + E b ∂ y E y ′ + C q b E y ′ = I ( t ) , (98)
where I ( t ) I(t) I ( t ) , proportional to the perturbation of the total current, takes the value that keeps the voltage fixed. At the injector q ′ = 0 q'=0 q ′ = 0 gives ∂ y E y ′ = 0 \partial_yE'_y=0 ∂ y E y ′ = 0 , so
E ˙ i ′ + C E i ′ = I , (99) \dot{E}'_i+CE'_i=I, \tag*{(99)} E ˙ i ′ + C E i ′ = I , (99)
where E i ′ ( t ) = E y ′ ( 0 , t ) E'_i(t)=E'_y(0,t) E i ′ ( t ) = E y ′ ( 0 , t ) is the perturbation of the electric field at the injector. The drift time for an ion to go from the injector to a point at height y y y is
τ ( y ) = ∫ 0 y d s E b ( s ) = 1 C ( 1 + 2 C y E i − 1 ) , (100) \tau(y)=\int_0^y\frac{\mathrm{d}s}{E_b(s)}=\frac{1}{C}\left(\sqrt{1+\frac{2Cy}{E_i}}-1\right), \tag*{(100)} τ ( y ) = ∫ 0 y E b ( s ) d s = C 1 ( 1 + E i 2 C y − 1 ) , (100)
and the transit time is t t r = τ ( 1 ) = C − 1 ( 1 + 2 C / E i − 1 ) t_{\rm tr}=\tau(1)=C^{-1}(\sqrt{1+2C/E_i}-1) t tr = τ ( 1 ) = C − 1 ( 1 + 2 C / E i − 1 ) . The base state expressed in terms of τ \tau τ is
y = E i ( τ + C τ 2 2 ) , E b = E i ( 1 + C τ ) , q b = 1 1 + C τ . (101) y=E_i\left(\tau+\frac{C\tau^2}{2}\right),\qquad E_b=E_i(1+C\tau),\qquad q_b=\frac{1}{1+C\tau}. \tag*{(101)} y = E i ( τ + 2 C τ 2 ) , E b = E i ( 1 + C τ ) , q b = 1 + C τ 1 . (101)
Since ∂ τ = E b ∂ y \partial_\tau=E_b\partial_y ∂ τ = E b ∂ y , Eq. (98) becomes ( ∂ t + ∂ τ ) E y ′ + C E y ′ / ( 1 + C τ ) = I (\partial_t+\partial_\tau)E'_y+CE'_y/(1+C\tau)=I ( ∂ t + ∂ τ ) E y ′ + C E y ′ / ( 1 + C τ ) = I . The operator ∂ t + ∂ τ \partial_t+\partial_\tau ∂ t + ∂ τ is the derivative following an ion that moves with velocity equal to E b E_b E b . For this ion it is d τ / d t = 1 \mathrm{d}\tau/\mathrm{d}t=1 d τ / d t = 1 . With the integrating factor 1 + C τ 1+C\tau 1 + C τ , the function F = ( 1 + C τ ) E y ′ F=(1+C\tau)E'_y F = ( 1 + C τ ) E y ′ satisfies
( ∂ t + ∂ τ ) F = ( 1 + C τ ) I ( t ) , F ( 0 , t ) = E i ′ ( t ) , ∫ 0 t t r F d τ = 0. (102) (\partial_t+\partial_\tau)F=(1+C\tau)I(t),\qquad F(0,t)=E'_i(t),\qquad\int_0^{t_{\rm tr}}F\,\mathrm{d}\tau=0. \tag*{(102)} ( ∂ t + ∂ τ ) F = ( 1 + C τ ) I ( t ) , F ( 0 , t ) = E i ′ ( t ) , ∫ 0 t tr F d τ = 0. (102)
The integral condition comes from the last condition in Eq. (97) , with the change d y = E b d τ \mathrm{d}y=E_b\mathrm{d}\tau d y = E b d τ and using the expression for E b E_b E b in Eq. (101) .
Equations (C7) and (C4) form a closed system for the unknowns { F ( τ , t ) , E i ′ ( t ) , I ( t ) } \{F(\tau,t),E'_i(t),I(t)\} { F ( τ , t ) , E i ′ ( t ) , I ( t )} . We seek normal modes of the form
( F , E i ′ , I ) = ( F ^ ( τ ) , E ^ i ′ , I ^ ) e σ t . (103) (F,E'_i,I)=(\hat{F}(\tau),\hat{E}'_i,\hat{I})e^{\sigma t}. \tag*{(103)} ( F , E i ′ , I ) = ( F ^ ( τ ) , E ^ i ′ , I ^ ) e σ t . (103)
The system becomes
F ^ ′ ( τ ) + σ F ^ ( τ ) = ( 1 + C τ ) I ^ , \hat{F}'(\tau)+\sigma\hat{F}(\tau)=(1+C\tau)\hat{I}, F ^ ′ ( τ ) + σ F ^ ( τ ) = ( 1 + C τ ) I ^ ,
I ^ = ( σ + C ) E ^ i ′ , \hat{I}=(\sigma+C)\hat{E}'_i, I ^ = ( σ + C ) E ^ i ′ ,
∫ 0 t t r F ^ d τ = 0. (104) \int_0^{t_{\rm tr}}\hat{F}\,\mathrm{d}\tau=0. \tag*{(104)} ∫ 0 t tr F ^ d τ = 0. (104)
Multiplying the first equation by e σ τ e^{\sigma\tau} e σ τ and integrating from 0 0 0 to τ \tau τ gives
F ^ ( τ ) = E ^ i ′ e − σ τ + I ^ ∫ 0 τ ( 1 + C s ) e − σ ( τ − s ) d s . (105) \hat{F}(\tau)=\hat{E}'_i e^{-\sigma\tau}+\hat{I}\int_0^\tau(1+Cs)e^{-\sigma(\tau-s)}\,\mathrm{d}s. \tag*{(105)} F ^ ( τ ) = E ^ i ′ e − σ τ + I ^ ∫ 0 τ ( 1 + C s ) e − σ ( τ − s ) d s . (105)
We introduce this expression into the integral condition to obtain
A ( σ ) E ^ i ′ + B ( σ ) I ^ = 0 , (106) A(\sigma)\hat{E}'_i+B(\sigma)\hat{I}=0, \tag*{(106)} A ( σ ) E ^ i ′ + B ( σ ) I ^ = 0 , (106)
with
A ( σ ) = ∫ 0 t t r e − σ τ d τ = 1 − e − t t r σ σ , (107) A(\sigma)=\int_0^{t_{\rm tr}}e^{-\sigma\tau}\,\mathrm{d}\tau=\frac{1-e^{-t_{\rm tr}\sigma}}{\sigma}, \tag*{(107)} A ( σ ) = ∫ 0 t tr e − σ τ d τ = σ 1 − e − t tr σ , (107)
B ( σ ) = ∫ 0 t t r ∫ 0 τ ( 1 + C s ) e − σ ( τ − s ) d s d τ = − 1 + e − t t r σ + t t r σ σ 2 + C 2 − 2 e − t t r σ + t t r σ ( − 2 + t t r σ ) 2 σ 3 . (108) B(\sigma)=\int_0^{t_{\rm tr}}\int_0^\tau(1+Cs)e^{-\sigma(\tau-s)}\,\mathrm{d}s\,\mathrm{d}\tau
=\frac{-1+e^{-t_{\rm tr}\sigma}+t_{\rm tr}\sigma}{\sigma^2}
+C\frac{2-2e^{-t_{\rm tr}\sigma}+t_{\rm tr}\sigma(-2+t_{\rm tr}\sigma)}{2\sigma^3}. \tag*{(108)} B ( σ ) = ∫ 0 t tr ∫ 0 τ ( 1 + C s ) e − σ ( τ − s ) d s d τ = σ 2 − 1 + e − t tr σ + t tr σ + C 2 σ 3 2 − 2 e − t tr σ + t tr σ ( − 2 + t tr σ ) . (108)
Now the system becomes
( A ( σ ) B ( σ ) σ + C − 1 ) ( E ^ i ′ I ^ ) = ( 0 0 ) . (109) \left(\begin{array}{cc}
A(\sigma) & B(\sigma) \\
\sigma+C & -1
\end{array}\right)
\begin{pmatrix}
\hat{E}'_i \\
\hat{I}
\end{pmatrix}
=
\begin{pmatrix}
0 \\
0
\end{pmatrix}. \tag*{(109)} ( A ( σ ) σ + C B ( σ ) − 1 ) ( E ^ i ′ I ^ ) = ( 0 0 ) . (109)
For this system to have a nontrivial solution, the determinant must vanish, which gives
A ( σ ) + B ( σ ) ( σ + C ) = 0. (110) A(\sigma)+B(\sigma)(\sigma+C)=0. \tag*{(110)} A ( σ ) + B ( σ ) ( σ + C ) = 0. (110)
From Eq. (101) , evaluating at y = 1 y=1 y = 1 , we have
t t r + 1 2 C t t r 2 = 1 E i , 1 + C t t r = E c E i , (111) t_{\mathrm{tr}}+\frac{1}{2}Ct_{\mathrm{tr}}^2=\frac{1}{E_i},\qquad1+Ct_{\mathrm{tr}}=\frac{E_c}{E_i}, \tag*{(111)} t tr + 2 1 C t tr 2 = E i 1 , 1 + C t tr = E i E c , (111)
where E c = E b ( 1 ) E_c=E_b(1) E c = E b ( 1 ) is the collector field. Multiplying Eq. (110) by σ 3 \sigma^3 σ 3 and using these relations, we rewrite the dispersion relation as
P ( σ ) = C 2 e − σ t t r , (112) P(\sigma)=C^2e^{-\sigma t_{\mathrm{tr}}}, \tag*{(112)} P ( σ ) = C 2 e − σ t tr , (112)
with
P ( σ ) = σ 2 + ( σ + C ) [ σ 2 E i − E c E i σ + C ] . (113) P(\sigma)=\sigma^2+(\sigma+C)\left[\frac{\sigma^2}{E_i}-\frac{E_c}{E_i}\sigma+C\right]. \tag*{(113)} P ( σ ) = σ 2 + ( σ + C ) [ E i σ 2 − E i E c σ + C ] . (113)
The factor σ 3 \sigma^3 σ 3 introduces a triple root σ = 0 \sigma=0 σ = 0 of Eq. (112) , which is spurious. Indeed A ( 0 ) = t t r A(0)=t_{\mathrm{tr}} A ( 0 ) = t tr and B ( 0 ) = t t r 2 / 2 + C t t r 3 / 6 B(0)=t_{\mathrm{tr}}^2/2+Ct_{\mathrm{tr}}^3/6 B ( 0 ) = t tr 2 /2 + C t tr 3 /6 are finite and positive, so σ = 0 \sigma=0 σ = 0 is not a root of Eq. (110) . The cubic P ( σ ) P(\sigma) P ( σ ) is the response of the layer if the disturbance were lost at the collector. The right-hand side of Eq. (112) is the part that returns, through the voltage constraint, after one transit.
Because e − σ t t r e^{-\sigma t_{\mathrm{tr}}} e − σ t tr is periodic in the imaginary direction with period 2 π i / t t r 2\pi i/t_{\mathrm{tr}} 2 π i / t tr , Eq. (112) is equivalent to − σ t t r = Ln ( P ( σ ) / C 2 ) − 2 π i m -\sigma t_{\mathrm{tr}}=\operatorname{Ln}(P(\sigma)/C^2)-2\pi i m − σ t tr = Ln ( P ( σ ) / C 2 ) − 2 π im for some integer m m m , where Ln \operatorname{Ln} Ln is the principal branch of the logarithm. Solving for σ \sigma σ gives one equation for each branch,
σ m = − 1 t t r [ Ln ( P ( σ m ) C 2 ) − 2 π i m ] , m = 0 , ± 1 , ± 2 , … (114) \sigma_m=-\frac{1}{t_{\mathrm{tr}}}\left[\operatorname{Ln}\left(\frac{P(\sigma_m)}{C^2}\right)-2\pi i m\right],\qquad m=0,\pm1,\pm2,\ldots \tag*{(114)} σ m = − t tr 1 [ Ln ( C 2 P ( σ m ) ) − 2 π im ] , m = 0 , ± 1 , ± 2 , … (114)
The coefficients of P P P are real, so the branch − m -m − m gives the complex conjugate of σ m \sigma_m σ m and it suffices to consider m ≥ 0 m\geq0 m ≥ 0 . Each branch with m ≥ 1 m\geq1 m ≥ 1 gives one transit mode, and the branch m = 0 m=0 m = 0 gives only the spurious root σ = 0 \sigma=0 σ = 0 . Since the logarithm varies slowly, its derivative P ′ / P P'/P P ′ / P being small compared with t t r t_{\mathrm{tr}} t tr , consecutive roots are separated by approximately 2 π i / t t r 2\pi i/t_{\mathrm{tr}} 2 π i / t tr , as expected for a disturbance that returns once per transit.
For C = 10 C=10 C = 10 the first roots, computed by Newton iteration on Eq. (110) and checked with the argument principle, are compared with the n = 0 n=0 n = 0 modes of the spectral code in Table VII .