Keywords

1 Introduction

The use of composite materials requires a detailed study of their internal structure. To understand the behavior of the structure during operation, it is necessary to know the mechanical properties of the material and the boundary stress values at which failure-free operation is possible. Assessing the internal structure of the sample at the micro-level, the method of analyzing the microstructure image is widely used. High-strength cast iron has found application in mechanical engineering [31, 32]. It is used in critical assemblies, such as gears, gearboxes, suspension arms, etc. A feature of such cast iron is its relatively simple microstructure. The microstructure of cast iron with the inclusion of spherical graphite is represented in Fig. 1.

Such approaches to the analysis of the material macrostructure are known in the literature. Experimental [1,2,3,4,5,6] or direct research. They require the creation of samples and the experiment conducting. Work is known where the influence of the microstructure on crack development [1], phase composition [2], the hardness of the test sample [6].

Fig. 1.
figure 1

The microstructure of high-strength cast iron [25]

The second group of studies [7,8,9,10,11,12,13], combines the application of computer vision technology. Image pattern recognition is used to classify the structure [7, 10]; assessment of the number of defects [8]; segmentation of complex microstructures [11], finding the particle sizes and their distribution on the plane, predicting the properties of the material by the image of its microstructure [12, 13]. Other works [14,15,16,17,18] propose modeling the studied microstructure by the finite element method.

This paper proposes to create a methodology for studying microstructure without additional full-scale experiment, to use the advantages of computer vision for microstructure recognition. The proposed technique relies on the generation of statistically equivalent microstructure geometry, independent of the particular image. The studied material is characterized by a transition microstructure. Such a structure exhibits variability at various points on the surface. For analysis, a method of averaging material characteristics is used. The position and orientation of graphite inclusions on the ferrite plane are randomly generated by a numerical method. The obtained statistical data allows describing of the variability microstructure influence on the sample’s mechanical properties. Including analysis of the stress-strain state and equivalent elastic constants by the finite element method. Elements of the same technics could be found in [26,27,28,29,30].

2 Objectives

As the initial data in the work, images of the microstructure of cast iron are taken (Fig. 1). It is assumed that the structure of cast iron is modeled synthetically, based on actual images of its microstructure. It is necessary to take into account the possibility of a random position of inclusions on the plane and consider the possibility of varying their concentration depending on the size of graphite. To determine the elastic properties of the investigated material by modeling a finite elemental model. To obtain the characteristics of the elastic moduli, shear moduli, and Poisson’s ratio as a function of the concentration of inclusions. Find the invariants of the elastic moduli. They provide information on the elastic characteristics of the material. Build the yield surface, which ensures the absence of plastic strains.

3 Image Processing and Generation of the Statistically Equivalent Artificial Microstructure

Image processing and artificial microstructure generation of high-strength cast iron have been implemented in previous works [19, 20]. The generation of the statistically equivalent microstructure of cast iron is possible by establishing the dependence of the size of inclusions on their concentration. For each concentration case, data have been obtained on the number and size of graphite inclusions on the plane. According to mathematical expectation data, the variance of the radii inclusions, their number per area, the function of the dependence of the size of the inclusions on the concentration have been obtained by (1):

$$ \begin{gathered} M\left[ R \right] = 18.308 \cdot \left( {\psi - 0.048} \right)^{{0.123}} ; \hfill \\ \sqrt {D\left[ R \right]} = 9.683 \cdot \left( {\psi - 0.045} \right)^{{0.314}} . \hfill \\ \end{gathered} $$
(1)

The nature of inclusions obeys the normal distribution law of a random variable. Each radius of graphite inclusions is randomly generated while their total area is less than the required concentration. By concentration (ψ) is meant the ratio of the area of inclusions to the area of the sample, which varies in the range of [0.054..0.3]. The position of radii centers on the plane of the simulated cast iron microstructure also occurs randomly and implemented by a uniform quantity distribution function. The result of the artificial generation of the microstructure is shown in Fig. 2.

Fig. 2.
figure 2

Artificially generated microstructure with an appropriate concentration of inclusions

4 Finite Element Model

The construction of the finite elemental model is based on the geometry (Fig. 2) obtained after the artificial generation of the cast iron microstructure. To create the mesh grid, a two-dimensional 8-node finite element with two degrees of freedom in each node is used. Typical meshing is shown in Fig. 3. For calculations, it is assumed that ferrite is an isotropic material, in Table 1 shows its mechanical properties, and graphite – has a hexagonal structure of the crystal lattice, the corresponding elastic constants are given in Table 2.

Fig. 3.
figure 3

