CFD wave-absorbing boundary applying method based on modal discontinuous finite element method

The application of the absorbing boundary conditions in fluid mechanics by modal interruption finite element method solves the problem of taking into account both shock absorption and numerical stability, realizes high-precision flow field simulation, and simplifies the boundary condition application process.

CN118966047APending Publication Date: 2024-11-15SHANGHAI SHIP & SHIPPING RES INST CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410956115.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

When the existing wave absorbing boundary condition application method simulates the problem of compressible transient fluid, it is difficult to effectively absorb shock waves without reflection, and the numerical stability and accuracy are difficult to take into account, and the application process is complicated.

Method used

The CFD absorbing boundary application method based on the modal interruption finite element method is adopted. By dividing the grid into the calculation domain and performing coordinate conversion, the conserved quantity is calculated using Lejeon polynomial interpolation, and the inner and inner grid along the boundary grid is calculated based on Gaussian numerical integral points. The conserved quantities on the outside and the flux reconstruction formula is used to calculate the flux at the boundary.

Benefits of technology

Effectively absorb shock waves, maintain the numerical stability and higher-order modal terms of the solver, avoid the setting of ghost grids, and improve the convenience and calculation accuracy of the application process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118966047A_ABST
    Figure CN118966047A_ABST
Patent Text Reader

Abstract

The invention provides a CFD (computational fluid dynamics) wave-absorbing boundary applying method based on a modal discontinuous finite element method, which comprises the following steps of: S1, dividing a grid and performing coordinate transformation on the grid, S2, performing interpolation calculation on a conservation quantity in the grid by taking a Legendre polynomial as a physical interpolation primary function, and S3, calculating a CFD wave-absorbing boundary on the basis of Gaussian numerical integration points on a boundary surface. S4, based on the Gaussian numerical integration point, calculating a conservation quantity approaching the boundary along the interior of the boundary grid, S4, based on the Gaussian numerical integration point, calculating a conservation quantity approaching the boundary along the outer side of the boundary grid, and S5, calculating a flux at the boundary by adopting a flux reconstruction formula; according to the method, on the basis that the wave-absorbing effectiveness and the numerical stability of an original mixed free / subsonic outflow type wave-absorbing boundary condition applying method are reserved, a high-order modal item is reserved in the applying process, then the numerical discrete precision of a solver is kept, ghost grids do not need to be arranged on the outer side of the boundary, and therefore the applying convenience is improved, and the method is suitable for large-scale popularization and application. And discontinuous waves propagating from a flow field to a boundary can be effectively absorbed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of fluid mechanics calculation technology, and in particular to a CFD wave-absorbing boundary application method based on a modal discontinuity finite element method. Background Art

[0002] When solving transient problems in fluid mechanics, or problems described mathematically as hyperbolic problems, it is often necessary to apply absorbing boundary conditions (or non-reflecting boundary conditions) at the boundaries of the flow field. By applying absorbing boundary conditions that can effectively absorb waves propagating from the inside of the flow field to the boundary of the flow field, it is possible to simulate conditions at infinity without setting the computational domain to be infinite, thereby saving computational resources. In compressible transient problems, such as the Riemann problem, shock waves often exist. The applied absorbing boundary conditions must be able to effectively absorb shock waves propagating from the inside of the flow field to the boundary of the flow field, so that they leave without reflecting back into the flow field. The so-called shock wave is a wave that is discontinuous in space. Its waveform is more complex than that of a continuous wave, and it has higher requirements for absorbing boundary conditions. At the same time, in compressible transient problems, there are many spatial discontinuities in the flow field. For such problems, the modal discontinuous finite element method has obvious advantages over the finite volume method due to its high-precision and discontinuous characteristics, and is therefore often used.

[0003] At present, the method of applying absorbing boundary conditions is a developing knowledge, and there is no standard method. In the existing technology, the shock waves propagating from the inside of the flow field to the boundary of the flow field are absorbed as much as possible, so that they can leave smoothly without reflecting back to the flow field. At the same time, the applied absorbing boundary conditions are made to destroy the numerical stability of the solver itself as little as possible. Common methods include setting a buffer layer, setting a free outflow condition, setting a subsonic outflow condition, and setting a mixed free / subsonic outflow condition.

