Jump to content

Problem with timewarp and AddThermalFlux


Recommended Posts

I've been having a problem with AddThermalFlux and timewarp in a mod I'm working on. Basically, in exchange for constant heat output, the part constantly produces power. At 100x tmewarp, it's perfectly happy for extended periods of time. If I increase timewarp to 1000x, my test ship immediately overheats and occasionally exploads despite being equipped with sufficient radiators. Here's the line of code:

this.part.AddThermalFlux(Heat * TimeWarp.fixedDeltaTime)

Link to comment
Share on other sites

Analytic mode does the following:

1. Sum up all the fluxes on the vessel (i.e. all internal fluxes, all solar/body radiative fluxes)

2. Calculate a resting temperature based on what would be required to radiate out at that same wattage.

Analytic is essentially a "fast forward" button for thermo: it asks "what would be [a simplification of] the final state the vessel will acquire, in thermodynamic balance with its environemt". However, there's an interface you can use especially for this situation: it will tell your partmodule to slow down when the vessel starts overheating.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...