FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
Ship::SimpleThruster Class Reference

#include <SimpleThruster.h>

Public Member Functions

 SimpleThruster (double D, double Fmax)
 
void SetData (const std::vector< double > &pitch_axis, const std::vector< double > &n_axis, const std::vector< std::vector< double > > &data)
 
double GetForce (double pitch, double n)
 
void SetWarnOnce (WarnOnce *warnOnce)
 Where to report a pitch or rotational speed outside the map; null (the default) reports nowhere.
 

Detailed Description

Thrust of a thruster from a map over pitch and rotational speed: bilinear between the nodes, the edge value held outside the axes and reported once through the WarnOnce set with SetWarnOnce (owner ruling D39). The map holds the thrust as a fraction of Fmax.

Member Function Documentation

◆ SetData()

void Ship::SimpleThruster::SetData ( const std::vector< double > &  pitch_axis,
const std::vector< double > &  n_axis,
const std::vector< std::vector< double > > &  data 
)

data[i][j] belongs to rotational speed n_axis[i] and pitch pitch_axis[j].

Exceptions
std::invalid_argumentwhen an axis is empty or not ascending, or the table does not match the axes.

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