[0004] However, in the previous study, the existing application methods were tested using the Riemann problem, and it was found that there are still some problems. The buffer layer method cannot effectively absorb shock waves. Shock waves are reflected back into the flow field in large quantities and interact with each other, causing the flow field to become chaotic and unable to simulate physical phenomena. Setting free outflow conditions can absorb a considerable number of shock waves and prevent them from being reflected back into the flow field; however, this application method reduces the numerical stability of the solver. Setting subsonic outflow conditions not only effectively absorbs shock waves, but also maintains the numerical stability of the solver; however, this application method reflects a "cavitation zone" back into the flow field, which is inconsistent with the expected physical phenomenon. Setting mixed free / subsonic outflow conditions omits most of the high-order terms, resulting in the order of the boundary conditions being in fact equivalent to the discrete accuracy of the first-order finite volume method. When the internal discrete accuracy is higher than the first order, the discrete accuracy between the inside of the computational domain and the boundary does not match, making the observed calculation accuracy fail to reach the expected calculation accuracy, and ghost grids need to be set at the boundary, complicating the application process. Therefore, the method of applying absorbing boundary conditions, effectively absorbing shock waves, maintaining the numerical stability and numerical accuracy of the solver, and facilitating the application process have become technical issues that need to be solved urgently. Summary of the invention

[0005] In order to solve the technical problems of how to effectively absorb shock waves, maintain the numerical stability and numerical accuracy of the solver, and facilitate the application process in the method of applying absorbing boundary conditions, the present invention proposes a CFD absorbing boundary application method based on the modal discontinuous finite element method, by dividing the calculation domain into grids and performing coordinate transformation on the grids.

[0006] The present invention provides the following specific solutions:

[0007] A CFD wave-absorbing boundary application method based on modal discontinuity finite element method, comprising:

[0008] S1. Determine the computational domain and divide the grid: In the modal discontinuous finite element method, determine the computational domain and divide the grid, and perform coordinate transformation on each of the grids; the coordinate transformation is to transform the real coordinates into typical coordinates, and the value range is [-1, +1];

[0009] S2. Perform interpolation calculation on the conserved quantity in the grid: Use Legendre polynomials as physical interpolation basis functions to perform interpolation calculation on the conserved quantity in the grid;

[0010] S3. Calculate the conservation quantity from the inside of the boundary mesh to the boundary: determine Gaussian numerical integration points on the boundary surface, and calculate the first conservation quantity from the inside of the boundary mesh to the boundary based on the Gaussian numerical integration points;

[0011] S4. Calculate the conservation quantity approaching the boundary outside the boundary grid: based on the Gaussian numerical integration point, calculate the second conservation quantity approaching the boundary outside the boundary grid;

[0012] S5. Calculating the flux at the boundary: Based on the first conserved quantity and the second conserved quantity, using the flux reconstruction formula, calculate the flux at the boundary.

[0013] Preferably, the coordinate transformation of each of the grids in S1 includes: in the three-dimensional modal discontinuous finite element method, the transformation between the real coordinates and the typical coordinates of the grid is as follows:

[0014]

[0015] In formula (1), x(ξ,η,ζ), y(ξ,η,ζ), z(ξ,η,ζ) are the real coordinates of the grid node m in the global coordinate system, ξ, η, ζ are the transformed coordinates, and ψ(ξ,η,ζ) is the coordinate transformation basis function, which can use Lagrange polynomials.

[0016] Preferably, the interpolation calculation of the conserved quantity in the grid using Legendre polynomials as the physical interpolation basis function in S2 includes: in the case of third-order discrete accuracy, the interpolation of the conserved quantity in the grid is:

[0017] U(ξ,η,ζ)=[P] 1×10 [U] 10×1 (2)

[0018] Among them, for compressible fluid, there are three conserved quantities U, namely density ρ, the product of density and velocity and the product of density and mechanical energy per unit mass, ρE. Each conserved quantity is interpolated in the grid using equation (2), [P] 1×10 is the Legendre polynomial, [U] 10×1 are the modes of the conserved quantity;

[0019]

[0020] is the Legendre polynomial, used as the physical interpolation basis function;

[0021]

[0022] are the modes of the conserved quantity, where U (0,0,0) ...U (0,0,2) They represent the modes of the corresponding coordinates respectively.

