MBSim

Project Page
Public Member Functions | Protected Attributes
MBSim::NonlinearSpringDamperForce Class Reference

function describing a nonlinear relationship between the input relative distance / velocity and the output for a spring More...

#include <function.h>

Inheritance diagram for MBSim::NonlinearSpringDamperForce:
MBSim::Function2< double, double, double >

List of all members.

Public Member Functions

 NonlinearSpringDamperForce ()
 constructor
 NonlinearSpringDamperForce (Function1< fmatvec::Vec, double > *gForceFun_, Function1< fmatvec::Vec, double > *gdForceFun_)
 constructor
virtual double operator() (const double &g, const double &gd, const void *=NULL)
void initializeUsingXML (TiXmlElement *element)
 initialize function with XML code
void setParameters (Function1< fmatvec::Vec, double > *gForceFun_, Function1< fmatvec::Vec, double > *gdForceFun_)
- Public Member Functions inherited from MBSim::Function2< double, double, double >
virtual ~Function2 ()
 destructor

Protected Attributes

Function1< fmatvec::Vec, double > * gForceFun
 distance depending force function
Function1< fmatvec::Vec, double > * gdForceFun
 relative velocity depending force function

Detailed Description

function describing a nonlinear relationship between the input relative distance / velocity and the output for a spring

Author:
Martin Foerg
Date:
2009-08-31 some comments (Thorsten Schindler)
Todo:
put in function_library TODO

Constructor & Destructor Documentation

MBSim::NonlinearSpringDamperForce::NonlinearSpringDamperForce ( Function1< fmatvec::Vec, double > *  gForceFun_,
Function1< fmatvec::Vec, double > *  gdForceFun_ 
)
inline

constructor

Parameters:
distancedepending force function
relativevelocity depending force function

Member Function Documentation

void MBSim::NonlinearSpringDamperForce::initializeUsingXML ( TiXmlElement *  element)
virtual

initialize function with XML code

Parameters:
XMLelement

Reimplemented from MBSim::Function2< double, double, double >.

virtual double MBSim::NonlinearSpringDamperForce::operator() ( const double &  p1,
const double &  p2,
const void *  = NULL 
)
inlinevirtual
Returns:
return value of function
Parameters:
argumentof function
optionalparameter class

Implements MBSim::Function2< double, double, double >.


The documentation for this class was generated from the following file: