Skip to content

eulerjs API / @eulerjs/marine / Foil

Foil ​

Defined in: packages/marine/src/foils/Foil.ts:41

A wing-like surface — sail, keel, rudder — that turns the flow past it into lift (across the flow) and drag (along it). Only the part of the flow across the span counts, so a foil ignores flow along its own span.

Implements ​

Constructors ​

Constructor ​

ts
new Foil(options): Foil;

Defined in: packages/marine/src/foils/Foil.ts:60

Parameters ​

ParameterType
optionsFoilOptions

Returns ​

Foil

Properties ​

PropertyModifierTypeDefault valueDescriptionDefined in
anglepublicnumberundefined-packages/marine/src/foils/Foil.ts:45
areapublicnumberundefined-packages/marine/src/foils/Foil.ts:43
centerreadonlyVector3undefined-packages/marine/src/foils/Foil.ts:46
chordAxisreadonlyVector3undefined-packages/marine/src/foils/Foil.ts:49
lastAngleOfAttackpublicnumber0Angle of attack on the last step, in radians, from 0 to π.packages/marine/src/foils/Foil.ts:56
lastCenterreadonlyVector3...Where that force acted, in world space.packages/marine/src/foils/Foil.ts:54
lastFlowSpeedpublicnumber0Speed of the flow across the span on the last step, in m/s.packages/marine/src/foils/Foil.ts:58
lastForcereadonlyVector3...The force applied on the last step, in world space.packages/marine/src/foils/Foil.ts:52
mediumpublicFluidMediumundefined-packages/marine/src/foils/Foil.ts:42
pivotreadonlyVector3undefined-packages/marine/src/foils/Foil.ts:47
polarpublicPolarundefined-packages/marine/src/foils/Foil.ts:44
spanAxisreadonlyVector3undefined-packages/marine/src/foils/Foil.ts:48

Methods ​

computeForce() ​

ts
computeForce(
   body, 
   time, 
   target
): Vector3;

Defined in: packages/marine/src/foils/Foil.ts:82

The force the foil would apply to body at time, without applying it. Updates the last… fields.

Parameters ​

ParameterType
bodyBody
timenumber
targetVector3

Returns ​

Vector3


fixedUpdate() ​

ts
fixedUpdate(
   body, 
   _timestep, 
   world
): void;

Defined in: packages/marine/src/foils/Foil.ts:76

Parameters ​

ParameterType
bodyBody
_timestepnumber
worldWorld

Returns ​

void

Implementation of ​

Behavior.fixedUpdate

Released under the MIT License.