20 #ifndef _ELASTIC_LINE_GALERKIN_H_
21 #define _ELASTIC_LINE_GALERKIN_H_
25 class ansatz_function;
27 namespace MBSimHydraulics {
43 virtual std::string getType()
const {
return "ElasticLineGalerkin"; }
46 void setp0(
double p0_) {p0=p0_; }
50 void setdh(
double dh_) {delta_h=dh_; }
60 void setDiameter(
double d_) {d=d_; }
61 void setLength(
double l_) {l=l_; }
63 void setQ0(
double Q0_) {Q0=Q0_; }
65 fmatvec::Vec getQIn() {
return QIn; }
66 fmatvec::Vec getQOut() {
return QOut; }
67 fmatvec::Vec getInflowFactor() {
return -Area*wE; }
68 fmatvec::Vec getOutflowFactor() {
return Area*wA; }
70 void init(MBSim::InitStage stage);
71 void calcqSize() {qSize=mdim; }
72 void calcuSize(
int j) {uSize[j]=mdim; }
74 void updateStateDependentVariables(
double t);
75 void updateh(
double t,
int j=0);
76 void updateT(
double t);
77 void updateM(
double t,
int j=0);
79 void plot(
double t,
double dt);
80 void plotParameters();
82 void initializeUsingXML(TiXmlElement * element);
87 fmatvec::Vec WInt, wA, wE, lambda;
88 fmatvec::SymMat MatIntWWT, MatIntWSWST, K, D, N, Omega, MFac;
90 ansatz_function * ansatz;
91 fmatvec::Mat plotVecW, plotVecWS;
92 fmatvec::Vec QIn, QOut;
96 AnsatzTypes ansatzType;
99 double p0, Q0, fracAir, delta_h, DLehr;
100 fmatvec::Vec relPlotPoints;