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; }
40 void calcqSize() {qSize=0; }
41 void calcuSize(
int j) {uSize[j]=0; }
43 void initializeUsingXML(xercesc::DOMElement *element);
44 void init(InitStage stage);
45 void plot(
double t,
double dt);
57 Leakage0DOF(
const std::string &name) :
DimensionlessLine(name), lpl(NULL), s1vSignal(NULL), s2vSignal(NULL), glSignal(NULL), s1vPath(
""), s2vPath(
""), glPath(
"") {}
59 virtual std::string getType()
const {
return "Leakage0DOF"; }
62 double getGapLength()
const;
64 double getSurface1Velocity()
const;
66 double getSurface2Velocity()
const;
68 void init(InitStage stage);
70 void updateStateDependentVariables(
double t);
72 void initializeUsingXML(xercesc::DOMElement * element);
77 std::string s1vPath, s2vPath, glPath;
83 virtual std::string getType()
const {
return "PlaneLeakage0DOF"; }
85 void setGapWidth(
double wGap_) {wGap=wGap_; }
86 double getGapWidth()
const {
return wGap; }
87 void setGapHeight(
double hGap_) {hGap=hGap_; }
88 double getGapHeight()
const {
return hGap; }
91 void initializeUsingXML(xercesc::DOMElement * element);
99 virtual std::string getType()
const {
return "CircularLeakage0DOF"; }
101 void setInnerRadius(
double rI_) {rI=rI_; }
102 double getInnerRadius()
const {
return rI; }
103 void setGapHeight(
double hGap_) {hGap=hGap_; }
104 double getGapHeight()
const {
return hGap; }
105 double getOuterRadius()
const {
return rO; }
108 void init(InitStage stage);
110 void initializeUsingXML(xercesc::DOMElement * element);
Vector< Ref, double > Vec
Definition: dimensionless_line.h:96
Definition: pressure_loss.h:273
Definition: pressure_loss.h:282
Definition: dimensionless_line.h:80
Definition: dimensionless_line.h:55
Definition: dimensionless_line.h:28
Definition: pressure_loss.h:293