20 #ifndef _ELASTIC_LINE_VARIATIONAL_H_
21 #define _ELASTIC_LINE_VARIATIONAL_H_
25 namespace MBSimHydraulics {
47 virtual std::string getType()
const {
return "ElasticLineVariational"; }
50 void setp0(
double p0_) {p0=p0_; }
66 fmatvec::Vec getQIn() {
return QIn; }
67 fmatvec::Vec getQOut() {
return QOut; }
68 fmatvec::Vec getInflowFactor() {
return wI; }
69 fmatvec::Vec getOutflowFactor() {
return wO; }
71 void init(MBSim::InitStage stage);
72 void calcqSize() {qSize=n-1; }
73 void calcuSize(
int j) {uSize[j]=n; }
75 void updateStateDependentVariables(
double t);
76 void updateh(
double t,
int j=0);
77 void updateT(
double t) {T=Tlocal; }
78 void updateM(
double t,
int j=0) {M[j]=Mlocal; }
80 void plot(
double t,
double dt);
81 void plotParameters();
83 void initializeUsingXML(TiXmlElement * element);
86 double p0, fracAir, r, l;
87 fmatvec::Vec relPlotPoints;
88 WindowFunction window_function_type;
93 fmatvec::Vec QIn, QOut, wO, wI;
94 fmatvec::Vec hq, hu, hp0, cu, y;
95 fmatvec::Mat Tlocal, relPlot;
96 fmatvec::SymMat Mlocal;
98 void doPrintStateSpace();