The typical meshing of cast iron microstructure

Table 1. Properties of ferrite material
Table 2. Properties of graphite material

5 Homogenization Procedure and Elastics Constant Determination

Based on the macro level, structural elements are considered homogeneous anisotropic materials with averaged elastic characteristics. Hooke’s law for anisotropic material can be written for the case of general anisotropy by (2):

$$ \left\langle {\varepsilon _{{ij}} } \right\rangle = A_{{ijkl}} \left\langle {\sigma _{{kl}} } \right\rangle ,(i,j,k,l = {\text{ }}1,2,3), $$
(2)

where Aijkl – elastic constants of equivalent homogeneous material;

\(\left\langle {\sigma _{{ij}} } \right\rangle ,\left\langle {\varepsilon _{{ij}} } \right\rangle\)– the mean strain and strain tensors averaged as the integral by volume (3).

$$ \left\langle {\sigma _{{ij}} } \right\rangle = \frac{1}{V}\int\limits_{V} {\sigma _{{ij}} dV} ;\left\langle {\varepsilon _{{ij}} } \right\rangle = \frac{1}{V}\int\limits_{V} {\varepsilon _{{ij}} dV} . $$
(3)

Using the Voigt notation [23] and the above concepts are introduced, the 4th rank symmetric tensor from Eq. (2) can be written using a quadratic matrix. In an arbitrarily chosen orthogonal coordinate system, Hooke’s law can be represented in a matrix form (4) [17].

$$ \left[ {\begin{array}{*{20}c} {\left\langle {\varepsilon _{x} } \right\rangle } \\ {\left\langle {\varepsilon _{y} } \right\rangle } \\ {\left\langle {\varepsilon _{z} } \right\rangle } \\ {\left\langle {\gamma _{{yz}} } \right\rangle } \\ {\left\langle {\gamma _{{zx}} } \right\rangle } \\ {\left\langle {\gamma _{{xy}} } \right\rangle } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {a_{{11}} } & {a_{{12}} } & {a_{{13}} } & {a_{{14}} } & {a_{{15}} } & {a_{{16}} } \\ {a_{{21}} } & {a_{{22}} } & {a_{{23}} } & {a_{{24}} } & {a_{{25}} } & {a_{{26}} } \\ {a_{{31}} } & {a_{{32}} } & {a_{{33}} } & {a_{{34}} } & {a_{{35}} } & {a_{{36}} } \\ {a_{{41}} } & {a_{{42}} } & {a_{{43}} } & {a_{{44}} } & {a_{{45}} } & {a_{{46}} } \\ {a_{{51}} } & {a_{{52}} } & {a_{{53}} } & {a_{{54}} } & {a_{{55}} } & {a_{{56}} } \\ {a_{{61}} } & {a_{{62}} } & {a_{{63}} } & {a_{{64}} } & {a_{{65}} } & {a_{{66}} } \\ \end{array} } \right] \times \left[ {\begin{array}{*{20}c} {\left\langle {\sigma _{x} } \right\rangle } \\ {\left\langle {\sigma _{y} } \right\rangle } \\ {\left\langle {\sigma _{z} } \right\rangle } \\ {\left\langle {\tau _{{yz}} } \right\rangle } \\ {\left\langle {\tau _{{zx}} } \right\rangle } \\ {\left\langle {\tau _{{xy}} } \right\rangle } \\ \end{array} } \right], $$
(4)

where aik elastic constants; in the general case, the number of independent elastic constants is 21, according to symmetry aik = aki.

