Finite element-based structural temperature field and stress field calculation method, calculation framework and application

CN118917143APending Publication Date: 2024-11-08HEFEI ZHONGKE ZHONGMING TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410993047.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

[0004]针对现有技术的不足,本发明提供了一种基于有限元的结构温度场与应力场计算方法、计算框架及应用,解决了传统计算固体结构温度场与应力场不具备兼容性和扩展性的技术问题

Benefits of technology

[0053] 1. The present invention can customize the heat source terms and boundary conditions in the heat transfer control equation according to actual application scenarios, and can freely select one of the three types of boundary conditions or a combination of multiple boundary conditions, and has high flexibility. By customizing differential equations and boundary conditions, the calculation of the three-dimensional solid domain temperature field and stress field is realized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118917143A_ABST
    Figure CN118917143A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of fluid mechanics calculation, solves the technical problem that traditional calculation of a temperature field and a stress field of a solid structure does not have compatibility and expansibility, and particularly relates to a finite element-based structure temperature field and stress field calculation method, a calculation framework and application. The method comprises the following steps of: acquiring thermal boundary condition data consisting of a convection coefficient and a fluid temperature of fluid distributed along a wall surface of a solid structure; establishing a heat transfer control equation based on the thermal boundary condition data; solving the heat transfer control equation to obtain a structure temperature field of the solid structure; and defining a linear elastic equation, and solving a stress field of the solid structure according to the structure temperature field. According to the method, the heat source item and the boundary condition in the heat transfer control equation can be customized according to the actual application scene, one or combination of multiple boundary conditions in the three types of boundary conditions can be freely selected, and high flexibility is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of fluid mechanics computational technology, and in particular to a finite element-based structural temperature field and stress field calculation method, a computational framework and applications. Background Art

[0002] With the rapid development of computer technology and numerical simulation technology, computational fluid dynamics (CFD) has become an important tool for studying fluid mechanics. In the fields of aerospace, energy manufacturing, etc., it is often necessary to calculate the temperature field and stress field of solid structures to ensure that the temperature and stress of the structure are within the appropriate range, such as the combustion chamber of a rocket engine.

[0003] The commonly used software for calculating the temperature field and stress field of solid structures are mostly commercial software, such as ANSYS and STARCCM, whose codes are not public and the internal solution mechanism is not transparent. Therefore, it is impossible to customize the heat transfer equation and linear elastic equation according to the actual situation, and it is not compatible and extensible. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention provides a finite element-based structural temperature field and stress field calculation method, calculation framework and application, which solves the technical problem that traditional calculations of solid structure temperature field and stress field are not compatible and extensible.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: a method for calculating the temperature field and stress field of a structure based on finite element, the method comprising the following steps:

[0006] S1. Obtain the convection coefficient of the fluid distributed along the wall of the solid structure and the fluid temperature to form the thermal boundary condition data;

[0007] S2, establishing heat transfer control equations based on thermal boundary condition data;

[0008] S3, solving the heat transfer control equation to obtain the structural temperature field of the solid structure;

[0009] S4. Define the linear elastic equations and solve the stress field of the solid structure based on the structural temperature field.

[0010] Furthermore, in step S2, the specific process includes the following steps:

[0011] S21, establishing multi-category boundary conditions of the heat transfer control equation according to the thermal boundary condition data, wherein the multi-category boundary conditions include first-category boundary conditions, second-category boundary conditions, and third-category boundary conditions; wherein the first-category boundary conditions specify the temperature of the boundary;

[0012] S22. Define the Poisson equation as the heat transfer control equation, where the heat transfer control equation is:

[0013]

[0014]

[0015] In the above formula, x is a one-dimensional coordinate; u(x) is the temperature field function to be solved; f(x) is the heat source term; Ω is the spatial domain; is the boundary of Ω; u D (x) represents the temperature value on the boundary; is the Laplace operator, used to calculate the second-order derivative of space;

[0016] S23. Convert the Poisson equation into a variational problem that can be solved using the finite element method, namely:

[0017]

[0018] Further simplified to:

[0019]

[0020] v is the finite element test function, and the equation can be rewritten in bilinear form, namely:

