Jump to content

part.AddThermalFlux(double kiloWatts? not kiloJoules?)


Recommended Posts

Does AddThermalFlux really take kW, not kJ?  I'm working on a little PartModule to simulate climate control in a manned pod, and I want to transfer heat from the cabin compartment to the part.  The parameter in AddThermalFlux is named "kilowatts", so I assumed that I should not multiply the value I want to use by time before feeding it to the funciton.  However, this thread...

...says that they're multiplying the input by the timewarp value, which converts it to kJ.  So ... does anyone know if AddThermalFlux really takes Watts, or does it actually take Joules?

I'm calling it every FixedUpdate to transfer energy from the cabin's atmosphere to the part itself (or vice versa, depending on who's warmer), and I want to make sure I'm not adding / removing too much energy from the part.

 

Link to comment
Share on other sites

It's kilowatts as the input. and the AddthermalFlux multiplies it by fixedDeltaTime.
This changes to analytics mode when thermalMaxIntegrationWarp in Physics.cfg is reached.
and as NathanKell mentioned in that other thread you can use interfaces to alter this.
specifically:
IAnalyticTemperatureModifier
IAnalyticPreview
IAnalyticOverheatModule

Which are documented in the new doxygen API docs.

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...