1 Introduction

Even though modern manufacturing processes achieve an increasingly high accuracy, geometric deviations are observable on every manufactured part. Geometric deviations have huge influence on both the function behaviour and on the customers’ quality perception of the product (Schleich et al. 2014). To control and to manage these geometric deviations along the product life cycle, the first step is to consider during the design stage the tolerance specification, the tolerance allocation and the tolerance analysis (Armillotta and Semeraro 2011).

In the context of Computer-Aided Tolerancing (CAT), various models for the representation of dimensions and geometric tolerances and for the solution of the tolerance chains have been developed, such as vector loop (Gao et al. 1998), variational (Gupta and Turner 1993), matrix (Desrochers and Rivière 1997), Jacobian (Clemént et al. 1998), torsor (Rivest et al. 1994; Ledoux and Teissandier 2013), unified Jacobian-torsor (Desroschers et al. 2003; Ghie 2010), Polytopes (Homri et al. 2015) and the T-Map® (Davidson et al. 2002; Ameta et al. 2011). Many commercial CAT software packages support the product development in these activities for geometric product specification and tolerancing, such as 3-DCS of Dimensional Control Systems®, VisVSA of Siemens®, CETOL®, and so on (Prisco and Giorleo 2002; Shah et al. 2007). However, there is a growing interest in considering working conditions and operating windows in CAT (Anselmetti et al. 2010). These computer models for tolerance simulation and analysis make severe simplifications about observable geometric deviations, since they are reduced to rotational and translational feature defects (Polini 2012; Ameta et al. 2011). This leads to results with large ranges of uncertainty and a discrepancy between the virtual models and the observed reality (Charpentier et al. 2012). Furthermore, the tolerancing tasks in design as well as all other activities of geometric variations management should be incorporated in a complete and coherent tolerancing process (Mathieu and Ballu 2007; Dantan et al. 2003). As a response to these needs, Skin Model concept was proposed (Schleich et al. 2014; Schleich and Wartzack 2015). It is a model of the physical workpiece surface in contrast to the nominal model that is a “simple” model of the intended workpiece not taking into account inevitable geometric deviations (Schleich et al. 2014).

The research contribution of this paper is to show how to modify the variational tolerance analysis model of the literature to include the manufacturing signature and the assembly conditions, such as gravity and friction. The present paper connects a skin model scheme to a manufacturing process, in order to bring closer the CAT simulation tools to reality. The discrete geometry framework of the skin model has been represented by the pattern left on a surface by a manufacturing process. The manufacturing process leaves a pattern on the manufactured surface; this pattern is a geometrical correlation among the neighbouring points on the manufactured surface that is called signature; it has been inserted in the framework of the skin model.

To demonstrate the effectiveness of considering manufacturing signature, the variational skin model has been applied to a case study made up of three parts: a rigid box and two profiles that fit within it. The case study has been chosen simple to be solved manually, but representative since it allows to consider both dimensional and geometrical tolerances applied to the same profile. The obtained results have been compared with those due to the use of the variational model of the literature. To verify the results obtained in this way, since the experimental validation is not compatible with the 2D nature of the case study, a geometrical model has been developed. It numerically reproduces what happens in the actual assembling, and it has been considered as the reference case. It adopts a point cloud-based geometry representation scheme. Finally, to validate the methodology used and applied to a simple 2D case study, a 3D case study has been considered for a further validation.

Matlab® and Minitab® software packages have been used to carry out the tolerance analysis and the statistical analysis of the obtained results, respectively.

The paper is organized as follows: in Sect. 2, the modified variational model with manufacturing signature has been implemented on a 2D case study. In Sect. 3, the numerical validation is described by means of a geometrical approach with and without considering the manufacturing signature. In Sect. 4, the results are compared and discussed. Finally, in Sect. 5, a final validation of the methodology developed in previous sections is applied on a 3D case study.

2 Variational model with manufacturing signature

The variational model proposed in (Marziale and Polini 2010; Polini 2016) has been considered and implemented in this study. The basic idea of a variational model is to represent the variability of an assembly, due to the tolerances and the assembly conditions, through a set of parameters of a mathematical model.

