abbrev
definition
VelCoeff
show as:
view math explainer →
open explainer
Generate a durable explainer page for this declaration.
open lean source
IndisputableMonolith.ClassicalBridge.Fluids.Galerkin2D on GitHub at line 56.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
used by
-
aestronglyMeasurable_galerkinForcing_mode_of_continuous -
coeff_bound_of_uniformBounds -
divConstraint -
divConstraint_continuous -
divConstraint_eq_zero_of_forall -
duhamelKernelDominatedConvergenceAt_of_forcing -
duhamelRemainderOfGalerkin_integratingFactor -
duhamelRemainderOfGalerkin_kernel -
FourierState2D -
galerkinNS_hasDerivAt_duhamelRemainder_mode -
hasDerivAt_extendByZero_apply -
nsDuhamel_of_forall -
nsDuhamel_of_forall_kernelIntegral_of_forcing -
stokesMild_of_forall -
stokesODE
formal source
53-- in `EuclideanSpace`, not plain Pi types (which carry the sup norm).
54
55/-- Velocity Fourier coefficient at a mode: a Euclidean real 2-vector (û₁, û₂). -/
56abbrev VelCoeff : Type := EuclideanSpace ℝ (Fin 2)
57
58/-- The Galerkin state: velocity coefficients for each truncated mode and each component. -/
59abbrev GalerkinState (N : ℕ) : Type :=
60 EuclideanSpace ℝ ((modes N) × Fin 2)
61
62/-!
63## Discrete dynamics
64-/
65
66/-- Squared wave number \( |k|^2 \) as a real number. -/
67noncomputable def kSq (k : Mode2) : ℝ :=
68 (k.1 : ℝ) ^ 2 + (k.2 : ℝ) ^ 2
69
70/-- Fourier Laplacian on coefficients: (Δ û)(k) = -|k|² û(k). -/
71noncomputable def laplacianCoeff {N : ℕ} (u : GalerkinState N) : GalerkinState N :=
72 WithLp.toLp 2 (fun kc => (-kSq ((kc.1 : Mode2))) * u kc)
73
74/-- Abstract Galerkin convection operator (projected nonlinearity).
75
76Later we will replace this with the explicit Fourier convolution + Leray projection. -/
77def ConvectionOp (N : ℕ) : Type :=
78 GalerkinState N → GalerkinState N → GalerkinState N
79
80/-- Discrete Navier–Stokes RHS: u' = νΔu - B(u,u). -/
81noncomputable def galerkinNSRHS {N : ℕ} (ν : ℝ) (B : ConvectionOp N) (u : GalerkinState N) :
82 GalerkinState N :=
83 (ν • laplacianCoeff u) - (B u u)
84
85/-!
86## Energy functional and inviscid conservation