1 Introduction

Interdiffusion problems are central to the processing and in-service behaviour of materials. Initially, Boltzmann[1] introduced an exact method for the calculation of the single interdiffusion coefficient analytically from the composition interdiffusion profile for a binary alloy. Following this, a number of studies, e.g., Ref 2,3,4,5 were published where the same interdiffusion problem in binary alloys was analysed in several different ways. In, Ref 2 the important concept of the Matano plane (a plane across which equal amounts of mass diffuse to the left and the right sides) was introduced and basic relationships were derived from it. In, Ref 3 this method was further advanced using the interrelationships between the atomic fluxes in such a way that the exact position of the Matano plane was not needed. In, Ref 4 a further modification of the basic relationships was introduced for application to the dilute ends of the composition profiles. In, Ref 5 it was shown that the method in Ref 4 can only be applied (in the dilute regions) if the interdiffusion coefficient is constant, and that, in the general case of a composition-dependent interdiffusion coefficient, the original methods[2,3] should be used.

However, technologically important metallic alloys are often comprised of three or more components. Indeed, ternary diffusion is central in most commercial materials systems employed in high-temperature as well as nuclear reactor environments, where interdiffusion processes play a vital role. Fujita and Gosting[6,7] investigated diffusion in both binary and ternary systems. In the binary case, they described a general theoretical foundation for interpreting diffusion data. In the ternary case, they described an exact (error function-based) solution of two simultaneous differential diffusion equations in terms of the four interdiffusion coefficients. Following that, they developed a new procedure[8] for solving the inverse interdiffusion problem in the ternary system – calculating the four diffusion coefficients of three-component systems from Gouy diffusiometer data. They showed that they obtained more accurate results than in previous studies. In, Ref 9, 10 the authors mainly focused on different methods for determining the diffusion coefficients in ternary alloys. In, Ref 9 a full description of available methods was given. In, Ref 10 a variation on the fitting method was used and favourably compared with the other available methods. Dayananda and Grace[11] worked on ternary diffusion in Cu-Zn-Mn alloys and showed that a vapour-solid diffusion pair can effectively be used in ternary diffusion studies. Ternary diffusion in Cu-Ag-Au metallic alloys is discussed in. Ref 12 There, the author systematically studied the diffusion behaviour over the entire, two-dimensional composition domain. Vrentas and Vrentas[13] developed some theoretical aspects of ternary diffusion problems. In the general case of a multi-component system, the composition profiles cannot be accurately calculated by means of a binary analysis. Therefore, a different approach for solving the (inverse) multicomponent diffusion equations must be used. (It should be noted that recently a good experimental interdiffusion study in a quinary alloy by means of the quasi-binary interdiffusion analysis has been reported,[14,15] although the study has attracted some scepticism[16]).

Dayananda and Sohn[17] defined a new method for the determination of constant ternary interdiffusion coefficients using experimental composition profiles. In, Ref 17 the interdiffusion coefficients in ternary alloys were calculated over composition points on either side of the Matano plane for selected diffusion couples, Cu-Ni-Zn, Fe-Ni-Al, and Ni-Cr-Al. Here, average interdiffusion coefficients were used to manipulate the composition profiles. Next et al.[18] analysed different properties of ternary metallic systems directly from the composition profiles. The MultiDiFlux software was developed for calculating ternary interdiffusion coefficients from the composition profiles (Cu-Ni-Zn couples were used as an example).[18] More recently, Dayananda[19] investigated interdiffusion coefficients in ternary diffusion from diffusion constraints at the Matano plane. The diffusion constraints interlink the compositions, composition gradients and interdiffusion fluxes at the Matano plane in a ternary diffusion couple. In addition, in, Ref 19 composition-dependent interdiffusion coefficients were calculated from composition profiles in a ternary alloy system using several techniques.