To create an assembly, the designer has to define the nominal shape and the dimensions of each assembly component (these information are usually contained in CAD files). Then, the designer identifies the features of each component which affect the functional requirements (functional features) and the designer assigns the dimensional and geometrical tolerances to them. Each feature has its local Datum Reference Frame (DRF), while each component and the whole assembly have their own global DRF. In nominal condition, the homogeneous transformation matrix (called \(\text{TN}\)) that allows to pass from a DRF to another is known. When real features are machined, they depart from nominal (see Fig. 1). Assuming that real features maintain their nominal form (i.e. form deviations are neglected), the location of a real feature deviates from nominal, and this deviation is expressed by parameters that constitute a differential homogeneous transformation matrix \(\text{DT}\). To pass from the global DRF of the part i (\(Ri\)) to the local DRF of a feature j of part i (\(Rij\)), it is enough to multiply the two matrices:

Fig. 1
figure 1

Nominal, real and substitute features

$${{T}_{Ri\to Rij}}=T{{N}_{Ri\to Rij}}\times D{{T}_{Rij}}$$
(1)

where \({{T}_{Ri}}_{\to Rij}\) is the total transformation matrix to pass from the global DRF of the part i to the local DRF of feature j of part i; \(T{{N}_{Ri}}_{\to Rij}\) is the nominal transformation matrix to pass from the global DRF of the part i to the local DRF of feature j of part i; \(D{{T}_{Rij}}\) is the differential transformation matrix of the feature j of part i.

If a feature may not be directly referred to the global DRF, it is reported to it through a chain of features. To calculate the total matrix, it is enough to make the product of the single contributions as shown in Fig. 2 that is valid for the case of two transformations.

Fig. 2
figure 2

Model of a stack-up function in a part

Once modelled the variability of the components, they have to be assembled together. The relative location of the parts is expressed by means of parameters (that are called small kinematic adjustments) which constitute the differential homogeneous transformation matrix \(\text{DA}\) (the transformation matrix is indicated by the letter A = assembly to distinguish it from the matrix \(\text{DT}\) that is for the part). The total transformation to pass from the global DRF of part i (\(Ri\)) to the global DRF of part l (\(Rl\)) is simply obtained by means of the following equation (see Fig. 3):

Fig. 3
figure 3

Model of a stack-up function between two parts

$${{A}_{Ri\to Rl}}=\text{A}{{\text{N}}_{Ri\to Rl}}\times \text{D}{{\text{A}}_{Ri\to Rl}}=\text{ T}{{\text{N}}_{Ri\to Rij}}\times \text{D}{{\text{T}}_{Rij}}\times \text{D}{{\text{A}}_{Rij\to Rlk}}\times \text{DT}_{Rlk}^{-1}\times \text{TN}_{Rl\to Rlk}^{-1}$$
(2)

where \({{A}_{Ri}}_{\to Rl}\) is the assembly matrix between part i and part l, \(A{{N}_{Ri}}_{\to Rl}\) is the assembly matrix between part i and part l in nominal condition, \(\text{D}{{\text{A}}_{Ri}}_{\to Rl}\) is the differential assembly matrix between part i and part l, \(\text{D}{{\text{A}}_{Rij}}_{\to Rlk}\) is the differential assembly matrix between the feature j of part i and the feature k of part l, \(\text{T}{{\text{N}}_{Ri}}_{\to Rij}\) is the nominal transformation matrix to pass from the global DRF of part i to the local DRF of feature j of part i, \(\text{D}{{\text{T}}_{Rij}}\) is the differential transformation matrix of feature j of part i, \(\text{D}{{\text{T}}_{Rlk}}\) is the differential transformation matrix of feature k of part l, and \(\text{T}{{\text{N}}_{Rl}}_{\to Rlk}\) is the nominal transformation matrix to pass from the global DRF of the part l to the local DRF of feature k of part l. The differential assembly matrices \(\text{D}{{\text{A}}_{Ri}}_{\to Rl}\) and \(\text{D}{{\text{A}}_{Rij}}_{\to Rlk}\) are hard to evaluate, since they depend by both the tolerances, that are applied to the components in contact, and the assembly conditions.

Some are the works in the literature to evaluate these differential matrices. A strategy is to model the join between the coupled parts by reconstructing the coupling sequence between the features (Li and Roy 2001). Another possibility is to impose some analytical constraints on the assembly parameters (Bernam 2005). The idea of this work is to use the manufacturing signature and the operating conditions to estimate the form parameters of the differential matrices. When all the transformation matrices are obtained, it is possible to express all the features in the same global DRF of the assembly (R); then, the functional requirements on the assembly can be modelled. They appear as:

