#include <CommonDataModelTest.h>

Inherits SETestManager.

Public Member Functions

 CommonDataModelTest (Logger *logger=nullptr)
 
virtual ~CommonDataModelTest ()
 
virtual bool RunTest (const std::string &testName, const std::string &sOutputDirectory) override
 
void BasicCircuitTest (const std::string &sOutputDirectory)
 Runs the basic circuit unit test. More...
 
void SeriesRCDCTest (const std::string &sOutputDirectory)
 
void SeriesRCSINTest (const std::string &sOutputDirectory)
 
void SeriesRCPULSETest (const std::string &sOutputDirectory)
 
void SeriesRDCTest (const std::string &sOutputDirectory)
 
void SeriesRSINTest (const std::string &sOutputDirectory)
 
void SeriesRPULSETest (const std::string &sOutputDirectory)
 
void SeriesRLDCTest (const std::string &sOutputDirectory)
 
void SeriesRLSINTest (const std::string &sOutputDirectory)
 
void SeriesRLPULSETest (const std::string &sOutputDirectory)
 
void ParallelRDCTest (const std::string &sOutputDirectory)
 
void ParallelRSINTest (const std::string &sOutputDirectory)
 
void ParallelRPULSETest (const std::string &sOutputDirectory)
 
void ParallelRCDCTest (const std::string &sOutputDirectory)
 
void ParallelRCSINTest (const std::string &sOutputDirectory)
 
void ParallelRCPULSETest (const std::string &sOutputDirectory)
 
void ParallelRLDCTest (const std::string &sOutputDirectory)
 
void ParallelRLSINTest (const std::string &sOutputDirectory)
 
void ParallelRLPULSETest (const std::string &sOutputDirectory)
 
void ParallelRLSINCenteredTest (const std::string &sOutputDirectory)
 
void SeriesRLCDCTest (const std::string &sOutputDirectory)
 
void SeriesRLCSINTest (const std::string &sOutputDirectory)
 
void SeriesRLCPULSETest (const std::string &sOutputDirectory)
 
void ParallelRLCDCTest (const std::string &sOutputDirectory)
 
void ParallelRLCSINTest (const std::string &sOutputDirectory)
 
void ParallelRLCPULSETest (const std::string &sOutputDirectory)
 
void SwitchRCDCTest (const std::string &sOutputDirectory)
 
void SwitchRCSINTest (const std::string &sOutputDirectory)
 
void SwitchRCPULSETest (const std::string &sOutputDirectory)
 
void Comprehensive1DCTest (const std::string &sOutputDirectory)
 
void Comprehensive1SINTest (const std::string &sOutputDirectory)
 
void Comprehensive1PULSETest (const std::string &sOutputDirectory)
 
void SimpleDiodeDCTest (const std::string &sOutputDirectory)
 
void SimpleDiodeSINTest (const std::string &sOutputDirectory)
 
void SimpleDiodePULSETest (const std::string &sOutputDirectory)
 
void SeriesRCDCCurrentTest (const std::string &sOutputDirectory)
 
void SeriesRCSINCurrentTest (const std::string &sOutputDirectory)
 
void SeriesRCPULSECurrentTest (const std::string &sOutputDirectory)
 
void ParallelRCDCCurrentTest (const std::string &sOutputDirectory)
 
void ParallelRCSINCurrentTest (const std::string &sOutputDirectory)
 
void ParallelRCPULSECurrentTest (const std::string &sOutputDirectory)
 
void SeriesCapDCTest (const std::string &sOutputDirectory)
 
void SeriesCapSINTest (const std::string &sOutputDirectory)
 
void SeriesCapPULSETest (const std::string &sOutputDirectory)
 
void ParallelRDCCurrentTest (const std::string &sOutputDirectory)
 
void ParallelRSINCurrentTest (const std::string &sOutputDirectory)
 
void ParallelRPULSECurrentTest (const std::string &sOutputDirectory)
 
void CurrentCompDCTest (const std::string &sOutputDirectory)
 
void CurrentCompSINTest (const std::string &sOutputDirectory)
 
void CurrentCompPULSETest (const std::string &sOutputDirectory)
 
void SeriesRLDCCurrentTest (const std::string &sOutputDirectory)
 
void SeriesRLSINCurrentTest (const std::string &sOutputDirectory)
 
void SeriesRLPULSECurrentTest (const std::string &sOutputDirectory)
 
void ParallelRLDCCurrentTest (const std::string &sOutputDirectory)
 
void ParallelRLSINCurrentTest (const std::string &sOutputDirectory)
 
void ParallelRLPULSECurrentTest (const std::string &sOutputDirectory)
 
void BasicDiodeDCCurrentTest (const std::string &sOutputDirectory)
 
void BasicDiodeSINCurrentTest (const std::string &sOutputDirectory)
 
void BasicDiodePULSECurrentTest (const std::string &sOutputDirectory)
 
void SwitchRCDCCurrentTest (const std::string &sOutputDirectory)
 
void SwitchRCSINCurrentTest (const std::string &sOutputDirectory)
 
void SwitchRCPULSECurrentTest (const std::string &sOutputDirectory)
 
void SeriesRLCDCCurrentTest (const std::string &sOutputDirectory)
 
void SeriesRLCSINCurrentTest (const std::string &sOutputDirectory)
 
void SeriesRLCPULSECurrentTest (const std::string &sOutputDirectory)
 
void ParallelRLCDCCurrentTest (const std::string &sOutputDirectory)
 
void ParallelRLCSINCurrentTest (const std::string &sOutputDirectory)
 
void ParallelRLCPULSECurrentTest (const std::string &sOutputDirectory)
 
void SeriesPressureSourceAdditionDCTest (const std::string &sOutputDirectory)
 
void SeriesPressureSourceAdditionSINTest (const std::string &sOutputDirectory)
 
void SeriesPressureSourceAdditionPULSETest (const std::string &sOutputDirectory)
 
void SeriesCurrentSourceAdditionDCTest (const std::string &sOutputDirectory)
 
void SeriesCurrentSourceAdditionSINTest (const std::string &sOutputDirectory)
 
void SeriesCurrentSourceAdditionPULSETest (const std::string &sOutputDirectory)
 
void ParallelPressureSourceAdditionDCTest (const std::string &sOutputDirectory)
 
void ParallelPressureSourceAdditionSINTest (const std::string &sOutputDirectory)
 
void ParallelPressureSourceAdditionPULSETest (const std::string &sOutputDirectory)
 
void ParallelCurrentSourceAdditionDCTest (const std::string &sOutputDirectory)
 
void ParallelCurrentSourceAdditionSINTest (const std::string &sOutputDirectory)
 
void ParallelCurrentSourceAdditionPULSETest (const std::string &sOutputDirectory)
 
void SeriesCapDCCurrentTest (const std::string &sOutputDirectory)
 
void SeriesCapSINCurrentTest (const std::string &sOutputDirectory)
 
void SeriesCapPULSECurrentTest (const std::string &sOutputDirectory)
 
void ParallelCapDCTest (const std::string &sOutputDirectory)
 
void ParallelCapSINTest (const std::string &sOutputDirectory)
 
void ParallelCapPULSETest (const std::string &sOutputDirectory)
 
void ParallelCapDCCurrentTest (const std::string &sOutputDirectory)
 
void ParallelCapSINCurrentTest (const std::string &sOutputDirectory)
 
void ParallelCapPULSECurrentTest (const std::string &sOutputDirectory)
 
void SeriesIndDCTest (const std::string &sOutputDirectory)
 
void SeriesIndSINTest (const std::string &sOutputDirectory)
 
void SeriesIndPULSETest (const std::string &sOutputDirectory)
 
void SeriesIndDCCurrentTest (const std::string &sOutputDirectory)
 
void SeriesIndSINCurrentTest (const std::string &sOutputDirectory)
 
void SeriesIndPULSECurrentTest (const std::string &sOutputDirectory)
 
void ParallelIndDCTest (const std::string &sOutputDirectory)
 
void ParallelIndSINTest (const std::string &sOutputDirectory)
 
void ParallelIndPULSETest (const std::string &sOutputDirectory)
 
void ParallelIndDCCurrentTest (const std::string &sOutputDirectory)
 
void ParallelIndSINCurrentTest (const std::string &sOutputDirectory)
 
void ParallelIndPULSECurrentTest (const std::string &sOutputDirectory)
 
void BadDiodeDCTest (const std::string &sOutputDirectory)
 
void BadDiodeSINTest (const std::string &sOutputDirectory)
 