The square root diffusivity (SQRD) method[20] can be directly applied to multicomponent (ternary and higher systems) inverse interdiffusion problems. We will call the application of this method for the case of a single diffusion couple as the modified square root diffusivity (MSQRD) method. This is to be distinguished from the application of this method to two or more diffusion couples. Thompson et al.[21] investigated applications of square root diffusivity for ternary (Ni-Al-Cr) alloys using two couples. Jaques and LaCombe[22] studied the MSQRD method equations for determining ternary diffusivities from a single couple. Multicomponent diffusivities using one diffusion couple or two diffusion couples were analysed in Ref 23, 24 on the basis of the estimated uncertainties. In this case, the SQRD method predicted errors that were approximately equal to the experimental error, while the MSQRD method had much larger errors that could not be predicted without a prior knowledge of the interdiffusivity, especially for diffusion couples with certain composition differences. In, Ref 25 the SQRD method was used to measure diffusivities in Ni-Cr-Al-Mo alloys. In, Ref 26, the use of the SQRD method for five and six component alloys is also discussed. In, Ref 27,28,29,30 the different available methods were applied for solution of the inverse interdiffusion problem in ternary systems. There, the composition profiles were analysed by employing several programs such as MultiDiFlux, VisiMat and a graphical user interface.

The scheme of the present computational study on the ternary interdiffusion problem is first to produce discretised composition profiles (without superimposing artificial noise that is usually used to simulate experimentally obtained profiles). This is followed by investigating the inverse interdiffusion problem using the MSQRD method and the Fitting Method. The Fitting Method simultaneously fits the required functional form into the data obtained for two composition profiles. Such obtained fitted parameters are used then to determine the constant interdiffusion matrix.

2 Theory and Analysis

The governing equations for diffusion in the ternary system can be written as[7]:

$$\frac{{\partial C_{1} }}{\partial t} = \widetilde{D}_{11} \frac{{\partial^{2} C_{1} }}{{\partial x^{2} }} + \widetilde{D}_{12} \frac{{\partial^{2} C_{2} }}{{\partial x^{2} }}$$
(1)
$$\frac{{\partial C_{2} }}{\partial t} = \widetilde{D}_{21} \frac{{\partial^{2} C_{1} }}{{\partial x^{2} }} + \widetilde{D}_{22} \frac{{\partial^{2} C_{2} }}{{\partial x^{2} }}$$
(2)

where \(C_{1}\) and \(C_{2}\) are compositions that can be functions of distance \(x\) and time \(t\) and \(C_{3} = 1 - C_{1} - C_{2}\). \(\widetilde{D}_{11} , \;\widetilde{D}_{12} ,\;\widetilde{D}_{21}\) and \(\widetilde{D}_{22}\) are the four interdiffusion coefficients and they are assumed to be constant, independent of composition. It is assumed that the reference atomic component is \(C_{3}\). The initial conditions are:

$$C_{I} = \bar{C}_{I} + \frac{{\Delta C_{I} }}{2};\quad {\text{for}}\;x > 0, \;t = 0$$
(3)
$$C_{I} = \bar{C}_{I} - \frac{{\Delta C_{I} }}{2};\quad {\text{for}}\;x < 0, t = 0$$
(4)

in which \(\Delta C_{I}\) is a function of distance and time. The boundary conditions are:

$$C_{I} \to \bar{C}_{I} + \frac{{\Delta C_{I}^{0} }}{2};\quad {\text{for}}\;x \to \infty , t > 0$$
(5)
$$C_{I} \to \bar{C}_{I} - \frac{{\Delta C_{I}^{0} }}{2};\quad {\text{for}}\;x \to - \infty , t > 0$$
(6)

where

$$\bar{C}_{I} = \left[ {\left( {C_{I} } \right)_{ - \infty } + \left( {C_{I} } \right)_{\infty } } \right]/2$$
(7)
$$\Delta C_{I}^{0} = \left( {C_{I} } \right)_{\infty } - \left( {C_{I} } \right)_{ - \infty }$$
(8)

In Eq  7 and 8, \(\left( {C_{I} } \right)_{ - \infty } = C_{I} \left( {x \to - \infty } \right)\) and \(\left( {C_{I} } \right)_{\infty } = C_{I} \left( {x \to \infty } \right)\) are the two end (terminal) compositions of component \(I\). According to the definition of the composition vector (see Ref 31) \(\left[ {\Delta C} \right]\) is then defined as \(\left[ {\Delta C} \right] = \left[ {\Delta C_{1}^{0} ,\Delta C_{2}^{0} } \right]\).

