1. Introduction
The mechanical structure optimization is a class of challenging and time-consuming tasks [
1]. To determine the value of the fitness function and/or its gradient, it is necessary to identify the global solution and to do multiple computations of challenging direct problems. Proposing optimization strategies based on immune system applications is one of the most crucial stages in creating bioinspired algorithms. Numerous methods, such as the boundary element method (BEM), the finite element method (FEM), and the finite difference method (FDM), can be used to handle boundary-initial value problems. In this paper, the finite difference method was used.
The goal of the optimization algorithm was to identify the values of laser parameters in order to obtain the expected depth and width of the gap in the material in the specific time that was evaporated as a result of the interaction of ultra-fast laser pulse.
The direct problem was calculated using the finite difference method with the staggered grid. The artificial immune system (AIS) was employed as an optimization algorithm in this paper.
The main motivation of the authors was to develop a mathematical model enabling the modeling of the ablation process and to create software that would allow for the control of specific ablation parameters of a given part of the material. Ablation is a very important technique used in many fields of science and industry, such as medicine, mechanical engineering, materials engineering, and space engineering. The example used in this article fits into material and mechanical engineering. Examples of applications in medicine include the following: the treatment of heart arrhythmias and the removal of tumors in various organs. In space engineering, ablation can be used in the optimal design of thermal shields. Therefore, creating a mathematical model of the ablation phenomenon and then algorithmizing it is a very important and new part of science. It is planned to further develop this topic by expanding the range of possible materials for which the ablation phenomenon will be applied (medical or space engineering examples). The second motivation during the work on this article was the possibility of using computational intelligence for automated control of parameters that determine the desired ablation. As part of the work on several optimization algorithms, AIS was selected, which, with appropriately selected parameters, guarantees that we find optimal solutions. Combining this type of bioinspired algorithm with an ablation calculation tool seems to be an innovative technique not used so far, which is confirmed by the literature review.
Natural phenomenon observations were used to design the AIS. A process found in biological immune systems serves as the foundation for the development of artificial immune systems [
2]. In addition to positive and negative selection methods, they can use the clonal selection mechanism. The clonal selection mechanism is employed in this research.
The AIS algorithm was chosen due to some of its properties that were essential for the optimization process. The primary benefit of using the AIS is that it does not require any knowledge of the fitness function’s gradient. This algorithm’s other benefits compared with other heuristics methods include multidirectional search, the ability to work on potential acceptable solutions, high resistance to becoming stuck in local extremes, the ability to find multiple extrema at once (including local ones that are close to the global solution), and the fact that information about the objective function is sufficient for the optimization process. The disadvantage of this algorithm is the speed of the optimization process (which may be longer than other algorithms like PSO or a EA).
The paper [
1] presents a comparison of the artificial immune system (AIS), particle swarm algorithm (PSO), and evolutionary algorithm (EA) employed in this work. Optimization of topology, shape, and material properties is presented [
1].
Knowing its advantages and disadvantages, a comparison of its efficiency and effectiveness for several selected tasks (mechanical systems) is presented using the AIS algorithm. In order to optimize a reinforced rectangular plate, AIS and PSO were compared in paper [
3]. Optimization is taken into consideration for the dynamically loaded plate that is reinforced by a frame-like structure made up of straight beams. The stiffness of the plate was maximized by searching for the best stiffener locations. Both algorithms discovered the same solution and were successful.
In publication [
4], optimization of thermomechanical structures was made using bioinspired methods (AIS, PSO, and EA). The optimization problem was formulated as the minimization of the maximal value of the equivalent stress and the minimization of the volume and the maximal value of the temperature. The second option was the maximization of the total dissipated heat flux with respect to specific dimensions of a thermomechanical structure. The final solutions obtained after optimization were identical, but in terms of efficiency, this time AIS was faster.
In the paper [
5] an application of AIS, PSO, and EA to the optimization of the stacking sequence of plies in composites is presented. All algorithms found the same solutions after setting their optimization parameters appropriately.
It was determined to adopt AIS in this article after weighing the benefits and drawbacks of each approach and considering several optimizations carried out with AIS, PSO, and EA. The development of such algorithms and their use in identification and optimization problems have been extensively studied in recent years. Many research institutions around the world are now developing and implementing artificial immune systems [
6]. For instance, they tackled the classification and optimization problem using bioinspired methodologies. Query expansion problem [
7], learning neural network [
2,
8,
9], and multi-objective optimization [
10,
11] are only a few of the many works that the authors have written. AIS is now widely utilized to tackle a wide range of problems, including highly specialized ones such as determining and controlling a fuel–ethanol fermentation process, identifying and diagnosing heart illness using ECG analysis [
12], and selecting the finest wiener equalizers [
13]. Among other fascinating applications, the AIS can also be used to build evolutionary trees [
8]. The Bayesian Artificial Immune System (BAIS), which is employed in works [
14,
15], is a variant of the “classic” artificial immune system [
16]. Transportation systems also take advantage of the AIS [
17,
18]. A hybrid version of this strategy is used in publication [
19] to attain faster convergence to the global optimum.
According to the literature review, the suggested technique of determining the laser parameter values to determine the anticipated depth and width of the material gap is a novel approach that complements numerous works about material property design. Combining FDM with bioinspired optimization algorithms like AIS is a novel method that yields quick and high-quality results.
The literature study concludes that while bioinspired approaches are applied during optimization for a range of engineering challenges, they are not utilized for the materials covered in this paper. All of the programs used to determine the values of laser parameters, including the optimization technique and the software for FDM structure analysis, were developed by the authors of this research. Making software based on AIS widely available and simple to use with any application to address issues based on altering design parameters was one of the primary goals of the development process.
In order to address the problem used to establish the objective function, a procedure for the exchange of data (PED) between an optimization algorithm (AIS) and any software is created. Article [
20] describes what the appropriate files should look like in order to use AIS to optimize a given problem. This process enables the optimization tool to be quickly and readily integrated with any engineering calculation package.
This work presents the identification of laser parameters in a thin gold layer during the ablation process. The axisymmetric hyperbolic two-temperature model is applied. This two-temperature model is described by two differential equations coupled with the electron–phonon coupling factor
G. One of the equations concerns electron temperatures, and the other concerns lattice temperatures [
21,
22]. The hyperbolic two-temperature model was validated with an experiment conducted on a thin metal layer made of gold. Appropriate initial and boundary conditions have been imposed for this model. The finite difference method with a staggered grid was used to solve this direct problem [
23]. Heat fluxes were calculated for odd nodes, while temperatures were calculated for even nodes. However, the problem described in this article has not yet been solved using AIS.
The structure of this document is as follows. The two-temperature model for the axisymmetric domain is explained in
Section 2. This model gives precise results for heat transfer on the microscale. Particularly for the ablation process, the thermophysical parameters presented in
Section 3 are temperature dependent and extremely nonlinear. The method of solving the direct problem is described in
Section 4. In
Section 5, the principle of AIS operation has been described and explained. Next, the optimization problem and numerical example are presented in
Section 6. Finally, concluding remarks are given in
Section 7.
2. Microscale Heat Transfer
The axisymmetric domain exposed to the ultra-short laser pulse is taken into account (
Figure 1).
A two-temperature model that describes the isothermal solid–liquid and liquid–vapor phase changes as well as the temporal and spatial evolution of the lattice and electron temperatures in the irradiation microdomain has the form [
21,
24,
25]
where
Te (
r,
z,
t),
Tl (
r,
z,
t) are the temperatures of the electrons and lattice, and
qe =
qe (
r,
z,
t),
ql =
ql (
r,
z,
t) are the heat fluxes of the electrons and lattice.
Q(
r,
z,
t) is the source function associated with the irradiation of the laser pulse, where the mentioned quantities are dependent on radial coordinate
r, axial coordinate
z, and time
t.
Ce(
Te),
Cl are the volumetric specific heats,
G(
Te,
Tl) is the electron–phonon coupling factor, λ
e = λ
e(
Te,
Tl), λ
l are the thermal conductivities of the electrons and lattice, respectively, τ
e is the relaxation time of free electrons in metals it means the time needed to change energy state, τ
l is the relaxation time in phonon collisions, ∇(∙) denotes the gradient,
Qm is the volumetric latent heat of fusion,
Tm is the melting temperature,
tmb and
tme are the times corresponding to the beginning and the end of the solid–liquid phase transformation,
Qev is the volumetric latent heat of evaporation,
Tev is the evaporation temperature, and
tevb and
teve are the times corresponding to the beginning and the end of the liquid–vapor phase transformation.
Expanding the left-hand sides of Equations (2) and (6) into the Taylor series with an accuracy of two terms, one obtains
and
The source function is related to the ultra-fast laser pulse, which has the form [
26,
27]
where
R is the reflectivity of the irradiated surface,
rD is the laser beam radius, δ is the optical penetration depth,
I0 is the laser intensity, and
tp is the characteristic time of the ultra-short laser pulse.
When the lattice temperature Tl reaches the value Tev at the point under consideration and condition (5) is met, the sub-domain associated with this point is eliminated, and the relevant boundary conditions are moved to the new external boundary. This is how the ablation effect is modeled.
The boundary conditions (no-flux conditions) are added to the mathematical model that was previously presented, which indicates
where
n is the outward unit normal vector.
The initial condition means that the initial temperature distribution is also known.
where
T0 is a constant value.
4. Method of Solving the Direct Problem
The direct problem formulated is solved using the implicit scheme of the finite difference method [
30,
31,
32]. In the cylindrical coordinate system, the Equations (1)–(3), and (6) take the form
In this work, the finite difference method with the so-called staggered grid was used. The explicit scheme of the finite difference method requires that the stability condition be fulfilled, and for this purpose the mesh size has been appropriately selected. The nodes with any odd coordinates refer to heat fluxes, and nodes with even coordinates refer to temperatures, as shown in
Figure 5.
The finite difference approximation of Equation (4) is used to represent the solid–liquid phase transition, as follows:
For the node (
ri, zj), the value
is calculated, and it is assumed that
Tli,jf =
Tm. For the transition
tf →
tf+1 the value
Mi,jf+1 is calculated. If
Mi,jf +
Mi,jf+1 < 1 then
Tli,jf+1 =
Tm and the temperature field for transition
tf+1 →
tf+2 is determined. The calculations are continued until
The phase change liquid–vapor is modeled in a similar way. Thus, if the lattice temperature
Tli,jf is higher or equal to
Tev (
Tli,jf ≥
Tev), then in the sub-domain domain
r [
ri,j−1,
ri,j+1],
z [
zi−1,j,
zi+1,j], the evaporation process starts. For this node, the value
is calculated, and it is assumed that
Tli,jf =
Tev. For the transition
t f →
t f+1 the value
Ni,jf+1 is determined. If
Ni,jf +
Ni,jf+1 < 1 then
Tli,jf+1 =
Tev and the temperature field for transition
tf+1 →
t f+2 is found. The calculations are continued until
Finally, the sub-domain under consideration is eliminated when the left-hand side of inequality (23) achieves the value 1, and the relevant boundary conditions are transferred to the new external boundary.
5. Optimization Method—Artificial Immune System (AIS)
An optimization approach like the Artificial Immune System (AIS) is used in this paper. AIS can be constructed using a variety of methods, including the mechanisms of positive and negative selection or the clonal selection mechanism [
33]. This publication [
34] explains the developed algorithm based on the clonal selection process. This method is shown in
Figure 6. The memory cells are created at random in the initial stage. This process was carried out multiple times with different random values. This was a guarantee of the algorithm’s effectiveness. New memory cells are produced as a result of mutations and proliferation. The value of a memory cell’s goal function determines how many clones are produced from it. The objective function value of each memory cell is then ascertained.
Some of the new memory cells replace the memory cells from the previous iteration during the selection phase. The distance between memory cells and their clones, which is determined by applying the values of choice variables, is the basis for selection. The next step involves using the crowding mechanism. This process eliminates memory cells that are similar to each other. The process is carried out iteratively until the stop condition is met.
The stop condition can be represented by the maximum number of iterations, the expected value of the objective function, or the expected progress in the objective function over many iterations. This method alters the mutation operator and is based on the Wierzchoń method [
35]. This approach substitutes the Gaussian mutation for the nonuniform mutation [
35]. This type of mutation allows for the modification of previously obtained results in a particular manner. More information about this type of mutation can be found in [
20]. Gaussian mutation aims to look for a certain memory cell’s surroundings. Several tests showed that this specific algorithmic mutation yields superior results to other types.
The objective function for the optimization problem is established. The task of the immune optimization is to minimize (or maximize) the objective function
J:
regarding the decision variables, which are encapsulated in a vector:
where:
—
i-th parameter of
j-th vector, corresponding to the decision variable of the optimization problem,
—number of iterations.
Structure optimization occurs in a setting where constraints, including those on equivalent stresses, structural displacements, or structure volume, can be imposed. The decision variables, or vector (2) parameters, are then subject to restrictions:
where:
—i-th minimal value of the parameter for the j-th memory cell,
—i-th maximal value of the parameter for the j-th memory cell.
The initial stage of the immune process creates a group of memory cells. Memory cells, which are used to store decision factors, grow during the optimization process. The process of proliferation requires the creation of clones based on memory cells. The unique group for which the objective functions are computed is created by each memory cell and its clones. The creation of memory cells, the initial phase in the main loop of the immunological algorithm, is implemented in the next stage. Each memory cell has a set number of clones created for it. To find the ideal memory cell, this function creates the specified number of clones. For each additional memory cell, only half of the specified number of clones are created.
In this approach, the hypermutation mechanism is employed. The main duty of this operator is to ensure that fresh differentiated memory cells are formed. This approach modifies a single, randomly selected decision vector segment using a probabilistic method. Each decision vector position is altered with a specific probability using the following change
:
where:
—new value of decision vector parameter after using Gaussian mutation,
—
i-th parameter of
j-th decision vector corresponding to
i-th decision variable of optimization problem,
—mutation with a random value of Gaussian distribution.
In the next step of the AIS, the value of the objective function for every memory cell is determined. Selection aims to replace inefficient memory cells with more productive clones. During the selection process, some memory cells are replaced with better memory cells. The selection process uses decision factors to evaluate the geometrical distance between each memory cell and clones (
Figure 7).
A description of the selection procedure based on the two memory cells “MC-A” and “MC-B” follows. Four clones are made for each of the memory cells “MC-A” and “MC-B,” ranging from C-A1 to C-A4 and C-B1 to C-B4, respectively. The clones of each memory cell are compared in terms of their objective function. In this comparison to the next iteration (better value of an objective function), clone C-A4 and memory cell MC-B are selected. This procedure must be repeated for each memory cell.
The final step of the immunological algorithm’s main loop makes use of the crowding mechanism. This mechanism is essential to the optimization process because it maintains the diversity of memory cells in the population. The crowding mechanism eliminates similar memory cells. Using the parameter min
dis, the geometrical distance between two memory cells (
Figure 8) is also used to calculate the similarity. During the crowding mechanism operation for memory cell “1,” only memory cell “2” is in the similarity area. This means that while the worst memory cell (“1”) is destroyed, the better memory cell (“2”) is kept in the population. Finally, a new memory cell is randomly generated. The other memory cells are not included in its similarity area. The population of memory cells still includes these memory cells.
The minimum distance between two points in the space of solutions
is as follows:
where:
—
i-th minimal value of the memory cell parameter (decision variable),
—
i-th maximal value of the memory cell parameter,
n—the number of memory cell parameters (decision variables),
—parameter deciding about the size of the search space of similarities of the memory cells.
The optimization process is repeated until the stop condition is fulfilled. The stop condition is described by the maximum number of iterations. The searched cell (the best memory cell) represents the unidentified global optimum.
The main advantage of the AIS is that it does not require any knowledge of the gradient of the fitness function and offers a high probability of finding the global optimum. More advantages of the algorithm include multidirectional search, working on possible acceptable solutions, high resistance to getting stuck in local extremes, finding multiple extrema simultaneously (including local ones near the global solution), and the fact that the optimization process only requires information about the objective function [
35]. The disadvantage of this approach is the speed of the optimization process, which may take longer than other algorithms [
36].
6. Results of Computations
This work aims to identify the values of laser parameters to obtain the expected depth and width of the ablated gap in the material in a specific time that was evaporated as a result of the interaction of an ultra-fast laser pulse. To evaluate the values of thermophysical parameters, an artificial immune system was used. These parameters occur in laser heating equations, which means I0 is the laser intensity and tp is the characteristic time of an ultra-short laser pulse. These two parameters allow us to control the heating process to achieve the expected depth of the gap at the specific moment.
For this purpose, a problem of optimization was formulated and solved using an artificial immune system. The value of the objective function determines the quality of the obtained solution. The objective function is based on the least squares method or the norm between the values of the numerical model and the expected value. The objective function has the following form:
where:
x—is the design variables vector,
n—is the number of measurements in sensor points,
diref—is the
i-th expected value,
di(
x)—is the
i-th value obtained from the numerical model.
For the direct problem, the cylindrical domain (
R = 100 · 10
−9 m,
Z = 100 · 10
−9 m) of the initial temperature
Tp = 300 K (made of gold) is considered. Thermophysical parameters for gold are given in
Table 1. The laser beam radius is equal to
rD =
R/8, and for gold, the reflection coefficient was R = 0.93 and the optical penetration depth δ = 15.3 nm [
37]. To solve the direct problem, the finite difference method was used. Calculations are made for 50 × 50 = 2500 (
h = 2 nm) ‘temperature nodes’, time step is equal to 0.002 ps.
There are two design variables identified: the laser intensity
I0 and the characteristic time of ultra-short laser pulse
tp. The limits on the values of design variables are given in
Table 2.
The purpose of the identification is to obtain two modeled parameters. The identification is carried out based on the expected width, depth of the gap in the thin metal film of gold at a specific time. The series of calculations were performed for different values of the gap width and depth obtained at different times. The aim of the research is high precision of the ablation process. As a result of the presented calculations, the ablation process can be controlled with very high accuracy by changing the laser intensity and the duration of the laser pulse. There are three types of presented calculations. The first ones are where the identification is carried out on the basis that the expected width equals 14 nm in time 20 ps. The choice of such values of the gap width and depth is justified by the level of complexity of the calculations.
The parameters of the artificial immune system used for this example are given in
Table 3. The 30 independent optimization processes were performed for the optimization parameters presented in
Table 3.
In the first example, three variants of design variables were obtained (
Table 4). The solutions for variants 1, 2, and 3 were obtained 12, 8, and 10 times, respectively. These three obtained solutions are presented in
Figure 9 and
Table 4.
Figure 9 shows half of the area in the
r and
z coordinate system. Since only the gap width was the optimization target, different variants were obtained for a larger or smaller gap depth. In summary, it is possible to obtain a constant gap width for the different depths of gap for different settings of laser intensity and ultra-short laser pulse. The main goal of the optimization was achieved, i.e., the specified gap width was obtained. The results of the numerical solution with the designed parameters are shown in
Figure 9. The black domain means the ablated material. It can be seen that the expected width of the gap was achieved. There are only different depths of the gaps.
The second ones are where the identification is carried out based on the expected depth equal to 14 nm in time 20 ps.
The parameters of the artificial immune system used for the second example are given in
Table 5. The 30 independent optimization processes were performed for the optimization parameters presented in
Table 5.
In the second example, three variants of design variables were also obtained (
Table 6). The solutions for variants 1, 2, and 3 were obtained 6, 11, and 13 times, respectively. These three obtained solutions are presented in
Figure 10 and
Table 6. Since only the gap depth was the optimization target, different variants were obtained for a larger or smaller gap width. In summary, it is possible to obtain a constant gap depth for the different widths of gaps for different settings of laser intensity and ultra-short laser pulse. The main goal of the optimization was achieved, i.e., the specified gap depth was obtained. The results of the numerical solution with the designed parameters are shown in
Figure 10. The black domain means the ablated material, as well. It can be seen that the expected depth of the gap was achieved. There are only different widths of the gaps.
The last examples are where the identification is carried out based on the expected depth and width equal to 14 nm in time 20 ps.
The parameters of the artificial immune system used for the last example are given in
Table 7. The 30 independent optimization processes were performed for the optimization parameters presented in
Table 7.
In the last example, the same variants of design variables were obtained for each optimized task (
Table 8). The obtained solutions are presented in
Figure 11 and
Table 8. In a situation where the optimization goal is both the depth and width of the gap, which must be of an exact size, and no parameter could be arbitrary, only one solution was obtained. The main goal of the optimization was achieved, i.e., the specified area of the gap was obtained. The results of the numerical solution with the designed parameters are shown in
Figure 11. The black domain means the ablated material, as well. It can be seen that the expected depth and width of the gap were achieved.
7. Conclusions
This paper presents a numerical model for identifying laser parameters in axisymmetric melting, evaporation, and ablation processes. These parameters, which were the laser intensity and the characteristic time of the laser pulse, were used in three tasks. The first task aimed to achieve the required width of the evaporated material in the required time. Using the artificial immune system optimization method, three variants of solutions were obtained. All sets of laser parameters provided the required gap width. However, differences in the gap depths can be seen in the results.
The second task was to achieve the required depth of the evaporated material in the required time. Using the AIS optimization method, three variants of solutions were obtained. All sets of laser parameters provided the required gap depth. Nonetheless, the results show variations in the gap width.
The last, third task aimed to achieve the required depth and width of the evaporated material in the required time and using the artificial immune system optimization method; one solution was obtained that provided the required gap dimensions.
Based on the obtained results, it can be concluded that the implementation of this approach utilizing AIS provides a high probability of finding the global optimal solutions. The AIS algorithm used in this paper has been successfully applied many times to optimize many physical tasks [
1]. To summarize, the proposed method involving the use of AIS and FDM allows us to design new materials with new properties.