void BadDiodePULSETest (const std::string &sOutputDirectory)
 
void ValidationComprehensive1DCTest (const std::string &sOutputDirectory)
 
void ValidationComprehensive1SINTest (const std::string &sOutputDirectory)
 
void ValidationComprehensive1PULSETest (const std::string &sOutputDirectory)
 
void ValidationComprehensive1SINCenteredTest (const std::string &sOutputDirectory)
 
void ValidationComprehensive2DCTest (const std::string &sOutputDirectory)
 
void ValidationComprehensive2SINTest (const std::string &sOutputDirectory)
 
void ValidationComprehensive2PULSETest (const std::string &sOutputDirectory)
 
void ValidationComprehensive2SINCenteredTest (const std::string &sOutputDirectory)
 
void ElectricalCircuitTest (const std::string &sOutputDirectory)
 
void FluidCircuitTest (const std::string &sOutputDirectory)
 
void ThermalCircuitTest (const std::string &sOutputDirectory)
 
void CombinedCircuitTest (const std::string &sOutputDirectory)
 Tests the combined circuit methodology. More...
 
void CircuitErrorTest (const std::string &sOutputDirectory)
 Tests the circuit errors. More...
 
void DynamicallyChangingCircuitTest (const std::string &sOutputDirectory)
 Tests to ensure circuits can be changed dynamically. More...
 
void NonZeroReferencePositive (const std::string &sOutputDirectory)
 Tests the non-zero reference circuit methodology. More...
 
void NonZeroReferenceNegative (const std::string &sOutputDirectory)
 Tests the non-zero reference circuit methodology. More...
 
void PolarizedCapacitorTest (const std::string &sOutputDirectory)
 Tests the polarized element methodology. More...
 
void PreChargeComplianceZeroVolume (const std::string &sOutputDirectory)
 
void PreChargeComplianceNonZeroVolume (const std::string &sOutputDirectory)
 
void ComplianceVolumeChange (const std::string &sOutputDirectory)
 
void CircuitLockingTest (const std::string &sOutputDirectory)
 
void GasCompartmentTest (const std::string &sOutputDirectory)
 
void LiquidCompartmentTest (const std::string &sOutputDirectory)
 
void ThermalCompartmentTest (const std::string &sOutputDirectory)
 
void TissueCompartmentTest (const std::string &sOutputDirectory)
 
void LargeFlowTransportTest (const std::string &sOutputDirectory)
 
void LiquidTransportTest (const std::string &sOutputDirectory)
 
void GasTransportTest (const std::string &sOutputDirectory)
 
void BasicBlackBoxComparisonTest (const std::string &sOutputDirectory)
 
void BasicBlackBoxTest (const std::string &sOutputDirectory)
 
void SimpleBlackBoxTest (const std::string &sOutputDirectory)
 
void WindkesselBlackBoxTest (const std::string &sOutputDirectory)
 
void ReadPatientDirectory (const std::string &sOutputDirectory)
 
void ReadSubstanceDirectory (const std::string &sOutputDirectory)
 
void ScalarTest (const std::string &sOutputDirectory)
 
void UnitsTest (const std::string &sOutputDirectory)
 
- Public Member Functions inherited from SETestManager
 SETestManager (Logger *logger=nullptr)
 
virtual ~SETestManager ()=default
 
- 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 Types

typedef void(CommonDataModelTest::* testFunction) (const std::string &)
 
typedef std::map< std::string, testFunctiontestMap
 

Protected Member Functions

virtual void FillFunctionMap () override
 
void RunTest (const std::string &sOutputDirectory, const std::string &testName, enumCDMTestSourceType sourceType, int testIndex)
 
void TestSetup7SeriesRCDC ()
 
void TestSetup7SeriesRCSIN ()
 
void TestSetup7SeriesRCPULSE ()
 
void TestSetup8SeriesRDC ()
 
void TestSetup8SeriesRSIN ()
 
void TestSetup8SeriesRPULSE ()
 
void TestSetup9SeriesRLDC ()
 
void TestSetup9SeriesRLSIN ()
 
void TestSetup9SeriesRLPULSE ()
 
void TestSetup10ParallelRDC ()
 
void TestSetup10ParallelRSIN ()
 
void TestSetup10ParallelRPULSE ()
 
void TestSetup11ParallelRCDC ()
 
void TestSetup11ParallelRCSIN ()
 
void TestSetup11ParallelRCPULSE ()
 
void TestSetup12ParallelRLDC ()
 
void TestSetup12ParallelRLSIN ()
 
void TestSetup12ParallelRLPULSE ()
 
void TestSetup12ParallelRLSINCentered ()
 
void TestSetup13SeriesRLCDC ()
 
void TestSetup13SeriesRLCSIN ()
 
void TestSetup13SeriesRLCPULSE ()
 
void TestSetup14ParallelRLCDC ()
 
void TestSetup14ParallelRLCSIN ()
 
void TestSetup14ParallelRLCPULSE ()
 
void TestSetup15SwitchRCDC ()
 
void TestSetup15SwitchRCSIN ()
 
void TestSetup15SwitchRCPULSE ()
 
void TestSetup16Comprehensive1DC ()
 
void TestSetup16Comprehensive1SIN ()
 
void TestSetup16Comprehensive1PULSE ()
 
void TestSetup17BasicDiodeDC ()
 
void TestSetup17BasicDiodeSIN ()
 
void TestSetup17BasicDiodePULSE ()
 
void TestSetup18RCSeriesDCCurrent ()
 
void TestSetup18RCSeriesSINCurrent ()
 
void TestSetup18RCSeriesPulseCurrent ()
 
void TestSetup19RCParallelDCCurrent ()
 
void TestSetup19RCParallelSINCurrent ()
 
void TestSetup19RCParallelPulseCurrent ()
 
void TestSetup20SeriesCapDC ()
 
void TestSetup20SeriesCapSIN ()
 
void TestSetup20SeriesCapPulse ()
 
void TestSetup21ParallelRDCCurrent ()
 
void TestSetup21ParallelRSINCurrent ()
 
void TestSetup21ParallelRPulseCurrent ()
 
void TestSetup22CurrentCompDC ()
 
void TestSetup22CurrentCompSIN ()
 
void TestSetup22CurrentCompPulse ()
 
void TestSetup23SeriesRLDCCurrent ()
 
void TestSetup23SeriesRLSINCurrent ()
 
void TestSetup23SeriesRLPULSECurrent ()
 
void TestSetup24ParallelRLDCCurrent ()
 
void TestSetup24ParallelRLSINCurrent ()
 
void TestSetup24ParallelRLPULSECurrent ()
 
void TestSetup25BasicDiodeDCCurrent ()
 
void TestSetup25BasicDiodeSINCurrent ()
 
void TestSetup25BasicDiodePULSECurrent ()
 
void TestSetup26SwitchRCDCCurrent ()
 
void TestSetup26SwitchRCSINCurrent ()
 
void TestSetup26SwitchRCPULSECurrent ()
 
void TestSetup27SeriesRLCDCCurrent ()
 
void TestSetup27SeriesRLCSINCurrent ()
 
void TestSetup27SeriesRLCPULSECurrent ()
 
void TestSetup28ParallelRLCDCCurrent ()
 
void TestSetup28ParallelRLCSINCurrent ()
 
void TestSetup28ParallelRLCPULSECurrent ()
 
void TestSetup29SeriesPressureSourceAdditionDC ()
 
void TestSetup29SeriesPressureSourceAdditionSIN ()
 
void TestSetup29SeriesPressureSourceAdditionPULSE ()
 
void TestSetup30SeriesCurrentSourceAdditionDC ()
 
void TestSetup30SeriesCurrentSourceAdditionSIN ()
 
void TestSetup30SeriesCurrentSourceAdditionPULSE ()
 
void TestSetup31ParallelPressureSourceAdditionDC ()
 
void TestSetup31ParallelPressureSourceAdditionSIN ()
 
void TestSetup31ParallelPressureSourceAdditionPULSE ()
 
void TestSetup32ParallelCurrentSourceAdditionDC ()
 
void TestSetup32ParallelCurrentSourceAdditionSIN ()
 
void TestSetup32ParallelCurrrentSourceAdditionPULSE ()
 
void TestSetup33SeriesCapDCCurrent ()
 
void TestSetup33SeriesCapSINCurrent ()
 
void TestSetup33SeriesCapPulseCurrent ()
 
void TestSetup34ParallelCapDC ()
 
void TestSetup34ParallelCapSIN ()
 
void TestSetup34ParallelCapPulse ()
 
void TestSetup35ParallelCapDCCurrent ()
 
void TestSetup35ParallelCapSINCurrent ()
 
void TestSetup35ParallelCapPulseCurrent ()
 
void TestSetup36SeriesIndDC ()
 
void TestSetup36SeriesIndSIN ()
 
void TestSetup36SeriesIndPulse ()
 
void TestSetup37SeriesIndDCCurrent ()
 
void TestSetup37SeriesIndSINCurrent ()
 
void TestSetup37SeriesIndPulseCurrent ()
 
void TestSetup38ParallelIndDC ()
 
void TestSetup38ParallelIndSIN ()
 
void TestSetup38ParallelIndPulse ()
 
void TestSetup39ParallelIndDCCurrent ()
 
void TestSetup39ParallelIndSINCurrent ()
 
void TestSetup39ParallelIndPulseCurrent ()
 
void TestSetup40BadDiodeDC ()
 
void TestSetup40BadDiodeSIN ()
 
void TestSetup40BadDiodePulse ()
 
void TestSetup41ValidationComprehensive1DC ()
 
void TestSetup41ValidationComprehensive1SIN ()
 
void TestSetup41ValidationComprehensive1Pulse ()
 
void TestSetup41ValidationComprehensive1SINCentered ()
 
void TestSetup42ValidationComprehensive2DC ()
 
void TestSetup42ValidationComprehensive2SIN ()
 
void TestSetup42ValidationComprehensive2Pulse ()
 
void TestSetup42ValidationComprehensive2SINCentered ()
 
void TestPreProcess1 (double dT, int i)
 Performs the preprocess math for any DC circuit in the circuit unit tests. More...
 
void TestPreProcess2 (double dT, int i)
 Performs the preprocess math for the circuits that use sinusoidal sources. More...
 
void TestPreProcess3 (double dT, int i)
 Performs the preprocess math for the circuits that use pulse train sources. More...
 
void TestPreProcess4 (double dT, int i)
 Performs the preprocess math for the circuits that use sinusoidal sources with pressure sources centered around 0. More...
 
void BasicCircuitPreProcess (double dT)
 Controls the PreProcess logic for the BasicCircuit test. More...
 
void FluidPreProcess (SEFluidCircuit &c, double dT)
 
void TestCircuitSerialization (const std::string &fileName)
 
void TestCompartmentSerialization (SECompartmentManager &mgr, const std::string &fileName)
 
void TestGasFlows (SETestSuite &testSuite, SESubstanceManager &subMgr)
 
void TestGasHierarchyFlows (SETestSuite &testSuite, SESubstanceManager &subMgr)
 
void TestFlow (SETestCase &testCase, SEGasCompartment &cmpt, double inflow_mL_Per_s, double outflow_mL_Per_s)
 
void TestGasHierarchy (SETestSuite &testSuite, SESubstanceManager &subMgr)
 
void TestGasCircuitVolumesPressuresAndFlows (SETestSuite &testSuite, SESubstanceManager &subMgr)
 
void CheckGasPressureAndVolume (SETestCase &testCase, SEGasCompartment &cmpt)
 
void TestGasSubstanceQuantity (SETestCase &testCase, SEGasCompartment &cmpt, SEGasSubstanceQuantity &subQ, double totalSubVolume_mL, double totalVolume_mL)
 
void TestUpdateGasLinks (SETestSuite &testSuite, SESubstanceManager &subMgr)
 
void TestLiquidFlows (SETestSuite &testSuite, SESubstanceManager &subMgr)
 
void TestLiquidHierarchyFlows (SETestSuite &testSuite, SESubstanceManager &subMgr)
 
void TestFlow (SETestCase &testCase, SELiquidCompartment &cmpt, double inflow_mL_Per_s, double outflow_mL_Per_s)
 
void TestLiquidHierarchy (SETestSuite &testSuite, SESubstanceManager &subMgr)
 
void TestLiquidCircuitVolumesPressuresAndFlows (SETestSuite &testSuite, SESubstanceManager &subMgr)
 
void TestLiquidHierarchySaturation (SETestSuite &testSuite, SESubstanceManager &subMgr)
 
void CheckLiquidPressureAndVolume (SETestCase &testCase, SELiquidCompartment &cmpt)
 
void TestLiquidSubstanceQuantity (SETestCase &testCase, SELiquidCompartment &cmpt, SELiquidSubstanceQuantity &subQ, double totalMass_mg, double totalVolume_mL)
 
void TestUpdateLiquidLinks (SETestSuite &testSuite, SESubstanceManager &subMgr)
 
void TestThermalFlows (SETestSuite &testSuite, SESubstanceManager &subMgr)
 
void TestThermalFlowHierarchy (SETestSuite &testSuite, SESubstanceManager &subMgr)
 
void TestFlow (SETestCase &testCase, SEThermalCompartment &cmpt, double inflow_kcal_Per_s, double outflow_kcal_Per_s)
 
void TestThermalHierarchy (SETestSuite &testSuite, SESubstanceManager &subMgr)
 
void TestCircuitHeatTemperatureAndFlows (SETestSuite &testSuite, SESubstanceManager &subMgr)
 
void CheckTemperatureAndHeat (SETestCase &testCase, SEThermalCompartment &cmpt)
 
void ConvertList (std::vector< std::string > stringList)
 

Protected Attributes

double m_PercentTolerance
 
std::string m_OutDirectory
 
testMap cdmMap
 
SECircuitManagerm_Circuits
 
- Protected Attributes inherited from SETestManager
std::stringstream m_ss
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Additional Inherited Members

- Static Public Attributes inherited from Loggable
static const std::string empty
 

Member Typedef Documentation

◆ testFunction

typedef void(CommonDataModelTest::* CommonDataModelTest::testFunction) (const std::string &)
protected

◆ testMap

typedef std::map<std::string, testFunction> CommonDataModelTest::testMap
protected

Constructor & Destructor Documentation

◆ CommonDataModelTest()

CommonDataModelTest::CommonDataModelTest ( Logger logger = nullptr)

◆ ~CommonDataModelTest()

CommonDataModelTest::~CommonDataModelTest ( )
virtual

Member Function Documentation

◆ BadDiodeDCTest()

void CommonDataModelTest::BadDiodeDCTest ( const std::string &  sOutputDirectory)

◆ BadDiodePULSETest()

void CommonDataModelTest::BadDiodePULSETest ( const std::string &  sOutputDirectory)

◆ BadDiodeSINTest()

void CommonDataModelTest::BadDiodeSINTest ( const std::string &  sOutputDirectory)

◆ BasicBlackBoxComparisonTest()

void CommonDataModelTest::BasicBlackBoxComparisonTest ( const std::string &  sOutputDirectory)

◆ BasicBlackBoxTest()

void CommonDataModelTest::BasicBlackBoxTest ( const std::string &  sOutputDirectory)

◆ BasicCircuitPreProcess()

void CommonDataModelTest::BasicCircuitPreProcess ( double  dT)
protected

Controls the PreProcess logic for the BasicCircuit test.

Parameters
dTcontains the information about how much time has passed in the test

<DETAILED_DESCRIPTION>

◆ BasicCircuitTest()

void CommonDataModelTest::BasicCircuitTest ( const std::string &  outputDirectory)

Runs the basic circuit unit test.

Parameters
outputDirectorypoints to the unit test directory

This is a unit test for the circuit math. It runs for 100 seconds as opposed to the suite of other circuit unit tests that only run for 10 seconds each. It uses a pressure source outputting a sinusoidal waveform.

◆ BasicDiodeDCCurrentTest()

void CommonDataModelTest::BasicDiodeDCCurrentTest ( const std::string &  sOutputDirectory)

◆ BasicDiodePULSECurrentTest()

void CommonDataModelTest::BasicDiodePULSECurrentTest ( const std::string &  sOutputDirectory)

◆ BasicDiodeSINCurrentTest()

void CommonDataModelTest::BasicDiodeSINCurrentTest ( const std::string &  sOutputDirectory)

◆ CheckGasPressureAndVolume()

void CommonDataModelTest::CheckGasPressureAndVolume ( SETestCase testCase,
SEGasCompartment cmpt 
)
protected

◆ CheckLiquidPressureAndVolume()

void CommonDataModelTest::CheckLiquidPressureAndVolume ( SETestCase testCase,
SELiquidCompartment cmpt 
)
protected

◆ CheckTemperatureAndHeat()

void CommonDataModelTest::CheckTemperatureAndHeat ( SETestCase testCase,
SEThermalCompartment cmpt 
)
protected