The diffusion Eq 1 and 2 are to be solved with the initial and boundary conditions presented in Eq 3-8.

The exact solution for the compositions \(C_{1}\) and \(C_{2}\) can be presented in the following closed form7:

$$C_{1} = \overline{{C_{1} }} + K_{1}^{ + } \varPhi \left( {\surd \sigma_{1} x} \right) + K_{1}^{ - } \varPhi \left( {\surd \sigma_{2} x} \right)$$
(9)
$$C_{2} = \overline{{C_{2} }} + K_{2}^{ + } \varPhi \left( {\surd \sigma_{1} x} \right) + K_{2}^{ - } \varPhi \left( {\surd \sigma_{2} x} \right)$$
(10)

in which the error function \({{\Phi }}\) is given by:

$$\varPhi \left( q \right) = \frac{2}{\surd \pi }\mathop \smallint \limits_{0}^{q} e^{{ - q^{2} }} {\text{d}}q$$
(11)

and

$$K_{1}^{ + } = \frac{{\left( {\sigma_{1} - E} \right)\Delta C_{1}^{0} - F \Delta C_{2}^{0} }}{{2\left( {\sigma_{1} - \sigma_{2} } \right)}}$$
(12)
$$K_{1}^{ - } = \frac{{\left( {\sigma_{2} - E} \right)\Delta C_{1}^{0} - F \Delta C_{2}^{0} }}{{2\left( {\sigma_{2} - \sigma_{1} } \right)}}$$
(13)
$$K_{2}^{ + } = \frac{{\left( {\sigma_{1} - H} \right) \Delta C_{2}^{0} - G\Delta C_{1}^{0} }}{{2\left( {\sigma_{1} - \sigma_{2} } \right)}}$$
(14)
$$K_{2}^{ - } = \frac{{\left( {\sigma_{2} - H} \right) \Delta C_{2}^{0} - G\Delta C_{1}^{0} }}{{2\left( {\sigma_{2} - \sigma_{1} } \right)}}$$
(15)

and

$$E = \frac{{\widetilde{D}_{11} }}{{\left| {\widetilde{D}_{ij} } \right|}}, \;F = \frac{{\widetilde{D}_{12} }}{{\left| {\widetilde{D}_{ij} } \right|}}, \;G = \frac{{\widetilde{D}_{21} }}{{\left| {\widetilde{D}_{ij} } \right|}}, \;H = \frac{{\widetilde{D}_{22} }}{{\left| {\widetilde{D}_{ij} } \right|}}$$
(16)
$$\sigma_{1} = \frac{1}{2}\left\{ {H + E + \left[ {\left( {H - E} \right)^{2} + 4FG} \right]^{{\frac{1}{2}}} } \right\}$$
(17)
$$\sigma_{2} = \frac{1}{2}\left\{ {H + E - \left[ {\left( {H - E} \right)^{2} + 4FG} \right]^{{\frac{1}{2}}} } \right\}$$
(18)

For the inverse part of the problem, the fitting functions for the two compositions are:

$$C_{1} = \overline{{C_{1} }} + a_{11} \varPhi \left( {a \left( x \right)} \right) + \left( {\frac{{\Delta C_{1}^{0} }}{2} - a_{11} } \right)\varPhi \left( {b \left( x \right)} \right)$$
(19)
$$C_{2} = \overline{{C_{2} }} + \left( {\frac{{ \Delta C_{2}^{0} }}{2} - a_{22} } \right)\varPhi \left( {a \left( x \right)} \right) + a_{22} \varPhi \left( {b \left( x \right)} \right)$$
(20)

Here, \(a_{11} ,a_{22} , a\) and \(b\) are fitting parameters.

It is known (see, for example, 32) that when the composition vector \(\left[ {\Delta C} \right]\) is aligned with the direction of an eigenvector of the interdiffusion matrix, the coefficients of one error function in Eq 19 and 20 will be zero. In the plane \((C_{1} , C_{2} )\) the angle \(\phi_{c}\) of the composition vector is defined as \(\tan \phi_{c} =\Delta C_{2}^{0} /\Delta C_{1}^{0}\).[31] The corresponding angles of the major and minor eigenvectors, \(\phi_{1}\) and \(\phi_{2}\), can then be defined as \({ \tan }\phi_{1} = \left( {\sigma_{1} - E} \right)/F\) and \({ \tan }\phi_{2} = \left( {\sigma_{2} - E} \right)/F\).[31]

