20 #ifndef _DIMENSIONLESS_LINE_H_
21 #define _DIMENSIONLESS_LINE_H_
23 #include "mbsimHydraulics/hline.h"
25 namespace MBSimHydraulics {
31 virtual std::string getType()
const {
return "DimensionlessLine"; }
33 void setLength(
double length_) {length=length_; }
34 double getLength()
const {
return length; }
36 virtual fmatvec::VecV getInflowFactor() {
return fmatvec::VecV(1, fmatvec::INIT, -1.); }
37 virtual fmatvec::VecV getOutflowFactor() {
return fmatvec::VecV(1, fmatvec::INIT, 1.); }
38 void calcqSize() {qSize=0; }
39 void calcuSize(
int j) {uSize[j]=0; }
41 void initializeUsingXML(xercesc::DOMElement *element);
42 void init(InitStage stage);
56 virtual std::string getType()
const {
return "Leakage0DOF"; }
60 glFunction->setParent(
this);
62 double evalGapLength()
const;
65 s1vFunction->setParent(
this);
67 double evalSurface1Velocity()
const;
70 s2vFunction->setParent(
this);
72 double evalSurface2Velocity()
const;
74 void init(InitStage stage);
78 void initializeUsingXML(xercesc::DOMElement * element);
88 virtual std::string getType()
const {
return "PlaneLeakage0DOF"; }
90 void setGapWidth(
double wGap_) {wGap=wGap_; }
91 double getGapWidth()
const {
return wGap; }
92 void setGapHeight(
double hGap_) {hGap=hGap_; }
93 double getGapHeight()
const {
return hGap; }
96 void initializeUsingXML(xercesc::DOMElement * element);
104 virtual std::string getType()
const {
return "CircularLeakage0DOF"; }
106 void setInnerRadius(
double rI_) {rI=rI_; }
107 double getInnerRadius()
const {
return rI; }
108 void setGapHeight(
double hGap_) {hGap=hGap_; }
109 double getGapHeight()
const {
return hGap; }
110 double getOuterRadius()
const {
return rO; }
113 void init(InitStage stage);
115 void initializeUsingXML(xercesc::DOMElement * element);
Definition: dimensionless_line.h:101
Definition: pressure_loss.h:273
Definition: pressure_loss.h:282
Definition: dimensionless_line.h:85
Definition: dimensionless_line.h:52
Definition: dimensionless_line.h:28
Definition: pressure_loss.h:293