20 #ifndef _CHECKVALVE_H_
21 #define _CHECKVALVE_H_
23 #include "mbsim/group.h"
24 #include <mbsim/functions/function.h>
30 class DirectionalSpringDamper;
31 class GeneralizedImpactLaw;
32 class GeneralizedForceLaw;
35 namespace MBSimControl {
36 class GeneralizedCoordinateSensor;
39 namespace MBSimHydraulics {
41 class ClosableRigidLine;
42 class CheckvalveClosablePressureLoss;
50 void setLineLength(
double lLine);
51 void setLineDiameter(
double lDiameter);
53 void setLineMinimalXOpen(
double xMin);
54 void setLineSetValued(
bool setValued=
true);
55 void setBallMass(
double mBall_);
56 void setBallInitialPosition(
double x0Ball_);
57 void setSpringForceFunction(
MBSim::Function<
double(
double,
double)> *func);
58 void setSpringUnloadedLength(
double l0);
61 void setMaximalOpening(
double hMax_) {hMax=hMax_; }
64 void enableOpenMBVFrames() {openMBVFrames=
true; }
65 void enableOpenMBVArrows() {openMBVArrows=
true; }
66 void enableOpenMBVBodies() {openMBVBodies=
true; }
76 void init(InitStage stage);
78 void initializeUsingXML(xercesc::DOMElement * element);
88 unsigned int fromNodeAreaIndex, toNodeAreaIndex;
90 std::string refFrameString;
91 bool openMBVBodies, openMBVArrows, openMBVFrames;
Definition: checkvalve.h:45
Definition: rigid_line.h:55
Definition: pressure_loss.h:223