20 #ifndef _LEAKAGE_LINE_H_
21 #define _LEAKAGE_LINE_H_
23 #include "mbsimHydraulics/hline.h"
25 namespace MBSimControl {
29 namespace MBSimHydraulics {
31 class LeakagePressureLoss;
32 class PlaneLeakagePressureLoss;
33 class CircularLeakagePressureLoss;
38 LeakageLine(
const std::string &name) :
RigidHLine(name), lpl(NULL), s1vSignal(NULL), s2vSignal(NULL), glSignal(NULL), s1vPath(
""), s2vPath(
""), glPath(
"") {}
39 virtual std::string getType()
const {
return "LeakageLine"; }
41 void setGapLengthSignal(MBSimControl::Signal * s) {glSignal=s; }
42 double getGapLength()
const;
43 void setSurface1VelocitySignal(MBSimControl::Signal * s) {s1vSignal=s; }
44 double getSurface1Velocity()
const;
45 void setSurface2VelocitySignal(MBSimControl::Signal * s) {s2vSignal=s; }
46 double getSurface2Velocity()
const;
48 void init(MBSim::InitStage stage);
50 void initializeUsingXML(TiXmlElement * element);
54 MBSimControl::Signal *s1vSignal, *s2vSignal, *glSignal;
55 std::string s1vPath, s2vPath, glPath;
62 virtual std::string getType()
const {
return "PlaneLeakageLine"; }
64 void setGapWidth(
double wGap_) {wGap=wGap_; }
65 double getGapWidth()
const {
return wGap; }
66 void setGapHeight(
double hGap_) {hGap=hGap_; }
67 double getGapHeight()
const {
return hGap; }
70 void init(MBSim::InitStage stage);
72 void initializeUsingXML(TiXmlElement * element);
81 virtual std::string getType()
const {
return "CircularLeakageLine"; }
83 void setInnerRadius(
double rI_) {rI=rI_; }
84 double getInnerRadius()
const {
return rI; }
85 void setGapHeight(
double hGap_) {hGap=hGap_; }
86 double getGapHeight()
const {
return hGap; }
87 double getOuterRadius()
const {
return rO; }
90 void init(MBSim::InitStage stage);
92 void initializeUsingXML(TiXmlElement * element);