36 #include "ConstantHaematocritSolver.hpp" 38 template<
unsigned DIM>
46 template<
unsigned DIM>
52 template <
unsigned DIM>
59 template<
unsigned DIM>
65 template<
unsigned DIM>
68 std::vector<boost::shared_ptr<VesselSegment<DIM> > > segments = this->
mpNetwork->GetVesselSegments();
70 for (
unsigned segment_index = 0; segment_index < segments.size(); segment_index++)
72 if (fabs(segments[segment_index]->GetFlowProperties()->GetFlowRate()) <= 1.e-16 *unit::metre_cubed_per_second)
74 segments[segment_index]->GetFlowProperties()->SetHaematocrit(0.0);
78 segments[segment_index]->GetFlowProperties()->SetHaematocrit(
mHaematocrit);
boost::shared_ptr< VesselNetwork< DIM > > mpNetwork
ConstantHaematocritSolver()
units::quantity< unit::dimensionless > mHaematocrit
void SetHaematocrit(units::quantity< unit::dimensionless > haematocrit)
static boost::shared_ptr< ConstantHaematocritSolver< DIM > > Create()
virtual ~ConstantHaematocritSolver()