Skip to content

eulerjs API / @eulerjs/marine / FluidMedium

FluidMedium ​

Defined in: packages/marine/src/media.ts:7

A fluid a foil can move through: its density and how it flows.

Properties ​

PropertyModifierTypeDescriptionDefined in
densityreadonlynumberIn kg/m³.packages/marine/src/media.ts:9

Methods ​

velocityAt() ​

ts
velocityAt(
   point, 
   time, 
   target
): Vector3;

Defined in: packages/marine/src/media.ts:11

Velocity of the fluid at point and time, in m/s, written into target.

Parameters ​

ParameterType
pointVector3
timenumber
targetVector3

Returns ​

Vector3

Released under the MIT License.