1 Introduction

Screw rotor flowmeter is a new type flowmeter introduced at the end of 1990s. It has the following advantages: good dynamic balance, low vibration and noise, small size, large measuring capacity, no load on the rotor surface, no wear in the process of rotation, and the life is longer. Screw rotor flowmeter consists of a pair of meshing screw rotors [1]. The screw rotor is the most crucial component of the flowmeter, whereby the geometry and the machining precision of the rotor can greatly affect flowmeter performance [2]. The screw rotor is actually a special helical surface gear with a complex end profile. Many scholars have done a lot of research on the design of the rotor profile; Su and Tseng proposed the contact lines on rotor surfaces as design indices for rotor profile optimization [3]; Zaytsev and Infante Ferreira proposed a differential method for rotor profile generation using a meshing line [4]. However, these rotor profile design methods have their own technical limitations, including promoting geometric modifiability of the rotor. Therefore, the geometric profile generation theory of the rotor could be further researched.

As a typical complex surface, helical surface is complex in the process of forming. It is difficult to manufacture and to guarantee its manufacturing accuracy. Many scholars have done a lot of research on machining methods of helical surface [5, 6], Wu and Fong defined a normal rack comprising a specific curve based on the characteristics of twin-screw compressor rotors, and the developed rack can be shared for manufacturing rotors with different helix angles as long as their normal circular pitch is the same [7]. However, the manufacturing method of disk-type form cutter is mostly used in helical surface machining; its theoretical basis is the principle of line meshing [8, 9]. The accuracy of the machined helical surface depends on the accuracy of the profile of formed cutter and the accuracy of helical motion between the cutter and the workpiece. Meanwhile, in the process of machining the surface, the cutter wear affects the machining accuracy [10], and grinding and compensation of the formed cutter are difficult. All of these make the manufacturing cost very high [11]. In general, the forming method is used for small varieties and mass batch production.

However, screw rotor studied in this paper is different from the general helical surface, its end face profile is more complex, there are sharp points, that is, there are singular lines on the helical surface, the existence of singular lines disconnects the contact line formed by the conjugate movement of cutter and surface, which makes it difficult to manufacture with form cutter, so this paper uses the standard spherical milling cutter to machine screw rotor. The spherical milling cutter machining has its advantages: unlike the form cutter, it is necessary to redesign and manufacture a new forming cutter for new type part; a pair of standard spherical cutter can manufacture different types of screw rotors. Because the cutter is a standard cutter, its manufacture cost is low. Moreover, it is convenient to adjust the technology parameters according to the measurement results. But in practice, the method also has its technical limitation: due to the point milling with spherical milling cutter, its cutting efficiency is low, its manufacturing time is longer than the forming cutter, which is generally suitable for multi-variety small batch production. Before using the spherical milling cutter to machine screw rotor, the helical surface formed by the involute and cycloid end profiles must be studied and geometric characteristics of helical surface must be analyzed.

In the paper, the remainder of this paper is organized as follows: in Sect. 2, the involute and cycloid end profiles of screw rotor are derived. In Sect. 3, on the basis of analyzing the geometric characteristics of screw rotor’s helical surface, the machining model with spherical milling cutter is obtained. In Sect. 4, three-dimensional (3D) model of screw rotor is established and cutter center trajectory and feedrate are calculated. In Sect. 5, NC machining simulation and actual NC machining and measuring experiments validate the correctness of the machining model.

2 End profile equation derivation and helical surface forming process analysis

2.1 End profile equation derivation

First of all, by analyzing the formation principle of the end face profile, the mathematical expression of the curve equation is established. Assuming that two screw rotors of the same size mesh, since the teeth number is equal, which is less than 17. Based on the gear meshing principle, their teeth will inevitably undergo undercutting and produce undercutting curves. When a pair of screw rotors mesh, the upper involute of one rotor meshes with the lower undercutting curve of the other rotor, and the lower undercutting curve of one rotor meshes with the upper involute of the other rotor. According to meshing analysis, as shown in Fig. 1, the end face of screw rotor consists of arc ab segment, involute bc segment, undercut cd segment, and arc de segment. The ab segment is the arc of the addendum circle radius and the de segment is the arc of the dedendum circle radius.

Fig. 1
figure 1

Rotor end profile diagram

According to gear meshing theory, involute bc equation is as follows [12]:

