MBSim

Project Page
Classes | Public Types | Public Member Functions | Protected Attributes | Private Attributes
MBSim::ExternGeneralizedIO Class Reference
Inheritance diagram for MBSim::ExternGeneralizedIO:
MBSim::Link MBSim::Element

List of all members.

Classes

struct  ApplyForceAlsoTo

Public Types

enum  Type { CONSTANT, LINEAR }

Public Member Functions

 ExternGeneralizedIO (const std::string &name)
void updateh (double, int i=0)
void updateg (double)
void updategd (double)
void calcxSize ()
void updatedx (double t, double dt)
void updatexd (double t)
bool isActive () const
bool gActiveChanged ()
std::string getType () const
void init (InitStage stage)
 plots time series header
void connect (Object *obj, int qInd_, int uInd_)
void setGeneralizedForce (double h)
void setGeneralizedLinearForceParameters (double m_, double a_, double t0_)
double getGeneralizedPosition ()
double getGeneralizedVelocity ()
void plot (double t, double dt=1)
 plots time dependent data
void initializeUsingXML (TiXmlElement *element)
Type getType ()
virtual void updateWRef (const fmatvec::Mat &, int)
 references to contact force direction matrix of dynamic system parent
virtual void updateVRef (const fmatvec::Mat &, int)
 references to condensed contact force direction matrix of dynamic system parent
virtual void updatehRef (const fmatvec::Vec &, int)
 references to complete and link smooth force vector of dynamic system parent
virtual void updatedhdqRef (const fmatvec::Mat &, int)
virtual void updatedhduRef (const fmatvec::SqrMat &, int)
virtual void updatedhdtRef (const fmatvec::Vec &, int)
virtual void updaterRef (const fmatvec::Vec &, int)
 references to nonsmooth force vector of dynamic system parent
void addApplyForceAlsoTo (Object *ref, double factor, int index)
- Public Member Functions inherited from MBSim::Element
 Element (const std::string &name)
 constructor
virtual ~Element ()
 destructor
virtual void initDataInterfaceBase (DynamicSystemSolver *parentds)
 TODO.
virtual void setDynamicSystemSolver (DynamicSystemSolver *sys)
virtual void plotAtSpecialEvent (double t, double dt=1)
 plots time dependent data at special events
const std::string & getName () const
const std::string getShortName () const
void setName (const std::string &str)
DynamicSystemSolver * getDynamicSystemSolver ()
virtual void createPlotGroup ()
 creates the plotGroup for H5-output
H5::Group * getPlotGroup ()
virtual void setPlotFeature (PlotFeature pf, PlotFeatureStatus value)
 Set a plot feature.
void setPlotFeatureForChildren (PlotFeature pf, PlotFeatureStatus value)
 Set a plot feature for the children of this object.
void setPlotFeatureRecursive (PlotFeature pf, PlotFeatureStatus value)
 Set a plot feature for this object and the children of this object.
PlotFeatureStatus getPlotFeature (PlotFeature pf)
PlotFeatureStatus getPlotFeatureForChildren (PlotFeature pf)
template<class T >
T * getByPath (std::string path)
 a general element access
virtual Element * getParent ()
virtual const Element * getParent () const
virtual void setParent (Element *parent_)
std::string getPath (char pathDelim='.')

Protected Attributes

Object * connectedObject
int qInd
int uInd
double m
double a
double t0
std::vector< ApplyForceAlsoTo > applyForceAlsoTo
Type type
- Protected Attributes inherited from MBSim::Element
Element * parent
std::string name
 name of element
DynamicSystemSolver * ds
 dynamic system
H5::VectorSerie< double > * plotVectorSerie
 time series
std::vector< double > plotVector
 one entry of time series
std::vector< std::string > plotColumns
 columns of time series
H5::Group * plotGroup
 associated plot group

Private Attributes

std::string saved_connectedObject

Member Function Documentation

bool MBSim::ExternGeneralizedIO::gActiveChanged ( )
inlinevirtual
Returns:
has the relative distance vector changed?

Implements MBSim::Link.

std::string MBSim::ExternGeneralizedIO::getType ( ) const
inlinevirtual
Returns:
std::string representation

Reimplemented from MBSim::Link.

void MBSim::ExternGeneralizedIO::init ( InitStage  stage)
virtual

plots time series header

Parameters:
invocingparent class

Reimplemented from MBSim::Link.

bool MBSim::ExternGeneralizedIO::isActive ( ) const
inlinevirtual
Returns:
are link equations active?

Implements MBSim::Link.

void MBSim::ExternGeneralizedIO::plot ( double  t,
double  dt = 1 
)
virtual

plots time dependent data

Parameters:
simulationtime
simulationtime step size for derivative calculation

Reimplemented from MBSim::Link.


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