MBSim |
Project Page |
class for Maxwell contact force law More...
#include <maxwell_contact.h>
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 ¤tContactNumber) |
| computes the coupling factor for the influence matrix on one contact point (two contours) | |
| virtual double | computeInfluenceCoefficient (const int ¤tContactNumber, 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? | |
class for Maxwell contact force law
Remarks:
| MBSim::MaxwellContact::MaxwellContact | ( | const std::string & | name | ) |
constructor
| name | of contact |
| void MBSim::MaxwellContact::addContourCoupling | ( | Contour * | contour1, |
| Contour * | contour2, | ||
| InfluenceFunction * | fct | ||
| ) |
add a function that represents the coupling between two contours
| name | of first contour |
| name | of second contour |
| Function | to 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
| void MBSim::MaxwellContact::addContourPairing | ( | ContourPairing * | contourPairing_ | ) |
add a contour-pairing to force law
| first | contour |
| second | contour |
| contactKinematics | for 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)
| number | of 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)
| number | of contact point |
| number | of coupling contact point |
| virtual bool MBSim::MaxwellContact::gActiveChanged | ( | ) | [inline, virtual] |
Implements MBSim::Link.
| virtual std::string MBSim::MaxwellContact::getType | ( | ) | const [inline, virtual] |
Reimplemented from MBSim::LinkMechanics.
| virtual void MBSim::MaxwellContact::init | ( | InitStage | stage | ) | [virtual] |
| virtual bool MBSim::MaxwellContact::isActive | ( | ) | const [inline, virtual] |
Implements MBSim::Link.
| virtual bool MBSim::MaxwellContact::isSetValued | ( | ) | const [inline, virtual] |
Reimplemented from MBSim::Link.
| virtual void MBSim::MaxwellContact::plot | ( | double | t, |
| double | dt = 1 |
||
| ) | [virtual] |
plots time dependent data
| simulation | time |
| simulation | time step size for derivative calculation |
Reimplemented from MBSim::LinkMechanics.
int MBSim::MaxwellContact::DEBUGLEVEL [protected] |
std::map<std::pair<Contour*, Contour*>, InfluenceFunction*> MBSim::MaxwellContact::influenceFunctions [protected] |
saves the influence functions for a pair of contours.
The key is the pair of contour names
1.8.0