[0023] Preferably, determining Gaussian numerical integration points on the boundary surface in S3 includes: in a three-dimensional, third-order accuracy case, selecting 9 Gaussian numerical integration points on the grid boundary surface with the normal as the ξ-positive direction, and the coordinates (η, ζ) of the 9 Gaussian numerical integration points are respectively (0,0),

[0024] Preferably, the calculation of the first conservation amount approaching the boundary along the interior of the boundary mesh based on the Gaussian numerical integration point in S3 includes: on the boundary surface, the conservation amount approaching the boundary along the interior of the boundary mesh, at the Gaussian numerical integration point, has a value of:

[0025]

[0026] Among them, ξ, η, ζ are the transformed coordinates, is the value of the density approaching the Gaussian numerical integration point from the inside of the grid to the boundary, ρ B is the density of the boundary mesh, is the value of the product of density and velocity from the inside of the grid to the boundary at the Gaussian numerical integration point, is the product of the density and velocity of the boundary grid, It is the product of density and mechanical energy per unit mass from the inside of the grid to the boundary at the Gaussian numerical integration point, (ρE) B is the product of the density of the boundary grid and the mechanical energy per unit mass, [P(ξ=+1,η=η GP , ζ=ζ GP )] 1×10 is the value of the Legendre polynomial at the Gaussian numerical integration point on the boundary surface;

[0027] Thus, it can be obtained that on the boundary surface, the original quantity approaching the boundary along the inside of the boundary grid has the value at the Gaussian numerical integration point:

[0028]

[0029] in, is the value of the velocity approaching the Gaussian numerical integration point from the inside of the grid to the boundary, is the value of the unit mass mechanical energy from the inside of the grid to the boundary at the Gaussian numerical integration point, It is the value of the internal energy per unit mass approaching the Gaussian numerical integration point from the inside of the grid to the boundary;

[0030] Then, according to the state equation adopted, the pressure on the boundary surface, along the inside of the boundary grid approaching the boundary, and the speed of sound at the Gaussian numerical integration point are obtained:

[0031]

[0032] in, is the value of the sound speed approaching the Gaussian numerical integration point from the inside of the grid to the boundary, is the value of the partial derivative of pressure with respect to density from the inside of the grid to the boundary at the Gaussian numerical integration point, is the value of the pressure from the inside of the grid to the boundary at the Gaussian numerical integration point, is the value of the density approaching the Gaussian numerical integration point from the inside of the grid to the boundary, It is the value of the partial derivative of pressure with respect to unit mass internal energy from the inside of the grid to the boundary approaching the Gaussian numerical integration point; the state equation is a physical model that describes the relationship between fluid pressure, density and unit mass internal energy, including ideal gas, Stiffened state equation, and Johns-Wi lkins-Lee state equation.

[0033] Preferably, the calculation of the second conservation quantity approaching the boundary along the outer side of the boundary grid based on the Gaussian numerical integration point in S4 includes: on the boundary surface, the original quantity approaching the boundary along the outer side of the boundary grid, the value at the Gaussian numerical integration point is calculated according to formulas (32)-(35):

[0034]

[0035] in, is the value of the density from the outside of the grid to the boundary at the Gaussian numerical integration point, is the value of the density approaching the Gaussian numerical integration point from the inside of the grid to the boundary, is the value of the velocity from the outside of the grid to the boundary at the Gaussian numerical integration point, is the value of the velocity approaching the Gaussian numerical integration point from the inside of the grid to the boundary, is the value of the sound speed approaching the Gaussian numerical integration point from the outside of the grid to the boundary, is the value of the sound speed approaching the Gaussian numerical integration point from the inside of the grid to the boundary, is the value of the pressure from the outside of the grid to the boundary at the Gaussian numerical integration point, and n is the direction of the normal line outside the boundary surface;

[0036] according to and According to the state equation adopted, the value of the internal energy per unit mass at the Gaussian numerical integration point is obtained: Then we can get the mechanical energy per unit mass.

[0037] At this point, the conservation quantity on the boundary surface approaching the boundary along the outer side of the boundary grid can be obtained. The value at the Gaussian numerical integration point is calculated according to equations (36)-(38):

[0038]

