Pulse adds COVID-19 Simulation Support
×
SEThermalCircuitCalculator Class Reference

#include <SEThermalCircuitCalculator.h>

Inherits SECircuitCalculator< SEThermalCircuit, SEThermalCircuitNode, SEThermalCircuitPath, HeatCapacitanceUnit, PowerUnit, HeatInductanceUnit, TemperatureUnit, EnergyUnit, HeatResistanceUnit >.

Public Member Functions

 SEThermalCircuitCalculator (Logger *logger)
 
 SEThermalCircuitCalculator (const HeatCapacitanceUnit &, const PowerUnit &, const HeatInductanceUnit &, const TemperatureUnit &, const EnergyUnit &, const HeatResistanceUnit &, Logger *logger)
 
virtual ~SEThermalCircuitCalculator ()
 
- Public Member Functions inherited from SECircuitCalculator< SEThermalCircuit, SEThermalCircuitNode, SEThermalCircuitPath, HeatCapacitanceUnit, PowerUnit, HeatInductanceUnit, TemperatureUnit, EnergyUnit, HeatResistanceUnit >
 SECircuitCalculator (const CapacitanceUnit &c, const FluxUnit &f, const InductanceUnit &i, const PotentialUnit &p, const QuantityUnit &q, const ResistanceUnit &r, Logger *logger)
 
virtual ~SECircuitCalculator ()
 
virtual void SetEigenSolver (EigenCircuitSolver s)
 
virtual void SetEigenSolver (EigenCircuitSolver::Type t)
 
virtual void Process (CircuitType &circuit, double timeStep_s)
 Calculates the Next circuit values. More...
 
virtual void PostProcess (CircuitType &circuit)
 Advances time. More...
 
- Public Member Functions inherited from Loggable
 Loggable (Logger *logger=nullptr)
 
 Loggable (std::string const &logfile)
 
virtual ~Loggable ()
 
virtual LoggerGetLogger () const
 
virtual void SetLogger (Logger &logger)
 
virtual void Debug (std::string const &msg, std::string const &origin=empty) const
 
virtual void Debug (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Debug (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Info (std::string const &msg, std::string const &origin=empty) const
 
virtual void Info (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (const std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::string const &msg, std::string const &origin=empty) const
 
virtual void Warning (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Error (std::string const &msg, std::string const &origin=empty) const
 
virtual void Error (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Error (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::string const &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::ostream &msg, std::string const &origin=empty) const
 
std::string to_string (int i)
 
std::string to_string (unsigned int i)
 
std::string to_string (size_t t)
 
std::string to_string (float f)
 
std::string to_string (double d)
 

Additional Inherited Members

- Static Public Attributes inherited from Loggable
static const std::string empty
 
- Protected Member Functions inherited from SECircuitCalculator< SEThermalCircuit, SEThermalCircuitNode, SEThermalCircuitPath, HeatCapacitanceUnit, PowerUnit, HeatInductanceUnit, TemperatureUnit, EnergyUnit, HeatResistanceUnit >
virtual void ParseIn ()
 Set up the equations to solve the circuit. More...
 
virtual void Solve ()
 Solve for unknowns. More...
 
virtual void ParseOut ()
 Assign the Solver solution vector values to the appropriate places. More...
 
virtual void CalculateFluxes ()
 Calculate and set all Path Flow values. More...
 
virtual void CalculateQuantities ()
 Calculate and set all Path Volumes. More...
 
virtual bool CheckAndModifyValves ()
 Check if the solutions meets all Valve criteria, and modify a Valve state if not. More...
 
virtual bool IsCurrentValveStateUnique ()
 Check if the current Valve state combination has already been analyzed. More...
 
virtual void PopulateAMatrix (NodeType &nKCL, PathType &p, double dMultiplier, bool hasPotentialSource=false)
 Add a value to the appropriate location in the Jacobian matrix. More...
 
- Protected Attributes inherited from SECircuitCalculator< SEThermalCircuit, SEThermalCircuitNode, SEThermalCircuitPath, HeatCapacitanceUnit, PowerUnit, HeatInductanceUnit, TemperatureUnit, EnergyUnit, HeatResistanceUnit >
std::stringstream m_ss
 
double m_dT_s
 
double m_currentTime_s
 
double m_refPotential
 
CircuitType * m_circuit
 
EigenCircuitSolver m_solver
 
std::set< uint64_t > m_valveStates
 
std::map< PathType *, size_t > m_potentialSources
 
const CapacitanceUnit & m_CapacitanceUnit
 
const FluxUnit & m_FluxUnit
 
const InductanceUnit & m_InductanceUnit
 
const PotentialUnit & m_PotentialUnit
 
const QuantityUnit & m_QuantityUnit
 
const ResistanceUnit & m_ResistanceUnit
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Constructor & Destructor Documentation

◆ SEThermalCircuitCalculator() [1/2]

SEThermalCircuitCalculator::SEThermalCircuitCalculator ( Logger logger)

◆ SEThermalCircuitCalculator() [2/2]

SEThermalCircuitCalculator::SEThermalCircuitCalculator ( const HeatCapacitanceUnit c,
const PowerUnit f,
const HeatInductanceUnit i,
const TemperatureUnit p,
const EnergyUnit q,
const HeatResistanceUnit r,
Logger logger 
)

◆ ~SEThermalCircuitCalculator()

SEThermalCircuitCalculator::~SEThermalCircuitCalculator ( )
virtual

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.