20 #ifndef _PLANAR_STRIBECK_FRICTION_H_
21 #define _PLANAR_STRIBECK_FRICTION_H_
23 #include <mbsim/constitutive_laws/friction_force_law.h>
39 if(
fmu)
fmu->setParent(
this);
58 virtual int getFrictionDirections() {
return 1; }
59 virtual bool isSticking(
const fmatvec::Vec& s,
double sTol) {
return fabs(s(0)) <= sTol; }
60 virtual double getFrictionCoefficient(
double gd) {
return (*
fmu)(gd); }
61 virtual bool isSetValued()
const {
return true; }
62 virtual void initializeUsingXML(xercesc::DOMElement *element);
63 virtual std::string
getType()
const {
return "PlanarStribeckFriction"; }
66 void setFrictionFunction(
Function<
double(
double)> *fmu_) {
68 if(
fmu)
fmu->setParent(
this);
virtual ~PlanarStribeckFriction()
destructor
Definition: planar_stribeck_friction.h:45
PlanarStribeckFriction(Function< double(double)> *fmu_=NULL)
constructor
Definition: planar_stribeck_friction.h:38
planar Stribeck friction force law on acceleration level for constraint description ...
Definition: planar_stribeck_friction.h:33
void init(Element::InitStage stage)
plots time series header
Definition: planar_stribeck_friction.h:47
InitStage
The stages of the initialization.
Definition: element.h:97
basic friction force law on acceleration level for constraint description
Definition: friction_force_law.h:32
Definition: planar_contour.h:31
Function< double(double)> * fmu
Definition: planar_stribeck_friction.h:75
virtual void init(InitStage stage)
plots time series header
Definition: element.cc:70
void init(Element::InitStage stage)
plots time series header
Definition: friction_force_law.h:47
virtual std::string getType() const
Definition: planar_stribeck_friction.h:63