<
The Pulse Team is excited to announce the Pulse Physiology Engine 4.1.0 release. Upgrade now to get the best in dynamic simulation.
×

#include <SEGasCompartment.h>

Inherits SEFluidCompartment< SEGasCompartmentLink, SEGasTransportVertex, SEGasTransportSubstance, SEGasSubstanceQuantity >.

Public Member Functions

virtual ~SEGasCompartment ()
 
virtual void StateChange ()
 
virtual void Balance (BalanceGasBy e)
 
virtual void AddChild (SEGasCompartment &child)
 
virtual const std::vector< SEGasCompartment * > & GetChildren ()
 
virtual const std::vector< SEGasCompartment * > & GetLeaves ()
 
- Public Member Functions inherited from SEFluidCompartment< SEGasCompartmentLink, SEGasTransportVertex, SEGasTransportSubstance, SEGasSubstanceQuantity >
virtual ~SEFluidCompartment ()
 
virtual void Clear ()
 
virtual std::string GetName () const
 
virtual const SEScalarGetScalar (const std::string &name)
 
virtual bool HasChildren () const
 
virtual bool HasNodeMapping () const
 
virtual SECompartmentNodes< FLUID_COMPARTMENT_NODE > & GetNodeMapping ()
 
virtual void MapNode (SEFluidCircuitNode &node)
 
virtual bool HasInFlow () const
 
virtual const SEScalarVolumePerTimeGetInFlow () const
 
virtual double GetInFlow (const VolumePerTimeUnit &unit) const
 
virtual bool HasOutFlow () const
 
virtual const SEScalarVolumePerTimeGetOutFlow () const
 
virtual double GetOutFlow (const VolumePerTimeUnit &unit) const
 
virtual bool HasPressure () const
 
virtual SEScalarPressureGetPressure ()
 
virtual double GetPressure (const PressureUnit &unit) const
 
virtual bool HasVolume () const
 
virtual SEScalarVolumeGetVolume ()
 
virtual double GetVolume (const VolumeUnit &unit) const
 
virtual bool HasSubstanceQuantities () const
 
virtual bool HasSubstanceQuantity (const SESubstance &substance) const
 
virtual SubstanceQuantityType * GetSubstanceQuantity (const SESubstance &substance) const
 
virtual const std::vector< SubstanceQuantityType *> & GetSubstanceQuantities () const
 
virtual void ZeroSubstanceQuantities ()
 
virtual void AddLink (LinkType &link)
 
virtual void RemoveLink (LinkType &link)
 
virtual void RemoveLinks ()
 
virtual const std::vector< LinkType *> & GetLinks ()
 
virtual bool HasChild (const SEFluidCompartment &cmpt)
 
- Public Member Functions inherited from SECompartment
virtual ~SECompartment ()
 
- 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
 

Protected Member Functions

 SEGasCompartment (const std::string &name, Logger *logger)
 
virtual SEGasSubstanceQuantityCreateSubstanceQuantity (SESubstance &substance, bool zeroOut=true)
 
- Protected Member Functions inherited from SEFluidCompartment< SEGasCompartmentLink, SEGasTransportVertex, SEGasTransportSubstance, SEGasSubstanceQuantity >
 SEFluidCompartment (const std::string &name, Logger *logger)
 
virtual void RemoveSubstanceQuantity (const SESubstance &substance)
 
virtual bool HasQuantity () const
 
virtual SEScalarVolumeGetQuantity ()
 
virtual double CalculateInFlow_mL_Per_s () const
 
virtual double CalculateOutFlow_mL_Per_s () const
 
virtual std::vector< TransportSubstanceType *> & GetTransportSubstances ()
 
- Protected Member Functions inherited from SECompartment
 SECompartment (const std::string &name, Logger *logger)
 

Protected Attributes

std::vector< SEGasCompartment * > m_Children
 
std::vector< SEGasCompartment * > m_Leaves
 
- Protected Attributes inherited from SEFluidCompartment< SEGasCompartmentLink, SEGasTransportVertex, SEGasTransportSubstance, SEGasSubstanceQuantity >
SEScalarVolumePerTimem_InFlow
 
SEScalarVolumePerTimem_OutFlow
 
SEScalarPressurem_Pressure
 
SEScalarVolumem_Volume
 
std::vector< SubstanceQuantityType *> m_SubstanceQuantities
 
std::vector< TransportSubstanceType *> m_TransportSubstances
 
std::vector< LinkType *> m_Links
 
std::vector< LinkType *> m_IncomingLinks
 
std::vector< LinkType *> m_OutgoingLinks
 
std::vector< SEFluidCompartment *> m_FluidChildren
 
SECompartmentNodes< FLUID_COMPARTMENT_NODE > m_Nodes
 
- Protected Attributes inherited from SECompartment
std::string m_Name
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class PBCompartment
 
class SECompartmentManager
 

Additional Inherited Members

- Static Public Member Functions inherited from SECompartment
template<typename CompartmentType >
static void FindLeaves (CompartmentType &cmpt, std::vector< CompartmentType *> &leaves)
 
- Static Public Attributes inherited from Loggable
static const std::string empty
 

Constructor & Destructor Documentation

◆ SEGasCompartment()

SEGasCompartment::SEGasCompartment ( const std::string &  name,
Logger logger 
)
protected

◆ ~SEGasCompartment()

SEGasCompartment::~SEGasCompartment ( )
virtual

Member Function Documentation

◆ AddChild()

void SEGasCompartment::AddChild ( SEGasCompartment child)
virtual

◆ Balance()

void SEGasCompartment::Balance ( BalanceGasBy  e)
virtual

◆ CreateSubstanceQuantity()

SEGasSubstanceQuantity & SEGasCompartment::CreateSubstanceQuantity ( SESubstance substance,
bool  zeroOut = true 
)
protectedvirtual

◆ GetChildren()

virtual const std::vector<SEGasCompartment*>& SEGasCompartment::GetChildren ( )
inlinevirtual

◆ GetLeaves()

virtual const std::vector<SEGasCompartment*>& SEGasCompartment::GetLeaves ( )
inlinevirtual

◆ StateChange()

void SEGasCompartment::StateChange ( )
virtual

Implements SECompartment.

Friends And Related Function Documentation

◆ PBCompartment

friend class PBCompartment
friend

◆ SECompartmentManager

friend class SECompartmentManager
friend

Member Data Documentation

◆ m_Children

std::vector<SEGasCompartment*> SEGasCompartment::m_Children
protected

◆ m_Leaves

std::vector<SEGasCompartment*> SEGasCompartment::m_Leaves
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.