20 #ifndef _RIGID_LINE_H_
21 #define _RIGID_LINE_H_
23 #include "mbsimHydraulics/hline.h"
25 namespace MBSimControl {
29 namespace MBSimHydraulics {
31 class LinePressureLoss;
36 RigidLine(
const std::string &name=
"") :
RigidHLine(name), diameter(0), pL(NULL), ReynoldsFactor(0) {}
38 virtual std::string getType()
const {
return "RigidLine"; }
40 void setDiameter(
double diameter_) {diameter=diameter_; }
41 double getDiameter()
const {
return diameter; }
44 void init(InitStage stage);
46 void plot(
double t,
double dt);
48 void initializeUsingXML(xercesc::DOMElement *element);
52 double ReynoldsFactor;
61 ClosableRigidLine(
const std::string &name=
"") :
RigidLine(name), cpL(NULL), cpLSignal(NULL), cpLMinValue(0), cpLBilateral(
false), refSignalString(
"") {}
63 virtual std::string getType()
const {
return "ClosableRigidLine"; }
69 void setMinimalValue(
double v) {cpLMinValue=v; }
70 double getMinimalValue()
const {
return cpLMinValue; }
71 void setBilateral(
bool b=
true) {cpLBilateral=b; }
72 bool isClosed()
const;
73 double getRegularizedValue()
const;
75 void init(InitStage stage);
77 void initializeUsingXML(xercesc::DOMElement *element);
83 std::string refSignalString;
93 virtual std::string getType()
const {
return "UnidirectionalRigidLine"; }
97 void setMinimalPressureDrop(
double v) {dpMin=v; }
98 double getMinimalPressureDrop()
const {
return dpMin; }
100 void init(InitStage stage);
102 void initializeUsingXML(xercesc::DOMElement *element);
Definition: rigid_line.h:34
Definition: pressure_loss.h:322
Definition: pressure_loss.h:50
Definition: pressure_loss.h:168
Definition: rigid_line.h:59
Definition: rigid_line.h:90