#include "CurveFunctionalPressureDrop.hpp"
Public Member Functions | |
CurveFunctionalPressureDrop (const Model &model) | |
virtual | ~CurveFunctionalPressureDrop () |
double | diameter () const |
boost::optional< double > | minorLossCoefficient () const |
boost::optional< double > | length () const |
boost::optional< double > | roughness () const |
boost::optional< double > | fixedFrictionFactor () const |
bool | setDiameter (double diameter) |
bool | setMinorLossCoefficient (double minorLossCoefficient) |
void | resetMinorLossCoefficient () |
bool | setLength (double length) |
void | resetLength () |
bool | setRoughness (double roughness) |
void | resetRoughness () |
bool | setFixedFrictionFactor (double fixedFrictionFactor) |
void | resetFixedFrictionFactor () |
Static Public Member Functions | |
static IddObjectType | iddObjectType () |
Related Functions | |
typedef std::vector < CurveFunctionalPressureDrop > | CurveFunctionalPressureDropVector |
typedef boost::optional < CurveFunctionalPressureDrop > | OptionalCurveFunctionalPressureDrop |
CurveFunctionalPressureDrop is a Curve that wraps the OpenStudio IDD object 'OS:Curve:Functional:PressureDrop'.
The functional form is
\displaystyle \begin{array}{lll} \Delta P = \left(K + f \cdot \frac{L}{D} \right) \cdot \frac{\rho V^2}{2}\\\\ \text{Where:}\\\\ K & = & \text{minorLossCoefficient}\\ f & = & \text{calculated from roughness and Moody-chart, or set by fixed friction factor}\\ L & = & \text{length}\\ D & = & \text{diameter}\\ \rho & = & V\ \text{from plant simulation}\\ \end{array}
|
explicit |
Sets D = 0.05.
|
inlinevirtual |
double openstudio::model::CurveFunctionalPressureDrop::diameter | ( | ) | const |
boost::optional<double> openstudio::model::CurveFunctionalPressureDrop::fixedFrictionFactor | ( | ) | const |
|
static |
boost::optional<double> openstudio::model::CurveFunctionalPressureDrop::length | ( | ) | const |
boost::optional<double> openstudio::model::CurveFunctionalPressureDrop::minorLossCoefficient | ( | ) | const |
void openstudio::model::CurveFunctionalPressureDrop::resetFixedFrictionFactor | ( | ) |
void openstudio::model::CurveFunctionalPressureDrop::resetLength | ( | ) |
void openstudio::model::CurveFunctionalPressureDrop::resetMinorLossCoefficient | ( | ) |
void openstudio::model::CurveFunctionalPressureDrop::resetRoughness | ( | ) |
boost::optional<double> openstudio::model::CurveFunctionalPressureDrop::roughness | ( | ) | const |
bool openstudio::model::CurveFunctionalPressureDrop::setDiameter | ( | double | diameter | ) |
bool openstudio::model::CurveFunctionalPressureDrop::setFixedFrictionFactor | ( | double | fixedFrictionFactor | ) |
bool openstudio::model::CurveFunctionalPressureDrop::setLength | ( | double | length | ) |
bool openstudio::model::CurveFunctionalPressureDrop::setMinorLossCoefficient | ( | double | minorLossCoefficient | ) |
bool openstudio::model::CurveFunctionalPressureDrop::setRoughness | ( | double | roughness | ) |
|
related |
|
related |