37 #include "WallShearStressCalculator.hpp" 39 template<
unsigned DIM>
45 template<
unsigned DIM>
51 template <
unsigned DIM>
58 template<
unsigned DIM>
61 std::vector<boost::shared_ptr<VesselSegment<DIM> > > segments = this->
mpNetwork->GetVesselSegments();
62 for (
unsigned segment_index = 0; segment_index < segments.size(); segment_index++)
64 units::quantity<unit::flow_rate> flow_rate =
65 units::fabs(segments[segment_index]->GetFlowProperties()->GetFlowRate());
66 units::quantity<unit::dynamic_viscosity> viscosity =
67 segments[segment_index]->GetFlowProperties()->GetViscosity();
68 units::quantity<unit::pressure> wall_shear_stress = 8.0 * viscosity * flow_rate / (M_PI * units::pow<3>(segments[segment_index]->GetRadius()));
69 segments[segment_index]->GetFlowProperties()->SetWallShearStress(wall_shear_stress);
~WallShearStressCalculator()
WallShearStressCalculator()
boost::shared_ptr< VesselNetwork< DIM > > mpNetwork
static boost::shared_ptr< WallShearStressCalculator< DIM > > Create()