Fhsim
Marine systems simulation
OpenWaterPropeller.h
1
#ifndef _COPENWATER_PROPELLER_H_
2
#define _COPENWATER_PROPELLER_H_
3
4
5
#include <cmath>
6
#include <vector>
7
8
#include "IPropellerCalculator.h"
9
10
namespace
Ship
{
11
class
OpenWaterPropeller
:
public
IPropellerCalculator
12
{
13
public
:
14
OpenWaterPropeller
(
double
D,
double
PD);
15
~OpenWaterPropeller
();
16
17
double
GetKq(
double
J);
18
double
GetKt(
double
J);
19
20
void
SetData(
double
*J,
double
* Kt,
double
* Kq,
int
num_elements);
21
void
SetData(std::vector<double> J, std::vector<double> Kt, std::vector<double> Kq);
22
23
private
:
24
25
unsigned
int
curve_elements;
26
27
std::vector<double> J;
// Lift curve rudder angles
28
std::vector<double> Ct;
// Lift coefficient
29
std::vector<double> Cq;
// Drag coefficient
30
31
double
D;
// Diameter
32
double
PD;
// PD ratio
33
};
34
}
35
36
#endif
Ship::IPropellerCalculator
Definition:
IPropellerCalculator.h:8
Ship::OpenWaterPropeller
Definition:
OpenWaterPropeller.h:12
Ship
Simple waypoint object.
Definition:
CableAttach.h:16
reloadrepos
fhsim_marine_elements
src
ship
Ship
Actuators
OpenWaterPropeller.h
Generated by
1.9.4