本文整理汇总了C++中Aircraft::get_vtail_arm方法的典型用法代码示例。如果您正苦于以下问题:C++ Aircraft::get_vtail_arm方法的具体用法?C++ Aircraft::get_vtail_arm怎么用?C++ Aircraft::get_vtail_arm使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Aircraft
的用法示例。
在下文中一共展示了Aircraft::get_vtail_arm方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: fdm
//.........这里部分代码省略.........
// estimate horizontal tail area
if (_htail.area == 0) {
_htail.area = _wing.area * aircraft->get_htail_area();
}
// estimate distance from CG to horizontal tail aero center
if (_htail.arm == 0) {
_htail.arm = _length * aircraft->get_htail_arm();
}
if (_htail.aspect == 0) {
_htail.aspect = 5.0f; // ht_w * _wing.aspect;
}
if (_htail.taper == 0) {
_htail.taper = 0.5f;
}
float ht_w = 0.33f; // sqrtf(_htail.area / _wing.area);
if (_htail.span == 0) {
_htail.span = ht_w * _wing.span;
}
TR = _htail.taper;
_htail.chord_mean = 0.75f*_htail.chord*(1.0f+TR+TR*TR)/(1.0f+TR);
_htail.de_da = 4.0f/(_htail.aspect+2.0f);
// estimate vertical tail area
if (_vtail.area == 0) {
_vtail.area = _wing.area * aircraft->get_vtail_area();
}
// estimate distance from CG to vertical tail aero center
if (_vtail.arm == 0) {
_vtail.arm = _length * aircraft->get_vtail_arm();
}
float vt_w = 0.15f; // sqrtf(_vtail.area / _wing.area*0.5f);
if (_vtail.span == 0) {
_vtail.span = vt_w * _wing.span;
}
if (_vtail.aspect == 0) {
_vtail.aspect = 1.7f; // vt_w * _wing.aspect;
}
if (_vtail.taper == 0) {
_vtail.taper = 0.7f;
}
TR = _vtail.taper;
_vtail.chord_mean = 0.75f*_vtail.chord*(1.0f+TR+TR*TR)/(1.0f+TR);
_vtail.de_da = 4.0f/(_vtail.aspect+2.0f);
//***** EMPTY WEIGHT *********************************
// estimate empty weight, based on max weight
if (_empty_weight == 0) {
_empty_weight = _max_weight * aircraft->get_empty_weight();
}
//***** MOMENTS OF INERTIA ******************************
// use Roskam's formulae to estimate moments of inertia
if (_inertia[X] == 0.0f && _inertia[Y] == 0.0f && _inertia[Z] == 0.0f)
{
float slugs = (_empty_weight / 32.2f); // sluggishness
const float *R = aircraft->get_roskam();