The Environment class characterizes the environment and manages interactions between the body its surroundings. More...
#include <Environment.h>

Public Member Functions | |
virtual | ~Environment () override |
const char * | classname () const override |
size_t | hash_code () const override |
void | Clear () override |
void | Initialize () override |
Initializes system properties to valid homeostatic values. More... | |
virtual bool | Load (const CDM::BioGearsEnvironmentData &in) |
virtual CDM::BioGearsEnvironmentData * | Unload () const override |
void | AtSteadyState () override |
Notify systems that steady state has been achieved. More... | |
void | PreProcess () override |
Preprocess prepares the cardiovascular system for the circuit solver. More... | |
void | Process () override |
There is nothing to do here. Processing the combined Energy-Environment circuit is handled by the Energy system. More... | |
void | PostProcess () override |
There is nothing to do here. Postprocessing the combined Energy-Environment circuit is handled by the Energy system. More... | |
void | StateChange () override |
Resets environment parameters. More... | |
![]() | |
SEEnvironment (SESubstanceManager &substances) | |
~SEEnvironment () override | |
bool | Load (const CDM::EnvironmentData &in) |
bool | Load (const char *patientFile) |
bool | Load (const std::string &patientFile) |
Tree< const char * > | GetPhysiologyRequestGraph () const override |
bool | ProcessChange (const SEEnvironmentChange &action) |
bool | ProcessChange (const SEInitialEnvironment &change) |
const SEScalar * | GetScalar (const char *name) override |
const SEScalar * | GetScalar (const std::string &name) override |
std::string | GetName () const |
const char * | GetName_cStr () const |
void | SetName (const char *name) |
void | SetName (const std::string &name) |
bool | HasName () const |
void | InvalidateName () |
bool | HasConditions () const |
SEEnvironmentalConditions & | GetConditions () |
const SEEnvironmentalConditions * | GetConditions () const |
void | RemoveConditions () |
bool | HasConvectiveHeatLoss () const |
SEScalarPower & | GetConvectiveHeatLoss () |
double | GetConvectiveHeatLoss (const PowerUnit &unit) const |
bool | HasConvectiveHeatTranferCoefficient () const |
SEScalarHeatConductancePerArea & | GetConvectiveHeatTranferCoefficient () |
double | GetConvectiveHeatTranferCoefficient (const HeatConductancePerAreaUnit &unit) const |
bool | HasEvaporativeHeatLoss () const |
SEScalarPower & | GetEvaporativeHeatLoss () |
double | GetEvaporativeHeatLoss (const PowerUnit &unit) const |
bool | HasEvaporativeHeatTranferCoefficient () const |
SEScalarHeatConductancePerArea & | GetEvaporativeHeatTranferCoefficient () |
double | GetEvaporativeHeatTranferCoefficient (const HeatConductancePerAreaUnit &unit) const |
bool | HasRadiativeHeatLoss () const |
SEScalarPower & | GetRadiativeHeatLoss () |
double | GetRadiativeHeatLoss (const PowerUnit &unit) const |
bool | HasRadiativeHeatTranferCoefficient () const |
SEScalarHeatConductancePerArea & | GetRadiativeHeatTranferCoefficient () |
double | GetRadiativeHeatTranferCoefficient (const HeatConductancePerAreaUnit &unit) const |
bool | HasRespirationHeatLoss () const |
SEScalarPower & | GetRespirationHeatLoss () |
double | GetRespirationHeatLoss (const PowerUnit &unit) const |
bool | HasSkinHeatLoss () const |
SEScalarPower & | GetSkinHeatLoss () |
double | GetSkinHeatLoss (const PowerUnit &unit) const |
![]() | |
SESystem (Logger *logger) | |
virtual | ~SESystem () |
bool | Load (const CDM::SystemData &in) |
![]() | |
Loggable () | |
Loggable (Logger *log) | |
virtual | ~Loggable () |
virtual Logger * | GetLogger () const |
Static Public Member Functions | |
static size_t | TypeHash () |
static constexpr char const *const | TypeTag () |
![]() | |
static size_t | TypeHash () |
static constexpr char const *const | TypeTag () |
![]() | |
static const SEScalar * | GetScalar (const char *name, std::vector< SESystem * > *systems) |
static const SEScalar * | GetScalar (const std::string &name, std::vector< SESystem * > *systems) |
Protected Member Functions | |
Environment (BioGears &bg) | |
virtual void | Unload (CDM::BioGearsEnvironmentData &data) const |
void | SetUp () override |
void | ProcessActions () |
Apply environment specific actions. More... | |
void | CalculateSupplementalValues () |
Calculate intermediate values to be used later. More... | |
void | CalculateRadiation () |
Determine the effects of radiation. More... | |
void | CalculateConvection () |
Determine the effects of convection. More... | |
void | CalculateEvaporation () |
Determine the effects of evaporation. More... | |
void | CalculateRespiration () |
Determine the effects of respiration. More... | |
![]() | |
void | Unload (CDM::EnvironmentData &data) const |
![]() | |
void | Unload (CDM::SystemData &data) const |
![]() | |
virtual void | Debug (const char *msg, const char *origin="") const |
virtual void | Debug (const std::string &msg, const std::string &origin=empty) const |
virtual void | Debug (std::ostream &msg, const std::string &origin=empty) const |
virtual void | Info (const char *msg, const char *origin="") const |
virtual void | Info (const std::string &msg, const std::string &origin=empty) const |
virtual void | Info (std::ostream &msg, const std::string &origin=empty) const |
virtual void | Warning (const char *msg, const char *origin="") const |
virtual void | Warning (const std::string &msg, const std::string &origin=empty) const |
virtual void | Warning (std::ostream &msg, const std::string &origin=empty) const |
virtual void | Error (const char *msg, const char *origin="") const |
virtual void | Error (const std::string msg, const std::string origin=empty) const |
virtual void | Error (std::ostream &msg, const std::string &origin=empty) const |
virtual void | Fatal (const char *msg, const char *origin="") const |
virtual void | Fatal (const std::string &msg, const std::string &origin=empty) const |
virtual void | Fatal (std::ostream &msg, const std::string &origin=empty) const |
![]() | |
virtual void | LoadState () |
Static Protected Member Functions | |
static auto | make_unique (BioGears &bg) -> std::unique_ptr< Environment > |
Friends | |
class | BioGears |
class | BioGearsEngineTest |
Additional Inherited Members | |
![]() | |
static const std::string | empty |
static const char * | empty_cStr |
Detailed Description
The Environment class characterizes the environment and manages interactions between the body its surroundings.
Constructor & Destructor Documentation
|
protected |
|
overridevirtual |
Member Function Documentation
|
overridevirtual |
Notify systems that steady state has been achieved.
Reimplemented from biogears::BioGearsSystem.
|
protected |
Determine the effects of convection.
This determines the circuit element values and system data outputs associated with convection heat transfer based on feedback.
|
protected |
Determine the effects of evaporation.
This determines the circuit element values and system data outputs associated with evaporation heat transfer based on feedback.
: The units of this constant are incorrect on the CDM–they should be W_Per_m2_Pa (no support for this unit currently)
|
protected |
Determine the effects of radiation.
This determines the circuit element values and system data outputs associated with radiation heat transfer based on feedback.
|
protected |
Determine the effects of respiration.
This determines the circuit element values and system data outputs associated with respiration heat transfer based on feedback.
|
protected |
Calculate intermediate values to be used later.
These computed values will be used in the other feedback methods.
|
inlineoverridevirtual |
Reimplemented from biogears::SEEnvironment.
|
overridevirtual |
Reimplemented from biogears::SEEnvironment.
|
inlineoverridevirtual |
Reimplemented from biogears::SEEnvironment.
|
overridevirtual |
Initializes system properties to valid homeostatic values.
Reimplemented from biogears::BioGearsSystem.
|
virtual |
|
staticprotected |
|
overridevirtual |
There is nothing to do here. Postprocessing the combined Energy-Environment circuit is handled by the Energy system.
Implements biogears::BioGearsSystem.
|
overridevirtual |
Preprocess prepares the cardiovascular system for the circuit solver.
This function uses feedback to calculate thermal properties and circuit element values for the next engine state.
Implements biogears::BioGearsSystem.
|
overridevirtual |
There is nothing to do here. Processing the combined Energy-Environment circuit is handled by the Energy system.
Implements biogears::BioGearsSystem.
|
protected |
Apply environment specific actions.
Handle active heating and/or cooling. This will set the active heat flow source and/or the active temperature source. The applied area or fraction is used to determine the average patient application, since we're using a one dimensional model. They can be called individually or will sum together if called in combination. Note that the action manager will handle removing the actions (i.e. will return false for has calls).
- Error:
- Warning: SurfaceArea and SurfaceAreaFraction are both set. The largest fraction will be used.
- Error:
- Warning: Neither SurfaceArea nor SurfaceAreaFraction are set. A fraction of 1 will be used.
- Error:
- Warning: Thermal application effective area exceeds the total skin surface area. A fraction of 1 will be used.
- Error:
- Warning: SurfaceArea and SurfaceAreaFraction are both set. The largest fraction will be used.
- Error:
- Warning: Neither SurfaceArea nor SurfaceAreaFraction are set. A fraction of 1 will be used.
- Error:
- Warning: Thermal application effective area exceeds the total skin surface area. A fraction of 1 will be used.
- Error:
- Warning: AppliedSurfaceArea and AppliedSurfaceAreaFraction are both set. The largest fraction will be used.
- Error:
- Warning: Neither AppliedSurfaceArea nor AppliedSurfaceAreaFraction are set. A fraction of 1 will be used.
- Error:
- Warning: Thermal application effective area exceeds the total skin surface area. A fraction of 1 will be used.
|
overrideprotectedvirtual |
Implements biogears::BioGearsSystem.
|
overridevirtual |
Resets environment parameters.
This is called any time the environment change action/condition. It sets the ambient node values needed for the fluid systems.
- Error:
- Fatal: Total ambient/environment gas volume fractions must sum to 1.0.
Implements biogears::SEEnvironment.
|
inlinestatic |
|
inlinestatic |
|
overridevirtual |
Reimplemented from biogears::SEEnvironment.
|
protectedvirtual |
Friends And Related Function Documentation
|
friend |
|
friend |
Member Data Documentation
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |