mbsim  4.0.0
MBSim Kernel
Loading...
Searching...
No Matches
MBSim::GeneralizedInitialPosition Class Reference
Inheritance diagram for MBSim::GeneralizedInitialPosition:
[legend]

Public Member Functions

 GeneralizedInitialPosition (const std::string &name="")
 
void setObject (Object *object_)
 
void setIndices (const std::vector< Index > &indices_)
 
void setValues (const fmatvec::Vec &q0_)
 
void calcSize () override
 
void calclaSize (int j) override
 calculates size of contact force parameters
 
void calccorrSize (int j) override
 
void updateGeneralizedPositions () override
 
void updateg () override
 
void updateW (int i=0) override
 
void updateWRef (fmatvec::Mat &WParent, int j=0) override
 references to contact force direction matrix of dynamic system parent
 
void init (InitStage stage, const InitConfigSet &config) override
 plots time series header
 
void initializeUsingXML (xercesc::DOMElement *element) override
 
- Public Member Functions inherited from MBSim::InitialCondition
 InitialCondition (const std::string &name)
 
void init (InitStage stage, const InitConfigSet &config) override
 plots time series header
 
void plot () override
 plots time dependent data
 
void deactivate ()
 
bool isActive () const override
 
bool gActiveChanged () override
 
bool isSetValued () const override
 asks the link if it contains force laws that contribute to the lagrange multiplier and is therefore set valued
 
bool isSingleValued () const override
 asks the link if it contains single valued force laws that contribute to the right-hand side vector h
 
void calcgSize (int j) override
 calculates size of relative distances
 
void calcgdSize (int j) override
 calculates size of gap velocities
 
void updatehRef (fmatvec::Vec &hParent, int j=0) override
 references to complete and link smooth force vector of dynamic system parent
 
void updaterRef (fmatvec::Vec &hParent, int j=0) override
 references to nonsmooth force vector of dynamic system parent
 
void updateVRef (fmatvec::Mat &WParent, int j=0) override
 references to condensed contact force direction matrix of dynamic system parent
 
- Public Member Functions inherited from MBSim::Element
 Element (const std::string &name)
 constructor
 
 ~Element () override=default
 destructor
 
void throwError (const std::string &msg) const
 
virtual void setDynamicSystemSolver (DynamicSystemSolver *sys)
 sets the used dynamics system solver to the element
 
virtual void plotAtSpecialEvent ()
 plots time dependent data at special events
 
const std::string & getName () const
 
void setName (const std::string &str)
 
void setPath (const std::string &str)
 
DynamicSystemSolver * getDynamicSystemSolver ()
 
H5::GroupBase * getPlotGroup ()
 
virtual H5::GroupBase * getFramesPlotGroup ()
 
virtual H5::GroupBase * getContoursPlotGroup ()
 
virtual H5::GroupBase * getGroupsPlotGroup ()
 
virtual H5::GroupBase * getObjectsPlotGroup ()
 
virtual H5::GroupBase * getLinksPlotGroup ()
 
virtual H5::GroupBase * getConstraintsPlotGroup ()
 
virtual H5::GroupBase * getObserversPlotGroup ()
 
bool getPlotFeature (const PlotFeatureEnum &pf)
 
virtual void setPlotFeature (const PlotFeatureEnum &pf, bool value)
 Set a plot feature.
 
void setPlotFeatureForChildren (const PlotFeatureEnum &pf, bool value)
 Set a plot feature for the children of this object.
 
void setPlotFeatureRecursive (const PlotFeatureEnum &pf, bool value)
 Set a plot feature for this object and the children of this object.
 
template<class T >
void setPlotAttribute (const std::string &name, const T &value, PlotAttributeStorage storage=PlotAttributeStorage::attribute)
 Set a plot attribute: static data attached as key/value pairs to the plot datasets/groups.
 
void setPlotAttribute (const std::string &name, PlotAttributeStorage storage=PlotAttributeStorage::attribute)
 
template<class T >
T * getByPath (const std::string &path, bool initialCaller=true) const
 Get the object of type T represented by the path path. Do not set any argurment other than path!
 
std::string getPath (const Element *relTo=nullptr, std::string sep="/") const
 Return the path of this object. If relativeTo is not NULL return a relative path to relativeTo. Do not set any argurment other than relTo and sep!
 
virtual Element * getChildByContainerAndName (const std::string &container, const std::string &name) const
 Get the Element named name in the container named container.
 
virtual std::shared_ptr< OpenMBV::Group > getOpenMBVGrp ()
 
virtual std::shared_ptr< OpenMBV::Group > getFramesOpenMBVGrp ()
 
virtual std::shared_ptr< OpenMBV::Group > getContoursOpenMBVGrp ()
 
virtual std::shared_ptr< OpenMBV::Group > getGroupsOpenMBVGrp ()
 
virtual std::shared_ptr< OpenMBV::Group > getObjectsOpenMBVGrp ()
 
virtual std::shared_ptr< OpenMBV::Group > getLinksOpenMBVGrp ()
 
virtual std::shared_ptr< OpenMBV::Group > getConstraintsOpenMBVGrp ()
 
virtual std::shared_ptr< OpenMBV::Group > getObserversOpenMBVGrp ()
 
virtual Element * getParent ()
 
virtual const Element * getParent () const
 
virtual void setParent (Element *parent_)
 
std::vector< Element * > getDependencies () const
 checks dependency on other elements.
 
void addDependency (Element *ele)
 
int computeLevel ()
 computes the length of the pathes in the graph that represents the dependencies between all elements.
 
virtual void updatePositions (Frame *frame)
 
virtual void updateVelocities (Frame *frame)
 
virtual void updateAccelerations (Frame *frame)
 
virtual void updateJacobians (Frame *frame, int j=0)
 
virtual void updateGyroscopicAccelerations (Frame *frame)
 
const double & getTime () const
 
double getStepSize () const
 
const MBXMLUtils::DOMEvalException & getDOMEvalError () const
 
void addToPlot (const std::string &name)
 
void addToPlot (const std::string &name, int size)
 
void addToPlot (const std::string &name, const std::vector< std::string > &iname)
 
template<class AT >
void plot (const AT &x)
 
template<class Type , class AT >
void plot (const fmatvec::Vector< Type, AT > &x)
 

Protected Attributes

Object * object
 
std::string objectString
 
std::vector< Index > indices
 
fmatvec::VecV q0
 
fmatvec::MatV JRel
 
- Protected Attributes inherited from MBSim::InitialCondition
bool active {true}
 
- Protected Attributes inherited from MBSim::Element
Element * parent { nullptr }
 
std::string name
 name of element
 
std::string path
 The path of this object. Is set during the init stage reorganizeHierarchy. Before this the path is calculated dynamically using getPath() after this stage getPath just returns this value.
 
MBXMLUtils::DOMEvalException domEvalError
 Special XML helper variable.
 
DynamicSystemSolver * ds { nullptr }
 dynamic system
 
H5::VectorSerie< double > * plotVectorSerie { nullptr }
 time series
 
std::vector< double > plotVector
 one entry of time series
 
std::vector< std::string > plotColumns
 columns of time series
 
H5::GroupBase * plotGroup { nullptr }
 associated plot group
 
std::vector< Element * > dependency
 vector containing all dependencies.
 
PlotFeatureMap plotFeature
 plot feature
 
PlotFeatureMap plotFeatureForChildren
 
std::map< std::string, std::pair< PlotAttributeStorage, std::variant< std::monostate, int, double, std::string, std::vector< int >, std::vector< double >, std::vector< std::vector< double > > > > > plotAttribute
 

Additional Inherited Members

- Public Types inherited from MBSim::Element
enum  InitStage {
  resolveStringRef =0 , preInit , plotting , unknownStage ,
  LASTINITSTAGE
}
 The stages of the initialization. More...
 
enum class  PlotAttributeStorage { attribute , dataset }
 
- Protected Member Functions inherited from MBSim::Element
void updatePlotFeatures ()
 

Member Function Documentation

◆ calccorrSize()

void MBSim::GeneralizedInitialPosition::calccorrSize ( int j)
overridevirtual

Reimplemented from MBSim::Link.

◆ calclaSize()

void MBSim::GeneralizedInitialPosition::calclaSize ( int j)
overridevirtual

calculates size of contact force parameters

Reimplemented from MBSim::Link.

◆ calcSize()

void MBSim::GeneralizedInitialPosition::calcSize ( )
overridevirtual

Reimplemented from MBSim::Link.

◆ init()

void MBSim::GeneralizedInitialPosition::init ( InitStage stage,
const InitConfigSet & config )
overridevirtual

plots time series header

Parameters
invocingparent class

Reimplemented from MBSim::Element.

◆ initializeUsingXML()

void MBSim::GeneralizedInitialPosition::initializeUsingXML ( xercesc::DOMElement * element)
overridevirtual

Reimplemented from MBSim::Element.

◆ updateg()

void MBSim::GeneralizedInitialPosition::updateg ( )
overridevirtual

Reimplemented from MBSim::Link.

◆ updateGeneralizedPositions()

void MBSim::GeneralizedInitialPosition::updateGeneralizedPositions ( )
overridevirtual

Reimplemented from MBSim::Link.

◆ updateW()

void MBSim::GeneralizedInitialPosition::updateW ( int i = 0)
overridevirtual

Reimplemented from MBSim::Link.

◆ updateWRef()

void MBSim::GeneralizedInitialPosition::updateWRef ( fmatvec::Mat & ref,
int i = 0 )
overridevirtual

references to contact force direction matrix of dynamic system parent

Implements MBSim::Link.


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