◆ CircuitErrorTest()

void CommonDataModelTest::CircuitErrorTest ( const std::string &  sTestDirectory)

Tests the circuit errors.

Parameters
sTestDirectorypoints to the unit test directory

This tests the errors thrown when the circuit state is attempted to be calculated, but contains something improperly setup.

◆ CircuitLockingTest()

void CommonDataModelTest::CircuitLockingTest ( const std::string &  sOutputDirectory)

◆ CombinedCircuitTest()

void CommonDataModelTest::CombinedCircuitTest ( const std::string &  sTestDirectory)

Tests the combined circuit methodology.

Parameters
sTestDirectorypoints to the unit test directory

This tests the functionality of combining separate circuits into once single circuit that can be calculated, such as when the anesthesia machine connects to the respiratory system.

◆ ComplianceVolumeChange()

void CommonDataModelTest::ComplianceVolumeChange ( const std::string &  sOutputDirectory)

◆ Comprehensive1DCTest()

void CommonDataModelTest::Comprehensive1DCTest ( const std::string &  sOutputDirectory)

◆ Comprehensive1PULSETest()

void CommonDataModelTest::Comprehensive1PULSETest ( const std::string &  sOutputDirectory)

◆ Comprehensive1SINTest()

void CommonDataModelTest::Comprehensive1SINTest ( const std::string &  sOutputDirectory)

◆ ConvertList()

void CommonDataModelTest::ConvertList ( std::vector< std::string >  stringList)
protected

◆ CurrentCompDCTest()

void CommonDataModelTest::CurrentCompDCTest ( const std::string &  sOutputDirectory)

◆ CurrentCompPULSETest()

void CommonDataModelTest::CurrentCompPULSETest ( const std::string &  sOutputDirectory)

◆ CurrentCompSINTest()

void CommonDataModelTest::CurrentCompSINTest ( const std::string &  sOutputDirectory)

◆ DynamicallyChangingCircuitTest()

void CommonDataModelTest::DynamicallyChangingCircuitTest ( const std::string &  sTestDirectory)

Tests to ensure circuits can be changed dynamically.

Parameters
sTestDirectorypoints to the unit test directory

This tests the dynamic circuit methodology by changing path elements, as well as adding a path in the middle of a run.

◆ ElectricalCircuitTest()

void CommonDataModelTest::ElectricalCircuitTest ( const std::string &  sOutputDirectory)

◆ FillFunctionMap()

void CommonDataModelTest::FillFunctionMap ( )
overrideprotectedvirtual

Implements SETestManager.

◆ FluidCircuitTest()

void CommonDataModelTest::FluidCircuitTest ( const std::string &  sOutputDirectory)

◆ FluidPreProcess()

void CommonDataModelTest::FluidPreProcess ( SEFluidCircuit c,
double  dT 
)
protected

◆ GasCompartmentTest()

void CommonDataModelTest::GasCompartmentTest ( const std::string &  sOutputDirectory)

◆ GasTransportTest()

void CommonDataModelTest::GasTransportTest ( const std::string &  sOutputDirectory)

◆ LargeFlowTransportTest()

void CommonDataModelTest::LargeFlowTransportTest ( const std::string &  sOutputDirectory)

◆ LiquidCompartmentTest()

void CommonDataModelTest::LiquidCompartmentTest ( const std::string &  sOutputDirectory)

◆ LiquidTransportTest()

void CommonDataModelTest::LiquidTransportTest ( const std::string &  sOutputDirectory)

◆ NonZeroReferenceNegative()

void CommonDataModelTest::NonZeroReferenceNegative ( const std::string &  sTestDirectory)

Tests the non-zero reference circuit methodology.

Parameters
sTestDirectorypoints to the unit test directory

This tests the ability to solve a circuit correctly with a negative reference potential value.

◆ NonZeroReferencePositive()

void CommonDataModelTest::NonZeroReferencePositive ( const std::string &  sTestDirectory)

Tests the non-zero reference circuit methodology.

Parameters
sTestDirectorypoints to the unit test directory

This tests the ability to solve a circuit correctly with a positive and negative reference potential value.

◆ ParallelCapDCCurrentTest()

void CommonDataModelTest::ParallelCapDCCurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelCapDCTest()

void CommonDataModelTest::ParallelCapDCTest ( const std::string &  sOutputDirectory)

◆ ParallelCapPULSECurrentTest()

void CommonDataModelTest::ParallelCapPULSECurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelCapPULSETest()

void CommonDataModelTest::ParallelCapPULSETest ( const std::string &  sOutputDirectory)

◆ ParallelCapSINCurrentTest()

void CommonDataModelTest::ParallelCapSINCurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelCapSINTest()

void CommonDataModelTest::ParallelCapSINTest ( const std::string &  sOutputDirectory)

◆ ParallelCurrentSourceAdditionDCTest()

void CommonDataModelTest::ParallelCurrentSourceAdditionDCTest ( const std::string &  sOutputDirectory)

◆ ParallelCurrentSourceAdditionPULSETest()

void CommonDataModelTest::ParallelCurrentSourceAdditionPULSETest ( const std::string &  sOutputDirectory)

◆ ParallelCurrentSourceAdditionSINTest()

void CommonDataModelTest::ParallelCurrentSourceAdditionSINTest ( const std::string &  sOutputDirectory)

◆ ParallelIndDCCurrentTest()

void CommonDataModelTest::ParallelIndDCCurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelIndDCTest()

void CommonDataModelTest::ParallelIndDCTest ( const std::string &  sOutputDirectory)

◆ ParallelIndPULSECurrentTest()

void CommonDataModelTest::ParallelIndPULSECurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelIndPULSETest()

void CommonDataModelTest::ParallelIndPULSETest ( const std::string &  sOutputDirectory)

◆ ParallelIndSINCurrentTest()

void CommonDataModelTest::ParallelIndSINCurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelIndSINTest()

void CommonDataModelTest::ParallelIndSINTest ( const std::string &  sOutputDirectory)

◆ ParallelPressureSourceAdditionDCTest()

void CommonDataModelTest::ParallelPressureSourceAdditionDCTest ( const std::string &  sOutputDirectory)

◆ ParallelPressureSourceAdditionPULSETest()

void CommonDataModelTest::ParallelPressureSourceAdditionPULSETest ( const std::string &  sOutputDirectory)

◆ ParallelPressureSourceAdditionSINTest()

void CommonDataModelTest::ParallelPressureSourceAdditionSINTest ( const std::string &  sOutputDirectory)

◆ ParallelRCDCCurrentTest()

void CommonDataModelTest::ParallelRCDCCurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelRCDCTest()

void CommonDataModelTest::ParallelRCDCTest ( const std::string &  sOutputDirectory)

◆ ParallelRCPULSECurrentTest()

void CommonDataModelTest::ParallelRCPULSECurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelRCPULSETest()

void CommonDataModelTest::ParallelRCPULSETest ( const std::string &  sOutputDirectory)

◆ ParallelRCSINCurrentTest()

void CommonDataModelTest::ParallelRCSINCurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelRCSINTest()

void CommonDataModelTest::ParallelRCSINTest ( const std::string &  sOutputDirectory)

◆ ParallelRDCCurrentTest()

void CommonDataModelTest::ParallelRDCCurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelRDCTest()

void CommonDataModelTest::ParallelRDCTest ( const std::string &  sOutputDirectory)

◆ ParallelRLCDCCurrentTest()

void CommonDataModelTest::ParallelRLCDCCurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelRLCDCTest()

void CommonDataModelTest::ParallelRLCDCTest ( const std::string &  sOutputDirectory)

◆ ParallelRLCPULSECurrentTest()

void CommonDataModelTest::ParallelRLCPULSECurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelRLCPULSETest()

void CommonDataModelTest::ParallelRLCPULSETest ( const std::string &  sOutputDirectory)

◆ ParallelRLCSINCurrentTest()

void CommonDataModelTest::ParallelRLCSINCurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelRLCSINTest()

void CommonDataModelTest::ParallelRLCSINTest ( const std::string &  sOutputDirectory)

◆ ParallelRLDCCurrentTest()

void CommonDataModelTest::ParallelRLDCCurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelRLDCTest()

void CommonDataModelTest::ParallelRLDCTest ( const std::string &  sOutputDirectory)

◆ ParallelRLPULSECurrentTest()

void CommonDataModelTest::ParallelRLPULSECurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelRLPULSETest()

void CommonDataModelTest::ParallelRLPULSETest ( const std::string &  sOutputDirectory)

