MBSim

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

class for Maxwell contact force law More...

#include <maxwell_contact.h>

Inheritance diagram for MBSim::MaxwellContact:
MBSim::LinkMechanics MBSim::Link MBSim::Element

List of all members.

Public Member Functions

 MaxwellContact (const std::string &name)
 constructor
virtual ~MaxwellContact ()
 destructor
virtual void updateh (double t, int k=0)
virtual void updateg (double t)
virtual void updategd (double t)
virtual void updateJacobians (double t, int j=0)
virtual void updatehRef (const fmatvec::Vec &hRef, int k=0)
 references to complete and link smooth force vector of dynamic system parent
virtual void init (InitStage stage)
 plots time series header
virtual bool isSetValued () const
virtual bool isActive () const
virtual bool gActiveChanged ()
virtual void checkActiveg ()
void setParent (DynamicSystem *sys)
virtual std::string getType () const
virtual void plot (double t, double dt=1)
 plots time dependent data
virtual void closePlot ()
 closes plot file
ContourPairing * getContourPariing (const int &contactNumber)
void setLCPSolvingStrategy (LCPSolvingStrategy strategy)
LCPSolvingStrategy getLCPSolvingStrategy (void)
void setDebuglevel (const int &Debuglevel_)
 output information to console?
void addContourPairing (ContourPairing *contourPairing_)
 add a contour-pairing to force law
void addContourCoupling (Contour *contour1, Contour *contour2, InfluenceFunction *fct)
 add a function that represents the coupling between two contours

Protected Member Functions

virtual void updatePossibleContactPoints ()
 saves all possible contacts in a vector
virtual void updateInfluenceMatrix (const double t)
 updates the influence matrix C
void updateRigidBodyGap (const double &t)
 update the rigid body distances (gaps) for the single contacts
virtual double computeInfluenceCoefficient (const int &currentContactNumber)
 computes the coupling factor for the influence matrix on one contact point (two contours)
virtual double computeInfluenceCoefficient (const int &currentContactNumber, const int &couplingContactNumber)
 computes the coupling factor for the influence matrix between two contact points (four contours)
virtual void computeMaterialConstant (const double &t)
virtual void fitSolution0 (const double &t)
 fit the solution vector for the solveLCP-routine if the size of the LCP has changed

Protected Attributes

std::vector< ContourPairing * > contourPairing
 vector of ContourPairing (frames and Arrows)
std::vector< int > possibleContactPoints
 saves the indices of all active contacts
fmatvec::SymMat C
 Influence matrix between contact points.
fmatvec::Vec rigidBodyGap
std::map< std::pair< Contour
*, Contour * >
, InfluenceFunction * > 
influenceFunctions
 saves the influence functions for a pair of contours.
LCPSolvingStrategy lcpSolvingStrategy
 strategy for solving the LCP
fmatvec::Vec solution0
 Solution of the last time, where contact has to be solved (can be used as starting guess for the next algorithm)
double matConst
 parameter for guessing starting values of contact force (average eigenvalue of influence-matrix)
bool matConstSetted
 parameter to save if matConst has been computed already
int DEBUGLEVEL
 print INFO output?

Detailed Description

class for Maxwell contact force law

Author:
Kilian Grundl
Date:
2011-09-02 first check in

Remarks:


Constructor & Destructor Documentation

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

constructor

Parameters:
nameof contact

Member Function Documentation

void MBSim::MaxwellContact::addContourCoupling ( Contour *  contour1,
Contour *  contour2,
InfluenceFunction *  fct 
)

add a function that represents the coupling between two contours

Parameters:
nameof first contour
nameof second contour
Functionto describe coupling between contours

Remark: The parameters (LagrangeParameterPositions) of the function have to be in the same order as it was given the add(...)-method

add a contour-pairing to force law

Parameters:
firstcontour
secondcontour
contactKinematicsfor both contours

Remark: The parameters (LagrangeParameterPositions) of the function (type: Function2) for the influence numbers have to be in the same order like the contours here. So the first input parameter for the function will be the LagrangeParameterPosition of contour1 and the second input parameter for the function will be the LagrangeParameterPosition for contour2

virtual double MBSim::MaxwellContact::computeInfluenceCoefficient ( const int &  currentContactNumber) [protected, virtual]

computes the coupling factor for the influence matrix on one contact point (two contours)

Parameters:
numberof contact point
virtual double MBSim::MaxwellContact::computeInfluenceCoefficient ( const int &  currentContactNumber,
const int &  couplingContactNumber 
) [protected, virtual]

computes the coupling factor for the influence matrix between two contact points (four contours)

Parameters:
numberof contact point
numberof coupling contact point
virtual bool MBSim::MaxwellContact::gActiveChanged ( ) [inline, virtual]
Returns:
has the relative distance vector changed?

Implements MBSim::Link.

virtual std::string MBSim::MaxwellContact::getType ( ) const [inline, virtual]
Returns:
std::string representation

Reimplemented from MBSim::LinkMechanics.

virtual void MBSim::MaxwellContact::init ( InitStage  stage) [virtual]

plots time series header

Parameters:
invocingparent class

Reimplemented from MBSim::LinkMechanics.

virtual bool MBSim::MaxwellContact::isActive ( ) const [inline, virtual]
Returns:
are link equations active?

Implements MBSim::Link.

virtual bool MBSim::MaxwellContact::isSetValued ( ) const [inline, virtual]
Returns:
set valued force laws used?

Reimplemented from MBSim::Link.

virtual void MBSim::MaxwellContact::plot ( double  t,
double  dt = 1 
) [virtual]

plots time dependent data

Parameters:
simulationtime
simulationtime step size for derivative calculation

Reimplemented from MBSim::LinkMechanics.


Member Data Documentation

print INFO output?

0 = no DEBUGOutput 1 = most important information 2 = ... 5 = Matrices and Vectors

Todo:
wouldn't a logger for MBSim be nice

saves the influence functions for a pair of contours.

The key is the pair of contour names


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