[0039] in, is the value of the density from the outside of the grid to the boundary at the Gaussian numerical integration point, is the value of the product of density and velocity from the outside of the grid to the boundary at the Gaussian numerical integration point, is the value of the velocity from the outside of the grid to the boundary at the Gaussian numerical integration point, It is the value of the product of density and mechanical energy per unit mass from the outside of the grid to the boundary at the Gaussian numerical integration point, is the value of the unit mass mechanical energy approaching the Gaussian numerical integration point from the outside of the grid to the boundary;

[0040] Preferably, the calculation of the flux at the boundary based on the first conserved quantity and the second conserved quantity in S5 using a flux reconstruction formula includes: using a Local Lax-Friedrichs flux reconstruction formula, and the wall flux calculation formula with the normal in the ξ-direction is:

[0041]

[0042] In the above formula, F LLF is the flux function, U is the conserved quantity, ξ, η, ζ are the transformed coordinates, t is the time, U(ξ=1,η,ζ,t) i,j,k is the value of the conserved quantity on the boundary surface, λ max is the maximum value of the eigenvalue of the flux matrix of the quasi-linear form governing equation for compressible fluid, and the solution is:

[0043] λ max =max{u i,j,k +c i,j,k ,u i+1,j,k +c i+1,j,k}

[0044] In the above formula, u i,j,k is the speed, c i,j,k is the speed of sound, and the solution for c is:

[0045]

[0046] Where p is the pressure, ρ is the density, is the partial derivative of pressure with respect to density, is the partial derivative of pressure with respect to internal energy per unit mass;

[0047] In the above formula, Among them, e is the internal energy per unit mass, E is the mechanical energy per unit mass, It’s speed;

[0048] By calculating the fluxes in the directions of η and ζ in sequence according to the above method, the flux at the boundary can be obtained.

[0049] Beneficial effects of the present invention:

[0050] The present invention provides a CFD wave absorbing boundary application method based on the modal discontinuous finite element method, S1 divides the grid and performs coordinate transformation on the grid, S2 uses Legendre polynomials as physical interpolation basis functions to perform interpolation calculation on the conservation quantity in the grid, S3 calculates the conservation quantity approaching the boundary along the inside of the boundary grid based on Gaussian numerical integration points on the boundary surface, S4 calculates the conservation quantity approaching the boundary along the outside of the boundary grid based on the Gaussian numerical integration points, and S5 uses a flux reconstruction formula to calculate the flux at the boundary; the method provided by the present invention retains the wave absorbing effectiveness and numerical stability of the original mixed free / subsonic outflow type wave absorbing boundary condition application method, and retains high-order modal terms in the application process, thereby maintaining the numerical discrete accuracy of the solver, and there is no need to set a ghost grid outside the boundary, thereby improving the convenience of application, and can be used to effectively absorb non-continuous waves propagating from the flow field to the boundary, especially shock waves. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 A flow chart of a CFD wave-absorbing boundary application method based on the modal discontinuity finite element method provided by the present invention.

[0052] Figure 2 A schematic diagram of coordinate transformation in a CFD wave-absorbing boundary application method based on a modal discontinuity finite element method provided by the present invention. DETAILED DESCRIPTION

[0053] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0054] Embodiment 1:

[0055] Figure 1 1 is a flow chart of a CFD wave absorbing boundary application method based on the modal discontinuity finite element method provided by some embodiments of the present invention. Figure 1 As shown, a CFD wave-absorbing boundary application method based on the modal discontinuity finite element method includes:

[0056] S1. Determine the computational domain and divide the grid: In the modal discontinuous finite element method, determine the computational domain and divide the grid, and perform coordinate transformation on each of the grids; the coordinate transformation is to transform the real coordinates into typical coordinates, and the value range is [-1, +1];

[0057] S2. Perform interpolation calculation on the conserved quantity in the grid: Use Legendre polynomials as physical interpolation basis functions to perform interpolation calculation on the conserved quantity in the grid;

[0058] S3. Calculate the conservation quantity from the inside of the boundary mesh to the boundary: determine Gaussian numerical integration points on the boundary surface, and calculate the first conservation quantity from the inside of the boundary mesh to the boundary based on the Gaussian numerical integration points;

[0059] S4. Calculate the conservation quantity approaching the boundary outside the boundary grid: based on the Gaussian numerical integration point, calculate the second conservation quantity approaching the boundary outside the boundary grid;

