#include <elastic_line_variational.h>
Public Types | |
enum | WindowFunction { None, Hann, Hamming, Riemann, BlackmanHarris } |
![]() | |
enum | MsgType |
Public Member Functions | |
ElasticLineVariational (const std::string &name="") | |
virtual std::string | getType () const |
void | setp0 (double p0_) |
void | setFracAir (double fracAir_) |
void | setDiameter (double d_) |
void | setLength (double l_) |
void | setRelativePlotPoints (const fmatvec::Vec &rPP) |
void | setWindowFunction (WindowFunction w) |
void | setNumberOfAnsatzFunctions (unsigned int n_=4) |
void | printLineStateSpace (bool print=true) |
fmatvec::Vec | getQIn () |
fmatvec::Vec | getQOut () |
fmatvec::Vec | getInflowFactor () |
fmatvec::Vec | getOutflowFactor () |
void | init (InitStage stage) |
void | calcqSize () |
void | calcuSize (int j) |
void | updateStateDependentVariables (double t) |
void | updateh (double t, int j=0) |
void | updateT (double t) |
void | updateM (double t, int j=0) |
void | plot (double t, double dt) |
void | plotParameters () |
void | initializeUsingXML (xercesc::DOMElement *element) |
![]() | |
HLine (const std::string &name) | |
virtual void | updateJacobians (double t, int j=0) |
virtual void | updateInverseKineticsJacobians (double t) |
virtual void | setFrameOfReference (MBSim::Frame *frame) |
void | setFromNode (HNode *nFrom_) |
void | setToNode (HNode *nTo_) |
void | setDirection (fmatvec::Vec dir) |
HNode * | getFromNode () |
HNode * | getToNode () |
void | setOutflowRelative (bool rel=true) |
void | setInflowRelative (bool rel=true) |
virtual fmatvec::Mat & | getJacobian () |
void | updateM (double t, int j=0) |
void | init (InitStage stage) |
void | initializeUsingXML (xercesc::DOMElement *element) |
![]() | |
Atom & | operator= (const Atom &) |
void | setMessageStreamActive (MsgType type, bool active) |
void | getMessageStream (MsgType type, boost::shared_ptr< bool > &a, boost::shared_ptr< std::ostream > &s) |
void | adoptMessageStreams (const Atom *src=NULL) |
std::ostream & | msg (MsgType type) |
bool | msgAct (MsgType type) |
Protected Attributes | |
double | p0 |
double | fracAir |
double | r |
double | l |
fmatvec::Vec | relPlotPoints |
WindowFunction | window_function_type |
int | n |
bool | printStateSpace |
![]() | |
HNode * | nFrom |
HNode * | nTo |
bool | nFromRelative |
bool | nToRelative |
fmatvec::Vec | direction |
fmatvec::SymMat | Mlocal |
fmatvec::Mat | Jacobian |
MBSim::Frame * | frameOfReference |
Private Member Functions | |
void | doPrintStateSpace () |
Private Attributes | |
fmatvec::Vec | QIn |
fmatvec::Vec | QOut |
fmatvec::Vec | wO |
fmatvec::Vec | wI |
fmatvec::Vec | hq |
fmatvec::Vec | hu |
fmatvec::Vec | hp0 |
fmatvec::Vec | cu |
fmatvec::Vec | y |
fmatvec::Mat | Tlocal |
fmatvec::Mat | relPlot |
fmatvec::SymMat | Mlocal |
Additional Inherited Members | |
![]() | |
static void | setCurrentMessageStream (MsgType type, const boost::shared_ptr< bool > &a=boost::make_shared< bool >(true), const boost::shared_ptr< std::ostream > &s=boost::make_shared< std::ostream >(std::cout.rdbuf())) |
static std::ostream & | msgStatic (MsgType type) |
static bool | msgActStatic (MsgType type) |
![]() | |
Atom (const Atom &src) | |
ElasticLineVariational This line model is described in J. Makinen, R. Piche and A. Ellman (2000), Fluid Transmission Line Modeling Using a Variational Method, ASME Journal of Dynamic Systems, Measurement, and Control,122 (1), 153-162.
MBSimHydraulics::ElasticLineVariational::ElasticLineVariational | ( | const std::string & | name = "" | ) |
Constructor
|
inline |
print system state vector
|
inline |
set diameter
|
inline |
set the fracAir of the pipe (for E-Modulus calculation
|
inline |
set length
|
inline |
number of harmonic ansatz functions (default n=9)
|
inline |
set initial pressure of the pipe fluid
|
inline |
select points in the pipe, for which a output should be created
|
inline |
select window function (default Blackman-Harris)