Virtual Testbed
Ship dynamics simulator for extreme conditions
propeller.cc
1 #include <vtestbed/base/blitz.hh>
2 #include <vtestbed/base/constants.hh>
3 #include <vtestbed/config/real_type.hh>
4 #include <vtestbed/core/propeller.hh>
5 
7 
8 template <class T>
10  using blitz::pow2;
11  using blitz::pow4;
13  return constants<T>::water_density() * pow2(revolutions()) *
14  pow4(diameter()) * thrust_coefficient();
15 }
16 
17 template <class T>
19  using blitz::pow2;
20  using blitz::pow5;
22  return constants<T>::water_density() * pow2(revolutions()) *
23  pow5(diameter()) * torque_coefficient();
24 }
25 
26 template <class T>
28  return velocity / (revolutions() * diameter());
29 }
30 
31 template <class T>
34  return advance_coefficient(velocity) * thrust_coefficient() /
35  (constants<T>::pi(2)*torque_coefficient());
36 }
T efficiency(T velocity) const
Efficieny in open water .
Definition: propeller.cc:32
T torque() const
Torque .
Definition: propeller.cc:18
T advance_coefficient(T velocity) const
Advance coefficient .
Definition: propeller.cc:27
T thrust() const
Thrust .
Definition: propeller.cc:9