$$\text{FR}=f\left( {{p}_{1}},{{p}_{2}},\ldots ,{{p}_{n}} \right)$$
(3)

where FR is a functional requirement of the assembly, p 1,…,p n are the model parameters, and f is the stack-up function (that is usually not linear) in the model parameters.

In order to illustrate how the manufacturing signature and the operating conditions may be inserted inside the variational model, a simple assembly composed of three parts and a synoptic scheme to highlight the procedure are shown in Figs. 4 and 5, respectively. Part 1 is a hollow rectangular box. Parts 2 and 3 are two circular profiles that fit within it. A two-dimensional tolerance analysis has been carried out, and the circular profiles have been considered with and without considering the manufacturing signature. The gravity and the friction have been considered during the assembly of the circular profiles with the box. The aim is the measurement of the gap g between the second circular profile and the top side of the box as a function of the tolerances applied to the components.

Fig. 4
figure 4

Case study (all dimensions and tolerances are in mm)

Fig. 5
figure 5

Scheme of the new point cloud variational model with operating conditions

The manufacturing signature due to a turning process has been represented by means of an autoregressive (AR) moving-average (MA) model with exogenous (X) variable (ARMAX model), as proposed in (Moroni and Pacella 2008), where the manufacturing signature was mainly affected by both bi-lobe and three-lobe contours, as shown in Fig. 6. This model combines a harmonic term, that stands for the systematic pattern left by the turning process on the manufactured surface, with a second-order autoregressive of the noise term, that represents the random contribution that may not be expected. Therefore, the parametric model of the identified process signature is given by:

Fig. 6
figure 6

Comparison between a nominal circular profile and bi-lobe and tri-lobe profiles

$${{Y}_{t}}=\sqrt{\frac{2}{N}}\sum\limits_{i=2}^{3}{\left[ {{b}_{2i-1}}\cdot \cos \left( \frac{i\cdot t\cdot 2\cdot \pi }{N} \right)+{{b}_{2i}}\cdot \sin \left( \frac{i\cdot t\cdot 2\cdot \pi }{N} \right) \right]}+\frac{1}{1-{{a}_{1}}B-{{a}_{2}}{{B}^{2}}}\cdot {{\varepsilon }_{t}}$$
(4)

where t = 1,2,…, N represents the index of data points in the sampled profile, B is the backshift operator, N is the number of equally spaced points measured on that profile. For each index t, Y t represents the radial distance between the actual point and the least square substitute circle, measured at angular position θ t  = 2πt/N. Each term of the first part of Eq. (4) represents the ith harmonic (i = 2, 3), characterized by i undulations per revolution, by an amplitude equal to \(\sqrt{2/N\left( b_{2i-1}^{2}+b_{2i}^{2} \right)}\) and by a phase equal to \({{\tan }^{-1}}\left( {{b}_{2i}}/{{b}_{2i-1}} \right)\). The constant term \(\sqrt{2/N}\) is introduced to use normalized harmonic predictors. The parametric model in Eq. (4) is a special case of a general ARMAX model and assumes that the signature may be modelled as a weighed combination of independent predictor variables that are assumed known and constants. The parameters’ vector in Eq. (4) forms a stochastic vector that has a multivariate normal distribution with the mean vector and the variance–covariance matrix, respectively, reported in Table 1. The term ε t in Eq. (4) was modelled as Gaussian white noise with standard deviation equal to 0.374 µm.

Table 1 ARMAX model parameters

The gap g has been evaluated by means of the following analytical equation, while all the details to obtain the equation are reported in “Appendix”:

$$g=40-{{r}_{1}}-{{r}_{2}}-{{d}_{A}}-{{d}_{E}}-\sqrt{{{\left( {{d}_{C}}+{{r}_{1}}+{{r}_{2}}+40 \right)}^{2}}-{{\left( {{d}_{B}}+{{d}_{D}}+{{r}_{1}}+{{r}_{2}}-10 \right)}^{2}}}$$
(5)

where r 1 and r 2 are the model parameters, due to the dimensional tolerance, of the first and second circular profile, respectively, di is the model parameters due to the form tolerance applied to the points i = A, B, C, D and E of two circular profiles in Fig. 4.