[0021]

[0022] In the above formula, is the gradient of the temperature field function u; is the gradient of the finite element test function v; f is the heat source term; dx is the integral infinitesimal; a(u,v) and L(v) are the aliases of two linear equations respectively.

[0023] Furthermore, in step S21, the first type of boundary condition specifies the temperature of the boundary; the second type of boundary condition specifies the heat flux density of the boundary, that is, the temperature gradient; the third type of boundary condition, also called the mixed boundary condition, specifies the convective heat transfer of the boundary, that is, the temperature gradient on the boundary is linearly related to the first power of the temperature of the boundary itself.

[0024] Further, in step S21, the first type of boundary condition can be directly specified by calling the DirichletBC() interface function, and the specified method is bc=DirichletBC(V,u_D,boundary), where bc is the sequence number of the condition, V is the function space, u_D is the specified value, and boundary is the boundary sequence number;

[0025] The governing equation for the second type of boundary condition is:

[0026]

[0027] Where ds is the boundary of the imposed condition; g is the heat flux density, which can be a constant or an interpolation function; Γ N is the boundary symbol that meets the second type of boundary conditions;

[0028] The governing equation for the third condition is:

[0029]

[0030] Where ΓR is the boundary symbol that meets the third type of boundary conditions.

[0031] Furthermore, the combination of the second and third boundary conditions is:

[0032]

[0033] Where k is thermal conductivity; r i is the convective heat transfer coefficient of the ith solid structure; s i is the surrounding fluid temperature of the ith solid structure; g i is the heat flux density.

[0034] Furthermore, in step S4, the specific process includes the following steps:

[0035] S41. Define the governing equation of the strain field as a linear elastic equation, where the governing equation of the strain field is:

[0036]

[0037] Among them, σ is the stress tensor; f is the body force;

[0038] S42. Convert the linear elastic equation into a variational problem that can be solved using the finite element method, namely:

[0039]

[0040] in,

[0041] σ=λtr(ε)+2με-α(3λ+2μ)dT

[0042]

[0043] Where tr is the matrix trace operator; μ and λ are both Lamé parameters of elastic mechanics; dΤ = (T-T0), T0 is the reference temperature when the thermal strain is 0, T is the structural temperature field; ε is the symmetric strain rate tensor; α is the thermal expansion coefficient;

[0044] S43. Rewrite the linear elastic equation into a bilinear form and calculate the von-mises stress, and then obtain the stress field σ M , the linear elastic equation is rewritten into a bilinear form:

[0045]

[0046] Where σ(u) is the stress tensor.

[0047] Further, in step S43, the von-mises stress definition equation is:

[0048]

[0049] Where s is the deviation stress tensor, which is defined as:

[0050]

[0051] Where tr is the matrix trace operator; σ is the stress tensor; and I is the identity matrix.

[0052] By means of the above technical solution, the present invention provides a method, a calculation framework and an application of structural temperature field and stress field calculation based on finite element, which has at least the following beneficial effects:

[0053] 1. The present invention can customize the heat source terms and boundary conditions in the heat transfer control equation according to the actual application scenario, and can freely select one or a combination of multiple boundary conditions in the three types of boundary conditions, which has high flexibility. By customizing differential equations and boundary conditions, the calculation of temperature field and stress field in three-dimensional solid domain can be realized.

[0054] 2. The present invention uses Python to write a finite element calculation program based on the calculation framework. The heat transfer control equation and linear elastic equation can be customized according to actual conditions, various thermal boundary conditions can be supported, and it can also be integrated with open source calculation tools to calculate the coupling problems between flow and solid.

[0055] 3. The present invention can be integrated with various open source programs to calculate structural problems in various industries, and has compatibility and scalability that commercial CFD software does not have. It can also be flexibly coupled with fluid calculation programs written in various languages ​​at the code level, improving the efficiency of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0057] Figure 1 It is a flow chart of the method for calculating the temperature field and stress field of the structure of the present invention;

[0058] Figure 2 It is a schematic diagram of the combination of the second and third boundary conditions of the present invention;

