20 #ifndef _LEAKAGE_LINE_H_
21 #define _LEAKAGE_LINE_H_
23 #include "mbsimHydraulics/hline.h"
24 #include <mbsim/functions/function.h>
26 namespace MBSimHydraulics {
28 class LeakagePressureLoss;
29 class PlaneLeakagePressureLoss;
30 class CircularLeakagePressureLoss;
35 LeakageLine(
const std::string &name) :
RigidHLine(name), lpl(NULL), s1vFunction(NULL), s2vFunction(NULL), glFunction(NULL) {}
37 virtual std::string getType()
const {
return "LeakageLine"; }
41 glFunction->setParent(
this);
42 glFunction->setName(
"glFunction");
44 double evalGapLength()
const;
47 s1vFunction->setParent(
this);
48 s1vFunction->setName(
"s1vFunction");
50 double evalSurface1Velocity()
const;
53 s2vFunction->setParent(
this);
54 s2vFunction->setName(
"s2vFunction");
56 double evalSurface2Velocity()
const;
58 void init(InitStage stage);
60 void initializeUsingXML(xercesc::DOMElement * element);
71 virtual std::string getType()
const {
return "PlaneLeakageLine"; }
73 void setGapWidth(
double wGap_) {wGap=wGap_; }
74 double getGapWidth()
const {
return wGap; }
75 void setGapHeight(
double hGap_) {hGap=hGap_; }
76 double getGapHeight()
const {
return hGap; }
79 void init(InitStage stage);
81 void initializeUsingXML(xercesc::DOMElement * element);
90 virtual std::string getType()
const {
return "CircularLeakageLine"; }
92 void setInnerRadius(
double rI_) {rI=rI_; }
93 double getInnerRadius()
const {
return rI; }
94 void setGapHeight(
double hGap_) {hGap=hGap_; }
95 double getGapHeight()
const {
return hGap; }
96 double getOuterRadius()
const {
return rO; }
99 void init(InitStage stage);
101 void initializeUsingXML(xercesc::DOMElement * element);
Definition: leakage_line.h:33
Definition: pressure_loss.h:273
Definition: pressure_loss.h:282
Definition: leakage_line.h:87
Definition: leakage_line.h:68
Definition: pressure_loss.h:293