mbsimhydraulics  4.0.0
MBSim Hydraulics Module
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
MBSimHydraulics::StatelessOrifice Class Reference

#include <hline.h>

Inheritance diagram for MBSimHydraulics::StatelessOrifice:
[legend]

Public Member Functions

 StatelessOrifice (const std::string &name="")
 
void setInflowFunction (MBSim::Function< double(double)> *inflowFunction_)
 
void setOutflowFunction (MBSim::Function< double(double)> *outflowFunction_)
 
void setOpeningFunction (MBSim::Function< double(double)> *openingFunction_)
 
void setDiameter (double diameter_)
 
void setAlpha (double alpha_)
 
void setCalcAreaModus (int calcAreaModus_)
 
void calcqSize () override
 
void calcuSize (int j) override
 
void updateQ () override
 
void initializeUsingXML (xercesc::DOMElement *element) override
 
void init (InitStage stage, const MBSim::InitConfigSet &config) override
 
void plot () override
 
- Public Member Functions inherited from MBSimHydraulics::HLine
 HLine (const std::string &name)
 
void calcSize () override
 
void updateh (int j=0) override
 
void updateJacobians (int j=0)
 
void updateInverseKineticsJacobians ()
 
std::shared_ptr< OpenMBV::Group > getOpenMBVGrp () override
 
virtual void setFrameOfReference (MBSim::Frame *frame)
 
void setFromNode (HNode *nFrom_)
 
void setToNode (HNode *nTo_)
 
void setDirection (const fmatvec::Vec &dir)
 
HNode * getFromNode ()
 
HNode * getToNode ()
 
void setOutflowRelative (bool rel=true)
 
void setInflowRelative (bool rel=true)
 
virtual fmatvec::VecV getInflowFactor ()
 
virtual fmatvec::VecV getOutflowFactor ()
 
const fmatvec::VecV & evalQIn ()
 
const fmatvec::VecV & evalQOut ()
 
const fmatvec::VecV & getQIn (bool check=true) const
 
const fmatvec::VecV & getQOut (bool check=true) const
 
const fmatvec::MatV & getJacobian () const
 
void updateM () override
 
void init (InitStage stage, const MBSim::InitConfigSet &config) override
 
void initializeUsingXML (xercesc::DOMElement *element) override
 
virtual Element * getDependency () const
 
void resetUpToDate () override
 
HydraulicEnvironment * getHydEnv () const
 

Private Attributes

MBSim::Function< double(double)> * inflowFunction {nullptr}
 
MBSim::Function< double(double)> * outflowFunction {nullptr}
 
MBSim::Function< double(double)> * openingFunction {nullptr}
 
double diameter {0}
 
double alpha {0.}
 
int calcAreaModus {0}
 
double pIn
 
double pOut
 
double dp
 
double sign
 
double opening
 
double area
 
double sqrt_dp
 

Additional Inherited Members

- Protected Attributes inherited from MBSimHydraulics::HLine
HydraulicEnvironment * hydEnv =nullptr
 
HNode * nFrom
 
HNode * nTo
 
bool nFromRelative
 
bool nToRelative
 
fmatvec::VecV direction
 
fmatvec::SymMatV Mlocal
 
fmatvec::VecV QIn
 
fmatvec::VecV QOut
 
fmatvec::MatV Jacobian
 
MBSim::Frame * frameOfReference
 
bool updQ
 

Detailed Description


The documentation for this class was generated from the following files: