MBSim |
Project Page |
basic force law on acceleration level for constraint description More...
#include <constitutive_laws.h>
Public Member Functions | |
| GeneralizedForceLaw () | |
| constructor | |
| GeneralizedForceLaw (fmatvec::Function< double(double, double)> *forceFunc_) | |
| virtual | ~GeneralizedForceLaw () |
| destructor | |
| virtual bool | isActive (double g, double gTol) |
| virtual bool | remainsActive (double s, double sTol) |
| virtual double | project (double la, double gdn, double r, double laMin=0) |
| virtual fmatvec::Vec | diff (double la, double gdn, double r, double laMin=0) |
| virtual double | solve (double G, double gdn) |
| virtual bool | isFulfilled (double la, double gdn, double tolla, double tolgd, double laMin=0) |
| virtual bool | isSetValued () const =0 |
| virtual void | initializeUsingXML (xercesc::DOMElement *element) |
| initialize the force law using XML | |
| virtual xercesc::DOMElement * | writeXMLFile (xercesc::DOMNode *parent) |
| virtual std::string | getType () const |
| double | operator() (double g, double gd) |
| virtual void | computeSmoothForces (std::vector< std::vector< SingleContact > > &contact) |
| computes the normal forces for smooth constitutive law on every contact point | |
| void | setForceFunction (fmatvec::Function< double(double, double)> *forceFunc_) |
| Set the force function for use in regularisized constitutive laws The first input parameter to the force function is g. | |
Protected Attributes | |
|
fmatvec::Function< double(double, double)> * | forceFunc |
| force function for a regularized contact law | |
basic force law on acceleration level for constraint description
| virtual void MBSim::GeneralizedForceLaw::computeSmoothForces | ( | std::vector< std::vector< SingleContact > > & | contact | ) | [inline, virtual] |
computes the normal forces for smooth constitutive law on every contact point
| contacts | vector of contacts that are part of the contact law |
Reimplemented in MBSim::RegularizedBilateralConstraint, MBSim::MaxwellUnilateralConstraint, and MBSim::RegularizedUnilateralConstraint.
| virtual std::string MBSim::GeneralizedForceLaw::getType | ( | ) | const [inline, virtual] |
Reimplemented in MBSim::RegularizedBilateralConstraint, MBSim::BilateralConstraint, and MBSim::UnilateralConstraint.
| virtual void MBSim::GeneralizedForceLaw::initializeUsingXML | ( | xercesc::DOMElement * | element | ) | [inline, virtual] |
initialize the force law using XML
| XML | element |
Reimplemented in MBSim::RegularizedBilateralConstraint, MBSim::MaxwellUnilateralConstraint, and MBSim::RegularizedUnilateralConstraint.
| virtual bool MBSim::GeneralizedForceLaw::isActive | ( | double | g, |
| double | gTol | ||
| ) | [inline, virtual] |
| relative | distance |
| tolerance |
Reimplemented in MBSim::RegularizedBilateralConstraint, MBSim::MaxwellUnilateralConstraint, MBSim::RegularizedUnilateralConstraint, MBSim::BilateralConstraint, and MBSim::UnilateralConstraint.
| virtual bool MBSim::GeneralizedForceLaw::isFulfilled | ( | double | la, |
| double | gdn, | ||
| double | tolla, | ||
| double | tolgd, | ||
| double | laMin = 0 |
||
| ) | [inline, virtual] |
| contact | force parameter |
| contact | relative velocity |
| tolerance | for contact force parameters |
| tolerance | for relative velocity |
Reimplemented in MBSim::BilateralConstraint, and MBSim::UnilateralConstraint.
| virtual bool MBSim::GeneralizedForceLaw::isSetValued | ( | ) | const [pure virtual] |
Implemented in MBSim::RegularizedBilateralConstraint, MBSim::MaxwellUnilateralConstraint, MBSim::RegularizedUnilateralConstraint, MBSim::BilateralConstraint, and MBSim::UnilateralConstraint.
| double MBSim::GeneralizedForceLaw::operator() | ( | double | g, |
| double | gd | ||
| ) | [inline] |
| g | distance of the contact points |
| gd | relative velocity in normal direction of contact points |
| additional | ?? |
| void MBSim::GeneralizedForceLaw::setForceFunction | ( | fmatvec::Function< double(double, double)> * | forceFunc_ | ) | [inline] |
Set the force function for use in regularisized constitutive laws The first input parameter to the force function is g.
The second input parameter to the force function is gd. The return value is the force.
1.8.0