|
FhSim
3.1.0
Marine systems simulation
|
#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. | |
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.
| 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].
| std::invalid_argument | when an axis is empty or not ascending, or the table does not match the axes. |