As a test sample, plane artificially modeled images of cast iron microstructure are taken, therefore it`s correct to calculate the stress based on plane models. Equation (4) for the case of a plane stress state takes the form (5):

$$ \left[ {\begin{array}{*{20}c} {\left\langle {\varepsilon _{x} } \right\rangle } \\ {\left\langle {\varepsilon _{y} } \right\rangle } \\ {\left\langle {\gamma _{{xy}} } \right\rangle } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {a_{{11}} } & {a_{{12}} } & {a_{{16}} } \\ {a_{{21}} } & {a_{{22}} } & {a_{{26}} } \\ {a_{{61}} } & {a_{{62}} } & {a_{{66}} } \\ \end{array} } \right] \times \left[ {\begin{array}{*{20}c} {\left\langle {\sigma _{x} } \right\rangle } \\ {\left\langle {\sigma _{y} } \right\rangle } \\ {\left\langle {\tau _{{xy}} } \right\rangle } \\ \end{array} } \right]. $$
(5)

In technical application, such notation (6) are often used [21]:

$$ \begin{array}{*{20}l} {\begin{array}{*{20}l} {a_{{11}} = \frac{1}{{E_{x} }};a_{{22}} = \frac{1}{{E_{y} }};a_{{66}} = \frac{1}{{G_{{xy}} }};a_{{12}} = - \frac{{\nu _{{xy}} }}{{E_{x} }};a_{{21}} = - \frac{{\nu _{{yx}} }}{{E_{y} }};} \hfill \\ \end{array} } \hfill \\ {a_{{16}} = \frac{{\eta _{{x,xy}} }}{{G_{{xy}} }};a_{{26}} = \frac{{\eta _{{y,xy}} }}{{G_{{xy}} }};a_{{61}} = \frac{{\eta _{{xy,x}} }}{{E_{x} }};a_{{62}} = \frac{{\eta _{{xy,y}} }}{{E_{y} }},} \hfill \\ \end{array} $$
(6)

where Ex, Ey,– Young’s moduli; νxy, νyx – Poisson’s ratio; Gxy – shear module; ηxy,x, ηxy,y – the 1st order coefficients of interaction that characterize the displacement in the directions parallel to the coordinate axes under the action of normal stresses; ηx,xy, ηy,xy – the 2nd order interaction coefficients that characterize the elongation in directions parallel to the coordinate axes caused by the shear stresses.

Then Hooke’s law (5), taking into account the notation (6), will take the form (7). Based on the statement about the symmetry of the matrix, have six independent elastic constants, and three are linearly dependent on the diagonal constants determined from Eqs. (8):

$$ \left[ {\begin{array}{*{20}c} {\left\langle {\varepsilon _{x} } \right\rangle } \\ {\left\langle {\varepsilon _{y} } \right\rangle } \\ {\left\langle {\gamma _{{xy}} } \right\rangle } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {\frac{1}{{E_{x} }}} & { - \frac{{\nu _{{xy}} }}{{E_{x} }}} & {\frac{{\eta _{{x,xy}} }}{{G_{{xy}} }}} \\ { - \frac{{\nu _{{yx}} }}{{E_{y} }}} & {\frac{1}{{E_{y} }}} & {\frac{{\eta _{{y,xy}} }}{{G_{{xy}} }}} \\ {\frac{{\eta _{{xy,x}} }}{{E_{x} }}} & {\frac{{\eta _{{xy,y}} }}{{E_{y} }}} & {\frac{1}{{G_{{xy}} }}} \\ \end{array} } \right] \times \left[ {\begin{array}{*{20}c} {\left\langle {\sigma _{x} } \right\rangle } \\ {\left\langle {\sigma _{y} } \right\rangle } \\ {\left\langle {\tau _{{xy}} } \right\rangle } \\ \end{array} } \right]. $$
(7)
$$ E_{x} \nu _{{yx}} = E_{y} \nu _{{xy}} ;E_{x} \eta _{{x,xy}} = G_{{xy}} \eta _{{xy,x}} ;E_{y} \eta _{{y,xy}} = G_{{xy}} \eta _{{xy,y}} . $$
(8)
Fig. 4.
figure 4

Von Mises equivalent stresses under different types of loads

To obtain the matrix it’s necessary to find all the constants four numerical experiments have to be performed. The load diagram of the model, the results of which allows creating a system of linear algebraic equations for the Poisson’s ratio, elastic and shear moduli represented in Fig. 4.

6 The Results of Elastic Constant Conclusion

The results of the stress-strain state of the microstructure of cast iron with the inclusion of spherical graphite in four types of load are represented in Fig. 4. Considering the orientation of inclusions to be arbitrary, it is necessary to conduct a series of numerical experiments to obtain elastic constants.

To determine the elastic constants, the Monte Carlo method is used. According to this method, the position and orientation of inclusions on the plane are set randomly. For each concentration, 200 Monte Carlo algorithm interventions are performed. The results obtained for elastic constants are statistically averaged, and their dependence on the concentration of inclusions is established (Fig. 5). The dependence (9) is taken as the confidence interval for the calculated data, which for the normal distribution of a random variable corresponds to 99.73% of the probability of the results being in this region.

$$ \alpha _{{\text{int} }} = M \pm 3 \cdot \sqrt D , $$
(9)

where M and D – mathematical expectation and variance of the corresponding elastic constants.

The averaged results for 200 numerical experiments for the elastic moduli, Poisson’s ratio, shear moduli, and the 1st and 2nd order coefficients of the mutual influence of stresses for 17 concentrations of graphite inclusions are given in Table 3.

Table 3. Elastic characteristics of the studied material
Fig. 5.
figure 5

The dependence of the elastic characteristics of the material on the concentration of inclusions

To assess the veracity, the results obtained have been compared with the results obtained using the mixture rule (10). This approach makes it possible to estimate the upper and lower boundaries of the elastic moduli. These estimates correspond to parallel and perpendicular structural elements (Fig. 6). An analysis of the results shows that the mathematical expectation of the equivalent moduli of elasticity is between the upper and lower bounds of the estimate according to the rule of the mixture, which confirms the correctness of the constructed models. However, from it is seen that the upper boundary of the confidence interval exceeds the upper estimate of the elastic moduli. This is because the rule of the mixture does not take into account the random orientation of the principal axes of the graphite crystals, and a comparison is possible only by average values. This is also since the real properties of graphite are much more complicated than isotropic, which provides for the rule of the mixture.

Fig. 6.
figure 6

The upper and lower boundaries of the elastic moduli of the generated microstructure

$$ E_{{\max }} = \psi \cdot E_{g} + \left( {1 - \psi } \right) \cdot E_{f} ;E_{{\min }} = \left( {\frac{\psi }{{E_{g} }} + \frac{{1 - \psi }}{{E_{f} }}} \right)^{{ - 1}} , $$
(10)

where, ψ – concentration in the range [0.054, 0.300]; Eg – graphite elastic moduli; Ef – ferrite elastic moduli.

On the other hand, in the literature [22], the problems of finding the invariants of the elastic moduli tensor are often considered. Such invariants have a mechanical meaning and provide information on the elastic properties of the material under study. The found invariants of the elastic moduli provide information on the properties of the material and require the establishment of a smaller number of independent constants.

To find the corresponding invariants, it is necessary to introduce the concepts: eigenvalues – λ, and Eigen tensor of the second rank – qij. Then, for a plane stress state, the tensor takes the form (11):

$$ A_{{ij}} \cdot q_{j} = \lambda \cdot q_{i} ,(i,j = 1,2,3). $$
(11)
$$ \left\{ {\begin{array}{*{20}c} {(A_{{11}} - \lambda ) \cdot q_{1} + A_{{12}} \cdot q_{2} + A_{{13}} \cdot q_{3} = 0} \\ {A_{{21}} \cdot q_{1} + (A_{{22}} - \lambda ) \cdot q_{2} + A_{{23}} \cdot q_{3} = 0} \\ {A_{{31}} \cdot q_{1} + A_{{32}} \cdot q_{2} + (A_{{33}} - \lambda ) \cdot q_{3} = 0} \\ \end{array} } \right.. $$
(12)

The system of linear Eqs. (12) gives three orthonormal Eigen tensors: \(q_{{_{i} }}^{{(1)}} ,q_{{_{i} }}^{{(2)}} ,q_{{_{i} }}^{{(3)}}\). Stresses and strains are represented by the expansion along with the basis of intrinsic tensors (13):

$$ \begin{array}{*{20}l} {\sigma _{i} = k_{1}^{{(\sigma )}} \cdot q_{i}^{{(1)}} + k_{2}^{{(\sigma )}} \cdot q_{i}^{{(2)}} + k_{3}^{{(\sigma )}} \cdot q_{i}^{{(3)}} \Rightarrow \sigma _{i}^{*} ;} \hfill \\ {\varepsilon _{i} = k_{1}^{{(\varepsilon )}} \cdot q_{i}^{{(1)}} + k_{2}^{{(\varepsilon )}} \cdot q_{i}^{{(2)}} + k_{3}^{{(\varepsilon )}} \cdot q_{i}^{{(3)}} \Rightarrow \varepsilon _{i}^{*} ;} \hfill \\ {k_{1}^{{(\sigma )}} = \sigma _{i} \cdot q_{i}^{{(1)}} ;k_{2}^{{(\sigma )}} = \sigma _{i} \cdot q_{i}^{{(2)}} ;k_{3}^{{(\sigma )}} = \sigma _{i} \cdot q_{i}^{{(3)}} ;} \hfill \\ {k_{1}^{{(\varepsilon )}} = \sigma _{i} \cdot q_{i}^{{(1)}} ;k_{2}^{{(\varepsilon )}} = \sigma _{i} \cdot q_{i}^{{(2)}} ;k_{3}^{{(\varepsilon )}} = \sigma _{i} \cdot q_{i}^{{(3)}} .} \hfill \\ \end{array} $$
(13)

Given Eq. (13), Hooke’s law in matrix form has a diagonal form (14), the elastic moduli are given in three positive definite eigenvalues \(\lambda _{i} > 0,(i = 1,2,3)\):

$$ \left[ {\begin{array}{*{20}c} {\left\langle {\sigma _{{_{i} }}^{*} } \right\rangle } \\ {\left\langle {\sigma _{{_{i} }}^{*} } \right\rangle } \\ {\left\langle {\sigma _{i}^{*} } \right\rangle } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {\lambda _{1} } & 0 & 0 \\ 0 & {\lambda _{2} } & 0 \\ 0 & 0 & {\lambda _{3} } \\ \end{array} } \right] \times \left[ {\begin{array}{*{20}c} {\left\langle {\varepsilon _{i}^{*} } \right\rangle } \\ {\left\langle {\varepsilon _{i}^{*} } \right\rangle } \\ {\left\langle {\varepsilon _{i}^{*} } \right\rangle } \\ \end{array} } \right]. $$
(14)

Using the linear algebra library numpy.linalg, the eigenvalue and the right eigenvectors of the square array for the elastic moduli are calculated. The results of mathematical expectation and variance for three invariants of the elastic moduli and six elastic constants for various concentrations of inclusions are shown in Table 4, and such dependence is graphically shown in Fig. 7.

Table 4. Statistical data of the invariants of the elastic moduli
Fig. 7.
figure 7

The dependence of the invariants of the elasticity moduli on the concentration of inclusions

7 The Yield Surface Calculation

One of the tasks of materials engineering is to establish the loading conditions that cause plastic deformation. This is important to determine the load combination which leads to a transition from the elastic to the plastic state. To find «safe» loading which is not lead to plastic deformation.

In the case of uniaxial loading, this task is not particularly difficult. It is enough to have a relation between stress and strain. Such data can be obtained from experiments on simple tension and compression. However, for materials that are in conditions of two and three-dimensional stress states, everything is not so clear. In such situations, predicting the appearance of plasticity requires additional information.

In the case of a three-dimensional stress state, determining the yield surface is a difficult task. This is due to several technical difficulties caused on the one hand by the complexity of the experimental environment, and on the other hand, by the huge number of samples that need to be tested. This problem is especially acute for composite and heterogeneous materials. To solve this problem, computer simulation methods are used.

Computer modeling uses yield hypotheses in complex loading conditions [24]. All hypotheses are based on the assumption that the yield of material in a multidimen-

Table 5. Yield surface for different concentration of inclusions

sional stressed state occurs when the value is reached or exceeded the specific value obtained from a simple uniaxial test.

The finding of the yield surface in this work is based on the hypothesis of the specific energy of shaping (the Huber – Mises – Genki hypothesis) [24]. According to the hypothesis, plastic strains of a sample in a complex stress state occurs when the specific formation energy becomes equal to or exceeds the specific formation energy of the material under the action of a uniaxial stress state.

For the microstructure which is consists of two types of materials (ferrite and graphite), the maximum stresses for each phase are found. For graphite, the tensile and compressive strengths differ significantly, therefore, separately for each type of stress state, the ratios maximum stresses to the corresponding allowable tensile strength are found. The yield surface is determined by the ratio of the principal stresses to the safety factor. The calculation result for some concentrations of graphite inclusions in the structure of ferrite is presented graphically in Table 5.

The first column in Table 5 contains some concentrations of graphite inclusions. The second column contains the calculation results presented as a set of points where the abscissa axis is σ1 and the ordinate is σ2. These quantities are the maximum allowable values of the principal stresses for ferrite and graphite materials respectively.

Kernel density estimation (KDE) is a way to estimate the probability density function (PDF) of a random variable in a non-parametric way. In the third column of Table 5 presented a PDF of the principals stress values obtained during calculations. Yield surface for different concentration of inclusions built with a library of statistical functions scipy.stats using gaussian_kde method to calculate the estimator bandwidth.

8 Conclusions

The paper discusses an algorithm for studying the elastic mechanical properties of cast iron. The elemental analysis of the created structural model is completed, the obtained formulas for determining the elastic moduli, Poisson’s ratio, and shear moduli are completed. The analysis of the dependence of elastic characteristics on the content of graphite inclusions is carried out. To evaluate the results, the mixture rule is applied to the averaged elastic moduli. The results of numerical modeling showed a good ratio of the calculated values of the Poisson’s ratio, elastic moduli, and shear with reference data. On the other hand, the maximum allowable values of the principal stresses for ferrite and graphite materials are calculated. According to the received data yield surfaces for various concentrations of inclusions have been found and constructed. Going beyond the surface indicates the appearance of plastic strains in the part.