◆ ParallelRLSINCenteredTest()

void CommonDataModelTest::ParallelRLSINCenteredTest ( const std::string &  sOutputDirectory)

◆ ParallelRLSINCurrentTest()

void CommonDataModelTest::ParallelRLSINCurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelRLSINTest()

void CommonDataModelTest::ParallelRLSINTest ( const std::string &  sOutputDirectory)

◆ ParallelRPULSECurrentTest()

void CommonDataModelTest::ParallelRPULSECurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelRPULSETest()

void CommonDataModelTest::ParallelRPULSETest ( const std::string &  sOutputDirectory)

◆ ParallelRSINCurrentTest()

void CommonDataModelTest::ParallelRSINCurrentTest ( const std::string &  sOutputDirectory)

◆ ParallelRSINTest()

void CommonDataModelTest::ParallelRSINTest ( const std::string &  sOutputDirectory)

◆ PolarizedCapacitorTest()

void CommonDataModelTest::PolarizedCapacitorTest ( const std::string &  sTestDirectory)

Tests the polarized element methodology.

Parameters
sTestDirectorypoints to the unit test directory

This tests the functionality of a polarized capacitor and ensures that it functions normally when the Source Pressure is greater than the Target Pressure, and functions as an open switch when the Target Pressure is greater than the Source Pressure.

◆ PreChargeComplianceNonZeroVolume()

void CommonDataModelTest::PreChargeComplianceNonZeroVolume ( const std::string &  sOutputDirectory)

◆ PreChargeComplianceZeroVolume()

void CommonDataModelTest::PreChargeComplianceZeroVolume ( const std::string &  sOutputDirectory)

◆ ReadPatientDirectory()

void CommonDataModelTest::ReadPatientDirectory ( const std::string &  sOutputDirectory)

◆ ReadSubstanceDirectory()

void CommonDataModelTest::ReadSubstanceDirectory ( const std::string &  sOutputDirectory)

◆ RunTest() [1/2]

bool CommonDataModelTest::RunTest ( const std::string &  testName,
const std::string &  sOutputDirectory 
)
overridevirtual

Implements SETestManager.

◆ RunTest() [2/2]

void CommonDataModelTest::RunTest ( const std::string &  sOutputDirectory,
const std::string &  testName,
enumCDMTestSourceType  sourceType,
int  testIndex 
)
protected

◆ ScalarTest()

void CommonDataModelTest::ScalarTest ( const std::string &  sOutputDirectory)

◆ SeriesCapDCCurrentTest()

void CommonDataModelTest::SeriesCapDCCurrentTest ( const std::string &  sOutputDirectory)

◆ SeriesCapDCTest()

void CommonDataModelTest::SeriesCapDCTest ( const std::string &  sOutputDirectory)

◆ SeriesCapPULSECurrentTest()

void CommonDataModelTest::SeriesCapPULSECurrentTest ( const std::string &  sOutputDirectory)

◆ SeriesCapPULSETest()

void CommonDataModelTest::SeriesCapPULSETest ( const std::string &  sOutputDirectory)

◆ SeriesCapSINCurrentTest()

void CommonDataModelTest::SeriesCapSINCurrentTest ( const std::string &  sOutputDirectory)

◆ SeriesCapSINTest()

void CommonDataModelTest::SeriesCapSINTest ( const std::string &  sOutputDirectory)

◆ SeriesCurrentSourceAdditionDCTest()

void CommonDataModelTest::SeriesCurrentSourceAdditionDCTest ( const std::string &  sOutputDirectory)

◆ SeriesCurrentSourceAdditionPULSETest()

void CommonDataModelTest::SeriesCurrentSourceAdditionPULSETest ( const std::string &  sOutputDirectory)

◆ SeriesCurrentSourceAdditionSINTest()

void CommonDataModelTest::SeriesCurrentSourceAdditionSINTest ( const std::string &  sOutputDirectory)

◆ SeriesIndDCCurrentTest()

void CommonDataModelTest::SeriesIndDCCurrentTest ( const std::string &  sOutputDirectory)

◆ SeriesIndDCTest()

void CommonDataModelTest::SeriesIndDCTest ( const std::string &  sOutputDirectory)

◆ SeriesIndPULSECurrentTest()

void CommonDataModelTest::SeriesIndPULSECurrentTest ( const std::string &  sOutputDirectory)

◆ SeriesIndPULSETest()

void CommonDataModelTest::SeriesIndPULSETest ( const std::string &  sOutputDirectory)

◆ SeriesIndSINCurrentTest()

void CommonDataModelTest::SeriesIndSINCurrentTest ( const std::string &  sOutputDirectory)

◆ SeriesIndSINTest()

void CommonDataModelTest::SeriesIndSINTest ( const std::string &  sOutputDirectory)

◆ SeriesPressureSourceAdditionDCTest()

void CommonDataModelTest::SeriesPressureSourceAdditionDCTest ( const std::string &  sOutputDirectory)

◆ SeriesPressureSourceAdditionPULSETest()

void CommonDataModelTest::SeriesPressureSourceAdditionPULSETest ( const std::string &  sOutputDirectory)

◆ SeriesPressureSourceAdditionSINTest()

void CommonDataModelTest::SeriesPressureSourceAdditionSINTest ( const std::string &  sOutputDirectory)

◆ SeriesRCDCCurrentTest()

void CommonDataModelTest::SeriesRCDCCurrentTest ( const std::string &  sOutputDirectory)

◆ SeriesRCDCTest()

void CommonDataModelTest::SeriesRCDCTest ( const std::string &  sOutputDirectory)

◆ SeriesRCPULSECurrentTest()

void CommonDataModelTest::SeriesRCPULSECurrentTest ( const std::string &  sOutputDirectory)

◆ SeriesRCPULSETest()

void CommonDataModelTest::SeriesRCPULSETest ( const std::string &  sOutputDirectory)

◆ SeriesRCSINCurrentTest()

void CommonDataModelTest::SeriesRCSINCurrentTest ( const std::string &  sOutputDirectory)

◆ SeriesRCSINTest()

void CommonDataModelTest::SeriesRCSINTest ( const std::string &  sOutputDirectory)

◆ SeriesRDCTest()

void CommonDataModelTest::SeriesRDCTest ( const std::string &  sOutputDirectory)

◆ SeriesRLCDCCurrentTest()

void CommonDataModelTest::SeriesRLCDCCurrentTest ( const std::string &  sOutputDirectory)

◆ SeriesRLCDCTest()

void CommonDataModelTest::SeriesRLCDCTest ( const std::string &  sOutputDirectory)

◆ SeriesRLCPULSECurrentTest()

void CommonDataModelTest::SeriesRLCPULSECurrentTest ( const std::string &  sOutputDirectory)

◆ SeriesRLCPULSETest()

void CommonDataModelTest::SeriesRLCPULSETest ( const std::string &  sOutputDirectory)

◆ SeriesRLCSINCurrentTest()

void CommonDataModelTest::SeriesRLCSINCurrentTest ( const std::string &  sOutputDirectory)

◆ SeriesRLCSINTest()

void CommonDataModelTest::SeriesRLCSINTest ( const std::string &  sOutputDirectory)

◆ SeriesRLDCCurrentTest()

void CommonDataModelTest::SeriesRLDCCurrentTest ( const std::string &  sOutputDirectory)

◆ SeriesRLDCTest()

void CommonDataModelTest::SeriesRLDCTest ( const std::string &  sOutputDirectory)

◆ SeriesRLPULSECurrentTest()

void CommonDataModelTest::SeriesRLPULSECurrentTest ( const std::string &  sOutputDirectory)

◆ SeriesRLPULSETest()

void CommonDataModelTest::SeriesRLPULSETest ( const std::string &  sOutputDirectory)

◆ SeriesRLSINCurrentTest()

void CommonDataModelTest::SeriesRLSINCurrentTest ( const std::string &  sOutputDirectory)

◆ SeriesRLSINTest()

void CommonDataModelTest::SeriesRLSINTest ( const std::string &  sOutputDirectory)

◆ SeriesRPULSETest()

void CommonDataModelTest::SeriesRPULSETest ( const std::string &  sOutputDirectory)

◆ SeriesRSINTest()

void CommonDataModelTest::SeriesRSINTest ( const std::string &  sOutputDirectory)

◆ SimpleBlackBoxTest()

void CommonDataModelTest::SimpleBlackBoxTest ( const std::string &  sOutputDirectory)

◆ SimpleDiodeDCTest()

void CommonDataModelTest::SimpleDiodeDCTest ( const std::string &  sOutputDirectory)

