46 void init(
InitStage stage,
const InitConfigSet &config)
override;
50 fmatvec::Vec3 evalKrPS(
const fmatvec::Vec2 &zeta)
override;
51 fmatvec::Vec3 evalKs(
const fmatvec::Vec2 &zeta)
override;
52 fmatvec::Vec3 evalKt(
const fmatvec::Vec2 &zeta)
override;
56 void setNumberOfTeeth(
int N_) { N = N_; }
57 int getNumberOfTeeth() {
return N; }
58 double getHeight() {
return h; }
59 void setHeight(
double h_) { h = h_; }
60 void setWidth(
double w_) { w = w_; }
61 double getWidth() {
return w; }
62 void setHelixAngle(
double be_) { be = be_; }
63 double getHelixAngle() {
return be; }
64 void setModule(
double m_) { m = m_; }
65 double getModule() {
return m; }
66 void setPressureAngle(
double al_) { al = al_; }
67 double getPressureAngle() {
return al; }
68 void setBacklash(
double b_) { b = b_; }
69 double getBacklash() {
return b; }
70 void setFlank(
int flank) { signi = flank; }
71 void setTooth(
int tooth) { k = tooth; }
72 double getPhiMax(
double h,
double s);
73 double getPhiMaxHigh(
int i) {
return phiMaxHigh; }
74 double getPhiMaxLow(
int i) {
return phiMaxLow; }
75 double getPhiMinHigh(
int i) {
return phiMinHigh; }
76 double getPhiMinLow(
int i) {
return phiMinLow; }
77 double getSPhiMaxHigh(
int i) {
return sPhiMaxHigh; }
78 double getSPhiMinHigh(
int i) {
return sPhiMinHigh; }
81 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))) {
82 OpenMBVColoredBody ombv(diffuseColor,transparency,pointSize,lineWidth);
86 void initializeUsingXML(xercesc::DOMElement *element)
override;
91 double h, s, r0, al, be;
93 Residuum(
double h_,
double s_,
double r0_,
double al_,
double be_) : h(h_), s(s_), r0(r0_), al(al_), be(be_) { }
94 double operator()(
const double &phi)
override;
102 double al{0.349065850398866};
110 double phiMaxHigh, phiMaxLow, phiMinHigh, phiMinLow, sPhiMaxHigh, sPhiMinHigh;