36 #include "VesselSegment.hpp" 37 #include "MathsCustomFunctions.hpp" 38 #include "VesselImpedanceCalculator.hpp" 39 #include "UnitCollection.hpp" 40 template<
unsigned DIM>
46 template<
unsigned DIM>
52 template <
unsigned DIM>
59 template<
unsigned DIM>
62 std::vector<boost::shared_ptr<VesselSegment<DIM> > > segments = this->
mpNetwork->GetVesselSegments();
63 for (
unsigned idx = 0; idx < segments.size(); idx++)
65 units::quantity<unit::dynamic_viscosity> viscosity = segments[idx]->GetFlowProperties()->GetViscosity();
66 units::quantity<unit::flow_impedance> impedance = 8.0 * viscosity * segments[idx]->GetLength() / (M_PI * units::pow<4>(segments[idx]->GetRadius()));
67 segments[idx]->GetFlowProperties()->SetImpedance(impedance);
boost::shared_ptr< VesselNetwork< DIM > > mpNetwork
VesselImpedanceCalculator()
~VesselImpedanceCalculator()
static boost::shared_ptr< VesselImpedanceCalculator< DIM > > Create()