MBSim |
Project Page |
basic force law on acceleration level for constraint description More...
#include <constitutive_laws.h>
Public Member Functions | |
| GeneralizedForceLaw () | |
| constructor | |
| GeneralizedForceLaw (Function2< 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 (TiXmlElement *element) |
| initialize the force law using XML | |
| double | operator() (double g, double gd, const void *additional=NULL) |
| void | setForceFunction (Function2< 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 | |
|
Function2< double, double, double > * | forceFunc |
basic force law on acceleration level for constraint description
|
inlinevirtual |
initialize the force law using XML
| XML | element |
Reimplemented in MBSim::RegularizedBilateralConstraint, and MBSim::RegularizedUnilateralConstraint.
|
inlinevirtual |
| relative | distance |
| tolerance |
Reimplemented in MBSim::RegularizedBilateralConstraint, MBSim::RegularizedUnilateralConstraint, MBSim::BilateralConstraint, and MBSim::UnilateralConstraint.
|
inlinevirtual |
| contact | force parameter |
| contact | relative velocity |
| tolerance | for contact force parameters |
| tolerance | for relative velocity |
Reimplemented in MBSim::BilateralConstraint, and MBSim::UnilateralConstraint.
|
pure virtual |
Implemented in MBSim::RegularizedBilateralConstraint, MBSim::RegularizedUnilateralConstraint, MBSim::BilateralConstraint, and MBSim::UnilateralConstraint.
|
inline |
| g | distance of the contact points |
| gd | relative velocity in normal direction of contact points |
| additional | ?? |
|
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.1.1