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;
LinearEquation getEquation(ThermalNode *tn, unsigned n, double step) const override
void unserialize(CheckpointIn &cp) override
Unserialize an object.
ThermalReference(const Params *p)
ThermalReference.
void addReference(ThermalReference *r)
ThermalResistorParams Params
void addDomain(ThermalDomain *d)
void serialize(CheckpointOut &cp) const override
Serialize an object.
ThermalCapacitorParams Params
ClockedObjectParams Params
Parameters of ClockedObject.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
void setNodes(ThermalNode *n1, ThermalNode *n2)
void setNodes(ThermalNode *n1, ThermalNode *n2)
void unserialize(CheckpointIn &cp) override
Unserialize an object.
void serialize(CheckpointOut &cp) const override
Serialize an object.
LinearEquation getEquation(ThermalNode *tn, unsigned n, double step) const override
ThermalModel(const Params *p)
ThermalModel.
A ThermalCapacitor is used to model a thermal capacitance between two thermal domains.
EventWrapper< ThermalModel,&ThermalModel::doStep > stepEvent
Stepping event to update the model values.
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.
A ThermalNode is used to connect thermal entities, such as resistors, capacitors, references and doma...
void addResistor(ThermalResistor *r)
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.
void addCapacitor(ThermalCapacitor *c)
ThermalCapacitor(const Params *p)
ThermalCapacitor.
double _step
Step in seconds for thermal updates.
A ThermalResistor is used to model a thermal resistance between two thermal domains.
void startup() override
startup() is the final initialization call before simulation.
void serialize(CheckpointOut &cp) const override
Serialize an object.
std::vector< ThermalEntity * > entities
Abstract superclass for simulation objects.
std::vector< ThermalCapacitor * > capacitors
ThermalReferenceParams Params
A ThermalModel is the element which ties all thermal objects together and provides the thermal solver...
ThermalResistor(const Params *p)
ThermalResistor.
void setNode(ThermalNode *n)