Commit 8c69924b authored by Rachel Clipp's avatar Rachel Clipp
Browse files

Fixed a =+ to a+= in the internal hemorrhage rate calculation. Added the vena...

Fixed a =+ to a+= in the internal hemorrhage rate calculation. Added the vena cava and aorta to the abdomen compartment to allow internal bleeding from them.
parent 34ce3dbf
......@@ -1819,6 +1819,8 @@ void PulseController::SetupCardiovascular()
vAbdomen.AddChild(vRightKidney);
vAbdomen.AddChild(vSpleen);
vAbdomen.AddChild(vLiver);
vAbdomen.AddChild(vVenaCava);
vAbdomen.AddChild(vAorta);
vAbdomen.AddChild(vAbdominalCavity);
......
......@@ -1154,7 +1154,7 @@ void Cardiovascular::Hemorrhage()
//total the internal hemorrhage flow rate and apply it to the abdominal cavity path
for (auto hemorrhage : m_InternalHemorrhagePaths)
{
internal_rate_mL_Per_s = +hemorrhage->GetNextFlowSource().GetValue(VolumePerTimeUnit::mL_Per_s);
internal_rate_mL_Per_s += hemorrhage->GetNextFlowSource().GetValue(VolumePerTimeUnit::mL_Per_s);
}
m_pGndToAbdominalCavity->GetNextFlowSource().SetValue(internal_rate_mL_Per_s, VolumePerTimeUnit::mL_Per_s);
......
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