20 #ifndef _RIGID_LINE_H_
21 #define _RIGID_LINE_H_
23 #include "mbsimHydraulics/hline.h"
25 namespace MBSimHydraulics {
27 class LinePressureLoss;
35 void setDiameter(
double diameter_) {diameter=diameter_; }
36 double getDiameter()
const {
return diameter; }
39 void init(InitStage stage,
const MBSim::InitConfigSet &config)
override;
43 void initializeUsingXML(xercesc::DOMElement *element)
override;
47 double ReynoldsFactor{0};
63 cpLFunction->setParent(
this);
64 cpLFunction->setName(
"cpLFunction");
67 void setMinimalValue(
double v) {cpLMinValue=v; }
68 double getMinimalValue()
const {
return cpLMinValue; }
69 void setBilateral(
bool b=
true) {cpLBilateral=b; }
70 bool isClosed()
const;
71 double evalRegularizedValue()
const;
73 void init(InitStage stage,
const MBSim::InitConfigSet &config)
override;
75 void initializeUsingXML(xercesc::DOMElement *element)
override;
79 double cpLMinValue{0};
80 bool cpLBilateral{
false};
93 void setMinimalPressureDrop(
double v) {dpMin=v; }
94 double getMinimalPressureDrop()
const {
return dpMin; }
96 void init(InitStage stage,
const MBSim::InitConfigSet &config)
override;
98 void initializeUsingXML(xercesc::DOMElement *element)
override;
Definition: rigid_line.h:30
Definition: pressure_loss.h:323
Definition: pressure_loss.h:47
Definition: pressure_loss.h:169
Definition: rigid_line.h:54
Definition: rigid_line.h:87