Variable-density low-speed flow mesoscopic value calculation method and device

By constructing low Mach numerical flux under a finite volume framework and developing a numerical algorithm based on gas kinetics format, the problem of applicability of the constant density format in low-speed flow is solved, and high-efficiency numerical simulation of low-speed flow with large density variation is achieved. and accurate solution.

CN118966073AActive Publication Date: 2024-11-15SHANGHAI SUOCHEN INFORMATION TECHNOLOGY CO LTD

Patent Information

Application Number
CN202411128812.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-11-15
Estimated Expiration
2044-08-16

AI Technical Summary

Technical Problem

The prior art is based on the gas dynamics format based on normal density in the low-speed flow problem with large changes in density field space, especially in the case of large density differences in low-density areas or two-phase flow caused by heat release during combustion. Not applicable, limiting its application in multi-component flow, multi-phase flow and turbulent combustion simulations.

Method used

Starting from the continuous Boltzmann-BGK equation, the low Mach approximate numerical flux is constructed under the finite volume framework, and the Chapman-Enskog expansion analysis is used to restore it to the macro control equation, and a numerical algorithm based on gas kinetics format is developed, which is simplified to velocity flux based on velocity flux The form is suitable for variable density and low-speed flow.

Benefits of technology

It realizes efficient numerical simulation of low-speed flow physiological processes, simplifies the calculation procedures, improves the calculation accuracy, and can accurately solve non-stable flow processes. It is suitable for low-speed flow scenarios with large density variations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118966073A_ABST
    Figure CN118966073A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of fluid mechanics, and discloses a variable-density low-speed flow mesoscopic value calculation method. Comprising the steps of determining a calculation area, and dividing or reading grid information, fluid parameters and control parameters in the calculation area; opening up an array according to the read information, initializing corresponding parameters of a calculation area, and entering a time step cycle after completion; setting boundary conditions, and assigning all boundary macroscopic quantities in the flow field; under a finite volume framework, a flow field numerical flux is deduced according to a BGK equation, and a flow field Navier-Stokes equation is solved; calculating pressure and velocity flux of a flow field unit interface, and updating boundary macroscopic quantity information through flux information; judging whether external force exists or not, if yes, applying the external force in a splitting mode, and updating the boundary macroscopic quantity at the same time; judging whether the time step meets a cycle condition or not; if yes, the boundary conditions are set again, and all boundary macroscopic quantities in the flow field are assigned; if not, outputting the flow field data, and ending simulation; the method has the advantages of high algorithm precision and simple program.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fluid mechanics, and in particular to a method and device for mesoscopic numerical calculation of variable-density low-speed flow. Background Art

[0002] Computational fluid dynamics has been widely used in many related industrial fields such as automobiles, ships, and aerospace. In order to solve problems in the engineering field, a variety of commercial software has been developed at home and abroad to simulate fluid mechanics phenomena. At present, most computational fluid dynamics methods are based on the macroscopic Navier-Stokes equations in traditional numerical formats. These methods usually adopt the calculation strategy of decoupling the viscous term and the inviscid term, and it is difficult to consider the tangential gradient in the framework of the finite volume method. However, the gas kinetic scheme (GKS) constructed based on the mesoscopic Boltzmann equation can simultaneously couple the viscous term and the inviscid term, and consider the influence of the tangential gradient. The GKS method has the advantages of clear object image, low dissipation, and suitability for high-speed flow, and has been widely used in compressible flow. There are also corresponding promotions and applications in the solution of constant density incompressible flow. However, in low-speed flow problems with large spatial variations in density field, such as low-density areas caused by heat release during combustion, or in two-phase flows such as cavitation and boiling problems where the density difference between the liquid and gas phases is large, the gas kinetic scheme based on constant density is not applicable. This limits the application of this method in fields such as multi-component flow, multiphase flow and turbulent combustion simulation.

[0003] Therefore, a method and device for mesoscopic numerical calculation of variable density and low-speed flow are provided to solve the above problems. Summary of the invention

[0004] The main purpose of the present invention is to solve the problem in the prior art that the gas kinetic format based on constant density is not applicable in low-speed flow problems with large spatial variations in density fields, such as low-density areas caused by heat release during combustion, or in two-phase flows such as cavitation and boiling problems where the density difference between the liquid and gas phases is large; this limits the application of this method in the fields of multi-component flow, multiphase flow and turbulent combustion simulation.

[0005] The first aspect of the present invention provides a mesoscopic numerical calculation method for variable density and low-speed flow, the mesoscopic numerical calculation method for variable density and low-speed flow comprising:

[0006] Determine the calculation area, divide or read the grid information, fluid parameters and control parameters in the calculation area;

[0007] Create an array based on the read information, initialize the corresponding parameters of the calculation area, and enter the time loop after completion;

[0008] Set boundary conditions and assign values ​​to all boundary macro quantities in the flow field;

[0009] Solve the Navier-Stokes equations of the flow field and calculate the pressure and velocity fluxes at the interface of the flow field unit; update the boundary macroscopic information through the flux information to determine whether there is an external force. If so, apply the external force through splitting and update the boundary macroscopic quantity at the same time;

[0010] Determine whether the time step meets the loop condition; if so, re-enter the setting of boundary conditions and assign values ​​to all boundary macro quantities in the flow field; if not, output the flow field data and end the simulation.

[0011] Further, the dividing or reading of grid information, fluid parameters and control parameters in the calculation area includes:

[0012] Divide the calculation area into different grids, and read the grid information, fluid parameter information and control parameter information of each grid in the calculation area;

[0013] Or read the grid information, fluid parameter information and control parameter information of the grid that has been divided in the calculation area.

[0014] Furthermore, the grid information includes grid length information, grid width information, grid number information, unit grid length information and grid coordinate information.

[0015] Furthermore, the fluid parameters include density information, velocity information, pressure information and viscosity parameter information; the control parameter information includes time step information, CFL number information and Mach number information.

[0016] Furthermore, the Navier-Stokes equation is:

[0017]

[0018] Where ρ is the fluid density, t is the time, u is the fluid velocity, p is the fluid dynamics pressure, τ ν is the deviatoric stress tensor, F is the external force acting on the fluid;

[0019] The deviatoric stress tensor, which includes the volume viscosity, is:

[0020]

[0021] Where μ is the fluid dynamic viscosity, ξ ν is the volume viscosity coefficient, d is the dimension, and I is the unit vector.

[0022] Furthermore, the pressure and velocity flux of the calculated flow field includes:

[0023] The momentum-based flux form is:

[0024]

[0025] The velocity-based flux is of the form:

[0026]

[0027] Furthermore, the splitting method in which the external force is applied by splitting includes:

[0028]

[0029] Among them, u * Obtained by solving the Navier-Stokes equations.

[0030] The second aspect of the present invention provides a variable density low speed flow mesoscopic numerical calculation device, comprising:

[0031] A data reading module is used to determine the calculation area, divide or read the grid information, fluid parameters and control parameters in the calculation area;

[0032] The time step loop enters the module, which is used to open an array according to the read information, initialize the corresponding parameters of the calculation area, and enter the time part loop after completion;

[0033] Boundary condition setting module, used to set boundary conditions and assign values ​​to all boundary macro quantities in the flow field;

[0034] The boundary macro-quantity update module is used to solve the flow field Navier-Stokes equations and calculate the pressure and velocity fluxes at the flow field unit interface; the boundary macro-quantity information is updated through the flux information to determine whether there is an external force. If so, the external force is applied by splitting and the boundary macro-quantity is updated at the same time;

[0035] The loop / end judgment module is used to judge whether the time step meets the loop condition; if so, it re-enters the setting of boundary conditions and assigns all boundary macro quantities in the flow field; if not, it outputs the flow field data and ends the simulation.

[0036] A third aspect of the present invention provides an electronic device, the electronic device comprising a memory and at least one processor, the memory storing instructions;

[0037] The at least one processor calls the instructions in the memory to enable the electronic device to execute the various steps of the variable density and low-speed flow mesoscopic numerical calculation method as described above.

[0038] A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored thereon, which, when executed by a processor, implement the various steps of the variable density low-speed flow mesoscopic numerical calculation method as described above.

[0039] The present invention starts from the continuous Boltzmann-BGK equation, constructs a low Mach approximate numerical flux in a finite volume framework, and the flux constructed by Chapman-Enskog expansion analysis can be restored to the macroscopic control equation (Navier-Stokes equation). According to the assumption of constant density nearly incompressible flow, the momentum-based flux can be simplified to a velocity-based flux form. After the flux form is obtained, a numerical algorithm based on the gas kinetic format can be constructed. The algorithm directly evolves and updates the macroscopic quantities in the flow field, has a simple calculation procedure, high calculation accuracy, and can efficiently perform numerical simulation on the physical process of low-speed flow.

[0040] The innovation of the low Mach numerical algorithm of the present invention is to construct a low Mach numerical flux that can be restored to the macro control equation using Chapman-Enskog analysis, develop an algorithm based on the gas kinetic format, and verify the accuracy of the algorithm in solving unsteady flow processes. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a schematic diagram of unit interface flux in finite volume format;

[0042] Figure 2 It is a flow chart of the variable density low speed flow mesoscopic numerical algorithm of the present invention;

[0043] Figure 3 This is a schematic diagram of the gas kinetic format interface;

[0044] Figure 4 Comparison diagram of Taylor-Green vortex pressure field and velocity field with analytical solution;

[0045] Figure 5 This is the cloud map of Taylor Green vortex pressure field and velocity field;

[0046] Figure 6 This is a schematic diagram of the Taylor-Green vortex velocity field accuracy;

[0047] Figure 7 A schematic diagram of the structure of a mesoscopic numerical calculation device for variable density and low-speed flow provided by an embodiment of the present invention;

[0048] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The embodiment of the present invention provides a mesoscopic numerical calculation method for variable density low-speed flow, including determining a calculation area, dividing or reading grid information, fluid parameters and control parameters in the calculation area; opening an array according to the read information, initializing the corresponding parameters of the calculation area, and entering a time part loop after completion; setting boundary conditions and assigning all boundary macro quantities in the flow field; solving the flow field Navier-Stokes equations, and calculating the pressure and velocity fluxes of the flow field unit interface; updating boundary macro quantity information through flux information, judging whether there is an external force, and if so, applying the external force by splitting, and updating the boundary macro quantity at the same time; judging whether the time step meets the loop condition; if so, re-entering the setting of boundary conditions, assigning all boundary macro quantities in the flow field; if not, outputting the flow field data and ending the simulation. The present invention solves the problems in the prior art that in the low-speed flow problem with large spatial variation of the density field, such as the low-density area caused by heat release during the combustion process, or in the case of large density difference between the liquid phase and the gas phase in the two-phase flow such as cavitation and boiling problems, the gas kinetic format based on constant density is not applicable; and the application of the method in the fields of multi-component flow, multi-phase flow and turbulent combustion simulation is limited.

[0050] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0051] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 -6. The first embodiment of the mesoscopic numerical calculation method of variable density low-speed flow in the embodiment of the present invention includes:

[0052] Determine the calculation area, divide or read the grid information, fluid parameters and control parameters in the calculation area;

[0053] Create an array based on the read information, initialize the corresponding parameters of the calculation area, and enter the time loop after completion;

[0054] Set boundary conditions and assign values ​​to all boundary macro quantities in the flow field;

[0055] Solve the Navier-Stokes equations of the flow field and calculate the pressure and velocity fluxes at the interface of the flow field unit; update the boundary macroscopic information through the flux information to determine whether there is an external force. If so, apply the external force through splitting and update the boundary macroscopic quantity at the same time;

[0056] Determine whether the time step meets the loop condition; if so, re-enter the setting of boundary conditions and assign values ​​to all boundary macro quantities in the flow field; if not, output the flow field data and end the simulation.

[0057] In view of the fact that the method proposed in the current embodiment supports variable density low-speed flow in the GKS format under the finite volume framework, the GKS method is first introduced here, and then its modification and its connection with the macroscopic variable density incompressible NS equations are explained, illustrating that the mesoscopic format proposed in this embodiment can be used for low-speed variable density flow problems.

[0058] The existing GKS method is based on the original Boltzmann-BGK equation.

[0059]

[0060] Where f(t,x,ξ) represents the probability density function of the molecular velocity distribution at position x at time t, and f eq is the distribution function, τ is the relaxation time, and is related to the gas viscosity through pressure. This standard Boltzmann-BGK can be analyzed through the Chapman-Enskog expansion to obtain the standard compressible Navier-Stokes equations. If the temperature T or the gas constant in the equilibrium distribution function is selected as a given fixed parameter, then the sound speed of the fluid can be controlled, which is called the pseudo sound speed. At this time, the Chapman-Enskog analysis expansion can obtain the weakly compressible Navier-Stokes equations. If in a finite volume framework, based on the macroscopic information on both sides of the interface between the equation and the fluid grid unit, the time-space integral solution of the distribution function f on the grid unit interface can be analytically constructed,

[0061] f=f eq -τDf eq +O(τ 2 ) (2)

[0062] Where D represents the total derivative. Expanding the above expression and the original BGK equation yields the Navier-Stokes equation,

[0063]

[0064] Where ρ is the fluid density, u is the fluid density, p is the fluid pressure, τ ν is the fluid viscous stress.

[0065] The GKS method obtained by the above method can be used to simulate low-speed flow. Its calculation time step is not limited by the actual flow velocity, and there is no need to solve the energy / or temperature equation. It is a mesoscopic artificial compression method. However, this method requires that the spatial variation of the actual density of the fluid is small, so it is not suitable for multi-component flows such as component density differences, multiphase flow, and combustion.

[0066] The technical solution proposed in this embodiment is to modify the original Boltzmann-BGK equation and add a fictitious external force term to ensure that the macro equation obtained by Chapman-Enskog expansion analysis corresponds to the NS equation with low Mach number approximation, that is, the Low Mach Number Approximation (LMNA) method. Although the LMNA method is widely used in traditional NS equations, it is not supported by the standard GKS method. The modification method proposed in this embodiment is as follows. First, expand the BGK equation and add an external force term:

[0067]

[0068] Among them, a is the simulated external force, P is the hydrodynamic pressure, and RT is the parameter for controlling compressibility. f eq =ρΓ(u,U) represents the equilibrium distribution function. Γ(u,U) can be expressed as:

[0069]

[0070] is the normal distribution function. The moment of equilibrium state is,

[0071]

[0072] A mesoscopic numerical algorithm for variable density and low-speed flow is divided into the following steps. Step 1-Step 6 first introduces the general finite volume process based on the traditional NS equations, and the subsequent steps derive the GKS method that can be restored to the above equations

[0073] Step 1: Determine the calculation area, divide or read the grid information, fluid parameters and control parameters, and enter Step 2.

[0074] Step2: Create an array based on the read information and initialize the corresponding parameters of the calculation area. After completion, enter the time step loop and enter Step3.

[0075] Step 3: Set boundary conditions, assign values ​​to all boundary macro quantities in the flow field, and proceed to Step 4.

[0076] Step 4: In the finite volume framework, the numerical flux of the flow field is derived according to the BGK equation to solve the Navier-Stokes equation of the flow field. The pressure and velocity (or momentum) flux of the flow field unit interface are first calculated, and then the macroscopic quantities in the unit are updated through the flux information of the interface. If there is an external force, the external force is applied by splitting, and the macroscopic quantities are updated at the same time, and then go to Step 5.

[0077] Step5: Determine whether the time step meets the loop condition, if yes, go to Step3, if not, go to Step6.

[0078] Step 6: Output flow field data and end the simulation.

[0079] The grid information in Step 1 includes grid length, width, number of grids, unit grid length and grid coordinates; the fluid parameters include density, velocity, pressure and viscosity parameters of each grid point; the control parameters include dimensionless parameters such as time step, CFL number and Mach number.

[0080] The Navier-Stokes equation in Step 4 above is:

[0081]

[0082] In formula (8), ρ is the fluid density, t is the time, u is the fluid velocity, p is the fluid dynamics pressure, τ ν is the deviatoric stress tensor, and F is the external force acting on the fluid. The deviatoric stress tensor including the volume viscosity can be expressed as:

[0083]

[0084] Where μ is the fluid dynamic viscosity, ξ ν is the volume viscosity coefficient, d is the dimension, and I is the unit vector.

[0085] The interface flux in Step 4 includes the flux of pressure and velocity (or momentum). Figure 1 Shown is the interface flux of unit (i, j), where represents the flux in the x and y directions respectively. The unit interface flux can be used to update the macroscopic quantity information within the unit.

[0086] The splitting method in Step 4 is implemented as follows:

[0087]

[0088] By solving the first formula in equation (3), we can get the velocity u * , and then apply external force according to the splitting method to obtain the velocity u of the next time step n+1 .

[0089] Attached Figure 2 It is described that the key to solving the Navier-Stokes equations in a finite volume framework is to solve the flow field interface flux. Next, we will start from the BGK (Bhatnagar-Gross-Krook) equation, derive the flow field interface flux, and restore it to the macroscopic control equation through the Chapman-Enskog approximation expansion [3].

[0090] First, the BGK equation with force terms can be expressed as:

[0091]

[0092] Where f is the distribution function, f eq =ρΓ(u,U) represents the equilibrium distribution function, ξ is the microscopic velocity, τ is the relaxation time, and the gas density and momentum are: ρ= <f>,ρu= <uf>, Γ(u,U) can be expressed as:

[0093]

[0094] The expression of the force term F is

[0095]

[0096] in P is the fluid dynamics pressure, and the moment of equilibrium is:

[0097]

[0098] The moment of the source term is

[0099]

[0100] Using Operators Rewrite the BGK equation as:

[0101]

[0102] Therefore, the distribution function can be expressed by the equilibrium state and source term, and the Chapman-Enskog approximate expansion is given:

[0103]

[0104] f (1) Find the second moment:

[0105] <ξ α ξ β ,f (1) >=<ξ α ξ β ,-Df eq +F>=RTρS+O(τ 2 )+O(u 3 ) (18) Among them By solving the zero-order moment and the first-order moment of the BGK equation, we can get the following equation:

[0106]

[0107] At this point, the dynamic model can derive the Navier-Stokes equations as the original BGK equations.

[0108] In order to further derive the expression of the interface flux, the numerical flux of the low Mach approximation will be derived based on the model of Lee et al. [4].

[0109] First, define a new distribution function: g≡f+(P-ρ)Γ0(u), where the expression of Γ0(u) is:

[0110]

[0111] The equilibrium expression of the above distribution function is:

[0112]

[0113] The BGK equation with source term can be expressed as:

[0114]

[0115] The expression for the source term is:

[0116]

[0117] Find the moment of the equilibrium distribution function in equation (21):

[0118]

[0119] Find the moment of the source term in equation (23):

[0120]

[0121] Rewriting the BGK equation in equation (22) gives the expression of the distribution function:

[0122] g=g eq -τDg eq +τG+O(τ 2 ) (26) Perform Chapman-Enskog approximation expansion on the distribution function:

[0123]

[0124] In the finite volume framework, the distribution function is n x at time jk The second-order time-accurate Taylor expansion is performed at Figure 3 :

[0125]

[0126] For the distribution function g in formula (27) (0) and g (1) Find the first-order moment separately:

[0127]

[0128] For the distribution function g in formula (27) (0) and g (1) Find the second-order moments separately:

[0129]

[0130] Integrate the time distribution function in equation (28) over the velocity:

[0131]

[0132] For F in the above formula jk (t) Time integration gives the pressure flux:

[0133]

[0134] The second-order moment of the distribution function with time in equation (28) is calculated as:

[0135]

[0136] H jk (t) can be integrated over time to obtain the momentum flux:

[0137]

[0138] For nearly incompressible flow at constant density: The pressure flux and velocity flux can be expressed as:

[0139]

[0140] Through the above derivation process, two low Mach numerical fluxes based on momentum and velocity are obtained. Applying the above numerical fluxes to the variable density low-speed flow mesoscopic numerical algorithm can perform numerical simulation of low-speed flow.

[0141] Gas-Kinetic Scheme (GKS), as a mesoscopic method in a finite volume framework, has the following main advantages: flow field information is evolved and updated through macroscopic quantities, and most of the effective processing methods in traditional numerical methods directly based on macroscopic quantities, such as reconstruction of physical quantities within the unit or at the interface, boundary conditions, and acceleration techniques in steady flows, can be directly applied. At the same time, the gas-kinetic scheme is constructed based on the continuous Boltzmann equation, does not require velocity space discretization, and does not require storage of distribution functions, which greatly reduces the computational and storage costs of this method, far less than the overhead of directly solving the BGK equation.

[0142] See also Figure 1 -6. A second embodiment of the mesoscopic numerical calculation method for variable density low-speed flow in the embodiment of the present invention includes:

[0143] A mesoscopic numerical algorithm for variable density and low-speed flow is divided into the following steps:

[0144] Step 1: Determine the calculation area, divide or read the grid information, fluid parameters and control parameters, and enter Step 2.

[0145] Step2: Create an array based on the read information and initialize the corresponding parameters of the calculation area. After completion, enter the time step loop and enter Step3.

[0146] Step 3: Set boundary conditions, assign values ​​to corresponding macro quantities of all boundaries in the flow field, and proceed to Step 4.

[0147] Step 4: In the finite volume framework, the numerical flux of the flow field is derived according to the BGK equation to solve the Navier-Stokes equation of the flow field. The pressure and velocity (or momentum) flux of the flow field unit interface are first calculated, and then the macroscopic quantities in the unit are updated through the flux information of the interface. If there is an external force, the external force is applied by splitting, and the macroscopic quantities are updated at the same time, and then go to Step 5.

[0148] Step5: Determine whether the time step meets the loop condition. If yes, go to Step3; if not, go to Step6.

[0149] Step 6: Output flow field data and end the simulation.

[0150] In order to verify the correctness of the algorithm proposed in the present invention, the following example is performed.

[0151] The implementation example is a two-dimensional Taylor-Green vortex simulation. In a square cavity with periodic boundaries on all sides, the given time-dependent pressure field and velocity field are initialized. The pressure and velocity in the calculation area will evolve with time. By comparing with the analytical solution, the correctness of the algorithm can be verified.

[0152] The example parameter settings include: calculation area: L×L=64×64, Mach number Ma=0.01, fluid viscosity ν=2e-4, CFL number is set to: 0.01408, and the number of calculation steps is 4×10 5 , the pressure field and velocity field are initialized as follows:

[0153]

[0154] Among them, speed U0 = Ma.

[0155] For the nearly incompressible flow with constant density in this example, an algorithm based on velocity flux can be used. The pressure and velocity flux are as follows:

[0156]

[0157] By deriving the velocity-based low Mach numerical flux and applying the above numerical flux to the variable density low-speed flow mesoscopic numerical algorithm, the flow process of the example can be numerically simulated.

[0158] As attached Figure 4 The comparison of the pressure field and velocity field with the analytical solution shows that the results of the algorithm are in good agreement with the analytical solution. Figure 5 The pressure field and velocity field cloud diagrams at the corresponding moments are given.

[0159] According to the attached Figure 6 The double logarithmic curve graph shows that the algorithm has a spatial accuracy higher than the second order in calculating the velocity field.

[0160] The above describes the method for calculating the mesoscopic numerical value of a variable density and low-speed flow in the embodiment of the present invention. The following describes the device for calculating the mesoscopic numerical value of a variable density and low-speed flow in the embodiment of the present invention. Figure 7 The variable density low speed flow mesoscopic numerical calculation device in the embodiment of the present invention includes:

[0161] The data reading module 701 is used to determine the calculation area, divide or read the grid information, fluid parameters and control parameters in the calculation area;

[0162] The time step loop enters module 702, which is used to open an array according to the read information, initialize the corresponding parameters of the calculation area, and enter the time part loop after completion;

[0163] The boundary condition setting module 703 is used to set the boundary conditions and assign values ​​to all boundary macro quantities in the flow field;

[0164] The boundary macro-quantity updating module 704 is used to solve the flow field Navier-Stokes equations and calculate the pressure and velocity fluxes of the flow field unit interface; update the boundary macro-quantity information through the flux information, determine whether there is an external force, and if so, apply the external force through splitting and update the boundary macro-quantity at the same time;

[0165] The loop / end judgment module 705 is used to judge whether the time step meets the loop condition; if so, re-enter the setting of boundary conditions and assign values ​​to all boundary macro quantities in the flow field; if not, output the flow field data and end the simulation.

[0166] above Figure 7 The variable density low speed flow mesoscopic numerical calculation device in the embodiment of the present invention is described in detail from the perspective of modular functional entity, and the electronic device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0167] Figure 8 7 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. The electronic device 700 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 710 (for example, one or more processors) and a memory 720, and one or more storage media 730 (for example, one or more mass storage devices) storing application programs 733 or data 732. Among them, the memory 720 and the storage medium 730 can be temporary storage or permanent storage. The program stored in the storage medium 730 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the electronic device 700. Furthermore, the processor 710 can be configured to communicate with the storage medium 730 to execute a series of instruction operations in the storage medium 730 on the electronic device 700.

[0168] The electronic device 700 may also include one or more power supplies 740, one or more wired or wireless network interfaces 750, one or more input and output interfaces 750, and / or one or more operating systems 731, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 8 The structure of the electronic device shown does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine some components, or arrange the components differently.

[0169] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the variable density and low-speed flow mesoscopic numerical calculation method.

[0170] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0171] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or partly contributed to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0172] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.< / uf> < / f>

Claims