This variational model has been modified to insert the manufacturing signature and the operating conditions. To do so, at first the developed approach generates two nominal circular profiles to insert into the hollow rectangular box. The circular profiles are constituted by a set of evenly distributed points, as shown in Fig. 7. The amplitude of this set is equal to 7150, since this value ensures to reach a g-gap equal to the nominal value (1.2702 mm) when the circular profiles are considered nominal. Moreover, this value seems to be large enough to simulate the assembly without numerical simulation being too slow. To each point of the circular profile, the following model has been applied:

Fig. 7
figure 7

Discretization of the two circular profiles

$$\left| {{P}_{i}}-O \right|=R+r+d$$
(6)

where P i is the generic point of the circular profile, O is the centre of the circle, R is the nominal value of the radius of the circular profile, r is the value due to the dimensional tolerance applied to the circular profiles, and d is the value due to the manufacturing signature represented by means of the ARMAX model. The r parameter has a Gaussian density function with mean value equal to zero and standard deviation equal to a sixth of the dimensional tolerance range.

Once the circular profiles are generated, the first step of assembly is to insert the first circular profile into the hollow rectangular box. The developed model takes the first generated circular profile and casually rotates it. Then, it analyses the x and y coordinates of the points forming the first circular profile to identify the points of contact with the bottom and the left sides of the box (A and B in Fig. 8a). Finally, the model brings the first circular profile into contact with the box in the identified points of contact.

Fig. 8
figure 8

Approach to bring the two circular profiles into contact: a contact zone and minimum distance between two circular profiles; b contact in C point

The second step of the assembly is to insert the second circular profile into the box. The developed model takes the generated second circular profile and randomly rotates it. Then, it analyses the x and y coordinates of its points to identify the contact point with the right side of the box (D in Fig. 8a). To search the contact point with the first circular profile, the model identifies the zones on the two circular profiles where the probability of contact is the highest (they are called contact zones and are shown in Fig. 8a). Then, it calculates the distance between each couple of faced points that have the same x-coordinate on the two contact zones. The minimum distance (called dmin in Fig. 8a) identifies the couple of points that are the contact points between the two circular profiles. Therefore, all the points of the second circular profile are shifted to the minimum distance along the y-axis to bring the second circular profile into contact with the first circular profile just inserted in the box, as shown in Fig. 8b. The number of points equally distributed on each profile, influences the search of the contact point between the circular profiles. In fact, larger the number of points, more accurate the searching of the contact will be between the circular profiles, but larger the number of points, longer the simulation time. However, 7150 points seem to be a good compromise.

Once assembled, the developed model evaluates the stability of the circular profiles’ positions by taking into account the effect of the gravity on the circular profiles and the effect of the friction force on the contact points. If the direction of gravity force is oriented downwards (−y-axis), this analysis can be considered as a static equilibrium. The system of forces that has to be equilibrated is composed by weight force, reaction force, and friction force applied to the points of contact among the circular profiles and the box. Therefore, to solve the balance it is necessary to translate the effect of those forces into terms of assembly specification. The general position of each circular profile is unstable if the friction force, due to the vectorial composition of the weight and the reaction forces, is close to the normal vector on the wall of the box. The angles of tilt between the reaction forces and the normal vectors are the β i angles. If those angles’ values remain smaller than the friction limit angle, the circular profile’s position is stable. Otherwise, if the values of β i become larger than the friction limit angle, the circular profile rotates until the values become smaller. From Fig. 9, it is possible to see that the values of those angles and of variable g are a function of the assembly parameters α 1 and α 2 (i.e. of the random angles chosen for the rotation of the profiles to be assembled in the box) and of the values due to the dimensional and form tolerances.

Fig. 9
figure 9

Tilt angles of the two circular profiles

Therefore, it is possible to know the stable and unstable positions of the two profiles under the action of the gravity force and the range of variability of the objective function g. To do this, the following hypotheses have been adopted to simplify the analysis:

  • The friction between the parts is a static friction type. In this way, dynamic effects are ignored. Its action is expressed by means of the friction limit angle φ st. Generally, this value is given by the material nature of the surfaces in contact. If the parts are made of steel which is a material typically machined by turning without considering a lubricant, the realistic values of the friction limit angle are 1.5°–2.5°.

  • The inertial effects are ignored; when a position becomes unstable, the first stable position has been reached without overcoming it due to the inertial effect.

  • The positioning of the second profile depends on the positioning of the first profile.