[0059] Figure 3 A schematic diagram of a combustion chamber structure marked in the present invention. DETAILED DESCRIPTION

[0060] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific implementation methods, so that the implementation process of how the present application uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.

[0061] Please refer to Figure 1-Figure 2 This embodiment proposes a method for calculating the temperature field and stress field of a structure based on finite elements. The finite element calculation program is written in python. The heat transfer equation and linear elastic equation can be customized according to actual conditions. It supports various thermal boundary conditions, has a clear internal mechanism, and has high calculation efficiency. It is suitable for both scientific research and industrial manufacturing. This software can also be integrated with open source computing tools to calculate fluid-solid coupling problems, and has compatibility and scalability that commercial CFD software does not have. The method includes the following steps:

[0062] S1. Based on the convection effect of the fluid on the wall temperature of the solid structure, the convection coefficient of the fluid distributed along the wall of the solid structure and the fluid temperature constituting the thermal boundary condition data are obtained; the fluid temperature can be measured by a sensor, and the convection coefficient can be obtained by calculation when the action mode is convection, which will not be described in detail here.

[0063] S2, establishing a heat transfer control equation based on thermal boundary condition data; in step S2, the specific process includes the following steps:

[0064] S21. Establish multi-category boundary conditions of the heat transfer control equation based on the thermal boundary condition data, wherein the multi-category boundary conditions include the first-category boundary conditions, the second-category boundary conditions and the third-category boundary conditions. Specifically, the boundary conditions provide the value of the temperature field function u(x) to be solved on the boundary, which can limit the solution of the differential equation and is necessary for solving the differential equation. There are generally three types of boundary conditions in heat transfer: the first-category boundary conditions specify the temperature of the boundary, the second-category boundary conditions specify the heat flux density of the boundary, that is, the temperature gradient, and the third-category boundary conditions are also called mixed boundary conditions, which specify the convective heat transfer of the boundary, that is, the temperature gradient on the boundary is linearly related to the first power of the temperature of the boundary itself. The first-category boundary condition can be directly specified by calling the DirichletBC() interface function, and the specification method is bc=DirichletBC(V,u_D,boundary), where bc is the sequence number of the condition, V is the function space, u_D is the specified value, and boundary is the boundary sequence number. The second and third boundary conditions, also called Neumann and Robin conditions, involve a combination of solution variables and derivatives of solution variables. They are nonlinear terms and need to be added to the equation in the form of source terms. They cannot be specified directly through the interface function. Therefore, the control equation for the second boundary condition is:

[0065]

[0066] Where ds is the boundary of the imposed condition; g is the heat flux density, which can be a constant or an interpolation function; Γ N is the boundary symbol that meets the second type of boundary conditions; is the gradient of the temperature field function u; is the gradient of the finite element test function v; f is the heat source term; dx is the integral infinitesimal.

[0067] The format of the third type of boundary condition is:

[0068]

[0069] Where k is thermal conductivity; r is convective heat transfer coefficient; s is the surrounding fluid temperature; n is the normal vector;

[0070] The governing equation is:

[0071]

[0072] Since u is a nonlinear term as the solution variable, it should not appear on the right side of the equation, and then move ruds to the left side of the equation. Therefore, the control equation of the third type of condition is:

[0073]

[0074] Where ΓR is the boundary symbol that meets the third type of boundary conditions.

[0075] So if Figure 2 As shown, the combination of the second and third boundary conditions is:

[0076]

[0077] Where k is thermal conductivity; r i is the convective heat transfer coefficient of the ith solid structure; s i is the surrounding fluid temperature of the ith solid structure; g i is the heat flux density.

[0078] Since these three types of boundary conditions can be set as fixed values ​​or function expressions, this solution can customize the heat source terms and boundary conditions in the heat transfer control equation according to the actual application scenario, and can freely select one or a combination of multiple boundary conditions from the three types of boundary conditions, which is highly flexible.

[0079] S22. Define the Poisson equation as the heat transfer control equation, where the heat transfer control equation is:

[0080]

[0081] In the above formula, x is a one-dimensional coordinate; u(x) is the temperature field function to be solved; f(x) is the heat source term; Ω is the spatial domain; is the boundary of Ω; u D (x) represents the temperature value on the boundary; is the Laplace operator, used to calculate the second-order derivative of space;

[0082] S23. Convert the Poisson equation into a variational problem that can be solved using the finite element method. To solve the heat transfer control equation using the finite element method, it is necessary to convert the differential equation of heat transfer control into a variational problem by multiplying the differential equation by the test function v to convert it into a variational problem:

[0083]

[0084] Further simplified to:

[0085]

[0086] v is the finite element test function, and the equation can be rewritten in bilinear form, namely:

[0087]

[0088] In the above formula, is the gradient of the temperature field function u; is the gradient of the finite element test function v; f is the heat source term; dx is the integral infinitesimal; a(u,v) and L(v) are the aliases of two linear equations respectively.

[0089] Therefore, the heat source term f can be customized according to actual conditions through the above formula. When there is no source term, f=0.

[0090] S3. Solve the heat transfer control equation to obtain the structural temperature field of the solid structure; in this embodiment, the method for solving the differential equation is to call the solve() function of the python fenics library, and the method of using is solve(a==L, u, bcs) to solve the differential equation of the heat transfer control equation. The obtained temperature field is an approximate solution based on the finite element method, rather than a closed form analytical expression. By dividing the calculation domain and solving the equation at each discrete point, the temperature distribution of the entire domain is obtained. Therefore, the solved temperature field stores the temperature value of each position in a numerical way, rather than a clear analytical expression.

[0091] S4, defining a linear elastic equation, and solving the stress field of the solid structure according to the structural temperature field; in step S4, the specific process includes the following steps:

[0092] S41. Define the governing equation of the strain field as a linear elastic equation, where the governing equation of the strain field is:

[0093]

[0094] Among them, σ is the stress tensor; f is the body force;

[0095] S42. Convert the linear elastic equation into a variational problem that can be solved using the finite element method, namely:

[0096]

[0097] in,

[0098] σ=λtr(ε)+2με-α(3λ+2μ)dT

[0099]

[0100] Among them, tr is the matrix trace operator; μ and λ are both Lamé parameters of elastic mechanics; dΤ=(T-T0), T0 is the reference temperature when the thermal strain is 0, T is the structural temperature field; ε is the symmetric strain rate tensor; α is the linear expansion coefficient.

[0101] S43. Rewrite the linear elastic equation into a bilinear form and calculate the von-mises stress, and then obtain the stress field σ M , the linear elastic equation is rewritten into a bilinear form:

[0102]

[0103] Where σ(u) is the stress tensor.

[0104] Specifically, to solve the above equation, the solution method is to call the solve() function of the python fenics library, and the usage method is solve(a==L, u, bcs), where bcs is the constraint condition. The obtained strain field is an approximate solution based on the finite element method, rather than a closed-form analytical expression. By dividing the calculation domain and solving the equation at each discrete point, the strain distribution of the entire domain is obtained. Substitute σ(u) obtained by solving the equation into the deviation stress tensor equation to obtain s, and substitute s into the von-mises stress definition equation to obtain the von_mises stress σ M , σ M This is the stress field, stored numerically rather than as an explicit analytical expression.

[0105] The von-mises stress definition equation is:

[0106]

[0107] Where s is the deviation stress tensor, which is defined as:

[0108]

[0109] Where tr is the matrix trace operator; σ is the stress tensor; and I is the identity matrix.

[0110] This embodiment can customize the heat source term and boundary conditions in the heat transfer control equation according to the actual application scenario, and can freely select one of the three types of boundary conditions or a combination of multiple boundary conditions, which has high flexibility. By customizing differential equations and boundary conditions, the calculation of temperature field and stress field in the three-dimensional solid domain can be realized.

[0111] Embodiment 2

