Mass Balance Calculation #950
Unanswered
rickechler
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Yes, take a look just a bit further down in jsbsim/src/models/FGMassBalance.cpp Lines 220 to 236 in e4aa2a9 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Pretty much as you mentioned, i.e. the empty weight configuration of the aircraft. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, are the inertia products required for the entire aircraft, empty weight, including wings, tail, gear etc? Then pilot, fuel, and other point masses are calculated separately?
Thanks!
From FGMassBalance.cpp
static FGMatrix33 ReadInertiaMatrix(Element* document)
{
double bixx, biyy, bizz, bixy, bixz, biyz;
bixx = biyy = bizz = bixy = bixz = biyz = 0.0;
if (document->FindElement("ixx"))
bixx = document->FindElementValueAsNumberConvertTo("ixx", "SLUGFT2");
if (document->FindElement("iyy"))
biyy = document->FindElementValueAsNumberConvertTo("iyy", "SLUGFT2");
if (document->FindElement("izz"))
bizz = document->FindElementValueAsNumberConvertTo("izz", "SLUGFT2");
if (document->FindElement("ixy"))
bixy = document->FindElementValueAsNumberConvertTo("ixy", "SLUGFT2");
if (document->FindElement("ixz"))
bixz = document->FindElementValueAsNumberConvertTo("ixz", "SLUGFT2");
if (document->FindElement("iyz"))
biyz = document->FindElementValueAsNumberConvertTo("iyz", "SLUGFT2");
// Transform the inertia products from the structural frame to the body frame
// and create the inertia matrix.
if (document->GetAttributeValue("negated_crossproduct_inertia") == string("false"))
return FGMatrix33( bixx, bixy, -bixz,
bixy, biyy, biyz,
-bixz, biyz, bizz );
else
return FGMatrix33( bixx, -bixy, bixz,
-bixy, biyy, -biyz,
bixz, -biyz, bizz );
Beta Was this translation helpful? Give feedback.
All reactions