Once verified that the positions of the two circular profiles are stable, the value of the form deviation of the actual points of contact among the two circular profiles and the box have been obtained. The values of the parameters d i of the points of contact have been substituted into Eq. (5). The value of R remains equal to 20 mm, while r is still a random variable following a Gaussian probability density function with means equal to 0 mm and standard deviation equal to one-sixth of the dimensional range. The value of the g gap is estimated using Eq. (5).

Moreover, the case study has been solved also with the classical variational method of literature shown in Eq. (5) by means of a statistical approach that considers the model parameters as statistical independent variables following Gaussian probability density functions. The value of R remains equal to 20 mm, while r 1, r 2 and d i are random variables following a Gaussian probability density function with means equal to 0 mm and standard deviation equal to one-sixth of the dimensional and form tolerance respectively, as shown in Fig. 4.

3 Numerical validation

To verify the results obtained by means of the proposed model, a geometrical model has been developed for the case study. It numerically reproduces what happens in the actual assembling.

The geometrical model, which has been developed in the Matlab® environment, starts by generating two circular profiles with the manufacturing signature. Those circular profiles are randomly rotated and they are assembled into the box by means of the actual points of contact, as done in the previous paragraph. Once verified that the positions of the two circular profiles are stable, by taking into account the weight and the friction forces applied to the circular profiles, as done in the previous paragraph, the value of the g gap is estimated as the distance between the upper side of the box and the top side of the circular profile. An example of the profiles generated in this case is shown in Fig. 9 where it is possible to see the typical form of profiles, when the manufacturing signature is applied on them, and the evaluation of the β i angles as done in the previous paragraph.

The same geometrical approach has been applied without considering the manufacturing signature either. In this case, the approach assigns to the parameter d of Eq. (6) a Gaussian distribution with mean equal to zero and standard deviation equal to a sixth of the form tolerance (six-sigma approach). In this approach, the points of the two profiles vary independently from each other thus generating a sudden oscillation of the profiles. An example of the circular profiles generated in this case is shown in Fig. 10.

Fig. 10
figure 10

Example of circular profiles without manufacturing signature (amplified 100 times)

4 Results comparison and discussion

Monte Carlo simulation has been carried out by implementing 50,000 runs; this value has been chosen after performing a sensitivity analysis. In particular, the sensitivity analysis has been carried out on all models by varying the number of Monte Carlo simulations and considering a scale factor F = 1. The results about the standard deviations due to the sensitivity analysis are shown in Fig. 11. It is evident that results are very stable if 50,000 runs of Monte Carlo simulation are carried out.

Fig. 11
figure 11

Results of the standard deviations due to the sensitivity analysis by considering a scale factor F = 1 in all models

Four factors F (1, 10, 50 and 100) have been used to scale the applied tolerance ranges in order to have four sets of geometrical conditions. Factor 1 involves the tolerance ranges of Fig. 4, while factor 10 implies tolerance ranges ten times larger, factor 50 implies tolerance ranges fifty time larger and so on.

The normality of the obtained distributions of the gap g has been evaluated by means of Anderson–Darling test. The results are reported in Table 2 for variational models and in Table 3 for geometrical models, together with mean and standard deviation, Skewness, Kurtosis and simulation time. Table 4 shows the values of the mean and the standard deviation for the considered models together with the simulation time involved by them.

Table 2 Simulation results of variational model (50,000 runs)
Table 3 Simulation results of geometrical model (50,000 runs)
Table 4 Comparison among models (50,000 runs)

The results of Tables 2 and 3 show that increasing the tolerance ranges, when the scale factor F passes from 1 to 100 and involves a decrease of the mean value and an increase of the standard deviation of the g gap. Even, the geometric model without manufacturing signature (model 2 in Table 3) reaches a negative mean value of the g gap, when F is equal to 100. This ongoing is due to the fact that when the tolerance ranges increase, the sudden oscillation of the circular profiles makes the point of contact between the circular profiles move to the peak; the next effect is the shift of the second circular profiles towards the upper side of the box up until exiting from the box. This aspect is shown in Fig. 10.

The mean value of the gap g due to the variational model without and with manufacturing signature (models 3 and 4 in Table 2) is very near to the nominal value of 1.2702 mm for both the values of F factor (1 and 10). The same thing happens comparing the geometrical approach with manufacturing signature (model 1 in Table 3) with the nominal value for the same values of F factor mentioned previously.