[0112] This embodiment is an active cooling structure for a rocket engine combustion chamber. High-temperature combustion gas flows through the inner wall of the combustion chamber. In order to cool the combustion chamber wall, a cooling channel is provided inside the combustion chamber wall, and a coolant flows through the cooling channel. The cooling channel divides the combustion chamber wall into an outer wall and an inner wall. The inner wall is in contact with the high-temperature combustion gas, and the outer wall is in contact with the external environment. The inner wall of the combustion chamber is on both sides of the combustion chamber, and the combustion gas and the coolant exchange heat with the inner wall of the combustion chamber through convection. The calculation framework of the structural temperature field and stress field includes:

[0113] The mesh construction module constructs the three-dimensional mesh of the solid structure through the mesh tool Gmsh;

[0114] The mesh processing module uses Meshio to convert the three-dimensional mesh output by the mesh construction module into a solid structure mesh in the xdmf format that supports parallel computing in the finite element program;

[0115] The solid domain calculation module calculates the structural temperature field and stress field of the solid structure based on the imported solid structure grid and customized boundary conditions.

[0116] The steps to calculate the structural temperature field and stress field of the combustion chamber using this calculation framework are as follows:

[0117] S10. Mesh processing: Use the mesh tool gmsh software to construct the three-dimensional mesh of the combustion chamber structure and mark the cooling channel and the inner and outer walls of the combustion chamber, such as Figure 3 As shown, the mesh is then output. The mesh module imports the mesh and converts it into the xdmf format that supports parallel computing in the finite element program through meshio.

[0118] S20, solid domain calculation module imports the grid, as follows:

[0119] S201, import thermal boundary condition data. The effect of gas and coolant on wall temperature is convection, so it is necessary to know the convection coefficient and fluid temperature distributed along the wall surface. In this embodiment, the above data is stored in a txt document. Therefore, it is necessary to import data from the document. Use interp1d of the scipy library to generate an interpolation function based on the imported data. An example of usage is T_co2_interpolator=interp1d(z_positions,T_co2), where z_positions and T_co2 are the position coordinates and temperature imported from the text, respectively, and the interpolation function of the temperature corresponding to different position coordinates is generated. The interpolation function of the convection coefficient is generated in a similar way, which is h_co2_interpolator=interp1d(z_positions,h_co2). These generated interpolation functions will appear in the heat transfer control equation as thermal boundary conditions.

[0120] S202. Establish heat transfer equations and boundary conditions. Based on the surface fluid temperature and convection coefficient, the third type of boundary conditions are formed. The code for constructing the differential equation is as follows:

[0121] a=k*inner(grad(T),grad(v))*dx+h_co2*T*v*ds_26+h_coolant*T*v*ds_25

[0122] L=Constant(0)*v*dx+h_co2*T_co2*v*ds_26+h_coolant*T_coolant*v*d s_25

[0123] Among them, k represents the thermal conductivity of the material, inner is the matrix inner product operator, grad is the Laplace operator, here the gradient operation is performed, and Constant(0) represents the constant 0. T_coolant and h_coolant are the interpolation functions of the coolant fluid temperature and the convection coefficient, T_co2 and h_co2 are the interpolation functions of the high-temperature gas fluid temperature and the convection coefficient, ds_26 is the coolant side wall, 26 represents the serial number of the high-temperature gas side wall when dividing the grid, ds_25 is the coolant side wall, 25 represents the serial number of the gas side wall when dividing the grid.

[0124] Note: Implementation methods of the first and second types of boundary conditions.

[0125] The implementation method of the equation of the second type of boundary condition is as follows (this type of boundary condition does not exist in the present engine combustion chamber embodiment, and is only explained here for expansion):

[0126] a=k*inner(grad(T),grad(v))*dx

[0127] L=Constant(0)*v*dx+g_co2*v*ds_26+g_coolant*v*ds_25

[0128] The difference between the second and third boundary conditions is that the definition of a does not include the solved term T. g_co2 and g_coolant represent the heat flux density on the coolant side and the gas side, respectively.

[0129] The implementation method of the first type of boundary conditions is as follows (this type of boundary condition does not exist in the present engine combustion chamber embodiment and is only described here for expansion):

[0130] bc_co2=DirichletBC(V,T1,ds_26)

[0131] bc_coolant=DirichletBC(V,T2,ds_25)

[0132] bcs = [bc_co2, bc_coolant]

[0133] Where T1 and T2 represent the constant temperature values ​​of the gas side and the coolant side, respectively. When the first type of boundary condition is implemented, it is not necessary to change a and L in the heat transfer control equation.

[0134] S203, solve the temperature field in the solid domain. solve(a==L,T_sol,bcs), bcs is the thermal boundary condition, T_sol is the temperature field to be solved. That is, solve the differential equation constructed above.

[0135] S204. Define linear elastic equations and boundary conditions, and define stress tensor:

[0136] def epsilon(u):

[0137] return 0.5*(grad(u)+grad(u).T)

[0138] def sigma(u,T):

[0139] return

[0140] (lambda_*div(u)-alpha*(3*lambda_+2*mu)*(T-T_0))*Identity(d)

[0141] +2*mu*epsilon(u)

[0142] Among them, epsilon is the strain tensor, sigma is the stress tensor, div() is the divergence operation function, lambda and mu are Lamé parameters, Identity is the matrix order operator, and the differential equation is defined as:

[0143] wint=inner(sigma(u,T_sol),epsilon(v))*dx

[0144] a=lhs(wint)

[0145] L=rhs(wint)+dot(f,v)*dx

[0146] Among them, inner is the matrix inner product operator, lhs and rhs represent the left side and right side of the equation to be solved respectively.

[0147] S205. Solve the stress field based on the structural temperature field. Solve the differential equation to obtain the strain field:

[0148] solve(a==L,u_sol,bcs)

[0149] Solve the stress field based on the strain field:

[0150] s=sigma(u_sol,T_sol)-(1 / 3)*tr(sigma(u_sol,T_sol))*Identity(d)

[0151] von_Mises=sqrt(3 / 2*inner(s,s))

[0152] Among them, tr is the matrix trace operator and sqrt is the root operator.

[0153] The calculation framework proposed in this embodiment does not require the use of commercial CFD software. The finite element program is written in Python. The heat source term and boundary conditions in the heat transfer control equation can be customized according to the actual application scenario. One or a combination of multiple boundary conditions in the three types of boundary conditions can be freely selected, which has high flexibility. By customizing differential equations and boundary conditions, the calculation of temperature field and stress field in the three-dimensional solid domain can be realized.

[0154] Embodiment 3

[0155] This embodiment applies the calculation method of structural temperature field and stress field to the calculation of structural temperature field and stress field of the combustion chamber, and uses Python to write a finite element calculation program based on the calculation framework. The heat transfer control equation and linear elastic equation can be customized according to actual conditions, various thermal boundary conditions are supported, and it can also be integrated with open source calculation tools to calculate the coupling problem between flow and solid.

[0156] The structural temperature field and stress field calculation method proposed in this embodiment can be integrated with various open source programs to calculate structural problems in various industries, and has compatibility and scalability that commercial CFD software does not have. It can also be flexibly coupled with fluid calculation programs written in various languages ​​at the code level, improving the efficiency of data transmission.

[0157] Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, so the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0158] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the above embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0159] The above implementation methods have been described in detail. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for calculating structural temperature field and stress field based on finite element, characterized in that: The method comprises the following steps: S1. Obtain the convection coefficient of the fluid distributed along the wall of the solid structure and the fluid temperature to form the thermal boundary condition data; S2, establishing heat transfer control equations based on thermal boundary condition data; S3, solving the heat transfer control equation to obtain the structural temperature field of the solid structure; S4. Define the linear elastic equations and solve the stress field of the solid structure based on the structural temperature field.

2. The method for calculating the structural temperature field and stress field according to claim 1, characterized in that: In step S2, the specific process includes the following steps: S21, establishing multi-category boundary conditions of the heat transfer control equation according to the thermal boundary condition data, wherein the multi-category boundary conditions include first-category boundary conditions, second-category boundary conditions, and third-category boundary conditions; wherein the first-category boundary conditions specify the temperature of the boundary; S22. Define the Poisson equation as the heat transfer control equation, where the heat transfer control equation is: In the above formula, x is a one-dimensional coordinate; u(x) is the temperature field function to be solved; f(x) is the heat source term; Ω is the spatial domain; is the boundary of Ω; u D (x) represents the temperature value on the boundary; is the Laplace operator, used to calculate the second-order derivative of space; S23. Convert the Poisson equation into a variational problem that can be solved using the finite element method, namely: Further simplified to: v is the finite element test function, and the equation can be rewritten in bilinear form, namely: In the above formula, is the gradient of the temperature field function u; is the gradient of the finite element test function v; f is the heat source term; dx is the integral infinitesimal; a(u,v) and L(v) are the aliases of two linear equations respectively.

