MBSim

Project Page
Public Member Functions | Protected Attributes | Private Attributes
MBSim::Circle Class Reference

circular contour with contact possibility from outside and inside and binormal in direction of the third column of the contour reference frame More...

#include <circle.h>

Inheritance diagram for MBSim::Circle:
MBSim::RigidContour MBSim::Contour MBSim::Element MBSim::CircleHollow MBSim::CircleSolid

List of all members.

Public Member Functions

 Circle (const std::string &name)
 constructor
 Circle (const std::string &name, bool outCont_)
 constructor
 Circle (const std::string &name, double r_, bool outCont_)
 constructor
virtual ~Circle ()
 destructor
std::string getType () const
virtual void init (InitStage stage)
 TODO.
virtual double computeCurvature (ContourPointData &cp)
virtual fmatvec::Vec computeLagrangeParameter (const fmatvec::Vec &WrPoint)
 projects the point on the contour to compute the Lagrange parameter
void setRadius (double r_)
void setOutCont (bool outCont_)
double getRadius () const
bool getOutCont () const
virtual void initializeUsingXML (TiXmlElement *element)
- Public Member Functions inherited from MBSim::RigidContour
 RigidContour (const std::string &name)
 constructor
virtual void plot (double t, double dt=1)
 plots time dependent data
virtual void updateKinematicsForFrame (ContourPointData &cp, FrameFeature ff)
 cartesian kinematic for contour (normal, tangent, binormal) is set by implementation class
virtual void updateJacobiansForFrame (ContourPointData &cp, int j=0)
 JACOBIAN for contour (normal, tangent, binormal) is set by implementation class.
ContactKinematics * findContactPairingWith (std::string type0, std::string type1)
 contact search for RigidContours
- Public Member Functions inherited from MBSim::Contour
 Contour (const std::string &name)
 constructor
virtual ~Contour ()
 destructor
virtual fmatvec::Vec computeNormal (ContourPointData &cp)
virtual fmatvec::Vec computePosition (ContourPointData &cp)
virtual fmatvec::Vec computeVelocity (ContourPointData &cp)
virtual fmatvec::Vec computeAngularVelocity (ContourPointData &cp)
virtual void setReferencePosition (const fmatvec::Vec &WrOP)
virtual void setReferenceOrientation (const fmatvec::SqrMat &AWC)
virtual void setReferenceVelocity (const fmatvec::Vec &WvP)
virtual void setReferenceAngularVelocity (const fmatvec::Vec &WomegaC)
virtual void setReferenceJacobianOfTranslation (const fmatvec::Mat &WJP, int j=0)
virtual void setReferenceGyroscopicAccelerationOfTranslation (const fmatvec::Vec &WjP, int j=0)
virtual void setReferenceJacobianOfRotation (const fmatvec::Mat &WJR, int j=0)
virtual void setReferenceGyroscopicAccelerationOfRotation (const fmatvec::Vec &WjR, int j=0)
virtual void setReferenceAcceleration (const fmatvec::Vec &WaP)
virtual void setReferenceAngularAcceleration (const fmatvec::Vec &WpsiC)
Frame * getFrame ()
const fmatvec::Vec & getReferencePosition () const
const fmatvec::SqrMat & getReferenceOrientation () const
const fmatvec::Vec & getReferenceVelocity () const
const fmatvec::Vec & getReferenceAngularVelocity () const
const fmatvec::Mat & getReferenceJacobianOfTranslation (int j=0) const
const fmatvec::Mat & getReferenceJacobianOfRotation (int j=0) const
fmatvec::Mat & getReferenceJacobianOfTranslation (int j=0)
fmatvec::Mat & getReferenceJacobianOfRotation (int j=0)
const fmatvec::Vec & getReferenceGyroscopicAccelerationOfTranslation () const
const fmatvec::Vec & getReferenceGyroscopicAccelerationOfRotation () const
fmatvec::Vec & getReferenceGyroscopicAccelerationOfTranslation ()
fmatvec::Vec & getReferenceGyroscopicAccelerationOfRotation ()
int gethSize (int i=0) const
int gethInd (int i=0) const
void sethSize (int size, int i=0)
void sethInd (int ind, int i=0)
virtual void setPlotFeature (PlotFeature pf, PlotFeatureStatus value)
 Set a plot feature.
- 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
virtual void closePlot ()
 closes plot file
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 ()
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 * getByPathSearch (std::string path)
 a general element search by path
virtual Element * getParent ()
virtual const Element * getParent () const
virtual void setParent (Element *parent_)
std::string getPath (char pathDelim='.')

Protected Attributes

double r
 radius
double curvature
 curvature of circle

Private Attributes

bool outCont
 contact on outer surface?

Detailed Description

circular contour with contact possibility from outside and inside and binormal in direction of the third column of the contour reference frame

Author:
Thorsten Schindler
Date:
2009-07-13 initial commit (Thorsten Schindler)
2009-12-21 adaptations concerning CircleHollow and CircleSolid

Constructor & Destructor Documentation

MBSim::Circle::Circle ( const std::string &  name)

constructor

Parameters:
nameof circle contact from inside
MBSim::Circle::Circle ( const std::string &  name,
bool  outCont_ 
)

constructor

Parameters:
nameof circle
contactfrom outside?
MBSim::Circle::Circle ( const std::string &  name,
double  r_,
bool  outCont_ 
)

constructor

Parameters:
nameof circle
radius
contactfrom outside?

Member Function Documentation

virtual double MBSim::Circle::computeCurvature ( ContourPointData &  cp)
inlinevirtual
Returns:
curvature of contour in contour point
Parameters:
contourposition

Reimplemented from MBSim::Contour.

virtual fmatvec::Vec MBSim::Circle::computeLagrangeParameter ( const fmatvec::Vec &  WrPoint)
virtual

projects the point on the contour to compute the Lagrange parameter

Parameters:
WrPointpoint in world coordinates
Returns:
Vec of lagrange parameters
Remarks:
: a vector length of 2 is necessary (Vec(2,INIT,0.))

Reimplemented from MBSim::Contour.

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

Reimplemented from MBSim::RigidContour.

Reimplemented in MBSim::CircleHollow, and MBSim::CircleSolid.


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