Commit 59e95419 authored by Rachel Clipp's avatar Rachel Clipp
Browse files

Merge branch 'feature/arrhythmia' of...

Merge branch 'feature/arrhythmia' of https://gitlab.kitware.com/physiology/engine into feature/arrhythmia
parents 07001339 dc9d21dd
......@@ -141,7 +141,7 @@ namespace pulse
if (rhythm == eHeartRhythm::FineVentricularFibrillation)
amplitudeModifier = 0.5;
StartNewContinuousCycle(eElectroCardioGram_WaveformType::VentricularFibrillation,
m_data.GetCardiovascular().GetHeartRate(),
m_data.GetCardiovascular().GetHeartRate(),// This is expected to be 0
m_data.GetTimeStep(),
amplitudeModifier);
break;
......
......@@ -213,6 +213,8 @@ namespace pulse
m_CardiacCyclePeriod_s = std::lround(60.0 / m_data.GetCurrentPatient().GetHeartRateBaseline(FrequencyUnit::Per_min) / m_data.GetTimeStep_s()) * m_data.GetTimeStep_s();
GetHeartRate().SetValue(1 / m_CardiacCyclePeriod_s * 60, FrequencyUnit::Per_min);
GetBloodVolume().Set(m_data.GetCurrentPatient().GetBloodVolumeBaseline());
GetSystolicArterialPressure().Set(m_data.GetCurrentPatient().GetSystolicArterialPressureBaseline());
GetDiastolicArterialPressure().Set(m_data.GetCurrentPatient().GetDiastolicArterialPressureBaseline());
m_CardiacCycleAortaPressureHigh_mmHg = m_data.GetCurrentPatient().GetSystolicArterialPressureBaseline(PressureUnit::mmHg);
m_CardiacCycleAortaPressureLow_mmHg = m_data.GetCurrentPatient().GetDiastolicArterialPressureBaseline(PressureUnit::mmHg);
m_CardiacCycleLeftHeartPressureHigh_mmHg = 130;
......
......@@ -53,6 +53,7 @@ namespace pulse { namespace human_adult_whole_body
pc.GetConditions().GetLobarPneumonia().GetRightLungAffected().SetValue(0.2);
m_Logger->Info("First Stabilization...");
//if (!pe.SerializeFromFile("./states/StandardMale@0s.pbb"))
if (!pe.InitializeEngine(pc))
{
testCase.AddFailure("Could not stabilize first initalization, check the error");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment