Class FluidMechanics
java.lang.Object
org.episteme.natural.physics.classical.matter.fluids.FluidMechanics
Fluid mechanics - Navier-Stokes, Bernoulli, Reynolds number, viscosity.
Implements classical and modern computational fluid dynamics equations.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RealBernoulli's equation (incompressible flow): P + ½ÃÂÂÂv² + ÃÂÂÂgh = constant Returns pressure at point 2 given conditions at point 1static RealcontinuityVelocity(Real area1, Real vel1, Real area2) Continuity equation (mass conservation): Aâ‚ÂÂvâ‚ = Aâ‚‚vâ‚‚ Returns velocity at point 2static RealdragCoefficient(Real dragForce, Real density, Real velocity, Real area) Drag coefficient: C_d = 2F_d/(ÃÂÂÂv²A)static RealfroudeNumber(Real velocity, Real g, Real charLength) Froude number: Fr = v/√(gL) Ratio of inertial to gravitational forcesstatic RealliftCoefficient(Real liftForce, Real density, Real velocity, Real area) Lift coefficient: C_l = 2F_l/(ÃÂÂÂv²A)static RealmachNumber(Real velocity, Real soundSpeed) Mach number: M = v/c (velocity / speed of sound)static RealpoiseuilleFlow(Real pressureDrop, Real radius, Real viscosity, Real length) Hagen-Poiseuille equation (laminar pipe flow): Q = ÀÎâ€ÂPrâ´/(8μL) Returns volumetric flow ratestatic RealreynoldsNumber(Real density, Real velocity, Real charLength, Real dynamicViscosity) Reynolds number: Re = ÃÂÂÂvL/μ = vL/ν Determines laminar (Re invalid input: '<' 2300) vs turbulent (Re > 4000) flowstatic RealreynoldsNumberKinematic(Real velocity, Real charLength, Real kinematicViscosity) Reynolds number (kinematic viscosity version): Re = vL/νstatic RealstokesDrag(Real viscosity, Real radius, Real velocity) Stokes' law (drag on sphere): F_drag = 6Àμrvstatic RealTerminal velocity (sphere falling): v_t = (2r²g(ÃÂÂÂ_s - ÃÂÂÂ_f))/(9μ)static RealweberNumber(Real density, Real velocity, Real charLength, Real surfaceTension) Weber number: We = ÃÂÂÂv²L/ÃÂÆ’ Ratio of inertial to surface tension forces
-
Constructor Details
-
FluidMechanics
public FluidMechanics()
-
-
Method Details
-
bernoulliPressure
-
reynoldsNumber
-
reynoldsNumberKinematic
-
continuityVelocity
-
poiseuilleFlow
-
stokesDrag
-
terminalVelocity
-
dragCoefficient
-
liftCoefficient
-
machNumber
-
froudeNumber
-
weberNumber
-