Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | List of all members
IAnalyticPreview Interface Reference

This interface allows parts to get a preview of analytic numbers, and then adjust their internal generation. More...

Public Member Functions

void AnalyticInfo (FlightIntegrator fi, double sunAndBodyIn, double backgroundRadiation, double radArea, double absEmissRatio, double internalFlux, double convCoeff, double ambientTemp, double maxPartTemp)
 Analytic will call this method once it has calculated these numbers, and before the final analytic temperature is calculated. More...
 
double InternalFluxAdjust ()
 This method is called after the Info method is called. The module can take the opportunity to report a change to internal generation, based on the preview numbers. The module should report the difference in kW between what it originally reported and the new number, not the new number itself, so if it originally reported 30kW, and now wants to only report 20, this should return -10. More...
 

Detailed Description

This interface allows parts to get a preview of analytic numbers, and then adjust their internal generation.

Member Function Documentation

void IAnalyticPreview.AnalyticInfo ( FlightIntegrator  fi,
double  sunAndBodyIn,
double  backgroundRadiation,
double  radArea,
double  absEmissRatio,
double  internalFlux,
double  convCoeff,
double  ambientTemp,
double  maxPartTemp 
)

Analytic will call this method once it has calculated these numbers, and before the final analytic temperature is calculated.

Parameters
fiThe FlightIntegrator for the vessel
sunAndBodyInFlux in from the sun and the body (in kW)
backgroundRadiationbackground radiation temperature in K
radAreaweighted radiative area in m^2 (i.e. assume emissivity of 1.0)
absEmissRatioratio of weighted absorptivity to emissivity
internalFluxexisting internal flux in kW
convCoeffConvective coefficient
ambientTempAmbient atmospheric temperature in K
maxPartTempMaximum part temperature on the vessel
double IAnalyticPreview.InternalFluxAdjust ( )

This method is called after the Info method is called. The module can take the opportunity to report a change to internal generation, based on the preview numbers. The module should report the difference in kW between what it originally reported and the new number, not the new number itself, so if it originally reported 30kW, and now wants to only report 20, this should return -10.

Returns
new internal gen - old internal gen, in kW

The documentation for this interface was generated from the following file: