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=InitConfigSet())
plots time series header
Definition: element.cc:85
InitStage
The stages of the initialization.
Definition: element.h:62
void setName(const std::string &str)
Definition: element.h:115
Definition: function.h:53
Function()
Definition: function.h:57
function describing a nonlinear relationship between the input deflection / relative velocity and the...
Definition: nonlinear_spring_damper_force.h:32
NonlinearSpringDamperForce(Function< double(double)> *sF_, Function< double(double)> *sdF_)
constructor
Definition: nonlinear_spring_damper_force.h:52
NonlinearSpringDamperForce()=default
constructor
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
Function< double(double)> * sF
deflection depending force function
Definition: nonlinear_spring_damper_force.h:85
Function< double(double)> * sdF
relative velocity depending force function
Definition: nonlinear_spring_damper_force.h:90
namespace MBSim
Definition: bilateral_constraint.cc:30