3. The method for calculating the structural temperature field and stress field according to claim 2, characterized in that: In step S21, the first type of boundary condition specifies the temperature of the boundary; the second type of boundary condition specifies the heat flux density of the boundary, that is, the temperature gradient; the third type of boundary condition, also called the mixed boundary condition, specifies the convective heat transfer of the boundary, that is, the temperature gradient on the boundary is linearly related to the first power of the temperature of the boundary itself.

4. The method for calculating the structural temperature field and stress field according to claim 2, characterized in that: In step S21, the first type of boundary condition can be directly specified by calling the DirichletBC() interface function, and the specified method is bc=DirichletBC(V,u_D,boundary), where bc is the sequence number of the condition, V is the function space, u_D is the specified value, and boundary is the boundary sequence number; The governing equation for the second type of boundary condition is: Where ds is the boundary of the imposed condition; g is the heat flux density, which can be a constant or an interpolation function; Γ N is the boundary symbol that meets the second type of boundary conditions; The governing equation for the third type of condition is: Where ΓR is the boundary symbol that meets the third type of boundary conditions.

5. The method for calculating the structural temperature field and stress field according to claim 4, characterized in that: The combination of the second and third boundary conditions is: Where k is thermal conductivity; r i is the convective heat transfer coefficient of the ith solid structure; s i is the surrounding fluid temperature of the ith solid structure; g i is the heat flux density.

6. The method for calculating the structural temperature field and stress field according to claim 1, characterized in that: In step S4, the specific process includes the following steps: S41. Define the governing equation of the strain field as a linear elastic equation, where the governing equation of the strain field is: Among them, σ is the stress tensor; f is the body force; S42. Convert the linear elastic equation into a variational problem that can be solved using the finite element method, namely: in, σ=λtr(ε)+2με-α(3λ+2μ)dT Where tr is the matrix trace operator; μ and λ are both elastic mechanics Lamé parameters; dΤ = (T-T0), T0 is the reference temperature when the thermal strain is 0, T is the structural temperature field; ε is the symmetric strain rate tensor; α is the thermal expansion coefficient; S43. Rewrite the linear elastic equation into a bilinear form and calculate the von-mises stress, and then obtain the stress field σ M , the linear elastic equation is rewritten into a bilinear form: Where σ(u) is the stress tensor.

7. The method for calculating the structural temperature field and stress field according to claim 6, characterized in that: In step S43, the von-mises stress definition equation is: Where s is the deviation stress tensor, which is defined as: Where tr is the matrix trace operator; σ is the stress tensor; and I is the identity matrix.

8. A calculation framework applied to the method for calculating the temperature field and stress field of a structure according to any one of claims 1 to 7, characterized in that: include: The mesh construction module constructs the three-dimensional mesh of the solid structure through the mesh tool Gmsh; The mesh processing module uses Meshio to convert the three-dimensional mesh output by the mesh construction module into a solid structure mesh in the xdmf format that supports parallel computing in the finite element program; The solid domain calculation module calculates the structural temperature field and stress field of the solid structure based on the imported solid structure grid and customized boundary conditions.

9. An application of the method according to any one of claims 1 to 7 in calculating the structural temperature field and stress field of a combustion chamber, characterized in that: Finite element calculation programs are written in Python based on the calculation framework. The heat transfer control equations and linear elastic equations can be customized according to actual conditions. Various thermal boundary conditions are supported. It can also be integrated with open source calculation tools to calculate the coupling problems between flow and solid.

Citation Information

Cited By

  • Combustion Chamber Shape and State Reconstruction Method Based on Discrete Time Series Data

    CN122965008B