palLiquidDrag Class Reference

#include <palActuators.h>

Inheritance diagram for palLiquidDrag:

palActuator

List of all members.

Public Member Functions

void Init (palBody *pbody, Float area, Float CD, Float density=0.99829f)
void Apply ()


Detailed Description

Simulates drag through a liquid on a body. Drag is calculated from the drag equation:

\[D=\frac{1}{2}.\rho.C_D.A_f.V^2\]

Where, $C_D$ is the drag coefficient $\rho $ is the fluid density. $A_f $ is the frontal area. L is the lift force. V is the realtive velocity.


Member Function Documentation

void palLiquidDrag::Apply (  )  [virtual]

Ensures the actuator operates for the current time step

Implements palActuator.

void palLiquidDrag::Init ( palBody pbody,
Float  area,
Float  CD,
Float  density = 0.99829f 
)

Initializes the liquid drag

Parameters:
pbody The body to which the drag is applied.
area The frontal area of the body to which the drag is applied
CD The drag coefficient
density The fluid density


The documentation for this class was generated from the following files:

Generated on Mon Aug 31 13:58:02 2009 for pal by  doxygen 1.5.7.1