Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pulse Physiology Suite
engine
Commits
b8f5ebf8
Commit
b8f5ebf8
authored
Oct 16, 2019
by
Aaron Bray
Browse files
Fixing a few minor bugs
parent
c5faeead
Changes
2
Hide whitespace changes
Inline
Side-by-side
engine/cpp/physiology/Respiratory.cpp
View file @
b8f5ebf8
...
...
@@ -1379,11 +1379,16 @@ void Respiratory::Intubation()
m_CarinaToLeftAnatomicDeadSpace
->
GetNextResistance
().
SetValue
(
m_RespOpenResistance_cmH2O_s_Per_L
,
FlowResistanceUnit
::
cmH2O_s_Per_L
);
break
;
}
case
eIntubation_Type
::
LeftMainstem
:
case
eIntubation_Type
::
LeftMainstem
:
{
m_CarinaToRightAnatomicDeadSpace
->
GetNextResistance
().
SetValue
(
m_RespOpenResistance_cmH2O_s_Per_L
,
FlowResistanceUnit
::
cmH2O_s_Per_L
);
break
;
}
case
eIntubation_Type
::
Off
:
{
m_data
.
SetIntubation
(
eSwitch
::
Off
);
break
;
}
}
}
else
...
...
engine/cpp/physiology/Tissue.cpp
View file @
b8f5ebf8
...
...
@@ -1252,7 +1252,7 @@ double Tissue::PerfusionLimitedDiffusion(SETissueCompartment& tissue, SELiquidCo
GeneralMath
::
CalculateConcentration
(
tSubQ
->
GetMass
(),
tissue
.
GetMatrixVolume
(),
tissueConcentration
,
m_Logger
);
double
TissueConcentration_ug_Per_mL
=
tissueConcentration
.
GetValue
(
MassPerVolumeUnit
::
ug_Per_mL
);
double
MassIncrement_ug
=
0
;
if
(
!
partitionCoeff
=
=
0
)
if
(
partitionCoeff
!
=
0
)
{
MassIncrement_ug
=
VascularFlow_m_LPer_s
*
timestep_s
*
(
VascularConcentration_ug_Per_mL
-
(
TissueConcentration_ug_Per_mL
/
partitionCoeff
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment