Method and system for simulating two-phase flow movement of water and sludge in sludge concentration tank
OpenFOAM simulates the two-phase flow movement of water and sludge in the sludge concentration tank, which solves the problem of difficult monitoring and prediction of the distribution of water and sludge in the sludge concentration tank, and realizes the optimization and potential of the operating conditions of the sludge concentration tank. Risk prediction provides scientific pool design suggestions, which are efficient and accurate.
Patent Information
- Application Number
- CN202410232191.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-29
- Publication Date
- 2024-08-30
AI Technical Summary
The distribution of water and sludge in the sludge concentration tank is difficult to monitor and predict. Existing computational fluid dynamics software is highly encapsulated and difficult to develop secondaryly. As a result, the simulation results are inconsistent with the actual situation and cannot respond in time to emergencies such as sudden changes in concentration.
Based on the open source computational fluid dynamics software OpenFOAM, a method for simulating the two-phase flow movement of water and sludge in a sludge concentration tank is proposed. By dividing grid cells, setting initial and boundary conditions, establishing a mixture model and solving with a solver, the problem can be achieved Optimization of operating conditions and prediction of potential risks for sludge thickening tanks.
It achieves accurate simulation of the spatio-temporal distribution characteristics of water and sludge in the sludge concentration tank, optimizes operating conditions, predicts potential risks, and provides scientific tank design suggestions. It has few input parameters, low computing power and easy convergence. Features.
Smart Images

