Class FluidField
java.lang.Object
org.episteme.natural.physics.classical.matter.fluids.FluidField
Represents a fluid field on an Eulerian grid.
Stores state variables at discrete grid points:
- Density ($\rho$)
- Pressure ($p$)
- Velocity field ($\mathbf{u}$)
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDepth()intintgetWidth()voidsetDensity(Tensor<Real> density) voidsetPressure(Tensor<Real> pressure) voidsetVelocityX(Tensor<Real> velocityX) voidsetVelocityY(Tensor<Real> velocityY) voidsetVelocityZ(Tensor<Real> velocityZ) voidPerforms one timestep of fluid simulation.
-
Constructor Details
-
FluidField
public FluidField(int width, int height, int depth)
-
-
Method Details
-
step
Performs one timestep of fluid simulation. Uses operator splitting: advection, diffusion, pressure solve.- Parameters:
dt- timestep
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getDepth
public int getDepth() -
getDensity
-
getPressure
-
getVelocityX
-
getVelocityY
-
getVelocityZ
-
setDensity
-
setPressure
-
setVelocityX
-
setVelocityY
-
setVelocityZ
-