**Apostila COMSOL**

Apostila de apoio para iniciantes no COMSOL multiphysics. formato .rar

(Parte **1** de 2)

22nd International Congress of Mechanical Engineering (COBEM 2013)

November 3-7, 2013, Ribeirão Preto, SP, Brazil Copyright © 2013 by ABCM

Rogério Fernandes Brito Universidade Federal de Itajubá – UNIFEI, Rua Irmã Ivone Drummond, 200, Distrito Industrial I, CEP 35903-081, Itabira, MG, Brasil, rogbrito@unifei.edu.br

Lucas Guedes de Oliveira Universidade Federal de Itajubá – UNIFEI, Rua Irmã Ivone Drummond, 200, Distrito Industrial I, CEP 35903-081, Itabira, MG,

Brasil, lucas.guedesoliveira@hotmail.com

Solidônio Rodrigues de Carvalho Universidade Federal de Uberlândia – UFU, Faculdade de Engenharia Mecânica – FEMEC, Av. João Naves de Ávila, 2160, Bairro Santa Mônica, CEP 38400-902, Uberlândia, MG, Brasil, srcarvalho@mecanica.ufu.br

Sandro Metrevelle Marcondes de Lima e Silva Universidade Federal de Itajubá - UNIFEI, Instituto de Engenharia Mecânica – IEM, Laboratório de Transferência de Calor – LabTC, Av. BPS, 1303, Bairro Pinheirinho, CEP 37500-903, Caixa Postal 50, Itajubá, MG, Brasil, metrevel@unifei.edu.br

Abstract. This paper presents the results of an Inverse Problems technique to solve heat transfer problem. The Function Specification is a technique which applies optimization algorithms. This work has been developed a numerical methodology that uses heat conduction inverse technique with Fortran program. Besides, this work aims to associate this methodology to commercial software COMSOL Multiphysics® v4.3b. The differential equations are solved by using Finite Elements Method on this software. These simulations are based on three-dimensional controlled experiment carried out in heat transfer laboratory of UNIFEI. Thermocouples were inserted on many surfaces in order to measure experimental temperature. On this numerical study, it is presented just results from two thermocouples. In next step, the heat flux was estimated by this technique. After obtained the estimated heat flux, simulation was performed with this estimated flux to calculate the temperatures on equivalent monitored experimental points. It was used an estimated heat flux of a machining process to assess the numerical methodology developed on this work. According to the Function Specification results, this technique presents good results for estimated heat flux and calculated temperatures through this heat flux.

Keywords: Inverse problem, heat conduction, Function Specification, COMSOL Multiphysics® v4.3b. 1. INTRODUCTION

The research related to basic studies of industrial processes always enables the development of manufacturing operations not only as a localized way but also on a global scale. Therefore, since the machining process is used in most of the productive segments, it is important to treat the parameters, which lead its scientific principles and technological innovations. Treating the analysis of the distribution of temperature field, as well as the study of heat flow in cutting tools during machining operations is a task that requires complexes methods to obtain reliable data on each process. This is because the machining processes involve high temperatures and it is difficult to measure this parameter in the wear region. Thus, the combination between formulations of direct and inverse problems associated to techniques for solution of the inverse problems allow conducting numerical procedures in order to establish a research to optimizing the use of cutting tools – that provide increasing in their performance and durability. Carvalho et. al. (2006) analyzed the high temperatures generated in chip-tool interface during machining processes. This researcher used inverse techniques to obtain these temperatures, since direct measurement of temperatures is difficult to implement due to the difficulty of positioning the thermocouples on chip-tool interface. So, he developed a three-dimensional transient thermal model to tool, shim and tool holder. Then, he applied the finite difference method to solve direct problem and used the golden section technique (an optimization method) to solve the inverse problem. Samadi et. al. (2011) used the Sequential Function Specification Method (SFSM) to conduct the study starting from the heat flux values deployed on the active surface of the cutting tool during machining processes. The temperatures were obtained using the Heat Equation to the locations of the sensors. The inverse problem was established to estimate the unknown heat flow. Finally, it was found that there is a more suitable position to measure the temperature using the sensors and the results of linear and non-linear problems used were compared. Liu (2011) studied the transient heat flow using three-dimensional cylindrical coordinates and established an inverse analysis to obtain the unknown variable. Then, author arranged Particle Swarm Optimization algorithm (PSO). First, the researcher applied the finite difference method with Crank-Nicolson scheme to solve direct problem, in an attempt to obtain temperature data as input for the inverse problem. Then, starting from a defined function "f (q)" and