[0060] S5. Calculating the flux at the boundary: Based on the first conserved quantity and the second conserved quantity, using the flux reconstruction formula, calculate the flux at the boundary.

[0061] Specifically, Figure 2 As shown, in S1, each grid is transformed into coordinates, including: In the three-dimensional modal discontinuous finite element method, the transformation between the real coordinates and the typical coordinates of the grid is:

[0062]

[0063] In formula (1), x(ξ,η,ζ), y(ξ,η,ζ), z(ξ,η,ζ) are the real coordinates of the grid node m in the global coordinate system, ξ, η, ζ are the transformed coordinates, and ψ(ξ,η,ζ) is the coordinate transformation basis function, which can use Lagrange polynomials.

[0064] Specifically, the Legendre polynomials are used as the physical interpolation basis functions in S2 to perform interpolation calculations on the conserved quantities in the grid, including: in the case of third-order discrete accuracy, the interpolation of the conserved quantities in the grid is:

[0065] U(ξ,η,ζ)=[P] 1×10 [U] 10×1 (2)

[0066] Among them, for compressible fluid, there are three conserved quantities U, namely density ρ, the product of density and velocity and the product of density and mechanical energy per unit mass, ρE. Each conserved quantity is interpolated in the grid using equation (2), [P] 1×10 is the Legendre polynomial, [U] 10×1 are the modes of the conserved quantity;

[0067]

[0068] is the Legendre polynomial, used as the physical interpolation basis function;

[0069]

[0070] are the modes of the conserved quantity, where U (0,0,0) ...U (0,0,2) They represent the modes of the corresponding coordinates respectively.

[0071] Specifically, determining the Gaussian numerical integration points on the boundary surface in S3 includes: in a three-dimensional, third-order accuracy case, selecting 9 Gaussian numerical integration points on the grid boundary surface with the normal as the ξ-positive direction, and the coordinates (η, ζ) of the 9 Gaussian numerical integration points are respectively (0,0),

[0072] Specifically, the calculation of the first conservation amount approaching the boundary along the interior of the boundary mesh based on the Gaussian numerical integration point in S3 includes: on the boundary surface, the conservation amount approaching the boundary along the interior of the boundary mesh, the value of which at the Gaussian numerical integration point is:

[0073]

[0074] Among them, ξ, η, ζ are the transformed coordinates, is the value of the density approaching the Gaussian numerical integration point from the inside of the grid to the boundary, ρ B is the density of the boundary mesh, is the value of the product of density and velocity from the inside of the grid to the boundary at the Gaussian numerical integration point, is the product of the density and velocity of the boundary grid, It is the product of density and mechanical energy per unit mass from the inside of the grid to the boundary at the Gaussian numerical integration point, (ρE) B It is the product of the density of the boundary grid and the mechanical energy per unit mass, [P(ξ=+1,η=η GP ,ζ=ζ GP )] 1×10 is the value of the Legendre polynomial at the Gaussian numerical integration point on the boundary surface;

[0075] Thus, it can be obtained that on the boundary surface, the original quantity approaching the boundary along the inside of the boundary grid has the value at the Gaussian numerical integration point:

[0076]

[0077] in, is the value of the velocity approaching the Gaussian numerical integration point from the inside of the grid to the boundary, is the value of the unit mass mechanical energy from the inside of the grid to the boundary at the Gaussian numerical integration point, It is the value of the internal energy per unit mass approaching the Gaussian numerical integration point from the inside of the grid to the boundary;

[0078] Then, according to the state equation adopted, the pressure on the boundary surface, along the inside of the boundary grid approaching the boundary, and the speed of sound at the Gaussian numerical integration point are obtained:

[0079]

[0080] in, is the value of the sound speed approaching the Gaussian numerical integration point from the inside of the grid to the boundary, is the value of the partial derivative of pressure with respect to density from the inside of the grid to the boundary at the Gaussian numerical integration point, is the value of the pressure from the inside of the grid to the boundary at the Gaussian numerical integration point, is the value of the density approaching the Gaussian numerical integration point from the inside of the grid to the boundary, It is the value of the partial derivative of pressure with respect to unit mass internal energy from the inside of the grid to the boundary approaching the Gaussian numerical integration point; the state equation is a physical model that describes the relationship between fluid pressure, density and unit mass internal energy, including ideal gas, Stiffened state equation, and Johns-Wi lkins-Lee state equation.

