36 #include "RadiusCalculator.hpp" 37 #include "Owen11Parameters.hpp" 39 template<
unsigned DIM>
43 mTimeStep(
Owen11Parameters::mpVesselRadiusUpdateTimestep->GetValue(
"RadiusCalculator"))
48 template<
unsigned DIM>
54 template<
unsigned DIM>
60 template<
unsigned DIM>
66 template<
unsigned DIM>
72 template<
unsigned DIM>
75 std::vector<boost::shared_ptr<VesselSegment<DIM> > > segments = this->
mpNetwork->GetVesselSegments();
76 for (
unsigned segment_index = 0; segment_index < segments.size(); segment_index++)
78 units::quantity<unit::rate> total_stimulus = segments[segment_index]->GetFlowProperties()->GetGrowthStimulus();
79 units::quantity<unit::length> radius = segments[segment_index]->GetRadius();
80 radius = radius*(1.0 +
mTimeStep * total_stimulus);
94 segments[segment_index]->SetRadius(radius);
void SetMinRadius(units::quantity< unit::length > minRadius)
void SetTimestep(units::quantity< unit::time > dt)
boost::shared_ptr< VesselNetwork< DIM > > mpNetwork
units::quantity< unit::length > mMaxRadius
virtual ~RadiusCalculator()
units::quantity< unit::length > mMinRadius
void SetMaxRadius(units::quantity< unit::length > maxRadius)
units::quantity< unit::time > mTimeStep