20 #ifndef _CONTROLVALVE43_H_
21 #define _CONTROLVALVE43_H_
23 #include "mbsim/group.h"
24 #include "mbsim/utils/function.h"
26 namespace MBSimControl {
30 namespace MBSimHydraulics {
32 class ClosableRigidLine;
41 void init(MBSim::InitStage stage);
42 void initializeUsingXML(TiXmlElement * element);
44 void setLength(
double l_);
45 void setDiameter(
double d_);
46 void setAlpha(
double alpha_,
double alphaBack_=0);
47 void setPARelativeAlphaFunction(MBSim::Function1<double, double> * relAlphaPA_) {relAlphaPA=relAlphaPA_; }
48 void setMinimalRelativeAlpha(
double minRelAlpha_);
49 void setOffset(
double off) {offset=off; }
50 void setRelativePositionSignal(MBSimControl::Signal * s) {position = s; }
51 void setSetValued(
bool setValued=
true);
52 void setPInflow(
HLine * hl);
53 void setAOutflow(
HLine * hl);
54 void setBOutflow(
HLine * hl);
55 void setTOutflow(
HLine * hl);
56 void printRelativeAlphaCharacteristikCurve(
bool print=
true) {pRACC=print; }
62 MBSim::Function1<double, double> * relAlphaPA;
63 MBSimControl::Signal * position;
64 MBSimControl::Signal * checkSizeSignalPA, * checkSizeSignalPB, * checkSizeSignalAT, * checkSizeSignalBT;
67 std::string positionString;
68 std::string nPInflowString, nAOutflowString, nBOutflowString, nTOutflowString;