[0081] Specifically, the second conservation quantity approaching the boundary along the outer side of the boundary grid based on the Gaussian numerical integration point in S4 includes: on the boundary surface, the original quantity approaching the boundary along the outer side of the boundary grid, and the value at the Gaussian numerical integration point is calculated according to formulas (32)-(35):

[0082]

[0083] in, is the value of the density from the outside of the grid to the boundary at the Gaussian numerical integration point, is the value of the density approaching the Gaussian numerical integration point from the inside of the grid to the boundary, is the value of the velocity from the outside of the grid to the boundary at the Gaussian numerical integration point, is the value of the velocity approaching the Gaussian numerical integration point from the inside of the grid to the boundary, is the value of the sound speed approaching the Gaussian numerical integration point from the outside of the grid to the boundary, is the value of the sound speed approaching the Gaussian numerical integration point from the inside of the grid to the boundary, is the value of the pressure from the outside of the grid to the boundary at the Gaussian numerical integration point, and n is the direction of the normal line outside the boundary surface;

[0084] according to and According to the state equation adopted, the value of the internal energy per unit mass at the Gaussian numerical integration point is obtained: Then we can get the mechanical energy per unit mass.

[0085] At this point, the conservation quantity on the boundary surface approaching the boundary along the outer side of the boundary grid can be obtained. The value at the Gaussian numerical integration point is calculated according to equations (36)-(38):

[0086]

[0087] in, is the value of the density from the outside of the grid to the boundary at the Gaussian numerical integration point, is the value of the product of density and velocity from the outside of the grid to the boundary at the Gaussian numerical integration point, is the value of the velocity from the outside of the grid to the boundary at the Gaussian numerical integration point, It is the value of the product of density and mechanical energy per unit mass from the outside of the grid to the boundary at the Gaussian numerical integration point, is the value of the unit mass mechanical energy approaching the Gaussian numerical integration point from the outside of the grid to the boundary;

[0088] Specifically, the flux reconstruction formula is used in S5 to calculate the flux at the boundary based on the first conserved quantity and the second conserved quantity, including: using the Local Lax-Friedrichs flux reconstruction formula, the wall flux calculation formula with the normal in the ξ-direction is:

[0089]

[0090] In the above formula, F LLF is the flux function, U is the conserved quantity, ξ, η, ζ are the transformed coordinates, t is the time, U(ξ=1,η,ζ,t) i,j,k is the value of the conserved quantity on the boundary surface, λ max is the maximum value of the eigenvalue of the flux matrix of the quasi-linear form governing equation for compressible fluid, and the solution is:

[0091] λ max =max{u i,j,k +c i,j,k ,u i+1,j,k +c i+1,j,k}

[0092] In the above formula, u i,j,k is the speed, c i,j,k is the speed of sound, and the solution for c is:

[0093]

[0094] Where p is the pressure, ρ is the density, is the partial derivative of pressure with respect to density, is the partial derivative of pressure with respect to internal energy per unit mass;

[0095] In the above formula, Among them, e is the internal energy per unit mass, E is the mechanical energy per unit mass, It’s speed;

[0096] By calculating the fluxes in the directions of η and ζ in sequence according to the above method, the flux at the boundary can be obtained.

[0097] It should be noted that the above-described specific implementations can enable those skilled in the art to more fully understand the invention, but do not limit the invention in any way. Therefore, although this specification has described the invention in detail with reference to the drawings and embodiments, those skilled in the art should understand that the invention can still be modified or replaced by equivalents. In short, all technical solutions and improvements that do not deviate from the spirit and scope of the invention should be included in the protection scope of the patent for the invention.

Claims