The geometrical approach without manufacturing signature (model 2) carries out a mean value of the gap that is significantly lower than the nominal value, for both the values of the F factor (1 and 10). The standard deviation of the gap g due to the variational model with manufacturing signature (model 4) is very near to that due to the geometrical approach with manufacturing signature (model 1) for both the values of F factor (1 and 10). It happens because the two models use the same method to find the actual points of contact among the components during the assembly, and they consider in the same way both the weight and the friction forces. Models 2 and 3 give values of the standard deviation that are significantly lower than those due to model 1:

$${\text{model }}2:\;\frac{{\sigma _{2} - \sigma _{1} }}{{\sigma _{1} }} \cdot 100 = - 9.6\% \; \left( {F = 1} \right)\quad {\text{and}}\quad - 8.7\% \; \left( {F = 10} \right)$$
(7)
$${\text{model }}3:\;\frac{{\sigma _{3} - \sigma _{1} }}{{\sigma _{1} }} \cdot 100 = - 19.2\% \; \left( {F = 1} \right)\quad {\text{and}}\quad - 16.5\% \; \left( {F = 10} \right)$$
(8)

since those models consider nominal contact points among the components during the assembly and they do not take into account the weight and the friction forces. Model 4 gives values of the standard deviation of the g gap that are nearest to model 1:

$${\text{model }}4:\;\frac{{\sigma _{4} - \sigma _{1} }}{{\sigma _{1} }} \cdot 100 = 0\% \; \left( {F = 1} \right)\quad {\text{and}}\quad 0.6\% \; \left( {F = 10} \right)$$
(9)

These results are testified by the Levene test that has been carried out on the results (see Fig. 12).

Fig. 12
figure 12

Tests for equal variances

The boxplots of Fig. 13 show results of the measured gap g for all the models (model 1 is the geometrical approach with manufacturing signature, model 2 is the geometrical approach without manufacturing signature, model 3 is the variational model without manufacturing signature, and model 4 is the variational model with manufacturing signature) and for the two scale factors. The same figure reports the nominal value of the gap g (equal to 1.2702 mm), the boxplots of the gap g as a result of the Monte Carlo simulations and the tolerance range due to the worst case approach (classical approach in tolerance analysis). All the four models give a distribution of the gap g completely contained inside the worst case tolerance range.

Fig. 13
figure 13

Boxplots of the obtained results (average value ± 3 estimated standard deviation)

Models 1, 2 and 4 have comparable simulation times that are 600 times higher than the time required for simulation 3. In particular, the model 3 appears a good choice in terms of simulation time, if it is possible to neglect a decrease of about 19% in the estimation of gap g. It is evident that model 4 is the nearest to reference model 1.

5 Final validation on a 3D case study

To validate the used methodology a further 3D case study has been considered. The considered 3D case study is constituted by three components: a hollow box and two spheres, as shown in Fig. 14. The aim is the measurement of the gap g between the upper sphere and the top side of the box as a function of the tolerances applied to each component. The manufacturing signature on each sphere has been represented by means of a Simultaneous Autoregressive Model of first-order SAR(1). Traditional time series models, as the ARMAX model adopted in the 2D case, can represent correlation only along a single direction. The SAR(1) model instead can consider the spatial structure of the lattice defined by the triangulation of the points on the surface of the sphere at their nominal coordinates to generate a spatially correlated set of deviations from perfect sphericity.

Fig. 14
figure 14

3D case study (all dimensions and tolerances are in mm)

In a SAR(1) model, the deviations from perfect sphericity are simulated by means of the following equation:

$$d={{\left( I-G \right)}^{-1}}\varepsilon$$
(10)

where I is the identity matrix, G is a weight matrix and ε ~ N(0,σ 2 I) is a white noise with σ is equal to 0.0024 mm. In particular, G = ρW, where ρ is a correlation coefficient. Higher values of ρ denote a higher degree of spatial correlation among nearby points. Its value is 0.9. W is a neighbourhood matrix defined based on the triangulation of the points on the surface of the sphere. In particular,

$${{W}_{ij}}=\frac{\frac{{{I}_{ij}}}{{{d}_{ij}}}}{{{\Sigma }_{k}}\frac{{{I}_{kj}}}{{{d}_{kj}}}}$$
(11)

in which d ij is the Cartesian distance between the P i and the P j points of the sphere, and I ij is an indicator variable, which denotes whether points i and j are neighbours, that is

