Affine plane waves, moving frame, and the wave ODEs
DefinitionTorusEuler_AffineThe affine-wave machinery of Lemmas 2.1–2.2. For a matrix and a wave vector , the amplitude operator is
the projection-corrected background acting on amplitudes. Given a scalar profile , a background , a wave vector and an amplitude , the affine wave velocity is ; the wave pressure coefficient is ; and with the wave pressure is , where . cross3 is the oriented cross product on .
The moving frame of a wave (frame) is , , ; entry e B i j is the matrix entry (zero-based indices). WaveOn J D k a asserts the two Craik–Criminale ODEs on the interval , derivatives taken within :
Formalization Note The pressure coefficient is substituted into the amplitude equation in WaveOn; transversality is stated separately where needed (it is preserved by the flow, Lemma 2.1).
import Mathlib
import Definitions.Def_TorusEuler_Statement
open scoped InnerProductSpace
noncomputable section
namespace TorusEuler
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
/-- The linear amplitude operator for a prescribed wave vector. -/
noncomputable def affineWaveAmplitudeOperator (D : E →L[ℝ] E) (k : E) : E →L[ℝ] E :=
-D + (2 / ‖k‖ ^ 2) • (InnerProductSpace.rankOne ℝ k k).comp D
/-- The affine velocity plus one plane wave in Lemma 2.1 (cc:lem:wave). -/
noncomputable def affineWaveVelocity (F : ℝ → ℝ) (D : ℝ → Vec3 →L[ℝ] Vec3) (k a : ℝ → Vec3) :
Velocity :=
fun t x => D t x + F ⟪k t, x⟫_ℝ • a t
/-- The coefficient of the wave pressure in (cc:eq:wave-ode). -/
noncomputable def affineWavePressureCoeff (D : Vec3 →L[ℝ] Vec3) (k a : Vec3) : ℝ :=
2 * ⟪k, D a⟫_ℝ / ‖k‖ ^ 2
/-- The pressure at a fixed time in Lemma 2.1, with `S = D' + D²`. -/
noncomputable def affineWavePressure (P : ℝ → ℝ) (S : Vec3 →L[ℝ] Vec3)
(p : ℝ) (k : Vec3) (x : Vec3) : ℝ :=
-(1 / 2 : ℝ) * ⟪x, S x⟫_ℝ - p * P ⟪k, x⟫_ℝ
/-- The standard oriented cross product on three-dimensional Euclidean space. -/
noncomputable def cross3 (k a : EuclideanSpace ℝ (Fin 3)) : EuclideanSpace ℝ (Fin 3) :=
WithLp.toLp 2 (crossProduct k.ofLp a.ofLp)
end TorusEuler
namespace TorusEuler.MovingWaveVector
abbrev Space := EuclideanSpace ℝ (Fin 3)
def frame (kp ap : ℝ → Space) (t : ℝ) : Fin 3 → Space :=
![NormedSpace.normalize (kp t), NormedSpace.normalize (ap t),
cross3 (NormedSpace.normalize (kp t)) (NormedSpace.normalize (ap t))]
def entry (e : Fin 3 → Space) (A : Space →L[ℝ] Space) (i j : Fin 3) : ℝ :=
⟪e i, A (e j)⟫_ℝ
end TorusEuler.MovingWaveVector
namespace TorusEuler.PaperAffine
/-- The two equations of (2.1) on a prescribed interval. -/
def WaveOn (J : Set ℝ) (D : ℝ → Vec3 →L[ℝ] Vec3) (k a : ℝ → Vec3) : Prop :=
(∀ t ∈ J, HasDerivWithinAt k (-((D t).adjoint (k t))) J t) ∧
(∀ t ∈ J, HasDerivWithinAt a (affineWaveAmplitudeOperator (D t) (k t) (a t)) J t)
end TorusEuler.PaperAffine
end
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.