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

#include <OpenWaterPropeller.h>

+ Inheritance diagram for Ship::OpenWaterPropeller:
+ Collaboration diagram for Ship::OpenWaterPropeller:

Public Member Functions

 OpenWaterPropeller (double D, double PD)
 
double GetKq (double J)
 
double GetKt (double J)
 
void SetData (double *J, double *Kt, double *Kq, int num_elements)
 Sets the data.
 
void SetData (std::vector< double > J, std::vector< double > Kt, std::vector< double > Kq)
 
void SetWarnOnce (WarnOnce *warnOnce)
 Where to report a J outside the table; null (the default) reports nowhere.
 

Detailed Description

Open-water curves Kt(J) and Kq(J) of one propeller at one pitch ratio. Between the table nodes the value is linear; outside [J.front(), J.back()] the edge value is held and the condition is reported once through the WarnOnce set with SetWarnOnce (owner ruling D39).

Member Function Documentation

◆ GetKq()

double Ship::OpenWaterPropeller::GetKq ( double  J)
virtual

◆ GetKt()

double Ship::OpenWaterPropeller::GetKt ( double  J)
virtual

◆ SetData() [1/2]

void Ship::OpenWaterPropeller::SetData ( double *  J,
double *  Kt,
double *  Kq,
int  num_elements 
)
virtual
Exceptions
std::invalid_argumentwhen a vector is empty or the sizes differ.

Implements Ship::IPropellerCalculator.

◆ SetData() [2/2]

void Ship::OpenWaterPropeller::SetData ( std::vector< double >  J,
std::vector< double >  Kt,
std::vector< double >  Kq 
)
virtual

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