Figure CN118568913A
Abstract
Description
Technical Field
[0001] The invention relates to the field of muddy water treatment technology and computational fluid dynamics technology, in particular to a method and system for simulating the movement of two-phase flow of water and sludge in a sludge thickening tank. Background Art
[0002] A very important step in mud and water treatment is mud and water separation. The first step in the mud and water separation method is the sedimentation of mud in water. Sludge thickening tanks are generally used in water plants to realize the sedimentation process of sludge in water. After sedimentation, the bottom sludge is discharged at regular intervals, and the supernatant is collected and discharged or recycled for reuse. Since the sludge thickening tank is closed and there is a scraper at the bottom, it is difficult to place monitoring instruments, so it is difficult to know the distribution of sludge in the tank. According to existing means, flow meters and sludge concentration meters can be placed at the inlet and outlet, but the monitoring instruments can only obtain current and historical conditions, and cannot predict future changes in sludge concentration. Once an emergency such as a sudden change in concentration cannot be responded to in time, the subsequent process links will be seriously affected.
[0003] With the development of computers and the gradual maturity of computational fluid dynamics, the use of computational fluid dynamics methods to simulate and predict the movement of water and sludge two-phase flow has become a reliable means. Existing general computational fluid dynamics software is packaged commercial software, which is difficult to secondary development. There are many restrictions when using it, and the simulation method and results are easily inconsistent with the actual situation. Therefore, based on the open source computational fluid dynamics software OpenFOAM, the present invention proposes a method for simulating the movement of water and sludge two-phase flow in a sludge thickening tank. The method can modify the formula according to the actual situation for secondary development. By simulating and predicting the spatiotemporal distribution characteristics of water and sludge in the sludge thickening tank by this method, not only can the operating conditions of the sludge thickening tank be reasonably optimized, potential risks be predicted, but also scientific suggestions can be made for the design and construction of the water tank. Summary of the invention
[0004] In view of the current situation that the distribution of water and sludge in a sludge thickening tank is difficult to monitor and predict, the present invention proposes a method and system for simulating the movement of two-phase flow of water and sludge in a sludge thickening tank to solve the problems raised in the above technical background.
[0005] One aspect of the present invention is to provide a method for simulating the movement of water and sludge two-phase flow in a sludge thickening tank, the method comprising the following steps:
[0006] S1. Select the calculation area of the sludge thickening tank and divide it into grid units;
[0007] S2. Set initial conditions and boundary conditions, and set the movement parameters of water and sludge phases;
[0008] S3. Establish a two-phase mixture model of water and sludge, and set the discrete format and parameters;
[0009] S4. Set the calculation start time, end time and time step, and use the solver to solve the water and sludge two-phase mixture model.
[0010] Preferably, in step S1, the blockMesh method or snappyHexMesh method in OpenFOAM is used to divide the selected sludge thickening tank calculation area into grid units.
[0011] Preferably, in step S2, the parameters for initial conditions and boundary conditions to be set include: velocity, pressure, sludge phase volume fraction, viscosity and turbulence parameters.
[0012] Preferably, in step S2, the water and sludge two-phase movement parameters include density and viscosity, and the settling velocity of the sludge.
[0013] Preferably, in step S3, the system of equations in the water and sludge two-phase mixture model at least includes: a continuity equation, a momentum equation and a sludge transport equation; wherein the continuity equation is expressed by the following method:
[0014]
[0015] Among them, ρ m is the density of water and sludge mixture; ρ m =α w ρ w +α s ρ s , α w is the volume fraction of water phase, α s is the volume fraction of sludge phase, α w +α s =1;ρ w is the density of water; ρ s is the sludge density; is the velocity of water and sludge mixture; is the gradient operator; t is the time;
[0016] The momentum equation is expressed as follows:
[0017]
[0018] Among them, ρ m is the density of water and sludge mixture; is the velocity of water and sludge mixture; is the gradient operator; t is the time; P m for pressure; is the viscous stress tensor; is the turbulent stress tensor; is the body force; α s is the volume fraction of sludge phase; ρs is the sludge density; ρ w is the density of water; is the sludge settling velocity;
[0019] Among them, the sludge transport equation is expressed as follows:
[0020]
[0021] Among them, α s is the volume fraction of sludge phase; t is the time; is the gradient operator; is the velocity of the mixture of water and sludge; Γ is the diffusion coefficient; ρ w is the density of water; ρ m is the density of water and sludge mixture; is the sludge settling velocity.
[0022] Preferably, in step S3, the time derivative term in the water and sludge two-phase mixture model is discretized using a first-order implicit Euler format, and the convection term is discretized using a second-order Gaussian upwind format; the pressure-velocity coupling calculation method adopts the PIMPLE algorithm.
[0023] Preferably, in step S4, the time step is set to meet the CFL condition to ensure that:
[0024] Courant number Co<1,
[0025] Among them, U is the fluid velocity, Δt is the time step, and Δx is the grid size in the flow direction;
[0026] The driftFluxFoam solver in OpenFOAM is used to solve the water and sludge two-phase mixture model.
[0027] Another aspect of the present invention is to provide a system for simulating the movement of two-phase flow of water and sludge in a sludge thickening tank, wherein the system is used to execute a method of simulating the movement of two-phase flow of water and sludge in a sludge thickening tank according to the present invention.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] The present invention proposes a method for simulating the movement of water and sludge two-phase flow in a sludge thickening tank. When the inlet flow rate and sludge concentration of the sludge thickening tank are known, the supernatant effluent sludge concentration and the temporal and spatial distribution change characteristics of water and sludge can be simulated and predicted. The simulation results can not only reasonably optimize the operating conditions of the sludge thickening tank and predict potential risks, but also provide scientific suggestions for the design and construction of the water tank. The present invention is based on the open source computational fluid dynamics software OpenFOAM, and solves the continuity equation, momentum equation and transport equation of the water and sludge mixed phase, and has the characteristics of few input parameters, small computing power required and easy convergence. Compared with commercial computational fluid dynamics software, it has the advantages of being able to modify formulas and secondary development according to actual conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the specific implementation of the present invention or the technical solution in the prior art, the following briefly introduces the drawings required for use in the specific implementation or the prior art description. Obviously, the drawings described below are some implementations of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0031] Figure 1 The present invention is a flow chart of the steps of a method for simulating the movement of two-phase flow of water and sludge in a sludge thickening tank.
[0032] Figure 2 It is a simplified structural diagram of a sludge thickening tank in one embodiment of the present invention.
[0033] Figure 3 This is a simulation verification diagram of the sludge concentration of the supernatant effluent during actual operation of a sludge thickening tank in one embodiment of the present invention.
[0034] Figure 4 It is a simulated distribution diagram of water flow and sludge concentration field when the actual sludge thickening tank is running in one embodiment of the present invention. DETAILED DESCRIPTION
[0035] In order to make the above and other features and advantages of the present invention more clear, the present invention is further described below in conjunction with the accompanying drawings. It should be understood that the specific embodiments given herein are for the purpose of explaining to those skilled in the art and are only exemplary and not restrictive.
[0036] Example:
[0037] The technical solution of the present invention is further described below in conjunction with specific embodiments.
[0038] Take a real water plant sludge thickening tank as an example:
[0039] like Figure 1As shown, according to an embodiment of the present invention, a method for simulating the movement of water and sludge two-phase flow in a sludge thickening tank is provided, comprising the following steps:
[0040] Step S1, selecting a calculation area of a sludge thickening tank and dividing it into grid units.
[0041] The actual sludge thickening tank of the water plant in this embodiment is a radial flow axisymmetric sludge thickening tank with sludge inlet in the middle and water outlet at the top of the four sides. In order to save computing power, half of the cross section of the sludge thickening tank is selected as the calculation area, and the central axis of the sludge thickening tank is used as the symmetry plane. Figure 2 shown.
[0042] This embodiment uses the snappyHexMesh method in OpenFOAM to divide the selected sludge thickening tank calculation area into grid units. The grid units should be divided so that the grid direction is as close to the water flow direction as possible.
[0043] In some embodiments, other mesh generation software may be used to divide the mesh units and then imported into OpenFOAM.
[0044] After the mesh is generated, the checkMesh method in OpenFOAM is used to check the mesh quality. The mesh non-orthogonality value should be less than 20, and the maximum skewness value should be less than 1.
[0045] In this embodiment, the number of grid cells is 3240, the average value of grid non-orthogonality is 1.65, and the maximum skewness value is 0.49.
[0046] Step S2: setting initial conditions and boundary conditions, and setting water and sludge two-phase movement parameters.
[0047] In this embodiment, the parameters that need to be set for initial conditions and boundary conditions are: velocity, pressure, sludge phase volume fraction, viscosity and turbulence parameters. The type of these parameters on the symmetry plane boundary is set to axisymmetric plane.
[0048] In this embodiment, the mud inlet flow rate is the actual monitoring data of the mud inlet flow meter of the sludge thickening tank. According to the continuity condition, it can be known that the outlet flow rate is equal to the mud inlet flow rate. The mud inlet flow rate is equal to the mud inlet flow rate divided by the mud inlet area, and the outlet flow rate is equal to the outlet flow rate divided by the outlet area.
[0049] Since the hydraulic pressure in the sludge thickening tank changes with the fluid density and water column height, resulting in the hydraulic pressure at the mud inlet and outlet being unstable, the reference pressure (static pressure - hydraulic pressure) is used when setting the pressure boundary conditions and calculating the pressure to eliminate the influence of the hydraulic pressure change. rgh=p-ρg·h. Wherein, p is static pressure, ρ is fluid density, g is gravity acceleration, and h is the center position vector of the grid unit. In this embodiment, the water outlet reference pressure is set to a fixed value of 0, and the mud inlet reference pressure is automatically adjusted with the water outlet reference pressure.
[0050] The sludge phase volume fraction is equal to the sludge concentration divided by the sludge density. In this embodiment, the sludge concentration at the sludge inlet adopts the monitoring data of the sludge concentration meter at the sludge inlet of the actual sludge thickening tank, and the initial sludge concentration field is set according to the monitoring data of the sludge concentration meter at the supernatant outlet.
[0051] The parameters of water and sludge two-phase movement include density and viscosity, as well as the settling velocity of the sludge.
[0052] The settling velocity of the sludge in this embodiment is calculated by the following method:
[0053]
[0054] in, is the sludge settling velocity; ρ w is the density of water; ρ m V is the density of the mixture of water and sludge; 0 is the maximum value of sludge settling velocity, which is 0.001m / s; k is the settling velocity coefficient, which is 285.84; α s is the volume fraction of sludge phase.
[0055] In this embodiment, the sludge is a non-Newtonian fluid, and the non-Newtonian fluid model is: Where τ is the fluid shear stress; τ 0 is the yield stress, a 1 =0.0005966kg / m / s 2 , a 2 =1050.8; μ is the fluid viscosity; The setting of sludge settling speed and viscosity can also be obtained through sampling experiments to obtain parameters that are consistent with the actual situation, and is not limited to the above description, which is just a setting method given in this embodiment.
[0056] Step S3: Establish a two-phase mixture model of water and sludge, and set the discrete format and parameters.
[0057] The equation group in the water and sludge two-phase mixture model at least includes: a continuity equation, a momentum equation and a sludge transport equation.
[0058] According to an embodiment of the present invention, the continuity equation is expressed by the following method:
[0059]
[0060] Among them, ρ m is the density of water and sludge mixture; ρ m =α w ρ w +α s ρ s , α w is the volume fraction of water phase, α s is the volume fraction of sludge phase, α w +α s =1;ρ w is the density of water; ρ s is the sludge density; is the velocity of water and sludge mixture; is the gradient operator; t is the time.
[0061] The momentum equation is expressed as follows:
[0062]
[0063] Among them, ρ m is the density of water and sludge mixture; is the velocity of water and sludge mixture; is the gradient operator; t is the time; P m for pressure; is the viscous stress tensor; is the turbulent stress tensor; is the body force; α s is the volume fraction of sludge phase; ρ s is the sludge density; ρ w is the density of water; is the sludge settling velocity.
[0064] The sludge transport equation is expressed as follows:
[0065]
[0066] Among them, α s is the volume fraction of sludge phase; t is the time; is the gradient operator; is the velocity of the mixture of water and sludge; Γ is the diffusion coefficient; ρ w is the density of water; ρ m is the density of water and sludge mixture; is the sludge settling velocity.
[0067] In this embodiment, the time derivative term in the water and sludge two-phase mixture model is discretized using a first-order implicit Euler format, and the convection term is discretized using a second-order Gaussian upwind format.
[0068] The pressure-velocity coupling calculation method adopts the PIMPLE algorithm, performs three pressure corrections, and the relaxation factor is set to 1.
[0069] Step S4, setting the calculation start time, end time and time step, and using the solver to solve the water and sludge two-phase mixture model.
[0070] The start and end times should be set in accordance with the actual operation of the sludge thickening tank, and mode adjustment time should be reserved. The mode adjustment time varies according to the size, structure, number of grids, and inlet and outlet velocity and pressure conditions of the pool. Numerical simulation tests are required. The mode adjustment time is from the start time to the time when the water flow stabilizes.
[0071] In this embodiment, the actual sludge thickening tank is intermittently operated, each time for about 1.5 hours. Through numerical experiments, it is found that the water flow in the tank tends to be stable after the mode runs for 1.5 hours, so the mode adjustment time is set to 1.5 hours. Set the start time to 0 and the end time to 4 hours.
[0072] The time step should be set in combination with the fluid velocity and the grid size, and should satisfy the CFL (Courant, Friedrichs, Lewy) condition to ensure:
[0073] Courant number Co<1,
[0074] Among them, U is the fluid flow velocity, Δt is the time step, and Δx is the grid size in the flow direction.
[0075] In this embodiment, the Courant number Co is set to be less than 0.8, the time step is set using a variable step method, Δt=0.005, and Δt<1.
[0076] The driftFluxFoam solver in OpenFOAM is used to solve the water and sludge two-phase mixture model.
[0077] Set the sludge concentration sampling point location and sampling frequency in the controlDict file. The sampling point location is the surface supernatant, and the sampling frequency is 1 minute. After the mode is run, the supernatant effluent sludge concentration change data over time can be output.
[0078] According to an embodiment of the present invention, a system for simulating the movement of two-phase flow of water and sludge in a sludge thickening tank is provided, which is used to execute a method of simulating the movement of two-phase flow of water and sludge in a sludge thickening tank according to the present invention.
[0079] like Figure 3 As shown, this embodiment simulates and verifies the actual operation of the water plant sludge thickening tank from December 11 to 17, 2023. Figure 3(a) is a comparison chart of the simulated and measured values of the supernatant effluent sludge concentration from 10:00 to 11:30 on December 11, 2023; Figure 3 (b) is a comparison chart of the simulated and measured values of the supernatant effluent sludge concentration from 07:40 to 09:10 on December 12, 2023; Figure 3 (c) is a comparison chart of the simulated and measured values of the supernatant effluent sludge concentration from 21:20 to 22:50 on December 14, 2023; Figure 3 (d) is a comparison chart of the simulated and measured values of supernatant effluent sludge concentration from 16:00 to 17:30 on December 17, 2023.
[0080] By comparing the simulated value and the measured value of the supernatant effluent sludge concentration, it can be seen that the simulation effect of the present invention is better and has higher accuracy.
[0081] This embodiment uses the sample sampling surface method to obtain the water flow and sludge concentration field distribution data on a specified surface at a specified time. Figure 4 As shown, in this embodiment, the water flow and sludge concentration distribution field of half section of the sludge thickening tank are output during the verification period at 11:00 on December 11, 2023, 8:40 on the 12th, 22:20 on the 14th, and 17:00 on the 17th.
[0082] Figure 4 (a) shows the water flow and sludge concentration distribution field of half section of the sludge thickening tank at 11:00 on December 11, 2023; Figure 4 Middle (b) shows the water flow and sludge concentration distribution field of half section of the sludge thickening tank at 8:40 on December 12, 2023; Figure 4 Middle (c) shows the water flow and sludge concentration distribution field of half section of the sludge thickening tank at 22:20 on December 14, 2023; Figure 4 Middle (d) shows the water flow and sludge concentration distribution field of half section of the sludge thickening tank at 17:00 on December 17, 2023.
[0083] Depend on Figure 4 It can be seen that water flows in from the mud inlet and then flows out from the outlet. As the sludge settles at the bottom of the thickening tank, sludge accumulation occurs.
[0084] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for simulating the movement of water and sludge two-phase flow in a sludge thickening tank, characterized in that: The method comprises the following steps: S1. Select the calculation area of the sludge thickening tank and divide it into grid units; S2. Set initial conditions and boundary conditions, and set the movement parameters of water and sludge phases; S3. Establish a two-phase mixture model of water and sludge, and set the discrete format and parameters; S4. Set the calculation start time, end time and time step, and use the solver to solve the water and sludge two-phase mixture model.
2. The method according to claim 1, characterized in that: In step S1, the blockMesh or snappyHexMesh method in OpenFOAM is used to divide the selected sludge thickening tank calculation area into grid cells.
3. The method according to claim 1, characterized in that: In step S2, the parameters of initial conditions and boundary conditions that need to be set include: velocity, pressure, sludge phase volume fraction, viscosity and turbulence parameters.
4. The method according to claim 1, characterized in that In step S2, the water and sludge two-phase movement parameters include density and viscosity, and the settling velocity of the sludge.
5. The method according to claim 1, characterized in that In step S3, the equation group in the water and sludge two-phase mixture model at least includes: a continuity equation, a momentum equation and a sludge transport equation; The continuity equation is expressed as follows: Among them, ρ m is the density of water and sludge mixture; ρ m =α w ρ w +α s ρ s , α w is the volume fraction of water phase, α s is the volume fraction of sludge phase, α w +α s =1;ρ w is the density of water; ρ s is the sludge density; is the velocity of water and sludge mixture; is the gradient operator; t is the time; The momentum equation is expressed as follows: Among them, ρ m is the density of water and sludge mixture; is the velocity of water and sludge mixture; is the gradient operator; t is the time; P m for pressure; is the viscous stress tensor; is the turbulent stress tensor; is the body force; α s is the volume fraction of sludge phase; ρ s is the sludge density; ρ w is the density of water; is the sludge settling velocity; Among them, the sludge transport equation is expressed as follows: Among them, α s is the volume fraction of sludge phase; t is the time; is the gradient operator; is the velocity of the mixture of water and sludge; Γ is the diffusion coefficient; ρ w is the density of water; ρ m is the density of water and sludge mixture; is the sludge settling velocity.
6. The method according to claim 1, characterized in that In step S3, the time derivative term in the water and sludge two-phase mixture model is discretized using a first-order implicit Euler format, and the convection term is discretized using a second-order Gaussian upwind format; The pressure-velocity coupling calculation method adopts the PIMPLE algorithm.
7. The method according to claim 1, characterized in that In step S4, the time step is set to meet the CFL condition to ensure that: Coefficient Co<1, Among them, U is the fluid velocity, Δt is the time step, and Δt is the grid size in the velocity direction; The driftFluxFoam solver in OpenFOAM is used to solve the water and sludge two-phase mixture model.
8. A system for simulating the movement of two-phase flow of water and sludge in a sludge thickening tank, characterized in that: The system is used to perform the method according to any one of claims 1 to 7.
