Skip to content
23 changes: 23 additions & 0 deletions PhysLean/FluidMechanics/Basic.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/-
Copyright (c) 2026 Michał Mogielnicki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michał Mogielnicki
-/
Comment thread
mog1el marked this conversation as resolved.
Outdated
import PhysLean.SpaceAndTime.Space.Basic
import PhysLean.SpaceAndTime.Time.Basic
/-!
This module introduces the idea of an ideal fluid and the mass flux density. The rest of the early workings is to be seen in ./IdealFluid/
-/
open scoped InnerProductSpace

structure IdealFluid where
density: Time → Space → ℝ
velocity: Time → Space→ Space
Comment thread
mog1el marked this conversation as resolved.
Outdated
pressure: Time → Space → ℝ
Comment thread
mog1el marked this conversation as resolved.
Outdated

namespace IdealFluid

def massFluxDensity (F: IdealFluid) (t : Time) (pos : Space ) :
Space := (IdealFluid.density F t pos) • (IdealFluid.velocity F t pos)

end IdealFluid
5 changes: 5 additions & 0 deletions PhysLean/FluidMechanics/IdealFluid/Bernoulli.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/-
Copyright (c) 2026 Michał Mogielnicki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michał Mogielnicki
-/
5 changes: 5 additions & 0 deletions PhysLean/FluidMechanics/IdealFluid/Continuity.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/-
Copyright (c) 2026 Michał Mogielnicki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michał Mogielnicki
-/
8 changes: 8 additions & 0 deletions PhysLean/FluidMechanics/IdealFluid/Euler.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/-
Copyright (c) 2026 Michał Mogielnicki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michał Mogielnicki
-/
/-!
This module introduces Euler's equation
-/
Loading