Brito, R. F., Oliveira, L. G., Carvalho, S. R., Lima e Silva, S. M. M. The Use of Comsol Multiphysics® and Inverse Technique for the Estimation of Temperature Distribution finding its minimum point it was possible to obtain the solution of the inverse problem for the heat flow. Sousa, Guimarães and Borges (2012) studied the heat transfer at cut interface from a comparison between the results of function specification technique and Green's function. So, the researchers used a thermal model that considers a cemented carbide cutting tool and numerical simulations were performed by placing six thermocouples. Therefore, authors were able to observe the behavior of the temperature at each position of the geometry graphically over time of 110 (s) cutting operation, through the solution of the forward problem. Using these two inverse problems techniques, authors compared the heat flow in three situations. As a conclusion of the results, the researchers obtained satisfactory results when using the function specification technique due to a less residual error associated to this method which supplies a close approximation to machining real case. Thus, according to engineering fundaments, this work aims to advance the study of heat transfer and temperature field distribution in cutting tools during machining of materials. Besides, it aims to develop skills associated to inverse problem techniques for the estimation of heat flow in the area of 1.43 (mm2) tool wear, in order to solve inverse problems. Studying the characteristics of the cutting tool adopted it’s possible to prove that using of jackets inserts is a way to alleviate the stresses arising from the operations of milling, boring, turning, etc. Furthermore, as postulated these analyzes, it is envisaged to increase the life of cutting tools, as well as enhancing their performance, generating reducing production costs and increasing industry’s profit. Therefore, it aims to allow, through numerical studies, future increase in cutting speed and reducing the use of lubricants and refrigerants, optimizing the time in the industry and minimizing impacts on the environment. However, as a part of a scientific academic research, this work analyzes only the isolated cutting tool.

The problem presented in this work is shown by Figs. 1a and 1b. This figure presents a set consisting of a cutting tool, a hard metal, a wedge positioned under the cutting tool between the tool and the tool holder. There is also a staple and a bolt to fix the set. A perspective is shown in Figure 1a, whereas a blown up view of the set is shown in Fig. 1b.

The transient heat diffusion equation, which governs the physical problem of this work, is presented below:

where k is the solid thermal conductivity, W/m K; Cp is the solid specific heat capacity, J/kg K; is the solid density, kg/m3.

The boundary conditions have been given as:

Tk q1”(t) on the tool-workpiece contact interface (Fig. 1b) (2) where T/ is the derivative along the normal direction of the surface of the set, minus the contact area between the tool and the workpiece. q” (t) is the heat flux, W/ m2 and

TThTk | (3) |

is applied in the remaining regions of the set, where h is the heat transfer coefficient, W/ m2 K. The initial conditions have been given as:

2.2 Direct Problem Solution.

The transient heat diffusion equation is solved according to the boundary conditions defined above. The COMSOL

Multiphysics® v4.3b program, which solves thermal problems by using the finite elements method, is used for this purpose. The heat diffusion equation defines the physical problem of heat transfer in a three dimension modeling on this work, as previously mentioned.

22nd International Congress of Mechanical Engineering (COBEM 2013) November 3-7, 2013, Ribeirão Preto, SP, Brazil

2.3 The Inverse Problem.

Specification Function Technique is used in this work to estimate heat flux. First, the sensitivity coefficient are calculated numerically from Duhamel Theorem (Corrêa Ribeiro, 2012). Then the sensitivity coefficient is obtained with the use of a numerical probe which follows the temperature change. Thus, the heat flux is estimated with the use of a FORTRAN language program.

a) b)

Figure 1: a) Tool set, Shim and Tool holder, and b) Detail of the contact interface between the tool and the workpiece.

In the Specification Function Technique, a determined value of future time steps r is used to estimate the heat flux at present instant. In the resolution of the inverse problem, the Specification Function searches for a heat flux value that minimizes the objective function given in Eq. 5, for each time step.

This process is represented in Fig. 2.

p pnumptzyxTtzyxTF (5)

Figure 2: Methodology for the use of the Specification Function for the tridimensional thermal model, in transient regime with the COMSOL Multiphysics® v4.3b.

Brito, R. F., Oliveira, L. G., Carvalho, S. R., Lima e Silva, S. M. M. The Use of Comsol Multiphysics® and Inverse Technique for the Estimation of Temperature Distribution

