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"
57 :
SimObject(
p), _temperature(
p.temperature), node(NULL)
72 :
SimObject(
p), _resistance(
p.resistance), node1(NULL), node2(NULL)
107 :
SimObject(
p), _capacitance(
p.capacitance), node1(NULL), node2(NULL)
161 node_equation = node_equation +
eq;
163 ls[
i] = node_equation;
185 ref->node->temp = ref->_temperature;
186 ref->node->isref =
true;
190 dom->getNode()->temp = dom->initialTemperature();
196 if (ref->node ==
n) {
246 temp = std::max(temp,
n->temp);
std::vector< ThermalNode * > eq_nodes
Tick curTick()
The universal simulation clock.
std::vector< double > solve() const
LinearEquation getEquation(ThermalNode *tn, unsigned n, double step) const override
LinearEquation getEquation(ThermalNode *tn, unsigned n, double step) const override
void addReference(ThermalReference *r)
std::vector< ThermalDomain * > domains
void addCapacitor(ThermalCapacitor *c)
void schedule(Event &event, Tick when)
The class stores temperatures in Kelvin and provides helper methods to convert to/from Celsius.
const double _capacitance
ThermalResistor(const Params &p)
ThermalResistor.
A ThermalCapacitor is used to model a thermal capacitance between two thermal domains.
std::vector< ThermalResistor * > resistors
std::vector< ThermalNode * > nodes
ThermalResistorParams Params
ThermalReference(const Params &p)
ThermalReference.
void startup() override
startup() is the final initialization call before simulation.
static Temperature fromKelvin(double _value)
EventFunctionWrapper stepEvent
Stepping event to update the model values.
ThermalCapacitorParams Params
ThermalModel(const Params &p)
ThermalModel.
A ThermalNode is used to connect thermal entities, such as resistors, capacitors, references and doma...
std::vector< ThermalReference * > references
This class describes a linear equation with constant coefficients.
A ThermalReference is a thermal domain with fixed temperature.
Abstract superclass for simulation objects.
constexpr double toKelvin() const
std::vector< ThermalCapacitor * > capacitors
const std::string & name()
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
A ThermalResistor is used to model a thermal resistance between two thermal domains.
std::vector< ThermalEntity * > entities
A ThermalDomain is used to group objects under that operate under the same temperature.
Temperature getTemperature() const
void addDomain(ThermalDomain *d)
ThermalReferenceParams Params
void addResistor(ThermalResistor *r)
const double _step
Step in seconds for thermal updates.
ClockedObjectParams Params
Parameters of ClockedObject.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
LinearEquation getEquation(ThermalNode *tn, unsigned n, double step) const override
ThermalCapacitor(const Params &p)
ThermalCapacitor.
Generated on Sun Jul 30 2023 01:56:59 for gem5 by doxygen 1.8.17