MBSim

Project Page
Public Member Functions
MBSim::ContourQuad Class Reference

Quad for 3D interpolation. More...

#include <contour_quad.h>

Inheritance diagram for MBSim::ContourQuad:
MBSim::ContourInterpolation MBSim::Contour MBSim::Element

List of all members.

Public Member Functions

 ContourQuad (const std::string &name)
 constructor
virtual void init (InitStage stage)
 TODO.
bool testInsideBounds (const ContourPointData &cp)
 prototype for test if Contour-point given is inside or outside defined contour area
double computePointWeight (const fmatvec::Vec &s, int i)
 prototype of method giving weights of all Point s
double computePointWeight (const fmatvec::Vec &s, int i, int diff)
 prototype of method giving first derivatives with respect to the diff-th Contour-parameters of all Point s
fmatvec::Vec computeWn (const ContourPointData &cp)
- Public Member Functions inherited from MBSim::ContourInterpolation
 ContourInterpolation (const std::string &name, int parameters_, int nPoints_)
 constructor
void setPoint (Point *pointN, int n)
 set point for interpolation
std::vector< Point * > getPoints () const
 get list of Point s
Point * getPoint (const int n) const
int getNPoints () const
 get number of Point s used for interpolation
int getNContourParameters () const
 get number of Contour-parameters of Contour
fmatvec::Vec computePointWeights (const fmatvec::Vec &s)
 compute all weights for nodes
fmatvec::Vec computeWrOC (const fmatvec::Vec &s)
fmatvec::Vec computeWvC (const fmatvec::Vec &s)
fmatvec::Mat computeWt (const fmatvec::Vec &s)
fmatvec::Vec computeWn (const fmatvec::Vec &s)
fmatvec::Vec computeWrOC (const ContourPointData &cp)
fmatvec::Vec computeWvC (const ContourPointData &cp)
fmatvec::Mat computeWt (const ContourPointData &cp)
- Public Member Functions inherited from MBSim::Contour
 Contour (const std::string &name)
 constructor
virtual ~Contour ()
 destructor
virtual std::string getType () const
virtual void plot (double t, double dt=1)
 plots time dependent data
virtual void updateKinematicsForFrame (ContourPointData &cp, FrameFeature ff)=0
 cartesian kinematic for contour (normal, tangent, binormal) is set by implementation class
virtual void updateJacobiansForFrame (ContourPointData &cp, int j=0)=0
 JACOBIAN for contour (normal, tangent, binormal) is set by implementation class.
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 double computeCurvature (ContourPointData &cp)
virtual fmatvec::Vec computeLagrangeParameter (const fmatvec::Vec &WrPoint)
 projects the point on the contour to compute the Lagrange parameter
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)
virtual ContactKinematics * findContactPairingWith (std::string type0, std::string type1)=0
 find contact kinematics
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)
virtual void initializeUsingXML (TiXmlElement *element)
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='.')

Additional Inherited Members

- Protected Attributes inherited from MBSim::ContourInterpolation
std::vector< Point * > iPoints
 list of Point s holding ContourInterpolation
int contourParameters
 number of Contour-parameters used by ContourInterpolation: 1 for lines, 2 for surfaces
int numberOfPoints
 size of iPoints, number of Point s used for interpolation
- Protected Attributes inherited from MBSim::Contour
int hSize [2]
 object the contour belongs to
int hInd [2]
Frame R
 coordinate system of contour
- 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

Detailed Description

Quad for 3D interpolation.

See also:
{OpenGL-documentation}

Constructor & Destructor Documentation

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

constructor

Parameters:
nameof point

Member Function Documentation

double MBSim::ContourQuad::computePointWeight ( const fmatvec::Vec &  s,
int  i 
)
virtual

prototype of method giving weights of all Point s

Parameters:
sContour-parameter(s)
iPoint number
Returns:
weight of Point i at s

Implements MBSim::ContourInterpolation.

double MBSim::ContourQuad::computePointWeight ( const fmatvec::Vec &  s,
int  i,
int  diff 
)
virtual

prototype of method giving first derivatives with respect to the diff-th Contour-parameters of all Point s

Parameters:
sContour-parameter(s)
iPoint number
diff-th derivative
Returns:
weight/derivative of Point i at s

Implements MBSim::ContourInterpolation.

bool MBSim::ContourQuad::testInsideBounds ( const ContourPointData &  cp)
virtual

prototype for test if Contour-point given is inside or outside defined contour area

Parameters:
cpContour-point
Returns:
true, if cp is inside boundaries, else false

Implements MBSim::ContourInterpolation.


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