20 #ifndef _NONLINEAR_SPRING_DAMPER_FORCE_H_ 21 #define _NONLINEAR_SPRING_DAMPER_FORCE_H_ 23 #include "mbsim/functions/function.h" 58 double operator()(
const double& s,
const double& sd)
override {
return (*
sF)(s) + (*
sdF)(sd); }
59 void initializeUsingXML(xercesc::DOMElement *element)
override;
68 void setForceDeflectionFunction(
Function<
double(
double)> * sF_) {
74 void setForceVelocityFunction(
Function<
double(
double)> * sdF_) {
virtual void init(InitStage stage, const InitConfigSet &config)
plots time series header
Definition: element.cc:82
NonlinearSpringDamperForce()=default
constructor
function describing a nonlinear relationship between the input deflection / relative velocity and the...
Definition: nonlinear_spring_damper_force.h:32
Function< double(double)> * sF
deflection depending force function
Definition: nonlinear_spring_damper_force.h:85
void init(Element::InitStage stage, const InitConfigSet &config) override
plots time series header
Definition: nonlinear_spring_damper_force.h:60
~NonlinearSpringDamperForce() override
destructor
Definition: nonlinear_spring_damper_force.h:42
InitStage
The stages of the initialization.
Definition: element.h:62
Definition: contact_kinematics.h:32
Function()
Definition: function.h:57
Function< double(double)> * sdF
relative velocity depending force function
Definition: nonlinear_spring_damper_force.h:90
void setName(const std::string &str)
Definition: element.h:115
NonlinearSpringDamperForce(Function< double(double)> *sF_, Function< double(double)> *sdF_)
constructor
Definition: nonlinear_spring_damper_force.h:52
namespace MBSim
Definition: bilateral_constraint.cc:29