For the generation of the composition profiles for each test simulations, we have used the closed form solution given by Eq 9-20. Following that, the profiles were discretised at the grid in the \(x\)-direction containing 200 points. The choice of time and the total width of the diffusion zone in this procedure was consistent with the standard resolution of the experimental measurements of the interdiffusion profiles of 2-3 µm.

2.1 Calculation to Recover \(\widetilde{D}_{ij}\) Using the Fitting Method

To calculate the interdiffusion matrix, the first step is to calculate the inverse interdiffusion matrix \(\left\{ {E, F;G,H} \right\}\). Once \(\left\{ {E, F;G,H} \right\}\) is recovered, one then calculates \(\frac{1}{EH - FG} = { \det }\left[ {\widetilde{D}} \right]\) and the matrix \(\{ \widetilde{D}_{11} ,\widetilde{D}_{12} ,\widetilde{D}_{21} ,\widetilde{D}_{22} \}\) can be found by multiplying \(\left\{ {H, - F; - G,E} \right\}\) by \({ \det }\left[ {\widetilde{D}} \right]\). The components of the matrix \(\left\{ {E, F;G,H} \right\}\) can be calculated as follows:

$$E = \left( {s_{1} \left( {\Delta C_{1}^{0} - 2a_{11} } \right)\left( {\Delta C_{2}^{0} - 2a_{22} } \right) - 4s_{2} a_{11} a_{22} } \right)/\left( { - 2\Delta C_{2}^{0} a_{11} +\Delta C_{1}^{0} \left( {\Delta C_{2}^{0} - 2a_{22} } \right)} \right)$$
(21)
$$H = s_{1} + s_{2} - E$$
(22)
$$F = 6a_{11} \left( {s_{1} - s_{2} } \right) - s_{1} + E$$
(23)
$$G = 6a_{22} \left( {s_{1} - s_{2} } \right) + s_{1} - E$$
(24)

Here, \(s_{1}\) and \(s_{2}\) are related to the fitting parameters \(a\), \(b\) and time \(t\) as:

$$s_{1} = 4ta^{2} \;{\text{and}}\;s_{2} = 4tb^{2}$$
(25)

2.2 Calculation to Recover \(\widetilde{D}_{ij}\) Using the MSQRD Method

In this method, the diffusivity \(\left[ { \widetilde{D}} \right]\) is replaced by the matrix of the square root diffusivity \(\left[ r \right]\) in an obvious way [20,33]:

$$\left[ { \widetilde{D}} \right] = \left[ r \right]\left[ r \right]$$
(26)

The amount of atoms \(I\) that is passing through the Matano plane at \(x = 0\) in time \(t\) can be calculated as:

$$S_{I} = \mathop \smallint \limits_{0}^{ + \infty } \left( {C_{I} - \left( {C_{I} } \right)_{\infty } } \right){\text{d}}x$$
(27)

The square root diffusivity analysis for the ternary systems is based on the solution to a system of linear equations. The first two of them have the following form:

$$S_{I} = - \sqrt {\frac{t}{\pi }} \left( {r_{i1}\Delta C_{1}^{0} + r_{i2}\Delta C_{2}^{0} } \right)$$
(28)

where \(r_{ij}\) is an element of \(\left[ r \right]\).

In matrix notation, Eq  28 can be written as:

$$\left[ S \right] = - \sqrt {\frac{t}{\pi }} \left[ r \right]\left[ {\Delta C} \right]$$
(29)

When two compact diffusion couples (i.e., diffusion couples with a nearly constant diffusivity) are prepared that have diffusion paths that cross at \(x = 0\), Eq 28 provides four equations to calculate the four elements of \(\left[ r \right]\). This is the SQRD method. Another two equations can be derived from the ternary generalization of the Boltzmann–Matano analysis as [20]:

$$\mathop \int \limits_{{\left( {C_{I} } \right)_{\infty } }}^{{C_{I} \left( { x^{'} } \right)}} xdC_{I} = \left. { - 2t\mathop \sum \limits_{j = 1}^{2} \widetilde{D}\frac{{\partial C_{j} }}{\partial x}} \right|_{{x^{\prime}}}$$
(30)

Evaluating Eq 30 at \(x^{\prime } = 0\), the equation is reduced to:

$$S_{I} = - 2t\mathop \sum \limits_{j = 1}^{2} \widetilde{D}\nabla C_{j}^{0}$$
(31)

or

$$\left[ S \right] = - 2t\left[ {\widetilde{D}} \right]\left[ {\nabla C^{0} } \right]$$
(32)

where \(\nabla C^{0}\) is treated as the composition gradient of component \(j\) at \(x = 0\). Combining Eq 26, 29 and 30 to extract \(\left[ S \right]\) and \(\left[ {\widetilde{D}} \right]\) gives:

$$\frac{{\left[ {\Delta C} \right]}}{{2\sqrt {\pi t} }} = \left[ r \right]\left[ {\nabla C^{0} } \right]$$
(33)

Equation 33 give another two linear equations at \(x = 0\). When Eq 33 is applied to two diffusion couples that have a crossing diffusion path at x = 0, there are now four linear equations to find the four components of the matrix \(\left[ r \right]\). This is an alternate form of the SQRD method. The preferred method depends on whether \(S_{I}\) or \(\nabla C_{I}^{0}\) has the lowest experimental error.

The MSQRD method combines Eq 28 from the SQRD method with a similar equation from the alternate method that involves \(\Delta C_{I}^{0}\) and \(\nabla C_{I}^{0}\). That provides four equations to calculate the four elements of \(\left[ r \right]\) from one diffusion couple. Therefore, the MSQRD method requires the composition vector, concentration gradients, and atoms that have crossed the Matano plane, whereas the Fitting Methods require both the composition vector and the end compositions.

3 Analysis of Diffusion Paths in the Ternary Diagram

Analysing the diffusion path is one of the standard steps in the computation of the interdiffusion in a three (or more) component alloy system. The information on the end compositions of the couples together with the composition vectors is given in Table 1.

Table 1 The end compositions (in molar fractions) and corresponding composition vectors for three chosen diffusion couples

In our investigation, we have chosen four different interdiffusion matrices with the same diagonal terms and different off-diagonal ones. The four interdiffusion matrices (scaled to the highest component \(\widetilde{D}_{11}\)) are given in Table 2 together with their eigenvalues \(\left\{ {\lambda_{1} , \lambda_{2} } \right\}\) and eigenvectors \(\left[ {v_{1} } \right]\) and \([v_{2} ]\).

Table 2 Interdiffusion matrices, their eigenvalues and corresponding eigenvectors for four considered cases

In Fig. 1a and d, we present the minor and major eigenvector directions together with three composition vector directions for the Cases-i–iv. It is clear that for Case-i the composition vector of the BC-1 is near the directions of the minor eigenvector; and for Case-ii and Case-iv the composition vector of the BC-2 is near the directions of the minor eigenvectors.

Fig. 1
figure 1

Major (short-dashed red lines) and minor (long-dashed blue lines) eigenvectors shown together with two composition vectors (solid black lines) for the diffusion couples BC-1 and BC-2 for (a) Case-i; (b) Case-ii; (c) Case-iii; (d) Case-iv

Diffusion paths for the couples are presented in the ternary diagram in Fig. 2, from which it is clear that, in general, as it should be, the diffusion paths are not straight. The shape is determined by the interdiffusion matrix and the composition vector.[31] In agreement with the conclusions in [31] it can be seen that, for the BC-1 couple, the shape of the diffusion paths are nearly straight lines for the diffusion matrices in Case-i and Case-iii (directions of the composition vectors are reasonably close to the minor eigenvalue directions). In addition, it is interesting to see that the diffusion path in the BC-2 couple does follow somewhat nearly (but not exactly!) a straight line for all four matrices, despite the fact that the BC-2 composition vector is closed to the minor eigenvector only for Case-ii and Case-iv. This is, of course, not in contradiction with the prediction in [31] because each composition vector must have the maximum deviation from the straight diffusion path (for a given interdiffusion matrix). For BC-2, this maximum deviation is clearly very small.

Fig. 2
figure 2

Comparison of diffusion paths for BC-1 and BC-2. Cases-i and -iii are represented by and solid red dashed green lines whereas the dashed blue and solid green lines represent Cases-ii and -iv, respectively (Color figure online)

4 Investigating the Interdiffusion Matrix

The present analysis was carried out for the purposes of comparing two methods for solving an inverse interdiffusion problem. Another purpose was to determine whether or not the use of one compact diffusion couple can give reliable results for [D] if its eigenvectors are not known before doing the experiments. As was described above, for the testing calculations, we have chosen four different interdiffusion matrices and two diffusion couples with different boundary conditions. For analysis of the Fitting Method and the MSQRD method (as discussed above), the composition profiles were computed using a closed form solution and then they were discretised at a convenient step in space that corresponds to a standard experimental resolution of 2-3 µm. The Fitting Method is then used for the recovery of the matrix of interdiffusion coefficients. For the application of the Fitting Method, there are two main procedures available: first, using specialized software, e.g. Origin-17, a simultaneous fitting of two related functions into two sets of data can be obtained; second, the manual iterative manipulation of the fitting functions can be performed using conventional software (e.g. Cftool from MATLAB). The results of these two approaches of the Fitting Method will be called Origin and Cftool, respectively. The obtained fitted parameters permit the immediate determination of the ternary interdiffusion matrix .

Application of the MSQRD method involves the calculations of the Matano plane, the gradient of compositions at this plane, \(\nabla C_{i}^{0}\), and the integrated atomic fluxes, \(S_{i}\), passing through the Matano plane. Usually, the location of the Matano plane is calculated on the basis of the mass equilibrium for individual atomic components using the trapezoidal method and is determined from the conservation condition:

$$\mathop \smallint \limits_{ - \infty }^{{x_{M} }} \left( {1 - C\left( x \right)} \right){\text{d}}x = \mathop \smallint \limits_{{x_{M} }}^{ + \infty } C\left( x \right){\text{d}}x,$$
(34)

where \(x_{M}\) is the position of the Matano plane. For the closed form solution given by Eq 19 and 20, the Matano plane must be located at the average composition point, \(x_{A}\) where \(C_{1} \left( {x_{A} } \right) = \overline{{C_{1} }}\), \(C_{2} \left( {x_{A} } \right) = \overline{{C_{2} }} , C_{3} \left( {x_{A} } \right) = \overline{{C_{3} }}\). The (possible) deviation of \(x_{M}\) from \(x_{A}\) can then be treated as the indication of the accuracy of the constant interdiffusion matrix approximation. In the present study, for the simulated composition profiles, this deviation is of the order of the computational error (14 decimal places as a default in Matlab) and can be neglected. The composition gradients at the Matano plane are calculated by using the fourth order finite difference approximation.

The calculated inverse interdiffusion coefficients are shown in Table 3 for the diffusion couple BC-1 for the application of Cftool and Origin and the MSQRD methods. In this couple, in all four Cases, it is clear that the MSQRD method gives the best agreement with the input interdiffusion matrix for the diagonal and off-diagonal terms with a maximum of 6 and 10% relative errors, respectively.

Table 3 Interdiffusion coefficients calculated using several approaches from the original profiles obtained from closed form solution with the couple BC-1

Results for the two Fitting Methods (both implementations) is much worse than for the MSQRD method, especially when the off-diagonal terms are considered, with a relative error of up to 80%. (In Case-iv, the Fitting Methods result in the wrong sign for the one off-diagonal term.) In these cases, the Origin implementation of the Fitting Methods gives the highest maximum of the relative errors for the diagonal terms (up to 19%). The Cftool implementation of the Fitting Methods gives somewhat better results than the Origin implementation.

In Fig. 3, comparisons of composition profiles for the diffusion couple BC-1 for the four cases are presented. The matrices obtained using the Fitting Methods and the MSQRD method have been used for generating the back-test composition profiles that were plotted along with the initial set of profiles. It can be seen that the composition profiles obtained using all different interdiffusion matrices are almost the same as the initial composition profiles. In this case, the big differences are present only for the off-diagonal coefficients of the interdiffusion matrices (up to a factor of 2 when the sign is correct). It is indirect evidence that accurate estimation of the off-diagonal (and the diagonal!) interdiffusion coefficients using a single diffusion couple experiment is very difficult and would require a very high accuracy in the measurement of the composition profiles.

Fig. 3
figure 3

Comparison of composition profiles for the couple BC-1 using a different set of interdiffusion matrices obtained from the Cftool, Origin and MSQRD methods with original profiles: (a) Case-i, (b) Case-ii, (c) Case-iii, (d) Case-iv. The composition profile for \(C_{3}\) is shown for completeness

Next, the analysis of the diffusion couples using the Fitting Methods and the MSQRD method is investigated using another standard ternary couple BC-2. Results of this analysis are presented in Table 4.

Table 4 Interdiffusion coefficients calculated using several approaches from the original profiles obtained from the closed form solution with the couple BC-2

Analysis of this couple shows that for all the Cases, the results of the MSQRD method are the most accurate for the diagonal (up to 7.5%) and off-diagonal (up to 19%) terms. Both implementations of the Fitting Methods give the least accurate results for all cases, especially for the off-diagonal terms. This effect can be attributed to the fact that the diffusion paths for this couple are all almost straight (see Fig. 2). As a result, the composition profiles follow an effective single error function and fitting them into a two error functions form becomes very difficult.

Both the Origin and Cftool implementation of the Fitting Methods fail to reproduce the sign of some of the off-diagonal terms (for all the Cases). The MSQRD method always gives the correct sign of the off-diagonal terms. The conclusion can be drawn that the MSQRD method is the preferred method for the analysis of a single diffusion couple. In addition, to ensure reliability of this method, the accuracy of the experimentally obtained profiles should be as high as possible.

In Fig. 4, the comparison of the composition profiles for the couple BC-2 for all the Cases are presented. The back-test profiles obtained using the MSQRD method (as well as the Fitting Methods!) gives very good agreement with the initial profiles. This again is indirect evidence that the use of a single diffusion couple for the analysis of the full interdiffusion matrix is difficult. Another important conclusion is that the back-tests of the composition profiles must not be used as the only proof of the reliability of the methods used.

Fig. 4
figure 4

Comparison of composition profiles for the couple BC-2 using a different set of interdiffusion matrices obtained from the Cftool, Origin and MSQRD methods with original profiles: (a) Case-i, (b) Case-ii, ©) Case-iii, (d) Case-iv

From Fig. 3 and 4, it is clear that, despite some large differences in the matrices (especially in the off-diagonal terms), the back-tests of the composition profiles are all surprisingly close to the original ones. The maximum deviations are for the \(C_{1}\) profiles, and only up to 0.009 atomic fractions. In, Ref 10 a different Fitting Method was found to give a consistently good accuracy for a similar single diffusion couple applications. There, the accuracy of the fitting procedure was set to an exceptionally high level, up to 10−14 order. Together with our results, this provides strong evidence that, to be able to use a single diffusion couple for a reliable interdiffusion analysis, the experimental data must be obtained with a very high level of accuracy (which is, of course, impossible in a real experiment). The use of two diffusion couples should be treated as the best option for the application of the SQRD method[23,24] to the experimental data.

Nonetheless, it is highly recommended that the MSQRD method (with increased accuracy in numerical differentiation and integration) is used for the interdiffusion analysis using one compact couple.

5 Conclusions

The Fitting (into a closed form error-function solution) Method and the MSQRD method were used for the analysis of the inverse interdiffusion problem in a ternary alloy (using one diffusion couple) with a constant interdiffusion matrix. The interdiffusion coefficients have been determined from the initially generated composition profiles obtained from the closed form solution.

In all the diffusion couples, the MSQRD method gives, on average, the best agreement with the initial matrices and profiles. The MSQRD method gives an error up to only 2% for the diagonal terms for most cases. With respect to the off-diagonal terms, it was shown that, for the cases considered, the MSQRD method always accurately reproduced the sign of the terms. This is not the case for the two Fitting Methods. The accuracy of the MSQRD method could, in principle, be increased by making use of the higher-order accuracy finite difference approximations to the composition gradients.

In addition, strong evidence has been presented that the back-tests of the composition profiles must not be used as the only proof of the reliability of the methods used.