FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
hydro_body::Wrench Struct Reference

The sum of the loads on a body: the force [0..2] and the moment about the origin [3..5], body frame.

#include <HydroBody.h>

Public Member Functions

void Add (const double wrench[6])
 Adds the body-frame wrench wrench.
 
void AddForceAt (const FlowFrame &frame, const double pos_d[3], const double force_n[3])
 

Public Attributes

double values [6] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}
 

Member Function Documentation

◆ AddForceAt()

void hydro_body::Wrench::AddForceAt ( const FlowFrame &  frame,
const double  pos_d[3],
const double  force_n[3] 
)

Adds the NED force force_n acting at the body-frame point pos_d, and its moment.

Parameters
[in]frameThe frame that rotates the force into the body frame.
[in]pos_dThe point of attack, body frame [m].
[in]force_nThe force, NED [N].

The documentation for this struct was generated from the following file: