23#include "mbsim/contours/rigid_contour.h"
24#include "mbsim/utils/boost_parameters.h"
25#include "mbsim/utils/openmbv_utils.h"
26#include <openmbvcppinterface/rack.h>
45 void init(
InitStage stage,
const InitConfigSet &config)
override;
49 fmatvec::Vec3 evalKrPS(
const fmatvec::Vec2 &zeta)
override;
50 fmatvec::Vec3 evalKs(
const fmatvec::Vec2 &zeta)
override;
51 fmatvec::Vec3 evalKt(
const fmatvec::Vec2 &zeta)
override;
55 void setNumberOfTeeth(
int N_) { N = N_; }
56 int getNumberOfTeeth() {
return N; }
57 double getHeight() {
return h; }
58 void setHeight(
double h_) { h = h_; }
59 void setWidth(
double w_) { w = w_; }
60 double getWidth() {
return w; }
61 void setHelixAngle(
double be_) { be = be_; }
62 double getHelixAngle() {
return be; }
63 void setModule(
double m_) { m = m_; }
64 double getModule() {
return m; }
65 void setPressureAngle(
double al_) { al = al_; }
66 double getPressureAngle() {
return al; }
67 void setBacklash(
double b_) { b = b_; }
68 double getBacklash() {
return b; }
69 void setFlank(
int flank) { signi = flank; }
70 void setTooth(
int tooth) { k = tooth; }
71 double getXMaxHigh(
int i) {
return xHigh; }
72 double getXMaxLow(
int i) {
return xLow; }
73 double getXMinHigh(
int i) {
return -xHigh; }
74 double getXMinLow(
int i) {
return -xLow; }
75 double getSXMaxHigh(
int i) {
return sXHigh; }
76 double getSXMinHigh(
int i) {
return -sXHigh; }
79 BOOST_PARAMETER_MEMBER_FUNCTION( (
void), enableOpenMBV, tag, (optional (diffuseColor,(
const fmatvec::Vec3&),fmatvec::Vec3(std::vector<double>{-1,1,1}))(transparency,(
double),0)(pointSize,(
double),0)(lineWidth,(
double),0))) {
80 OpenMBVColoredBody ombv(diffuseColor,transparency,pointSize,lineWidth);
84 void initializeUsingXML(xercesc::DOMElement *element)
override;
92 double al{0.349065850398866};
99 double xHigh, xLow, sXHigh;
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
rack contour
Definition: rack.h:34
~Rack() override=default
destructor
void init(InitStage stage, const InitConfigSet &config) override
plots time series header
Definition: rack.cc:58
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
namespace MBSim
Definition: bilateral_constraint.cc:30