MBSim

Project Page
Public Member Functions | Protected Attributes
MBSim::Gearing Class Reference
Inheritance diagram for MBSim::Gearing:
MBSim::LinkMechanics MBSim::Link MBSim::Element

List of all members.

Public Member Functions

 Gearing (const std::string &name, bool flag=false)
void updateh (double, int i=0)
void updateW (double, int i=0)
void updateJacobians (double t, int j=0)
void updateg (double)
void updategd (double)
void updatewb (double t, int i=0)
void updatehRef (const fmatvec::Vec &hParent, int j=0)
 references to complete and link smooth force vector of dynamic system parent
void updateWRef (const fmatvec::Mat &WParent, int j=0)
 references to contact force direction matrix of dynamic system parent
void connect (double r1, Frame *frame1_, double r2, Frame *frame2_)
virtual void updatexd (double t)
virtual void updatedx (double t, double dt)
virtual void calcxSize ()
bool isActive () const
bool gActiveChanged ()
std::string getType () const
void init (InitStage stage)
 plots time series header
bool isSetValued () const
virtual void calclaSize ()
virtual void calcgSize ()
virtual void calcgdSize ()
void setForceFunction (Function2< double, double, double > *func_)
void plot (double t, double dt=1)
 plots time dependent data
- 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)
virtual void initializeUsingXML (TiXmlElement *element)
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

Function2< double, double,
double > * 
func
double r0
double r1
bool flag
Frame Z0
Frame Z1
Frame * P0
Frame * P1
fmatvec::Vec WrP0Z
fmatvec::Vec WrP1Z
fmatvec::Vec Wt
- 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

Member Function Documentation

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

Implements MBSim::Link.

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

Reimplemented from MBSim::LinkMechanics.

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

plots time series header

Parameters:
invocingparent class

Reimplemented from MBSim::LinkMechanics.

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

Implements MBSim::Link.

bool MBSim::Gearing::isSetValued ( ) const
virtual
Returns:
set valued force laws used?

Reimplemented from MBSim::Link.

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

plots time dependent data

Parameters:
simulationtime
simulationtime step size for derivative calculation

Reimplemented from MBSim::LinkMechanics.


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