23#include "mbsim/contours/rigid_contour.h"
24#include "mbsim/utils/boost_parameters.h"
25#include "mbsim/utils/openmbv_utils.h"
31 enum ShapeOfCrossSectionContour {
39 ~Tyre()
override =
default;
41 void init(
InitStage stage,
const InitConfigSet &config)
override;
43 void setRadius(
double r_) { r = r_; }
44 void setWidth(
double w_) { w = w_; }
45 void setContourParameters(
const fmatvec::VecV &cp_) { cp <<= cp_; }
46 void setShapeOfCrossSectionContour(ShapeOfCrossSectionContour shape_) { shape = shape_; }
47 double getRadius()
const {
return r; }
48 double getWidth()
const {
return w; }
49 const fmatvec::VecV& getContourParameters()
const {
return cp; }
50 ShapeOfCrossSectionContour getShapeOfCrossSectionContour()
const {
return shape; }
57 void initializeUsingXML(xercesc::DOMElement *element)
override;
62 ShapeOfCrossSectionContour shape{flat};
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
basic class for rigid contours
Definition: rigid_contour.h:37
Frame * R
coordinate system of contour
Definition: rigid_contour.h:135
RigidContour(const std::string &name, Frame *R_=nullptr)
constructor
Definition: rigid_contour.h:43
void init(InitStage stage, const InitConfigSet &config) override
plots time series header
Definition: tyre.cc:34
namespace MBSim
Definition: bilateral_constraint.cc:30