◆ SimpleDiodePULSETest()

void CommonDataModelTest::SimpleDiodePULSETest ( const std::string &  sOutputDirectory)

◆ SimpleDiodeSINTest()

void CommonDataModelTest::SimpleDiodeSINTest ( const std::string &  sOutputDirectory)

◆ SwitchRCDCCurrentTest()

void CommonDataModelTest::SwitchRCDCCurrentTest ( const std::string &  sOutputDirectory)

◆ SwitchRCDCTest()

void CommonDataModelTest::SwitchRCDCTest ( const std::string &  sOutputDirectory)

◆ SwitchRCPULSECurrentTest()

void CommonDataModelTest::SwitchRCPULSECurrentTest ( const std::string &  sOutputDirectory)

◆ SwitchRCPULSETest()

void CommonDataModelTest::SwitchRCPULSETest ( const std::string &  sOutputDirectory)

◆ SwitchRCSINCurrentTest()

void CommonDataModelTest::SwitchRCSINCurrentTest ( const std::string &  sOutputDirectory)

◆ SwitchRCSINTest()

void CommonDataModelTest::SwitchRCSINTest ( const std::string &  sOutputDirectory)

◆ TestCircuitHeatTemperatureAndFlows()

void CommonDataModelTest::TestCircuitHeatTemperatureAndFlows ( SETestSuite testSuite,
SESubstanceManager subMgr 
)
protected

◆ TestCircuitSerialization()

void CommonDataModelTest::TestCircuitSerialization ( const std::string &  fileName)
protected

◆ TestCompartmentSerialization()

void CommonDataModelTest::TestCompartmentSerialization ( SECompartmentManager mgr,
const std::string &  fileName 
)
protected

◆ TestFlow() [1/3]

void CommonDataModelTest::TestFlow ( SETestCase testCase,
SEGasCompartment cmpt,
double  inflow_mL_Per_s,
double  outflow_mL_Per_s 
)
protected

◆ TestFlow() [2/3]

void CommonDataModelTest::TestFlow ( SETestCase testCase,
SELiquidCompartment cmpt,
double  inflow_mL_Per_s,
double  outflow_mL_Per_s 
)
protected

◆ TestFlow() [3/3]

void CommonDataModelTest::TestFlow ( SETestCase testCase,
SEThermalCompartment cmpt,
double  inflow_kcal_Per_s,
double  outflow_kcal_Per_s 
)
protected

◆ TestGasCircuitVolumesPressuresAndFlows()

void CommonDataModelTest::TestGasCircuitVolumesPressuresAndFlows ( SETestSuite testSuite,
SESubstanceManager subMgr 
)
protected

◆ TestGasFlows()

void CommonDataModelTest::TestGasFlows ( SETestSuite testSuite,
SESubstanceManager subMgr 
)
protected

◆ TestGasHierarchy()

void CommonDataModelTest::TestGasHierarchy ( SETestSuite testSuite,
SESubstanceManager subMgr 
)
protected

◆ TestGasHierarchyFlows()

void CommonDataModelTest::TestGasHierarchyFlows ( SETestSuite testSuite,
SESubstanceManager subMgr 
)
protected

◆ TestGasSubstanceQuantity()

void CommonDataModelTest::TestGasSubstanceQuantity ( SETestCase testCase,
SEGasCompartment cmpt,
SEGasSubstanceQuantity subQ,
double  totalSubVolume_mL,
double  totalVolume_mL 
)
protected

◆ TestLiquidCircuitVolumesPressuresAndFlows()

void CommonDataModelTest::TestLiquidCircuitVolumesPressuresAndFlows ( SETestSuite testSuite,
SESubstanceManager subMgr 
)
protected

◆ TestLiquidFlows()

void CommonDataModelTest::TestLiquidFlows ( SETestSuite testSuite,
SESubstanceManager subMgr 
)
protected

◆ TestLiquidHierarchy()

void CommonDataModelTest::TestLiquidHierarchy ( SETestSuite testSuite,
SESubstanceManager subMgr 
)
protected

◆ TestLiquidHierarchyFlows()

void CommonDataModelTest::TestLiquidHierarchyFlows ( SETestSuite testSuite,
SESubstanceManager subMgr 
)
protected

◆ TestLiquidHierarchySaturation()

void CommonDataModelTest::TestLiquidHierarchySaturation ( SETestSuite testSuite,
SESubstanceManager subMgr 
)
protected

◆ TestLiquidSubstanceQuantity()

void CommonDataModelTest::TestLiquidSubstanceQuantity ( SETestCase testCase,
SELiquidCompartment cmpt,
SELiquidSubstanceQuantity subQ,
double  totalMass_mg,
double  totalVolume_mL 
)
protected

◆ TestPreProcess1()

void CommonDataModelTest::TestPreProcess1 ( double  dT,
int  i 
)
protected

Performs the preprocess math for any DC circuit in the circuit unit tests.

Parameters
dTcontains the information about how much time has passed in the test
iholds the logic for which test is running

TestPreProcess1 is used for the tests that have DC drivers. It also contains the logic necessary to control a switch if the test calls for it.

◆ TestPreProcess2()

void CommonDataModelTest::TestPreProcess2 ( double  dT,
int  i 
)
protected

Performs the preprocess math for the circuits that use sinusoidal sources.

Parameters
dTcontains the information about how much time has passed in the test
iholds the logic for which test is running

TestPreProcess2 is used for the tests that have sinusoidal drivers. It also contains the logic necessary to control a switch if the test calls for it. The pressure sources in this preprocess are all offset from 0 so they never go negative.

◆ TestPreProcess3()

void CommonDataModelTest::TestPreProcess3 ( double  dT,
int  i 
)
protected

Performs the preprocess math for the circuits that use pulse train sources.

Parameters
dTcontains the information about how much time has passed in the test
iholds the logic for which test is running

3 is used for the tests that have pulse train drivers. It also contains the logic necessary to control a switch if the test calls for it.

◆ TestPreProcess4()

void CommonDataModelTest::TestPreProcess4 ( double  dT,
int  i 
)
protected

Performs the preprocess math for the circuits that use sinusoidal sources with pressure sources centered around 0.

Parameters
dTcontains the information about how much time has passed in the test
iholds the logic for which test is running

TestPreProcess4 is used for the tests that have sinusoidal drivers. It also contains the logic necessary to control a switch if the test calls for it. The pressure sources in this preprocess are not offset, so they can go negative.

◆ TestSetup10ParallelRDC()

void CommonDataModelTest::TestSetup10ParallelRDC ( )
protected

◆ TestSetup10ParallelRPULSE()

void CommonDataModelTest::TestSetup10ParallelRPULSE ( )
protected

◆ TestSetup10ParallelRSIN()

void CommonDataModelTest::TestSetup10ParallelRSIN ( )
protected

◆ TestSetup11ParallelRCDC()

void CommonDataModelTest::TestSetup11ParallelRCDC ( )
protected

◆ TestSetup11ParallelRCPULSE()

void CommonDataModelTest::TestSetup11ParallelRCPULSE ( )
protected

◆ TestSetup11ParallelRCSIN()

void CommonDataModelTest::TestSetup11ParallelRCSIN ( )
protected

◆ TestSetup12ParallelRLDC()

void CommonDataModelTest::TestSetup12ParallelRLDC ( )
protected

◆ TestSetup12ParallelRLPULSE()

void CommonDataModelTest::TestSetup12ParallelRLPULSE ( )
protected

◆ TestSetup12ParallelRLSIN()

void CommonDataModelTest::TestSetup12ParallelRLSIN ( )
protected

◆ TestSetup12ParallelRLSINCentered()

void CommonDataModelTest::TestSetup12ParallelRLSINCentered ( )
protected

◆ TestSetup13SeriesRLCDC()

void CommonDataModelTest::TestSetup13SeriesRLCDC ( )
protected

◆ TestSetup13SeriesRLCPULSE()

void CommonDataModelTest::TestSetup13SeriesRLCPULSE ( )
protected

◆ TestSetup13SeriesRLCSIN()

void CommonDataModelTest::TestSetup13SeriesRLCSIN ( )
protected

◆ TestSetup14ParallelRLCDC()

void CommonDataModelTest::TestSetup14ParallelRLCDC ( )
protected

◆ TestSetup14ParallelRLCPULSE()

void CommonDataModelTest::TestSetup14ParallelRLCPULSE ( )
protected

◆ TestSetup14ParallelRLCSIN()

void CommonDataModelTest::TestSetup14ParallelRLCSIN ( )
protected

◆ TestSetup15SwitchRCDC()

void CommonDataModelTest::TestSetup15SwitchRCDC ( )
protected

◆ TestSetup15SwitchRCPULSE()

void CommonDataModelTest::TestSetup15SwitchRCPULSE ( )
protected

◆ TestSetup15SwitchRCSIN()

void CommonDataModelTest::TestSetup15SwitchRCSIN ( )
protected

◆ TestSetup16Comprehensive1DC()

void CommonDataModelTest::TestSetup16Comprehensive1DC ( )
protected

◆ TestSetup16Comprehensive1PULSE()

void CommonDataModelTest::TestSetup16Comprehensive1PULSE ( )
protected

◆ TestSetup16Comprehensive1SIN()

void CommonDataModelTest::TestSetup16Comprehensive1SIN ( )
protected

◆ TestSetup17BasicDiodeDC()

void CommonDataModelTest::TestSetup17BasicDiodeDC ( )
protected

◆ TestSetup17BasicDiodePULSE()

void CommonDataModelTest::TestSetup17BasicDiodePULSE ( )
protected

◆ TestSetup17BasicDiodeSIN()

void CommonDataModelTest::TestSetup17BasicDiodeSIN ( )
protected

◆ TestSetup18RCSeriesDCCurrent()

void CommonDataModelTest::TestSetup18RCSeriesDCCurrent ( )
protected

◆ TestSetup18RCSeriesPulseCurrent()

void CommonDataModelTest::TestSetup18RCSeriesPulseCurrent ( )
protected

◆ TestSetup18RCSeriesSINCurrent()

void CommonDataModelTest::TestSetup18RCSeriesSINCurrent ( )
protected

◆ TestSetup19RCParallelDCCurrent()

void CommonDataModelTest::TestSetup19RCParallelDCCurrent ( )
protected

◆ TestSetup19RCParallelPulseCurrent()

void CommonDataModelTest::TestSetup19RCParallelPulseCurrent ( )
protected

◆ TestSetup19RCParallelSINCurrent()

void CommonDataModelTest::TestSetup19RCParallelSINCurrent ( )
protected

◆ TestSetup20SeriesCapDC()

void CommonDataModelTest::TestSetup20SeriesCapDC ( )
protected

◆ TestSetup20SeriesCapPulse()

void CommonDataModelTest::TestSetup20SeriesCapPulse ( )
protected

◆ TestSetup20SeriesCapSIN()

void CommonDataModelTest::TestSetup20SeriesCapSIN ( )
protected

◆ TestSetup21ParallelRDCCurrent()

void CommonDataModelTest::TestSetup21ParallelRDCCurrent ( )
protected

◆ TestSetup21ParallelRPulseCurrent()

void CommonDataModelTest::TestSetup21ParallelRPulseCurrent ( )
protected

◆ TestSetup21ParallelRSINCurrent()

void CommonDataModelTest::TestSetup21ParallelRSINCurrent ( )
protected

◆ TestSetup22CurrentCompDC()

void CommonDataModelTest::TestSetup22CurrentCompDC ( )
protected

◆ TestSetup22CurrentCompPulse()

void CommonDataModelTest::TestSetup22CurrentCompPulse ( )
protected

◆ TestSetup22CurrentCompSIN()

void CommonDataModelTest::TestSetup22CurrentCompSIN ( )
protected

◆ TestSetup23SeriesRLDCCurrent()

void CommonDataModelTest::TestSetup23SeriesRLDCCurrent ( )
protected

◆ TestSetup23SeriesRLPULSECurrent()

void CommonDataModelTest::TestSetup23SeriesRLPULSECurrent ( )
protected

◆ TestSetup23SeriesRLSINCurrent()

void CommonDataModelTest::TestSetup23SeriesRLSINCurrent ( )
protected

◆ TestSetup24ParallelRLDCCurrent()

void CommonDataModelTest::TestSetup24ParallelRLDCCurrent ( )
protected

◆ TestSetup24ParallelRLPULSECurrent()

void CommonDataModelTest::TestSetup24ParallelRLPULSECurrent ( )
protected

◆ TestSetup24ParallelRLSINCurrent()

void CommonDataModelTest::TestSetup24ParallelRLSINCurrent ( )
protected

◆ TestSetup25BasicDiodeDCCurrent()

void CommonDataModelTest::TestSetup25BasicDiodeDCCurrent ( )
protected

◆ TestSetup25BasicDiodePULSECurrent()

void CommonDataModelTest::TestSetup25BasicDiodePULSECurrent ( )
protected

◆ TestSetup25BasicDiodeSINCurrent()

void CommonDataModelTest::TestSetup25BasicDiodeSINCurrent ( )
protected

◆ TestSetup26SwitchRCDCCurrent()

void CommonDataModelTest::TestSetup26SwitchRCDCCurrent ( )
protected

◆ TestSetup26SwitchRCPULSECurrent()

void CommonDataModelTest::TestSetup26SwitchRCPULSECurrent ( )
protected

◆ TestSetup26SwitchRCSINCurrent()

void CommonDataModelTest::TestSetup26SwitchRCSINCurrent ( )
protected

◆ TestSetup27SeriesRLCDCCurrent()

void CommonDataModelTest::TestSetup27SeriesRLCDCCurrent ( )
protected

◆ TestSetup27SeriesRLCPULSECurrent()

void CommonDataModelTest::TestSetup27SeriesRLCPULSECurrent ( )
protected

◆ TestSetup27SeriesRLCSINCurrent()

void CommonDataModelTest::TestSetup27SeriesRLCSINCurrent ( )
protected

◆ TestSetup28ParallelRLCDCCurrent()

void CommonDataModelTest::TestSetup28ParallelRLCDCCurrent ( )
protected

◆ TestSetup28ParallelRLCPULSECurrent()

void CommonDataModelTest::TestSetup28ParallelRLCPULSECurrent ( )
protected

◆ TestSetup28ParallelRLCSINCurrent()

void CommonDataModelTest::TestSetup28ParallelRLCSINCurrent ( )
protected

◆ TestSetup29SeriesPressureSourceAdditionDC()

void CommonDataModelTest::TestSetup29SeriesPressureSourceAdditionDC ( )
protected

◆ TestSetup29SeriesPressureSourceAdditionPULSE()

void CommonDataModelTest::TestSetup29SeriesPressureSourceAdditionPULSE ( )
protected

◆ TestSetup29SeriesPressureSourceAdditionSIN()

void CommonDataModelTest::TestSetup29SeriesPressureSourceAdditionSIN ( )
protected

◆ TestSetup30SeriesCurrentSourceAdditionDC()

void CommonDataModelTest::TestSetup30SeriesCurrentSourceAdditionDC ( )
protected

◆ TestSetup30SeriesCurrentSourceAdditionPULSE()

void CommonDataModelTest::TestSetup30SeriesCurrentSourceAdditionPULSE ( )
protected

◆ TestSetup30SeriesCurrentSourceAdditionSIN()

void CommonDataModelTest::TestSetup30SeriesCurrentSourceAdditionSIN ( )
protected

◆ TestSetup31ParallelPressureSourceAdditionDC()

void CommonDataModelTest::TestSetup31ParallelPressureSourceAdditionDC ( )
protected

◆ TestSetup31ParallelPressureSourceAdditionPULSE()

void CommonDataModelTest::TestSetup31ParallelPressureSourceAdditionPULSE ( )
protected

◆ TestSetup31ParallelPressureSourceAdditionSIN()

void CommonDataModelTest::TestSetup31ParallelPressureSourceAdditionSIN ( )
protected

◆ TestSetup32ParallelCurrentSourceAdditionDC()

void CommonDataModelTest::TestSetup32ParallelCurrentSourceAdditionDC ( )
protected

◆ TestSetup32ParallelCurrentSourceAdditionSIN()

void CommonDataModelTest::TestSetup32ParallelCurrentSourceAdditionSIN ( )
protected

◆ TestSetup32ParallelCurrrentSourceAdditionPULSE()

void CommonDataModelTest::TestSetup32ParallelCurrrentSourceAdditionPULSE ( )
protected

◆ TestSetup33SeriesCapDCCurrent()

void CommonDataModelTest::TestSetup33SeriesCapDCCurrent ( )
protected

◆ TestSetup33SeriesCapPulseCurrent()

void CommonDataModelTest::TestSetup33SeriesCapPulseCurrent ( )
protected

◆ TestSetup33SeriesCapSINCurrent()

void CommonDataModelTest::TestSetup33SeriesCapSINCurrent ( )
protected

