Class in Zendir.Classes | Inherits from ThermalModel

Declaration

class SolarExposureThermalModel;

Description

A generalized solar exposure thermal model that can be attached to any PhysicalObject to compute solar heating power based on sun direction, exposed area, and user-defined shadow factor. The computed heating is fed into the thermal framework via PowerGeneration.

When attached to a , this model automatically uses the panel’s pre-computed projected area and efficiency to calculate waste heat (absorbed energy not converted to electricity).


Properties

DeclaredDescription
ExposedAreaThe exposed area of the surface subject to solar heating.This is the planar surface area used for projected-area computation.
In_SolarFluxMsgA solar flux message that measures the flux of the sun atthe current point in time.
In_SunPlanetStateMsgAn incoming planet state message for the sun.
In_TransformMsgA reference to the transform of the root objectthat will be used for the position and rotationof the object. This is connected automaticallyto the root’s Transform message if it does notyet exist.
OverrideFaceNormal_BUser-provided face normal in body frame (used when UseSunAngleOverride is true).Points outward from the exposed surface.
OverrideSunDirection_BUser-provided sun direction in body frame (used when UseSunAngleOverride is true).Points toward the sun.
RelativeNormalFace normal relative to the parent object, computed fromthe relative rotation and the parent’s transform.
ShadowFactorShadow factor on the exposed area from non-celestial sources.A value of 0 means no shadow, 1 means fully shadowed.
SolarAbsorbanceThe solar absorbance of the surface, representing the fractionof incident solar flux absorbed as heat.
UseSunAngleOverrideWhen true, OnUpdate uses user-provided sun direction and face normal instead ofcomputing from messages. Set via method, cleared viamethod.
InheritedDescription
AnalysisModelThe analysis model type used for this thermal model, which determineshow the thermal calculations are performed.
EmissivityThe emissivity of the object that this model isattached to, for radiative heat transfer calculations.
EnableSpaceRadiationA flag whether to radiate any remaining heat as a remainder of thesurface area if no connections are present to space.
IdealTemperatureThe ideal temperature of the object that this model isattached to, for thermal management calculations.
IsEnabledIs true if the object is currently enabled.
NameThe display name or tag of this object.
NetPowerThe net power of the object that this model is attached to,for thermal calculations. This is the total power generatedminus the total power lost through radiation and is used forthe calculation of the transfer.
Out_ThermalMsgOutput thermal message containing the thermal data produced bythe system.
ParentThe currently attached parent object.
PowerGenerationThe total amount of power generated internally by the objectthat this model is attached to, for thermal calculations.Positive for heating, negative for cooling (e.g. fuel tank gas expansion).
SpecificHeatCapacityThe specific heat capacity of the object that this model isattached to, for thermal calculations.
SurfaceAreaThe total surface area of the object that this model isattached to, for radiative heat transfer calculations.
TemperatureThe current temperature of the object that this model isattached to.
TemperatureDotThe change in temperature of the object that this model isattached to, for thermal calculations over time.
ThermalConductivityThe thermal conductivity of the object that this model isattached to, for thermal calculations.
ThicknessThe thickness of the object that this model isattached to, for thermal calculations.

Methods

DeclaredDescription
ResetSunAngleCalculationResets the sun angle calculation to use the default message-based computation.Call this method to revert to the standard sun vector calculation from transform and planet state messages.
SetSunAngleSets the sun angle calculation to use user-provided vectors instead of computing from messages.Call this method when you have your own calculation of the sun-to-surface angle.Only applies when parent is not a SolarPanel (SolarPanel has its own override mechanism).
InheritedDescription
ConnectConnects this thermal model to another thermal model with the specifiedsurface area and connection type.
DisconnectDisconnects two thermal models, removing any thermal connections between them.
FindParentWithIDReturns an attached parent that satisfies the specified ID.
FindParentWithTypeReturns an attached parent that satisfies the specified type.
FindRootWithIDReturns a root object that satisfies the specified ID.
FindRootWithTypeReturns a root object that satisfies the specified type.
GetRootConnectionCountGets the number of thermal connections associated with the root objectthat this model is attached to.
GetRootModelsGets the thermal models associated with a given physical object, based onthe root object that this model is attached to.
GetThermalMassReturns the thermal mass of the object this model is attached to.
GetTotalConnectionAreaGets the total connection area for a given thermal model.
InitialiseLoads the thermal model for a lookup analysis model. This willattempt to load the CSV file specified in the file path. Thisassumes the first column is time and the ‘indexed’ column is temperature.