Class FluidFlow
java.lang.Object
org.episteme.natural.engineering.fluids.FluidFlow
Fluid flow calculations.
Modernized to use high-precision Real and typed Quantities.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionbernoulliPressure(Quantity<Pressure> p1, Quantity<Velocity> v1, Quantity<Length> h1, Quantity<Velocity> v2, Quantity<Length> h2, Real density) Bernoulli's equation for incompressible flow.static FlowRegimeflowRegime(Real reynoldsNumber) Flow regime based on Reynolds number.static ReallaminarFrictionFactor(Real reynoldsNumber) Darcy friction factor for laminar flow. f = 64 / Restatic ReallaminarPipeFlow(Real pressureDrop, Real radius, Real dynamicViscosity, Real length) Hagen-Poiseuille equation for laminar flow in a pipe.static RealreynoldsNumber(Real velocity, Real characteristicLength, Real kinematicViscosity) Reynolds number: Re = v * L / ν Dimensionless quantity.
-
Method Details
-
reynoldsNumber
-
flowRegime
Flow regime based on Reynolds number. Returns LAMINAR, TRANSITIONAL, or TURBULENT. -
bernoulliPressure
public static Quantity<Pressure> bernoulliPressure(Quantity<Pressure> p1, Quantity<Velocity> v1, Quantity<Length> h1, Quantity<Velocity> v2, Quantity<Length> h2, Real density) Bernoulli's equation for incompressible flow. Calculates pressure at point 2 given conditions at point 1 and flow parameters. P2 = P1 + 0.5*ÃÂ*(v1² - v2²) + ÃÂ*g*(h1 - h2) -
laminarPipeFlow
-
laminarFrictionFactor
-