1. A CFD wave absorbing boundary application method based on modal discontinuity finite element method, characterized in that: include: S1. Determine the computational domain and divide the grid: In the modal discontinuous finite element method, determine the computational domain and divide the grid, and perform coordinate transformation on each of the grids; The coordinate conversion is from real coordinates to typical coordinates, with a value range of [-1, +1]; S2. Perform interpolation calculation on the conserved quantity in the grid: Use Legendre polynomials as physical interpolation basis functions to perform interpolation calculation on the conserved quantity in the grid; S3. Calculate the conservation quantity from the inside of the boundary mesh to the boundary: determine Gaussian numerical integration points on the boundary surface, and calculate the first conservation quantity from the inside of the boundary mesh to the boundary based on the Gaussian numerical integration points; S4. Calculate the conservation quantity approaching the boundary outside the boundary grid: based on the Gaussian numerical integration point, calculate the second conservation quantity approaching the boundary outside the boundary grid; S5. Calculating the flux at the boundary: Based on the first conserved quantity and the second conserved quantity, using the flux reconstruction formula, calculate the flux at the boundary.

2. The CFD wave absorbing boundary application method based on modal discontinuity finite element method according to claim 1 is characterized in that: The coordinate transformation of each of the grids in S1 includes: In the three-dimensional modal discontinuous finite element method, the conversion between the real coordinates and the typical coordinates of the grid is: In formula (1), x(ξ,η,ζ), y(ξ,η,ζ), z(ξ,η,ζ) are the real coordinates of the grid node m in the global coordinate system, ξ, η, ζ are the transformed coordinates, and ψ(ξ,η,ζ) is the coordinate transformation basis function, which can use Lagrange polynomials.

3. The CFD wave absorbing boundary application method based on modal discontinuity finite element method according to claim 2 is characterized in that: As described in S2, Legendre polynomials are used as physical interpolation basis functions to perform interpolation calculations on the conserved quantities within the grid, including: In the case of third-order discrete accuracy, the interpolation of the conserved quantity in the grid is: U(ξ,η,ζ)=[P] 1×10 [U] 10×1 (2) Among them, for compressible fluid, there are three conserved quantities U, namely density ρ, the product of density and velocity and the product of density and mechanical energy per unit mass, ρE. Each conserved quantity is interpolated in the grid using equation (2), [P] 1×10 is the Legendre polynomial, [U] 10×1 are the modes of the conserved quantity; is the Legendre polynomial, used as the physical interpolation basis function; are the modes of the conserved quantity, where U (0,0,0) ...U (0,0,2) They represent the modes of the corresponding coordinates respectively.

4. The CFD wave absorbing boundary application method based on modal discontinuity finite element method according to claim 2 is characterized in that: Determining the Gaussian numerical integration point on the boundary surface in S3 includes: In the case of three-dimensional and third-order accuracy, nine Gaussian numerical integration points are selected on the mesh boundary surface with the normal as the ξ-positive direction. The coordinates (η, ζ) of the nine Gaussian numerical integration points are respectively (0,0), 5. The CFD wave absorbing boundary application method based on modal discontinuity finite element method according to claim 4 is characterized in that: The step of calculating the first conservation quantity approaching the boundary along the interior of the boundary grid based on the Gaussian numerical integration point in S3 includes: On the boundary surface, the value of the conserved quantity approaching the boundary along the interior of the boundary grid at the Gaussian numerical integration point is: Among them, ξ, η, ζ are the transformed coordinates, is the value of the density approaching the Gaussian numerical integration point from the inside of the grid to the boundary, ρB is the density of the boundary grid, is the value of the product of density and velocity from the inside of the grid to the boundary at the Gaussian numerical integration point, is the product of the density and velocity of the boundary grid, It is the product of density and mechanical energy per unit mass from the inside of the grid to the boundary at the Gaussian numerical integration point, (ρE) B It is the product of the density of the boundary grid and the mechanical energy per unit mass, [P(ξ=+1,η=η GP , ζ=ζ GP )] 1×10 is the value of the Legendre polynomial at the Gaussian numerical integration point on the boundary surface; Thus, it can be obtained that on the boundary surface, the original quantity approaching the boundary along the inside of the boundary grid has the value at the Gaussian numerical integration point: in, is the value of the velocity approaching the Gaussian numerical integration point from the inside of the grid to the boundary, is the value of the unit mass mechanical energy from the inside of the grid to the boundary at the Gaussian numerical integration point, It is the value of the internal energy per unit mass approaching the Gaussian numerical integration point from the inside of the grid to the boundary; Then, according to the state equation adopted, the pressure on the boundary surface, along the inside of the boundary grid approaching the boundary, and the speed of sound at the Gaussian numerical integration point are obtained: in, is the value of the sound speed approaching the Gaussian numerical integration point from the inside of the grid to the boundary, is the value of the partial derivative of pressure with respect to density from the inside of the grid to the boundary at the Gaussian numerical integration point, is the value of the pressure from the inside of the grid to the boundary at the Gaussian numerical integration point, is the value of the density approaching the Gaussian numerical integration point from the inside of the grid to the boundary, It is the value of the partial derivative of pressure with respect to unit mass internal energy from the inside of the grid to the boundary approaching the Gaussian numerical integration point; the state equation is a physical model that describes the relationship between fluid pressure, density and unit mass internal energy, including ideal gas, Stiffened state equation, and Johns-Wilkins-Lee state equation.

6. The CFD wave absorbing boundary application method based on modal discontinuity finite element method according to claim 5 is characterized in that: The step of calculating the second conservation quantity approaching the boundary along the outer side of the boundary grid based on the Gaussian numerical integration point in S4 includes: On the boundary surface, the original quantity approaching the boundary along the outer side of the boundary grid is calculated according to equations (32)-(35) at the Gaussian numerical integration point: in, is the value of the density from the outside of the grid to the boundary at the Gaussian numerical integration point, is the value of the density approaching the Gaussian numerical integration point from the inside of the grid to the boundary, is the value of the velocity from the outside of the grid to the boundary at the Gaussian numerical integration point, is the value of the velocity approaching the Gaussian numerical integration point from the inside of the grid to the boundary, is the value of the sound speed approaching the Gaussian numerical integration point from the outside of the grid to the boundary, is the value of the sound speed approaching the Gaussian numerical integration point from the inside of the grid to the boundary, is the value of the pressure from the outside of the grid to the boundary at the Gaussian numerical integration point, and n is the direction of the normal line outside the boundary surface; according to and According to the state equation adopted, the value of the internal energy per unit mass at the Gaussian numerical integration point is obtained: Then we can get the mechanical energy per unit mass. At this point, the conservation quantity on the boundary surface approaching the boundary along the outer side of the boundary grid can be obtained. The value at the Gaussian numerical integration point is calculated according to equations (36)-(38): in, is the value of the density from the outside of the grid to the boundary at the Gaussian numerical integration point, is the value of the product of density and velocity from the outside of the grid to the boundary at the Gaussian numerical integration point, is the value of the velocity from the outside of the grid to the boundary at the Gaussian numerical integration point, It is the value of the product of density and mechanical energy per unit mass from the outside of the grid to the boundary at the Gaussian numerical integration point, It is the value of the mechanical energy per unit mass from the outside of the grid to the boundary at the Gaussian numerical integration point.

7. The CFD wave absorbing boundary application method based on modal discontinuity finite element method according to claim 2 is characterized in that: The calculation of the flux at the boundary based on the first conserved quantity and the second conserved quantity using the flux reconstruction formula in S5 includes: Using the Local Lax-Friedrichs flux reconstruction formula, the wall flux calculation formula with the normal in the ξ-direction is: In the above formula, F LLF is the flux function, U is the conserved quantity, ξ, η, ζ are the transformed coordinates, t is the time, U(ξ=1,η,ζ,t)i,j,k are the values ​​of the conserved quantity on the boundary surface, λ max is the maximum value of the eigenvalue of the flux matrix of the quasi-linear form governing equation for compressible fluid, and the solution is: λ max =max{u i,j,k +c i,j,k ,u i+1,j,k +c i+1,j,k } In the above formula, u i,j,k is the speed, c i,j,k is the speed of sound, and the solution for c is: Where p is the pressure, ρ is the density, is the partial derivative of pressure with respect to density, is the partial derivative of pressure with respect to internal energy per unit mass; In the above formula, Among them, e is the internal energy per unit mass, E is the mechanical energy per unit mass, It’s speed; According to the above method, the fluxes in the directions of η and ζ are calculated in turn to obtain the flux at the boundary.

Citation Information

Cited By

  • Method, device and equipment for expanding applicability of CFD (computational fluid dynamics) immersion boundary geometry capture algorithm

    CN119740507A

  • Applicable extension method, device and equipment for CFD immersed boundary geometry capture algorithm

    CN119740507B

  • Simulation data cross-platform grid mapping method based on socket communication and parallel broadcast

    CN121078037A