$$ \left\{\begin{array}{l}x={r}_b\left(\cos \theta +\theta \sin \theta \right)\\ {}y={r}_b\left(\sin \theta -\theta \cos \theta \right)\end{array}\right. $$

Among them, x and y are the involute coordinates, rb is the base circle radius, and θ is the involute unfolding angle.

The undercut cd segment is actually an inner cycloid, and the curve equation can be obtained by the forming process of the curve. As shown in Fig. 2, assume that the pitch circle B of one rotor tooth purely rolls on the pitch circle A of the other rotor tooth meshed with it, point t1 is the edge point of the addendum circle where pitch circle B is located, the trajectory curve generated by point t1 is the undercutting curve of the tooth where pitch circle A is located. It can be seen from Fig. 2 that the distance between point t1 and pure rolling point t2 and its center O1 remains unchanged during meshing.

Fig. 2
figure 2

End profile cycloid forming process

Suppose:

$$ {\mathrm{t}}_1{\mathrm{O}}_1={r}_a\ {\mathrm{t}}_2{\mathrm{O}}_1={r}_p\angle {\mathrm{t}}_1{\mathrm{O}}_1{\mathrm{t}}_2=\beta $$

From the cosine theorem, we can get

$$ {t}_1{t}_2=h=\sqrt{{r_a}^2+{r_p}^2-2{r}_a{r}_p\cos \beta } $$

rp—pitch radius

The trajectory curve of the moving point O1 is circle C:

$$ \left\{\begin{array}{l}{x}_1=2{r}_p\cos t\\ {}{y}_1=2{r}_p\sin t\end{array}\right. $$
(1)

The trajectory curve of moving point t2 is cycloid D:

$$ \left\{\begin{array}{l}{x}_2=2{r}_p\cos t-{r}_p\cos \left(2t-0.25\pi \right)\\ {}{y}_2=2{r}_p\sin t-{r}_p\sin \left(2t-0.25\pi \right)\end{array}\right. $$
(2)

t—the angle between linear OO1 and X axis positive direction.

The curve equation of cd segment (that is, the generated trajectory of point t1) is as follows:

$$ \left\{\begin{array}{c}{\left(x-{x}_1\right)}^2+{\left(y-{y}_1\right)}^2={r}_a^2\\ {}{\left(x-{x}_2\right)}^2+{\left(y-{y}_2\right)}^2={h}^2\end{array}\right. $$
(3)

By substituting x1, y1, x2, y2 of formula (1) and (2) into formula (3), the parametric equation of cd segment can be obtained.

In summary, through the geometric analysis of rotor meshing, we can solve the mathematical expression of the rotor end face profile, which lays a mathematical foundation for the 3D parametric modeling of the screw rotor.

2.2 Analysis of helical surface forming process

Suppose that there is a fixed coordinate system (O-X,Y,Z) in space (as shown in Fig. 3), the unit vectors of three coordinate axes are \( \overrightarrow{i},\overrightarrow{j},\overrightarrow{k} \), respectively. Suppose the vector equation of a space curve Γ is as follows:

$$ {r}_0={r}_0(u) $$
Fig. 3
figure 3

Helical surface forming process

When the curve Γ moves in helical motion, that is, the curve Γ rotates around the Z axis on the one hand and moves at the same speed along the Z axis at the same time, the trajectory surface formed by the curve Γ in space is a cylindrical helical surface. Its axis is Z(k) and Γ is called the generatrix of helical surface.

3 Normal vector analysis of involute and cycloid helical surfaces

In general, the involute equation in the first quadrant xoy plane of Cartesian coordinate system can be expressed as follows [13]:

$$ {\displaystyle \begin{array}{c}x\left(\phi \right)={r}_{\phi}\left[\cos \left(\phi +\beta \right)+\phi \sin \left(\phi +\beta \right)\right]\\ {}y\left(\phi \right)={r}_{\beta}\left[\sin \left(\phi +\beta \right)+\phi \cos \left(\phi +\beta \right)\right]\end{array}}\phi \in \left[\phi 1,\phi 2\right] $$
(4)

In the formula (4), rb is involute basic radius, ϕ is the rolling angle of the involute point, which is equal to the sum of the pressure angle (which is related to gear teeth, is the angle at a pitch point between the line of pressure and the plane tangent to the pitch surface) and the unfold angle, β is the rotation angle of the involute starting point on the base circle.

Suppose the involute curve r = r(u) helically moves around Z axis with the lead l. Here, we only discuss the right-handed case, the left-handed case can be discussed similarly. The helical parameter p = l / 2π; then, the helical surface is formed as shown in Fig. 4:

Fig. 4
figure 4

Forming process of involute helical surface

The equation of helical surface can be expressed as

$$ {\displaystyle \begin{array}{c}s\left(\theta, \phi \right)=\Big\{{r}_{\phi}\left[\cos \left(\phi +\beta +\theta \right)+\phi \sin \left(\phi +\beta +\theta \right)\right],\\ {}{r}_b\left[\sin \left(\phi +\beta +\theta \right)+\phi \cos \left(\phi +\beta +\theta \right)\right], p\theta \Big\}\end{array}} $$
(5)

In the formula (5), θ is rotation angle of the involute curve r(u) around z axis.

The acquisition of normal vector of the surface is very important for calculating the coordinates of cutter center.

If β in the equation of involute helical surface is a constant value, set \( \sqrt{p^2+{r_b}^2}=s \), then the unit normal vector of the surface can be expressed as follows:

$$ {\displaystyle \begin{array}{l}{n}_0=\left(\frac{\partial s}{\partial \phi}\times \frac{\partial s}{\partial \theta}\right)/\left(\left|\frac{\partial s}{\partial \phi}\times \frac{\partial s}{\partial \theta}\right|\right)\\ {}=\left[p\sin \left(\phi +\beta +\theta \right)/s,-p\cos \right(\phi +\beta +\theta /s,\\ {}{s}_b/s\end{array}} $$
(6)

Because θ of end profile is equal to zero, then n0 can be simplified as follows:

$$ \left[p\sin \left(\phi +\beta \right)/s,-p\cos \left(\phi +\beta \right)/s,{r}_b/s\right] $$

In milling process, the coordinate value of the cutter center corresponding to the machined point is the coordinate value of the point plus the product of the unit normal vector of the point and the radius of the cutter.

If the radius of spherical milling cutter is R, the coordinate value of cutter center can be expressed as

$$ {\displaystyle \begin{array}{l}\left\{{r}_b\right[\cos \left(\phi +\beta \right)+\phi \sin \left(\phi +\beta \right)+ pR\sin \left(\phi +\beta \right)/s,\\ {}r\left[\sin \left(\phi +\beta \right)-\phi \cos \left(\phi +\beta \right)\right]- pR\cos \left(\phi +\beta \right)/s\\ {}{r}_bR/s\Big\}\end{array}} $$
(7)

Then, the vector distance between the cutter center and the involute helical surface is

$$ \left[ pR\sin \left(\phi +\beta \right)/s,- pR\cos \left(\phi +\beta \right)/s,{r}_bR/s\right] $$
(8)

When Z is a constant value, the square sum of the vector x and y coordinates between the cutter center and the involute helical surface is shown as follows:

$$ {\displaystyle \begin{array}{l}\kern1em {\left( pR\sin \left(\phi +\beta \right)/s\right)}^2+{\left(- pR\cos \left(\phi +\beta \right)/s\right)}^2\\ {}={p}^2{R}^2{\sin}^2\left(\phi +\beta \right)/{s}^2+{p}^2{R}^2{\cos}^2\left(\phi +\beta \right)/{s}^2\\ {}={p}^2{R}^2/{s}^2\end{array}} $$
(9)

Assuming that the end profile of the involute is known, the end profile of the involute only needs to be offset pR / s distance on the xoy plane, the machining position of the cutter center on the xoy plane can be obtained.

Formula (8) shows that the vector distance between the cutter center and the involute helical surface is a constant value rbR / s in the direction parallel to Z axis. Assuming that the end profile of the involute is known, the end profile of the involute only needs to be offset rbR / s distance in Z axis direction, the machining position of the cutter center in Z axis direction can be obtained.

Similarly, it can be deduced that the cycloid helical surface has the same properties as the involute helical surface.

Based on the unique geometric properties of involute and cycloid helical surfaces, the mathematical basis for machining screw rotor with standard spherical milling cutter is established.

4 Modeling of screw rotor and cutter center trajectory and feedrate calculation

Standard spherical milling cutter is used to machine screw rotor on four-axis NC machine tool in the paper. The milling mechanism is shown in Fig. 5: end profile curve of the rotor is formed by interpolation motion of Y-axis and Z-axis, X-axis and A-axis interpolation motion drives the rotor to produce helical motion, two axes interactive interpolation motions of four-axis machine tool are used for milling helical surfaces.

Fig. 5
figure 5

Milling mechanism of screw rotor

4.1 Three-dimensional parametric modeling

Firstly, the profile curves of screw rotor are generated in Pro/E, which is a three-dimensional modeler. According to Sect. 2.1, the profile curve of screw rotor is composed of three curves: involute, cycloid, and arc. After the profile curves are generated, the end profile section of the rotor is generated by means of mirror, intersection, and cutting, as shown in Fig. 6. Then, the end profile section is taken as the scanning section, the rotor axis as the original trajectory curve, the helix on the pitch circle as the X-trajectory curve for the variable section solid scanning, and a single tooth of the screw rotor is obtained, as shown in Fig. 7. Finally, the screw rotor solid model is obtained by using the generated tooth as circumference array and adding hole feature, as shown in Fig. 8. Moreover, because the screw rotor model is a parametric model, that is, a new 3D screw rotor model can be generated in Pro/E software by changing the basic parameters of the screw rotor.

Fig. 6
figure 6

End profile scanning section

Fig. 7
figure 7

Single tooth generation

Fig. 8
figure 8

Solid model of screw rotor

4.2 Calculation of spherical milling cutter center trajectory

Since profile interpolation is carried out on the two-dimensional involute (cycloid) profile, it can be seen from Sect. 3 that the vector distance between the cutter center and the involute (or cycloid) helical surface is a constant value on the xoy plane. As shown in Fig. 9, after calculating the coordinates of the interpolation point P, shifting P point a calculated constant value along normal tooth profile, the center point P′ can be obtained, that is,

$$ {L}_{op}^{\prime }={L}_{op}+ dn/\left|n\right| $$
(10)
Fig. 9
figure 9

Schematic diagram for calculating cutter center point

In the formula (10):

d—calculated constant value

n—normal vector of P point on helical surface

4.3 The correlation between feedrate of the cutter and rotational speed of the rotor

As shown in Fig. 5, the rotor moves uniformly in the X-axis direction and rotates around the X-axis at the same time, feedrate of the cutter is related to rotational speed and the size of the rotor (i.e., the lead). Suppose the rotational speed of the rotor is ω, and its lead is l, then the feedrate is f = /(2π).

5 Machining simulation and experiments of screw rotor

The flow chart framework of the experimental design is shown in Fig. 10.

Fig. 10
figure 10

The flow chart of experiment design

5.1 NC machining simulation

The 3D solid model built in Pro/E is used for NC machining simulation. Firstly, the correct machine coordinate system and programming coordinate system are established, and the motion relationship of motion axis is defined. On the basic of defining the blank, machine tool, and cutter, the correct NC system type and appropriate machining parameters are set up to simulate the milling process. Figure 11 is the simulation process of screw rotor milling. After the machining simulation process is confirmed to be correct, the post-processing program of Pro/E is used to generate NC code for machining.

Fig. 11
figure 11

Screw rotor NC machining simulation

5.2 Collision detection and avoidance

The process of machining screw rotor and the interpolation movement of X-axis can be seen from Fig. 5.

A-axis is provided by the machine tool feed system, the interpolation movement of Y-axis and Z-axis of the cutter is controlled by the machine tool spindle, and some Gcodes of X-axis and A-axis are as follows:

G00 G90 Z100

Y#2 Z#3

G01 G91 X242 A198

G00 G90 Z100

X0 A0

G00 Y-#2 Z#3

G01 G91 X242 A198

G00 G90 Z100

X0 A0

It can be seen from the above Gcodes: before starting machining, the Z-axis is at the safe retracting height. After starting machining, Z-axis descends, Z-axis and Y-axis carry out interpolation motion to complete milling. After finishing a machining cycle, the X-axis and A-axis return to zero, and the Z-axis returns to the safe height. The machining method can avoid the collision between the cutter and the rotor.

At the same time, we choose the radius of the spherical milling cutter according to the minimum curvature radius of rotor end face curve, which can avoid the removal of excess material in the vicinity of the cutter contact (CC) point(s) due to the mismatch in curvatures between the tool swept surface and the rotor surface at the CC points.

5.3 NC machining experiments

In the paper, RIFA-RFMV80 vertical machining center (as shown in Fig. 12) was selected to carry out NC milling of screw rotor. The design parameters of screw rotor selected in the paper are shown in Table 1:

Fig. 12
figure 12

RFMV80 vertical machining center

Table 1 Helical surface parameters of screw rotor

The milling parameters selected in the machining process are shown in Table 2:

Table 2 Milling machining technology parameters

Figure 13 shows the machining process of screw rotor with spherical milling cutter on the four-axis machining center.

Fig. 13
figure 13

Screw motor machining process

5.4 Analysis for machining accuracy of screw rotor

Theoretically speaking, the machined rotor should be precisely coincident with the original design shape, while it may have errors caused by the mathematical expression and the Geometric machining model. In this paper, the average surface roughness Ra and the meshing of screw rotor were conducted to validate if the developed model could satisfy the required accuracy.

In order to measure the Ra, the roughness measurement experiments were carried out on TRIMOS TR-SCAN micro-topography measuring instrument, and the measured data were compared to the predicted values of Ra. Assume that the tool path interval and tool radius R are known, the predicted value of Ra can be computed [14]. The involute measure range is divided into 5 lines (line 1–line5 ), as shown in Fig. 14. In the same way, the cycloid measure range is divided into 4 lines (line 1–line 4), as shown in Fig. 15.

Fig. 14
figure 14

Measurement scheme of involute surface

Fig. 15
figure 15

Measurement scheme of cycloid surface

After a series of measurement experiments, the comparison diagram of involute surface predicted value and measured values of Ra can be obtained as shown in Fig. 16. The comparison diagram of cycloid surface predicted value and measured values of Ra can be obtained as shown in Fig. 17. When measuring surface roughness, we measured the roughness Ra under three different feedrates. At the same feedrate, we measured the roughness value three times, and the measured value Ra in the Figs. 16 and 17 is the average value of the three measurements. From the results in Figs. 16 and 17, it can be seen that the predicted value is lower than the actual measured value; we do not take into account other factors (such as machine vibration) when we build the roughness model of screw tooth surface. With the increase of feedrate, the measured roughness decreases gradually, which also conforms to metal cutting mechanism. The predicted value of surface roughness is close to the actual measured value, which can be used as a reference model for machining technology.

Fig. 16
figure 16

Comparison between measured Ra and predicted Ra of involute surface

Fig. 17
figure 17

Comparison between measured Ra and predicted Ra of cycloid surface

Finally, we have carried out the meshing experiment of the screw rotor, as shown in Fig. 18. The experimental results show that the rotor machined by the mathematical model in the paper completely meets meshing accuracy requirements. The experimental results thereby validate the correctness of the mathematical expression and the mathematical model for rotor machining with the spherical cutter.

Fig. 18
figure 18

Meshing of a pair of screw rotors

6 Conclusion

In the paper, the end profile equations of screw rotor were derived based on gear meshing theory. According to end profile equations and the forming principle of helical surface, the 3D solid parametric model of screw rotor was established. According to the characteristic of the involute (cycloid) helical surface, a method of machining screw rotor with standard spherical milling cutter is proposed in the paper. NC machining simulation and actual NC machining and measuring experiments show that the method fully meets the accuracy requirements of screw rotor.

Compared with the previous rotor profile design method, the 3D solid model designed in this paper has the following advantages: because the screw rotor model established in the paper is a parametric model, a 3D model of new type rotor can be generated by changing the basic parameters of the rotor in the software, the profile design of screw rotor is more accurate and convenient.

Compared with the forming milling method, the spherical milling method has the following advantages:

  1. (1)

    The spherical milling cutter is a standard cutter; its manufacturability and exchangeability are better.

  2. (2)

    It is easy to realize the cutter length and radius compensation.

  3. (3)

    It is easy to realize the dynamic simulation of machining, the cutter collision detection, and the machining technology parameters can be easily adjusted through the surface measurement results.

The general mathematical model for machining of the screw rotor with the spherical cutter established in this paper may be useful for rotor manufacturers or CNC manufacturing machine developers to simulate machining motion and evaluate the cutting results of screw rotor. Moreover, the method adopted in the paper can also be used to machine some other complex surfaces.