1. A mesoscopic numerical calculation method for variable density and low-speed flow, characterized in that: The variable density low speed flow mesoscopic numerical calculation method comprises: Determine the calculation area, divide or read the grid information, fluid parameters and control parameters in the calculation area; Create an array based on the read information, initialize the corresponding parameters of the calculation area, and enter the time step loop after completion; Set boundary conditions and assign values ​​to all boundary macro quantities in the flow field; In the finite volume framework, the numerical flux of the flow field is derived from the BGK equation to solve the Navier-Stokes equation of the flow field; the pressure and velocity flux of the flow field unit interface are calculated, and the boundary macroscopic information is updated through the flux information to determine whether there is an external force. If so, the external force is applied by splitting and the boundary macroscopic quantity is updated at the same time; Determine whether the time step meets the loop condition; if so, re-enter the setting of boundary conditions and assign values ​​to all boundary macro quantities in the flow field; if not, output the flow field data and end the simulation.

2. The mesoscopic numerical calculation method for variable density and low-speed flow according to claim 1 is characterized in that: The dividing or reading of grid information, fluid parameters and control parameters in the calculation area includes: Divide the calculation area into different grids, and read the grid information, fluid parameter information and control parameter information of each grid in the calculation area; Or read the grid information, fluid parameter information and control parameter information of the grid that has been divided in the calculation area.

3. The mesoscopic numerical calculation method for variable density low-speed flow according to claim 2 is characterized in that: The grid information includes grid length information, grid width information, grid number information, unit grid length information and grid coordinate information.

4. The mesoscopic numerical calculation method for variable density and low-speed flow according to claim 2 is characterized in that: The fluid parameters include density information, velocity information, pressure information and viscosity parameter information; the control parameter information includes time step information, CFL number information and Mach number information.

5. The mesoscopic numerical calculation method for variable density and low speed flow according to claim 1 is characterized in that: The Navier-Stokes equation is: Where ρ is the fluid density, t is the time, u is the fluid velocity, p is the fluid dynamics pressure, τ ν is the deviatoric stress tensor, F is the external force acting on the fluid; The deviatoric stress tensor, which includes the volume viscosity, is: Where μ is the fluid dynamic viscosity, ξ ν is the volume viscosity coefficient, d is the dimension, and I is the unit vector.

6. The mesoscopic numerical calculation method for variable density and low speed flow according to claim 5 is characterized in that: The pressure and velocity fluxes of the calculated flow field include: The momentum-based flux form is: The velocity-based flux is of the form:

7. The mesoscopic numerical calculation method for variable density and low speed flow according to claim 6 is characterized in that: The splitting mode in which the external force is applied by splitting mode includes: Among them, u * Obtained by solving the Navier-Stokes equations.

8. A mesoscopic numerical calculation device for variable density and low speed flow, characterized in that: include: A data reading module is used to determine the calculation area, divide or read the grid information, fluid parameters and control parameters in the calculation area; The time step loop enters the module, which is used to open an array according to the read information, initialize the corresponding parameters of the calculation area, and enter the time part loop after completion; Boundary condition setting module, used to set boundary conditions and assign values ​​to all boundary macro quantities in the flow field; The boundary macro-quantity update module is used to solve the flow field Navier-Stokes equations and calculate the pressure and velocity fluxes at the flow field unit interface; the boundary macro-quantity information is updated through the flux information to determine whether there is an external force. If so, the external force is applied by splitting and the boundary macro-quantity is updated at the same time; The loop / end judgment module is used to judge whether the time step meets the loop condition; if so, it re-enters the setting of boundary conditions and assigns all boundary macro quantities in the flow field; if not, it outputs the flow field data and ends the simulation.

9. An electronic device, comprising a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the electronic device to execute each step of the variable-density low-speed flow mesoscopic numerical calculation method as described in any one of claims 1 to 7.

10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the various steps of the variable density low-speed flow mesoscopic numerical calculation method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • IB (Immersed Boundary) method

    CN104392105A

  • Central moment discrete Boltzmann method and system capable of compressing fluid under action of external force

    CN118095024A

  • Computer simulation of physical processes

    US20130116997A1

  • LBM-based quantum flow simulation method and apparatus, medium, and device

    WO2024007919A1

  • Variable-density low-speed flow mesoscopic numerical calculation method and apparatus

    WO2026036903A1

Cited By

  • Variable-density low-speed flow mesoscopic numerical calculation method and apparatus

    WO2026036903A1