40 #ifndef __SIM_THERMAL_MODEL_HH__ 41 #define __SIM_THERMAL_MODEL_HH__ 45 #include "params/ThermalCapacitor.hh" 46 #include "params/ThermalModel.hh" 47 #include "params/ThermalReference.hh" 48 #include "params/ThermalResistor.hh" 64 typedef ThermalResistorParams
Params;
76 double step)
const override;
93 typedef ThermalCapacitorParams
Params;
100 double step)
const override;
129 double step)
const override;
162 double getTemp()
const;
ThermalResistorParams Params
ThermalCapacitorParams Params
void setNodes(ThermalNode *n1, ThermalNode *n2)
void setNodes(ThermalNode *n1, ThermalNode *n2)
A ThermalCapacitor is used to model a thermal capacitance between two thermal domains.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
ThermalModelParams Params
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
std::vector< ThermalNode * > eq_nodes
ClockedObject declaration and implementation.
A ThermalDomain is used to group objects under that operate under the same temperature.
std::vector< ThermalNode * > nodes
std::vector< ThermalDomain * > domains
LinearEquation getEquation(ThermalNode *tn, unsigned n, double step) const override
void addNode(ThermalNode *n)
void serialize(CheckpointOut &cp) const override
Serialize an object.
EventFunctionWrapper stepEvent
Stepping event to update the model values.
A ThermalNode is used to connect thermal entities, such as resistors, capacitors, references and doma...
std::vector< ThermalReference * > references
std::ostream CheckpointOut
A ThermalReference is a thermal domain with fixed temperature.
An abstract class that represents any thermal entity which is used in the circuital thermal equivalen...
std::vector< ThermalResistor * > resistors
This class describes a linear equation with constant coefficients.
double _step
Step in seconds for thermal updates.
A ThermalResistor is used to model a thermal resistance between two thermal domains.
std::vector< ThermalEntity * > entities
Abstract superclass for simulation objects.
std::vector< ThermalCapacitor * > capacitors
ThermalReferenceParams Params
ThermalResistor(const Params *p)
ThermalResistor.
void setNode(ThermalNode *n)
virtual void startup()
startup() is the final initialization call before simulation.