$${{I}_{ij}}=\left\{ \begin{matrix} 1, & \text{if point }i\text{ and }j\text{ belong to a same triangle} \\ 0, & \text{otherwise} \\\end{matrix} \right.$$
(12)

The gap g has been evaluated by means of the following analytical equation:

$$\begin{aligned} g & = 1.2702 - \left[ {d_{A} } \right. + r_{1} + \left( {3200} \right. + 60d_{B} + 40d_{c} - 40d_{E} + 60d_{F} + 100r_{1} - 40d_{B} \\ & \quad - 40d_{C} + 80d_{{D1}} + 80d_{{D2}} + 100r_{2} + 2d_{{D1}} d_{{D2}} - 2d_{B} r_{1} - 2d_{C} r_{1} + 2d_{{D1}} r_{1} + 2d_{{D2}} r_{1} \\ & \quad + 2d_{{D1}} r_{2} + 2d_{{D2}} r_{2} + 40\left( {d_{c} + r_{1} } \right) - 40\left( { - d_{B} - r_{1} } \right) + 2r_{1} r_{2} - d_{B} \left( { - 2d_{B} - 2r_{1} } \right) \\ & \quad + d_{C} \left( {2d_{c} + 2r_{1} } \right) + r_{1} \left( {2d_{c} + 2r_{1} } \right) - r_{1} \left( { - 2d_{B} - 2r_{1} } \right) - d_{B}^{2} - d_{C}^{2} + d_{{D1}}^{2} + d_{{D2}}^{2} - r_{1}^{2} \\ & \quad + r_{2}^{2} - \left( {d_{c} + r_{1} } \right)^{2} - \left( { + d_{B} + r_{1} } \right)^{2} - \left. {1700} \right)^{{0.5}} - \left. {58.73} \right] - 20 - r_{2} - d_{G} \\ \end{aligned}$$
(13)

where r 1 and r 2 are the model parameters, due to the dimensional tolerance, of the first and second spheres, respectively, d i is the model parameters due to the form tolerance applied to the points i = A, B, C, D, E, F and G of two spheres in Fig. 14. Equation (13) was obtained with the same approach reported in “Appendix” and used on the 2D case study but considering the third dimension in the equations of features and constraints.

This variational model has been modified to insert the manufacturing signature. To do so, at first the developed approach starts by generating spheres. Each sphere has been simulated by a set of evenly distributed points. The amplitude of this set is equal to 235,822. To each point of the sphere, it has been applied the model of Eq. (6). Also in this case, P i and O are the generic point and the centre of the sphere, R is the nominal value of the radius of the sphere, r is the value due to the dimensional tolerance applied to the sphere, and d is the value due to the manufacturing signature represented by means of the SAR(1) model. The r parameter has a Gaussian density function with mean value equal to zero and standard deviation equal to a sixth of the dimensional tolerance range.

Once the spheres are generated, these spheres are randomly rotated around the X i , Y i and Z i axes of a reference system that is placed in the centre of gravity of each sphere that has been calculated by the arithmetic mean of all the points’ coordinates. Then, an absolute XYZ reference system is placed at the intersection among the left, the back and the bottom sides of the box, as shown in Fig. 14. The coordinates of the points constituting the first sphere are analysed, and then the first sphere is brought into contact with the bottom, the left and the back sides of the box (A, B, C in Fig. 14).

Therefore, the coordinates of the points constituting the second sphere are analysed to identify the points of contact with the sides of the box, for example with the right and the back sides of the box (F and E in Fig. 14). To identify the point of contact with the first sphere, the zones on the spheres, where the probability of contact is the highest, are defined. They are a surrounding of the nominal point of contact. Then, the couples of faced points have been identified, as those points having the same x and z coordinates on the two contact zones. The minimum distance between each couple of faced points (called d min in Fig. 15a) defines the couple of points that are the points of contact between the two spheres. All the points of the second sphere are shifted by the minimum distance along Y-axis to bring the second sphere into contact with the first sphere just inserted in the box, as shown in Fig. 15b. Once assembled, it is evaluated if the general position of each sphere is stable. The condition of balance among the forces is expressed by requiring that they pass through the same point. Therefore, considering the weight force applied in the centre of gravity of the clouds (G1 and G2 in Fig. 15b), the reactions are applied to the points of contact and they are directed towards the centre of gravity of the sphere. The angles among these reactions and the normal vectors to the surfaces are β 1, β 2, β 3, β 4, β 5, β 6, as shown in Fig. 15b. These six angles should have a value smaller than the static friction limit angle in order to have a stable position of the sphere as explained in Sect. 2. Once verified that the positions of the two spheres are stable, the coordinates of the contact points are transformed into coordinates associated with the DRF of each sphere. Then, they are used to enter inside the array of the generated point cloud to read the corresponding form deviations. The values of the model parameter of the points of contact have been substituted into Eq. (13). Finally, the value of the gap g is estimated as the distance between the upper side of the box and the top side G of the second sphere.

Fig. 15
figure 15

Approach to bring the two spheres into contact: a contact zone and minimum distance between two circular profiles; b tilt angles of the two spheres

Fig. 16
figure 16

Local and global DRFs and features

The 3D case study has been solved also with the classical variational method of literature shown in Eq. (13) by means of a statistical approach that considers the model parameters as statistical independent variables following Gaussian probability density functions. The values r 1, r 2 and d i are random variables following a Gaussian probability density function with means equal to 0 mm and standard deviation equal to one-sixth of the dimensional and form tolerance, respectively, as shown in Fig. 14.

Also in this case, a geometrical model has been developed for the 3D case study. The geometrical model starts by generating two spheres with the manufacturing signature. Those spheres are randomly rotated, and they are assembled into the box by means of the actual points of contact. Once verified that the positions of the two spheres are stable, by taking into account the weight and the friction forces applied to the circular profiles, the value of the g gap is estimated as the distance between the upper side of the box and the top side of the sphere.

Monte Carlo simulation has been carried out by implementing 10,000 runs and considering only a scale factor F = 1. The results are reported in Table 5 together with mean, standard deviation, Skewness, Kurtosis and simulation time.

Table 5 Comparison among models on the 3D case study (10,000 runs)

All the three models give a distribution of the gap g completely contained inside the worst case tolerance range (1.2702 ± 0.0997). The normality of the obtained distributions of the gap g has been evaluated by means of Anderson–Darling test. The variational model with manufacturing signature is very near to the geometrical model in terms of both mean value and standard deviation. The variational model overestimates slightly the mean value of the gap g, even if it is negligible. It underestimates the standard deviation of about 13% because the variaional model does not take into account the correlation among the points of the spheres.

The geometrical model and the variational model with manufacturing signature have comparable simulation times (108,000 s) that are significantly higher than the time required for simulation the variational model (few seconds). Therefore, this last one appears a good choice in terms of simulation time, if it is possible to neglect a decrease of about 13% in the estimation of gap g.

6 Conclusions

The first effort of this work was to integrate the manufacturing signature in a model of the literature for tolerance analysis: the variational one, in order to bring closer a CAT simulation tool to reality. The second effort was to develop a geometrical model to simulate the assembly of parts with geometrical deviations that are correlated according to the manufacturing process signature, in such a way to satisfy the Geometric Dimensioning and Tolerancing (GD&T) standards, and in the presence of the agents operating during the assembly, such as friction and gravity.

On the 2D case study, the results show that the variational model with the manufacturing signature and the operating conditions allows to better reproduce the actual assembling of machined circular profiles in the presence of weight and friction forces. In fact, the mean value and the standard deviation of this model are statistically equal to those of the geometrical approach that considers the manufacturing signature and the operating conditions. The variational model of literature without the manufacturing signature underestimates the tolerance range of the gap g by about 19%, even if its simulation time is only 19 s. The geometrical approach without manufacturing signature does not reproduce what happens in reality; it is due to the rapid variation of the discretized profiles, due to the considered Gaussian distributions of the dimensional and geometrical deviations. The variational model has a general structure that may be easily applicable to any kind of assemblies by requiring a short computational time, at the same time guaranteeing a good agreement with the reference geometrical model. The geometrical model, that has been built to validate the variation model with and without manufacturing signature and operative conditions, requires a consistent modelling effort and cannot be easily implement in CAT software.

Same conclusions have been obtained on the 3D case study as a further validation of the methodology used.

This work represents a first step towards the integration of design and manufacturing, since it tries to integrate in a design tool, such as the tolerance analysis, a typically manufacturing signature, an innate property of every manufacturing process that characterizes the correlation among the points of the same profile. The manufacturing signature and the operating conditions may influence the tolerance range of the functional requirement drastically also in simple case studies as those used in this work. The drawback of all the models that involves the manufacturing signature and the operating conditions is the simulation times, which may be overcome by parallel computing techniques, which are currently object of further study.