Question XRVesselCtrl API: Scram Diffusor Temperature

vdrorb

Member
Joined
Jan 23, 2011
Messages
16
Reaction score
0
Points
16
Greetings all,

i discovered a slight diffrence in the temeperature of the original 2d panel of the xr vehicle and my simpit.

i am getting the temp from here:
Code:
struct XREngineStateRead : public XREngineStateWrite
{
    double     TSFC;            // 0 <= n
    double     FlowRate;        // kg/sec
    double     Thrust;          // kN
    double     FuelLevel;       // 0 <= n <= 1.0
    double     MaxFuelMass;    
    double DiffuserTemp;        // degrees K      <--------- here
    double BurnerTemp;      .....

and its all fine beside at low tempeartures there is a diffrence between 2d panel and the DiffuserTemp. at high temps it shows the same temp.

attached shots of 2dpanel scram temp. - my display temp
for low temp its example 2d panel showing 288.1 K and i am getting 112.4
at high temp eg. 7821 K i am getting also 7821 K

any ideas?
 

Attachments

  • TempLow1.jpg
    TempLow1.jpg
    9 KB · Views: 16
  • TempLow2.jpg
    TempLow2.jpg
    3.6 KB · Views: 15
  • TempHigh1.jpg
    TempHigh1.jpg
    8.9 KB · Views: 16
  • TempHigh2.jpg
    TempHigh2.jpg
    3.7 KB · Views: 16

dbeachy1

O-F Administrator
Administrator
Orbiter Contributor
Addon Developer
Donator
Beta Tester
Joined
Jan 14, 2008
Messages
9,220
Reaction score
1,568
Points
203
Location
VA
Website
alteaaerospace.com
Preferred Pronouns
he/him
I looked into this and it's a bug in the XRVesselCtrl API. I just fixed it for the next patch release. Good catch! :thumbup:
 

vdrorb

Member
Joined
Jan 23, 2011
Messages
16
Reaction score
0
Points
16
what is the atmospheric temperature when you are running these tests?

Try max(atmosphere, SCRAM)

yep it has to do with the atmosphere temp (288 K at ground) in this example. but the display function is not max() because the displayed temperature is rising up to the DiffusorTemp late ...when DIffusorTemp is >1000K :tiphat:
 

dbeachy1

O-F Administrator
Administrator
Orbiter Contributor
Addon Developer
Donator
Beta Tester
Joined
Jan 14, 2008
Messages
9,220
Reaction score
1,568
Points
203
Location
VA
Website
alteaaerospace.com
Preferred Pronouns
he/him
Correct, it was a bug in the API code not related to atmosphere temperature. it's fixed now. :)
 
Top