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
| Parameter | Type |
|---|---|
options | FoilOptions |
Returns
Foil
Properties
| Property | Modifier | Type | Default value | Description | Defined in |
|---|---|---|---|---|---|
angle | public | number | undefined | - | packages/marine/src/foils/Foil.ts:45 |
area | public | number | undefined | - | packages/marine/src/foils/Foil.ts:43 |
center | readonly | Vector3 | undefined | - | packages/marine/src/foils/Foil.ts:46 |
chordAxis | readonly | Vector3 | undefined | - | packages/marine/src/foils/Foil.ts:49 |
lastAngleOfAttack | public | number | 0 | Angle of attack on the last step, in radians, from 0 to π. | packages/marine/src/foils/Foil.ts:56 |
lastCenter | readonly | Vector3 | ... | Where that force acted, in world space. | packages/marine/src/foils/Foil.ts:54 |
lastFlowSpeed | public | number | 0 | Speed of the flow across the span on the last step, in m/s. | packages/marine/src/foils/Foil.ts:58 |
lastForce | readonly | Vector3 | ... | The force applied on the last step, in world space. | packages/marine/src/foils/Foil.ts:52 |
medium | public | FluidMedium | undefined | - | packages/marine/src/foils/Foil.ts:42 |
pivot | readonly | Vector3 | undefined | - | packages/marine/src/foils/Foil.ts:47 |
polar | public | Polar | undefined | - | packages/marine/src/foils/Foil.ts:44 |
spanAxis | readonly | Vector3 | undefined | - | 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
| Parameter | Type |
|---|---|
body | Body |
time | number |
target | Vector3 |
Returns
Vector3
fixedUpdate()
ts
fixedUpdate(
body,
_timestep,
world
): void;Defined in: packages/marine/src/foils/Foil.ts:76
Parameters
| Parameter | Type |
|---|---|
body | Body |
_timestep | number |
world | World |
Returns
void
