Skip to content

JSBSim's randomseed impact on turbulence generation #1250

Answered by seanmcleod70
Dobid asked this question in Q&A
Discussion options

You must be logged in to vote

At first glance, I'll double-check later, my guess is that when the turbulence is switched off, the Turbulence() method on line 146 is no longer called, but the vector vTurbulenceNED isn't zeroed out, rather it's left at it's last value it was assigned by the last call to Turbulence(). In which case it'll be a simple fix.

bool FGWinds::Run(bool Holding)
{
if (FGModel::Run(Holding)) return true;
if (Holding) return false;
if (turbType != ttNone) Turbulence(in.AltitudeASL);
if (oneMinusCosineGust.gustProfile.Running) CosineGust();
vTotalWindNED = vWindNED + vGustNED + vCo…

Replies: 17 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@bcoconni
Comment options

@Dobid
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Dobid
Comment options

Comment options

You must be logged in to vote
2 replies
@bcoconni
Comment options

@Dobid
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Dobid
Comment options

You must be logged in to vote
1 reply
@Dobid
Comment options

Comment options

You must be logged in to vote
1 reply
@Dobid
Comment options

Comment options

You must be logged in to vote
1 reply
@Dobid
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bcoconni
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants