Go to the documentation of this file.
41 #include "params/ThermalCapacitor.hh"
42 #include "params/ThermalReference.hh"
43 #include "params/ThermalResistor.hh"
53 :
SimObject(
p), _temperature(
p->temperature), node(NULL)
58 ThermalReferenceParams::create()
86 :
SimObject(
p), _resistance(
p->resistance), node1(NULL), node2(NULL)
91 ThermalResistorParams::create()
139 :
SimObject(
p), _capacitance(
p->capacitance), node1(NULL), node2(NULL)
144 ThermalCapacitorParams::create()
200 ThermalModelParams::create()
228 node_equation = node_equation +
eq;
230 ls[
i] = node_equation;
252 ref->node->temp = ref->_temperature;
253 ref->node->isref =
true;
257 dom->getNode()->temp = dom->initialTemperature();
263 if (ref->node ==
n) {
300 temp = std::max(temp,
n->temp);
ThermalResistorParams Params
A ThermalDomain is used to group objects under that operate under the same temperature.
void serialize(CheckpointOut &cp) const override
Serialize an object.
std::vector< ThermalCapacitor * > capacitors
std::vector< ThermalDomain * > domains
#define UNSERIALIZE_SCALAR(scalar)
void unserialize(CheckpointIn &cp) override
Unserialize an object.
A ThermalNode is used to connect thermal entities, such as resistors, capacitors, references and doma...
void serialize(CheckpointOut &cp) const override
Serialize an object.
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.
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 ...
ThermalResistor(const Params *p)
ThermalResistor.
std::vector< ThermalResistor * > resistors
void schedule(Event &event, Tick when)
void serialize(CheckpointOut &cp) const override
Serialize an object.
LinearEquation getEquation(ThermalNode *tn, unsigned n, double step) const override
ThermalReference(const Params *p)
ThermalReference.
LinearEquation getEquation(ThermalNode *tn, unsigned n, double step) const override
double _step
Step in seconds for thermal updates.
A ThermalResistor is used to model a thermal resistance between two thermal domains.
void serialize(CheckpointOut &cp) const override
Serialize an object.
std::vector< ThermalNode * > nodes
A ThermalCapacitor is used to model a thermal capacitance between two thermal domains.
const std::string & name()
#define SERIALIZE_SCALAR(scalar)
std::vector< ThermalNode * > eq_nodes
void addDomain(ThermalDomain *d)
EventFunctionWrapper stepEvent
Stepping event to update the model values.
ClockedObjectParams Params
Parameters of ClockedObject.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
void addCapacitor(ThermalCapacitor *c)
ThermalReferenceParams Params
std::ostream CheckpointOut
void startup() override
startup() is the final initialization call before simulation.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
void addResistor(ThermalResistor *r)
ThermalCapacitor(const Params *p)
ThermalCapacitor.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
std::vector< ThermalReference * > references
std::vector< ThermalEntity * > entities
Tick curTick()
The current simulated tick.
Abstract superclass for simulation objects.
ThermalModel(const Params *p)
ThermalModel.
Generated on Wed Sep 30 2020 14:02:14 for gem5 by doxygen 1.8.17