SDK Question Reentry heating/ dynamic pressure

BruceJohnJennerLawso

Dread Lord of the Idiots
Addon Developer
Joined
Apr 14, 2012
Messages
2,585
Reaction score
0
Points
36
Hello, Im looking to add a destruction sequence to an addon vessel related to ground impacts and/or atmospheric reentry heating. I think I understand the work needed to simulate destroying the ship, creating debris, etc, but I would like to know how to get the hull temperature for a ship. I can see a lot of these functions documented in the Orbiter API reference, but I havent figured out how to actually use them in practice yet.
 
It's a relationship between the Dynamic Pressure "GetDynamicPressure()", the Airspeed "GetAirspeedVector(VECTOR3)" and the exposed surface of the vessel (depends of AOA, "GetAOA()"). Maybe the Mach Number too "GetMachNumber()". And, probably, the kind of material exposed is a factor.

But I don't have the formula, and I'd like to know it too. That's thermodynamics.
 
It's a relationship between the Dynamic Pressure "GetDynamicPressure()", the Airspeed "GetAirspeedVector(VECTOR3)" and the exposed surface of the vessel (depends of AOA, "GetAOA()"). Maybe the Mach Number too "GetMachNumber()". And, probably, the kind of material exposed is a factor.

But I don't have the formula, and I'd like to know it too. That's thermodynamics.

Youre sure? Maybe its just me, but I think the surface MFD displays external temp in Kelvins, and aerobrake MFD can show a max temp. I appreciate you finding those, but how can I implement them in the code? do I need to call it at say, the start of clbkPrestep/Poststep, if Im creating a destruction sequence, given a DYNP >= a given value? I recognize a lot of these calls from the giant PDF in the SDK directory, but I have no idea how to actually utulize them in code.
 
No, external temperature is just the temperature of the ambient air (or vacuum) around your spaceship. It doesn't take friction into account, nor the Sun heat flux (temperature is the same regardless of day/night).
 
No, external temperature is just the temperature of the ambient air (or vacuum) around your spaceship. It doesn't take friction into account, nor the Sun heat flux (temperature is the same regardless of day/night).

Okaaaay :huh:

Im not sure how vacuum itself can have a temperature. (although most spacecraft are never really in a perfect vaccuum)

If youre looking for equations, the link posted above is good, and I think Dansteph mentioned his method on the Arrow Freighter 2012 dev .

But, still, how do I implement those calls in code? do I call them at the start of a cpp section that will use them?
 
What is that doing in aeromedical part of the faa site? :hmm:

Lot of good information there though. Any Idea where this came from and where I might find some more like it? It's very seems very thorough and easy to understand.
 
Back
Top