Skip to content

Commit

Permalink
Fix a bug: there are exceptions where an turbine engine with a bypass…
Browse files Browse the repository at this point in the history
… ration > 1.0 does have augmentation
  • Loading branch information
ehofman committed Apr 7, 2017
1 parent 827f4b0 commit 3bb9952
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion utils/aeromatic++/Aircraft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ bool Aeromatic::fdm()
file << " <fileheader>" << std::endl;
file << " <author> Aeromatic v " << version << " </author>" << std::endl;
file << " <filecreationdate> " << str << " </filecreationdate>" << std::endl;
file << " <version>$Revision: 1.77 $</version>" << std::endl;
file << " <version>$Revision: 1.78 $</version>" << std::endl;
file << " <description> Models a " << _name << ". </description>" << std::endl;
file << " </fileheader>" << std::endl;
file << std::endl;
Expand Down
5 changes: 2 additions & 3 deletions utils/aeromatic++/Systems/Propulsion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,12 +570,11 @@ std::string TurbineEngine::engine()
{
if (_bypass_ratio < 0.07f) _bypass_ratio = 0.07f;
tsfc = 0.635f - 0.144f * log10f(_oapr) * log10f(_bypass_ratio);
atsfc = 3.27f - 0.451f * log10f(2.9f * _oapr / _bypass_ratio);
}
else
{
else {
tsfc = 0.7533f - 0.161f * log10f(0.0625f * _oapr * _bypass_ratio);
}
atsfc = 3.27f - 0.451f * log10f(2.9f * _oapr / _bypass_ratio);

file.precision(1);
file.flags(std::ios::right);
Expand Down
6 changes: 6 additions & 0 deletions utils/aeromatic++/Systems/Thruster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ Propeller::Propeller(Propulsion *p) : Thruster(p),
* Walnut: 35
* Oak: 46
* Aluminum: 167
*
* The code is based on:
* PROPELLER BLADE ELEMENT MOMENTUM THEORY WITH VORTEX WAKE DEFLECTION
* M. K. Rwigema, 2010
* School of Mechanical, Industrial and Aeronautical Engineering
* http://www.icas.org/ICAS_ARCHIVE/ICAS2010/PAPERS/434.PDF
*/
void Propeller::bladeElement()
{
Expand Down
2 changes: 1 addition & 1 deletion utils/aeromatic++/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.9
3.3.10

0 comments on commit 3bb9952

Please sign in to comment.