20#ifndef _TYRE_CONTACT_H
21#define _TYRE_CONTACT_H
23#include "mbsim/links/contour_link.h"
36 TyreModel* getTyreModel() {
return model; }
38 void init(
InitStage stage,
const InitConfigSet &config)
override;
39 void initializeUsingXML(xercesc::DOMElement *element)
override;
42 void calcSize()
override;
43 void calcxSize()
override;
44 void calcisSize()
override;
46 const fmatvec::Vec3& evalForwardVelocity() {
if(updfvel) updateForwardVelocity();
return RvC; }
47 fmatvec::Vec3& getForwardVelocity(
bool check=
true) { assert((not check) or (not updfvel));
return RvC; }
48 void updatePositions(
Frame *frame)
override;
49 void updateGeneralizedPositions()
override;
50 void updateGeneralizedVelocities()
override;
51 void updateForceDirections()
override;
52 void updateForwardVelocity();
53 void updateGeneralizedForces()
override;
54 void updateh(
int i=0)
override;
56 void updatexd()
override;
58 bool isActive()
const override {
return false; }
62 void setInitialGuess(
const fmatvec::MatV &zeta0_) { zeta0 <<= zeta0_; }
63 void setTolerance(
double tol_) { tol = tol_; }
65 void resetUpToDate()
override;
67 RigidContour* getRigidContour(
int i);
70 TyreModel *model{
nullptr};
contour link
Definition: contour_link.h:34
InitStage
The stages of the initialization.
Definition: element.h:62
std::string name
name of element
Definition: element.h:260
cartesian frame on bodies used for application of e.g. links and loads
Definition: frame.h:39
Definition: tyre_model.h:29
namespace MBSim
Definition: bilateral_constraint.cc:30