Go to the documentation of this file.
41 #include "params/ThermalCapacitor.hh"
42 #include "params/ThermalModel.hh"
43 #include "params/ThermalReference.hh"
44 #include "params/ThermalResistor.hh"
54 :
SimObject(
p), _temperature(
p.temperature), node(NULL)
69 :
SimObject(
p), _resistance(
p.resistance), node1(NULL), node2(NULL)
104 :
SimObject(
p), _capacitance(
p.capacitance), node1(NULL), node2(NULL)
158 node_equation = node_equation +
eq;
160 ls[
i] = node_equation;
182 ref->node->temp = ref->_temperature;
183 ref->node->isref =
true;
187 dom->getNode()->temp = dom->initialTemperature();
193 if (ref->node ==
n) {
243 temp = std::max(temp,
n->temp);
ThermalResistorParams Params
A ThermalDomain is used to group objects under that operate under the same temperature.
std::vector< ThermalCapacitor * > capacitors
std::vector< ThermalDomain * > domains
A ThermalNode is used to connect thermal entities, such as resistors, capacitors, references and doma...
void addReference(ThermalReference *r)
This class describes a linear equation with constant coefficients.
std::vector< double > solve() const
A ThermalReference is a thermal domain with fixed temperature.
ThermalResistor(const Params &p)
ThermalResistor.
ThermalCapacitorParams Params
LinearEquation getEquation(ThermalNode *tn, unsigned n, double step) const override
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
The class stores temperatures in Kelvin and provides helper methods to convert to/from Celsius.
constexpr double toKelvin() const
std::vector< ThermalResistor * > resistors
ThermalCapacitor(const Params &p)
ThermalCapacitor.
void schedule(Event &event, Tick when)
ClockedObjectParams Params
Parameters of ClockedObject.
LinearEquation getEquation(ThermalNode *tn, unsigned n, double step) const override
const double _capacitance
LinearEquation getEquation(ThermalNode *tn, unsigned n, double step) const override
A ThermalResistor is used to model a thermal resistance between two thermal domains.
std::vector< ThermalNode * > nodes
A ThermalCapacitor is used to model a thermal capacitance between two thermal domains.
const std::string & name()
std::vector< ThermalNode * > eq_nodes
void addDomain(ThermalDomain *d)
EventFunctionWrapper stepEvent
Stepping event to update the model values.
void addCapacitor(ThermalCapacitor *c)
ThermalReferenceParams Params
void startup() override
startup() is the final initialization call before simulation.
ThermalReference(const Params &p)
ThermalReference.
Tick curTick()
The universal simulation clock.
ThermalModel(const Params &p)
ThermalModel.
void addResistor(ThermalResistor *r)
const double _step
Step in seconds for thermal updates.
Temperature getTemperature() const
std::vector< ThermalReference * > references
std::vector< ThermalEntity * > entities
static Temperature fromKelvin(double _value)
Abstract superclass for simulation objects.
Generated on Tue Mar 23 2021 19:41:28 for gem5 by doxygen 1.8.17