3. VALIDATION 3.1. DIRECT PROBLEM

This work uses Carvalho et. al. (2006) experimental results in order to compare to numerical results obtained by the COMSOL Multiphysics® v4.3b software. Both studies were conducted by using the thermal properties of the ISO K10

12.7 (m)×12.7 (m)×4.7 (m) cemented carbide cutting tool: k=43.1 (W m−1 K−1), cp=332.94 (J kg−1 K−1), and ρ=14,900 (kg m−3). In the studied cases, to obtain the results in this present work, the number of nodes and hexahedrical elements utilized were approximately 988,300 and 958,800, respectively. The following parameters were used in the tests: time interval of 0.2 (s), equal initial and ambient temperature at 29.5 (°C), constant and equal heat transfer coefficient at 20 (W m−2 K−1), total time of 110 (s), and area subjected to heat flux of 108.16 (mm2). According to this study, it is clear that there was little difference as to the calculated temperature values. Moreover, the temperature residue among the meshes is practically negligible, with a deviation among them of less than 1% for all the simulated time range. In this numerical validation, we can conclude that a 16,038 nodal point mesh is already enough to obtain good accuracy and low cost computational time results. For a mesh developed with a greater number of elements, the temperature value barely varies with mesh refinement. The present work utilizes the experimental and numerical results from Carvalho et. al. (2006) in order to make a comparison with results obtained with the use of the software utilized for this present work. The thermocouples were attached to the cutting tool by capacitor discharge on the following positions: thermocouple T1: x = 4.3 (m); y = 3.5 (m); z = 4.7 (m) and thermocouple T2: x = 3.5 (m); y = 8.9 (m); z = 4.7 (m). The data from experiment, Fig. 3(a) e (b) (Carvalho et. al., 2006), are used as input data for the numerical validation of the commercial package used in this present work. The probe points of temperature were measured for the comparison between the experimentally measured temperatures and those simulated by the commercial package.

Figure 3a: Experimental heat flux

(Carvalho et. al., 2006).

Figure 3b: Experimental temperature (Carvalho et. al., 2006).

Fig. 4(a) and (b) shows the geometry and the mesh generated and used in the present work for the numerical validation.

The numerical mesh was developed with the help of COMSOL Multiphysics® v4.3b. It can be verified from (Fig. 4b). Following the study on the mesh independence, a three-dimensional mesh containing 15,548 hexahedral elements and 17,497 nodal points was used. In the numerical test preparation, two temperature monitoring points were inserted corresponding to the positions of thermocouples T1 and T2 attached to the tool during the experiment carried out by Carvalho et al. 2006. Fig. 5(a) and (b) shows a comparison between the temperatures obtained experimentally and numerically from thermocouples T1 and T2 by Carvalho et al. 2006 and the temperatures obtained numerically in this present work with COMSOL® Multiphysics, v. 4.3b. The largest and the smallest deviation found in relation to the experimental case carried out by Carvalho et al. 2006 was respectively 6.07% for thermocouple T2 and −0.53% also for thermocouple T2. The largest and the smallest deviation found in relation to the numerical case performed by Carvalho et al. 2006 was respectively −2.18% for thermocouple T2 and 0.25% also for thermocouple T2.

q" (t)

W m

Thermocouple T1 Thermocouple T2

22nd International Congress of Mechanical Engineering (COBEM 2013) November 3-7, 2013, Ribeirão Preto, SP, Brazil

(a) (b)

Figure 4: Geometry (a) e Numerical three-dimensional numerical mesh (b).

It was verified that, with the numerical simulations done in the present Test (Fig. 5a, 5b), the highest temperature gradients on the cutting tool occurred for the time instant of approximately 67 (s), reaching temperature values of approximately 79 (°C). From instant 63 (s), the heat flux starts a dropping process where temperature starts falling after approximately 4 (s). It may be observed that the dark grey region on the tool (Fig. 4b) is not in physical contact with any metal, except with the environment. This situation, at room temperature T∞=29.2 (°C) and with heat transfer coefficient h=20 (W m−2 K-1) (Samadi et al., 2011), considerably favored the heat transfer rate dissipation on the tool causing the temperature to fall from approximately 79 (°C) to 71.6 (°C) at final instant 110 (s). Following the validation with the numerical and experimental data from Carvalho et al. 2006, the thermal model and the numerical direct problem solution for the machining process proposed in the present work are concluded. In the next topic, the inverse problem validation is discussed.

(Parte **1** de 2)