◆ TestSetup34ParallelCapDC()

void CommonDataModelTest::TestSetup34ParallelCapDC ( )
protected

◆ TestSetup34ParallelCapPulse()

void CommonDataModelTest::TestSetup34ParallelCapPulse ( )
protected

◆ TestSetup34ParallelCapSIN()

void CommonDataModelTest::TestSetup34ParallelCapSIN ( )
protected

◆ TestSetup35ParallelCapDCCurrent()

void CommonDataModelTest::TestSetup35ParallelCapDCCurrent ( )
protected

◆ TestSetup35ParallelCapPulseCurrent()

void CommonDataModelTest::TestSetup35ParallelCapPulseCurrent ( )
protected

◆ TestSetup35ParallelCapSINCurrent()

void CommonDataModelTest::TestSetup35ParallelCapSINCurrent ( )
protected

◆ TestSetup36SeriesIndDC()

void CommonDataModelTest::TestSetup36SeriesIndDC ( )
protected

◆ TestSetup36SeriesIndPulse()

void CommonDataModelTest::TestSetup36SeriesIndPulse ( )
protected

◆ TestSetup36SeriesIndSIN()

void CommonDataModelTest::TestSetup36SeriesIndSIN ( )
protected

◆ TestSetup37SeriesIndDCCurrent()

void CommonDataModelTest::TestSetup37SeriesIndDCCurrent ( )
protected

◆ TestSetup37SeriesIndPulseCurrent()

void CommonDataModelTest::TestSetup37SeriesIndPulseCurrent ( )
protected

◆ TestSetup37SeriesIndSINCurrent()

void CommonDataModelTest::TestSetup37SeriesIndSINCurrent ( )
protected

◆ TestSetup38ParallelIndDC()

void CommonDataModelTest::TestSetup38ParallelIndDC ( )
protected

◆ TestSetup38ParallelIndPulse()

void CommonDataModelTest::TestSetup38ParallelIndPulse ( )
protected

◆ TestSetup38ParallelIndSIN()

void CommonDataModelTest::TestSetup38ParallelIndSIN ( )
protected

◆ TestSetup39ParallelIndDCCurrent()

void CommonDataModelTest::TestSetup39ParallelIndDCCurrent ( )
protected

◆ TestSetup39ParallelIndPulseCurrent()

void CommonDataModelTest::TestSetup39ParallelIndPulseCurrent ( )
protected

◆ TestSetup39ParallelIndSINCurrent()

void CommonDataModelTest::TestSetup39ParallelIndSINCurrent ( )
protected

◆ TestSetup40BadDiodeDC()

void CommonDataModelTest::TestSetup40BadDiodeDC ( )
protected

◆ TestSetup40BadDiodePulse()

void CommonDataModelTest::TestSetup40BadDiodePulse ( )
protected

◆ TestSetup40BadDiodeSIN()

void CommonDataModelTest::TestSetup40BadDiodeSIN ( )
protected

◆ TestSetup41ValidationComprehensive1DC()

void CommonDataModelTest::TestSetup41ValidationComprehensive1DC ( )
protected

◆ TestSetup41ValidationComprehensive1Pulse()

void CommonDataModelTest::TestSetup41ValidationComprehensive1Pulse ( )
protected

◆ TestSetup41ValidationComprehensive1SIN()

void CommonDataModelTest::TestSetup41ValidationComprehensive1SIN ( )
protected

◆ TestSetup41ValidationComprehensive1SINCentered()

void CommonDataModelTest::TestSetup41ValidationComprehensive1SINCentered ( )
protected

◆ TestSetup42ValidationComprehensive2DC()

void CommonDataModelTest::TestSetup42ValidationComprehensive2DC ( )
protected

◆ TestSetup42ValidationComprehensive2Pulse()

void CommonDataModelTest::TestSetup42ValidationComprehensive2Pulse ( )
protected

◆ TestSetup42ValidationComprehensive2SIN()

void CommonDataModelTest::TestSetup42ValidationComprehensive2SIN ( )
protected

◆ TestSetup42ValidationComprehensive2SINCentered()

void CommonDataModelTest::TestSetup42ValidationComprehensive2SINCentered ( )
protected

◆ TestSetup7SeriesRCDC()

void CommonDataModelTest::TestSetup7SeriesRCDC ( )
protected

◆ TestSetup7SeriesRCPULSE()

void CommonDataModelTest::TestSetup7SeriesRCPULSE ( )
protected

◆ TestSetup7SeriesRCSIN()

void CommonDataModelTest::TestSetup7SeriesRCSIN ( )
protected

◆ TestSetup8SeriesRDC()

void CommonDataModelTest::TestSetup8SeriesRDC ( )
protected

◆ TestSetup8SeriesRPULSE()

void CommonDataModelTest::TestSetup8SeriesRPULSE ( )
protected

◆ TestSetup8SeriesRSIN()

void CommonDataModelTest::TestSetup8SeriesRSIN ( )
protected

◆ TestSetup9SeriesRLDC()

void CommonDataModelTest::TestSetup9SeriesRLDC ( )
protected

◆ TestSetup9SeriesRLPULSE()

void CommonDataModelTest::TestSetup9SeriesRLPULSE ( )
protected

◆ TestSetup9SeriesRLSIN()

void CommonDataModelTest::TestSetup9SeriesRLSIN ( )
protected

◆ TestThermalFlowHierarchy()

void CommonDataModelTest::TestThermalFlowHierarchy ( SETestSuite testSuite,
SESubstanceManager subMgr 
)
protected

◆ TestThermalFlows()

void CommonDataModelTest::TestThermalFlows ( SETestSuite testSuite,
SESubstanceManager subMgr 
)
protected

◆ TestThermalHierarchy()

void CommonDataModelTest::TestThermalHierarchy ( SETestSuite testSuite,
SESubstanceManager subMgr 
)
protected

◆ TestUpdateGasLinks()

void CommonDataModelTest::TestUpdateGasLinks ( SETestSuite testSuite,
SESubstanceManager subMgr 
)
protected

◆ TestUpdateLiquidLinks()

void CommonDataModelTest::TestUpdateLiquidLinks ( SETestSuite testSuite,
SESubstanceManager subMgr 
)
protected

◆ ThermalCircuitTest()

void CommonDataModelTest::ThermalCircuitTest ( const std::string &  sOutputDirectory)

◆ ThermalCompartmentTest()

void CommonDataModelTest::ThermalCompartmentTest ( const std::string &  sOutputDirectory)

◆ TissueCompartmentTest()

void CommonDataModelTest::TissueCompartmentTest ( const std::string &  sOutputDirectory)

◆ UnitsTest()

void CommonDataModelTest::UnitsTest ( const std::string &  sOutputDirectory)

◆ ValidationComprehensive1DCTest()

void CommonDataModelTest::ValidationComprehensive1DCTest ( const std::string &  sOutputDirectory)

◆ ValidationComprehensive1PULSETest()

void CommonDataModelTest::ValidationComprehensive1PULSETest ( const std::string &  sOutputDirectory)

◆ ValidationComprehensive1SINCenteredTest()

void CommonDataModelTest::ValidationComprehensive1SINCenteredTest ( const std::string &  sOutputDirectory)

◆ ValidationComprehensive1SINTest()

void CommonDataModelTest::ValidationComprehensive1SINTest ( const std::string &  sOutputDirectory)

◆ ValidationComprehensive2DCTest()

void CommonDataModelTest::ValidationComprehensive2DCTest ( const std::string &  sOutputDirectory)

◆ ValidationComprehensive2PULSETest()

void CommonDataModelTest::ValidationComprehensive2PULSETest ( const std::string &  sOutputDirectory)

◆ ValidationComprehensive2SINCenteredTest()

void CommonDataModelTest::ValidationComprehensive2SINCenteredTest ( const std::string &  sOutputDirectory)

◆ ValidationComprehensive2SINTest()

void CommonDataModelTest::ValidationComprehensive2SINTest ( const std::string &  sOutputDirectory)

◆ WindkesselBlackBoxTest()

void CommonDataModelTest::WindkesselBlackBoxTest ( const std::string &  sOutputDirectory)

Member Data Documentation

◆ cdmMap

testMap CommonDataModelTest::cdmMap
protected

◆ m_Circuits

SECircuitManager* CommonDataModelTest::m_Circuits
protected

◆ m_OutDirectory

std::string CommonDataModelTest::m_OutDirectory
protected

◆ m_PercentTolerance

double CommonDataModelTest::m_PercentTolerance
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.