CN110008526B - Source-item-containing shallow water flow simulation method based on large time step format - Google Patents
Source-item-containing shallow water flow simulation method based on large time step format Download PDFInfo
- Publication number
- CN110008526B CN110008526B CN201910190895.2A CN201910190895A CN110008526B CN 110008526 B CN110008526 B CN 110008526B CN 201910190895 A CN201910190895 A CN 201910190895A CN 110008526 B CN110008526 B CN 110008526B
- Authority
- CN
- China
- Prior art keywords
- unit
- state
- shallow water
- water flow
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 title claims abstract description 65
- 238000000034 method Methods 0.000 title claims abstract description 18
- 238000004088 simulation Methods 0.000 title claims abstract description 14
- 238000004364 calculation method Methods 0.000 claims abstract description 13
- 238000010187 selection method Methods 0.000 claims description 4
- 238000011144 upstream manufacturing Methods 0.000 claims description 4
- 238000007689 inspection Methods 0.000 claims 1
- 230000010355 oscillation Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000007788 liquid Substances 0.000 description 1
- 238000013178 mathematical model Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域technical field
本发明属于浅水动力学技术领域,是一种计算效率高、结果收敛性好的基于大时间步长格式的含源项浅水流动模拟方法。The invention belongs to the technical field of shallow water dynamics, and is a method for simulating shallow water flow with source items based on a large time step format with high calculation efficiency and good result convergence.
背景技术Background technique
浅水流动是指水平运动尺度远大于垂直运动尺度的流动,其特征为垂向流速及加速度可忽略,从而水压力接近静压分布,有自由液面,以重力为主要驱动力。通常河道里的水流运动可以认为是浅水流动。Shallow water flow refers to the flow whose horizontal movement scale is much larger than the vertical movement scale. It is characterized by negligible vertical flow velocity and acceleration, so that the water pressure is close to the static pressure distribution, there is a free liquid surface, and gravity is the main driving force. Usually the water movement in the channel can be regarded as shallow water flow.
浅水方程是水力学中描述浅水流动的重要数学模型。因此对浅水流动状态的模拟主要通过求解浅水方程实现。Shallow water equation is an important mathematical model to describe shallow water flow in hydraulics. Therefore, the simulation of the shallow water flow state is mainly realized by solving the shallow water equation.
浅水方程属于偏微分方程,难以直接求解。目前对于此类方程的数值模拟,是先求取离散后相邻单元间界面处的黎曼解,然后对界面两边的两个单元进行更新。然而,由于受到CFL条件的限制,此方法计算效率低下。The shallow water equation is a partial differential equation, which is difficult to solve directly. At present, the numerical simulation of this type of equation is to obtain the Riemann solution at the interface between adjacent units after discretization, and then update the two units on both sides of the interface. However, due to the limitation of CFL conditions, this method is computationally inefficient.
为提高计算效率,业界提出考虑采用模拟非线性双曲型偏微分方程的大时间步长格式,通过改变原有的更新方法,突破了CFL数限制,使得计算效率得到了极大提升。In order to improve the calculation efficiency, the industry proposes to consider the use of a large time step format for simulating nonlinear hyperbolic partial differential equations. By changing the original update method, the limitation of the number of CFLs is broken, and the calculation efficiency is greatly improved.
然而,这种方法在应用大时间步长格式对单波所经历单元进行更新时,大时间步长格式中单波在一个时间步长内会穿过多个单元,对最后一个单元的处理不当会得到违熵解,在平台处会出现振荡,从而使得大时间步长格式的浅水方程难以准确描述浅水流动状态,限制了其在确定浅水流动中的应用。However, when this method uses a large time step format to update the units experienced by a single wave, in the large time step format, a single wave will pass through multiple units in one time step, and the last unit is not properly processed Violating entropy solutions will be obtained, and oscillations will occur at the platform, which makes it difficult for the shallow water equation with a large time step format to accurately describe the shallow water flow state, which limits its application in determining shallow water flow.
发明内容Contents of the invention
本发明的目的在于提供一种基于大时间步长浅水方程的含源项浅水流动确定方法,计算效率高、结果收敛性好。The purpose of the present invention is to provide a method for determining shallow water flow with a source term based on a shallow water equation with a large time step, which has high calculation efficiency and good convergence of results.
实现本发明目的的技术解决方案为:The technical solution that realizes the object of the present invention is:
一种基于大时间步长格式的含源项浅水流动模拟方法,包括如下步骤:A method for simulating shallow water flow with a source term based on a large time step format, comprising the following steps:
(10)河道初始参数获取:获取河道参数,包括河道的长度、宽度,河道水流初始状态,包括初始时刻水深、流速、上游进口流量和下游水位;(10) Acquisition of initial parameters of the river course: acquisition of river course parameters, including the length and width of the river course, the initial state of the river flow, including the initial water depth, flow velocity, upstream inlet flow and downstream water level;
(20)河道单元划分:将河道沿长度方向划分为多个单元,并将河道水流初始状态作为每个河道单元内状态值,河道总长度除以河道单元个数得到每个河道单元长度;(20) River course unit division: the river course is divided into multiple units along the length direction, and the initial state of river flow is used as the state value in each river course unit, and the total length of the river course is divided by the number of river course units to obtain the length of each river course unit;
(30)河道单元浅水流动模拟:根据河道单元内状态,计算单元间状态,根据单元间状态,更新河道单元内状态,得到每一个河道单元下一时刻浅水流动状态;(30) River unit shallow water flow simulation: Calculate the inter-unit state according to the state in the river unit, update the state in the river unit according to the inter-unit state, and obtain the shallow water flow state of each river unit at the next moment;
(40)收敛性判断:将下一时刻浅水流动状态与上一时刻浅水流动状态进行比较,当误差满足收敛阈值时,结束模拟;否则,将下一时刻浅水流动状态设为上一时刻浅水流动状态,转至(30)单元间状态计算步骤。(40) Convergence judgment: compare the shallow water flow state at the next moment with the shallow water flow state at the previous moment, and when the error meets the convergence threshold, the simulation ends; otherwise, set the shallow water flow state at the next moment as the shallow water flow at the previous moment state, go to (30) inter-unit state calculation step.
本发明与现有技术相比,其显著优点为:Compared with the prior art, the present invention has the remarkable advantages of:
1、结果收敛性好:由于采用了固定选择法,增大了数值粘性,抑制了震荡,得到较好的收敛效果。1. The result has good convergence: due to the use of the fixed selection method, the numerical viscosity is increased, the oscillation is suppressed, and a better convergence effect is obtained.
2、计算效率高:本发明采用大时间步长格式对界面两侧的多个单元同时进行更新,突破了CFL条件的限制,极大提高了计算效率。2. High computational efficiency: the present invention uses a large time step format to simultaneously update multiple units on both sides of the interface, breaking through the limitation of CFL conditions and greatly improving computational efficiency.
下面结合附图和具体实施方式对本发明作进一步的详细描述。The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
附图说明Description of drawings
图1为本发明基于大时间步长格式的含源项浅水流动模拟方法的主流程图。Fig. 1 is the main flow chart of the method for simulating shallow water flow with source term based on the large time step format of the present invention.
图2为河道初始水位及河底高程。Figure 2 shows the initial water level and bottom elevation of the river.
图3为收敛解计算值与真解比较图。Figure 3 is a comparison chart between the calculated value of the converged solution and the true solution.
图4为图1中河道单元浅水流动模拟步骤的流程图。Fig. 4 is a flow chart of the steps of simulating the shallow water flow of the channel unit in Fig. 1 .
图5为图4中单元内状态更新步骤的流程图。FIG. 5 is a flow chart of the steps of updating the status within the unit in FIG. 4 .
图6为单波穿过多个单元示意图。Fig. 6 is a schematic diagram of a single wave passing through multiple units.
图7为按照本发明方法计算得到的结果。Fig. 7 is the result calculated according to the method of the present invention.
具体实施方式Detailed ways
如图1所示,本发明基于大时间步长格式的含源项浅水流动模拟方法,包括如下步骤:As shown in Figure 1, the method for simulating shallow water flow with source items based on the large time step format of the present invention includes the following steps:
(10)河道初始参数获取:获取河道参数,包括河道的长度、宽度,河道水流初始状态,包括初始时刻水深、流速、上游进口流量和下游水位;(10) Acquisition of initial parameters of the river course: acquisition of river course parameters, including the length and width of the river course, the initial state of the river flow, including the initial water depth, flow velocity, upstream inlet flow and downstream water level;
实施例选取一个长为25m的等宽渠道,河底高程纵向(沿z方向)相等,沿x方向分布如图2所示,其函数式满足如下关系:The embodiment selects a channel with a length of 25m, the vertical height of the river bottom (along the z direction) is equal, and the distribution along the x direction is shown in Figure 2, and its functional expression satisfies the following relationship:
在初始时刻,水位统一为为0.33m,如图2所示。上游进口流量为0.18m3/s不变,下游出口水位0.33m不变,图2中的水面曲线会发生变化,最终会变成图3中的样子。At the initial moment, the water level is uniformly 0.33m, as shown in Figure 2. The flow rate at the upstream inlet is 0.18m 3 /s, and the water level at the downstream outlet is 0.33m. The water surface curve in Figure 2 will change, and finally it will become what it is in Figure 3.
(20)河道单元划分:将河道沿长度方向划分为多个单元,并将河道水流初始状态作为每个河道单元内状态值,河道总长度除以河道单元个数得到每个河道单元长度;(20) River course unit division: the river course is divided into multiple units along the length direction, and the initial state of river flow is used as the state value in each river course unit, and the total length of the river course is divided by the number of river course units to obtain the length of each river course unit;
实施例将河道分成250个单元,每个单元长度为0.1m。算得每个单元的流速u1,u2…,u250,以及水深h1,h2,…,h250。由公式(1)可知,当x小于8或者大于12时:Embodiment The river course is divided into 250 units, each unit length is 0.1m. Calculate the flow velocity u 1 , u 2 ..., u 250 and water depth h 1 , h 2 , ..., h 250 of each unit. From the formula (1), when x is less than 8 or greater than 12:
当x介于8到12时:When x is between 8 and 12:
(30)河道单元浅水流动模拟:根据河道单元内状态,计算单元间状态,根据单元间状态,更新河道单元内状态,得到每一个河道单元下一时刻浅水流动状态;(30) River unit shallow water flow simulation: Calculate the inter-unit state according to the state in the river unit, update the state in the river unit according to the inter-unit state, and obtain the shallow water flow state of each river unit at the next moment;
如图4所示,所述(30)河道单元浅水流动模拟步骤包括:As shown in Figure 4, the (30) channel unit shallow water flow simulation steps include:
(31)单元间界面状态计算:根据河道单元内状态,对每两个相邻河道单元的Roe平均值进行特征化,得到河道单元间界面波速和波强,并根据CFL值确定时间步长;(31) Calculation of the state of the interface between units: according to the state of the channel unit, the Roe average value of every two adjacent channel units is characterized to obtain the wave velocity and wave intensity of the interface between the channel units, and the time step is determined according to the CFL value;
(311)在每段之间的界面上做Roe平均,比如图6中的界面,第i-1单元在左边,第i单元在右边,分别用L和R表示。那么对于界面:(311) Do Roe average on the interface between each segment, such as in Figure 6 In the interface, the i-1th unit is on the left, and the i-th unit is on the right, denoted by L and R respectively. then for interface:
(312)计算波速和波强。界面处发出两个波,其波速分别为:(312) Calculate wave speed and wave intensity. Two waves are emitted from the interface, and their wave speeds are:
波强为:The wave strength is:
其中:in:
(32)单元内状态更新:根据单元间界面波速和波强,采用固定选择法,对单元内状态加以更新,得到下一时刻浅水流动状态;(32) Update the state in the unit: according to the wave velocity and wave intensity of the interface between the units, the fixed selection method is used to update the state in the unit to obtain the shallow water flow state at the next moment;
如图5所示,所述(32)单元内状态更新步骤包括:As shown in Figure 5, the state update step in the (32) unit includes:
(321)计算波及单元个数:将单元间界面波速乘时间步长,除以单元长度,得到值a,其整数部分为b;(321) Calculate the number of affected units: multiply the inter-unit interface wave velocity by the time step, and divide it by the unit length to obtain the value a, whose integer part is b;
比如图6中,在界面,由公式(6)可知,这个界面会发出速度一大一小两个波,取其中一个大的波速为λ2为例,假如算得:For example, in Figure 6, in The interface, as can be seen from the formula (6), this interface will emit two waves with a velocity of one large and one small, and take the velocity of one of the large waves as λ2 as an example, if it is calculated:
那么a的值为2.5,b的值为2。Then the value of a is 2.5 and the value of b is 2.
(322)完整波及单元波速更新:当单元间界面波速大于0时,表示波向右传播,将单元界面右侧b个单元都加上一个波强;当单元间界面波速小于0时,表示波向左传播,将单元界面左侧b个单元都加上一个波强;图6的例子中对界面右边2个单元(i单元和i+1单元)更新方法为:(322) Complete wave and unit wave velocity update: when the wave velocity of the inter-unit interface is greater than 0, it means that the wave propagates to the right, and a wave intensity is added to the b units on the right side of the unit interface; when the wave velocity of the inter-unit interface is less than 0, it means that the wave Propagate to the left, and add a wave intensity to the b units on the left side of the unit interface; in the example in Figure 6, the update method for the two units on the right side of the interface (unit i and unit i+1) is:
Un+l=Un+ΔU (13)U n+l =U n +ΔU (13)
(323)部分波及单元波速更新:对于部分波及的第b+1个单元,设定一个介于0到1之间的数值,如果|a-b|小于这个数值,则第b+1个单元保持不变,如果|a-b|大于或等于这个数值,则该单元加上一个波强。(323) Update the wave velocity of partially affected units: for the b+1th unit partially affected, set a value between 0 and 1, if |a-b| is less than this value, then the b+1th unit remains unchanged If |a-b| is greater than or equal to this value, a wave intensity is added to the unit.
图6的例子中,对界面右边第b+1个单元也就是第3个单元(i+2单元)的更新方法如下:In the example in Figure 6, the update method for the b+1th unit on the right side of the interface, which is the third unit (i+2 unit), is as follows:
|a-b|为0.5,设定一个介于0到1之间的数(本例取0.9),0.5小于0.9,因此第3个单元保持不变。|a-b| is 0.5, set a number between 0 and 1 (0.9 in this example), 0.5 is less than 0.9, so the third unit remains unchanged.
(33)界面遍历检验:判断该内部状态更新单元的界面是否为最后一个界面,如否,转至(31)步骤,如是,结束本过程。(33) Interface traversal check: judge whether the interface of the internal state updating unit is the last interface, if not, go to step (31), if yes, end this process.
(40)收敛性判断:将下一时刻浅水流动状态与上一时刻浅水流动状态进行比较,当误差满足收敛阈值时,结束模拟;否则,将下一时刻浅水流动状态设为上一时刻浅水流动状态,转至(30)单元间状态计算步骤。(40) Convergence judgment: compare the shallow water flow state at the next moment with the shallow water flow state at the previous moment, and when the error meets the convergence threshold, the simulation ends; otherwise, set the shallow water flow state at the next moment as the shallow water flow at the previous moment state, go to (30) inter-unit state calculation step.
计算结果如图7所示。从计算结果可以看出,由于采取了采用了固定选择法,增大了数值粘性,抑制了震荡;同时,由于采用大时间步长格式对界面两侧的多个单元同时进行更新,突破了CFL条件的限制,极大提高了计算效率。The calculation results are shown in Figure 7. It can be seen from the calculation results that due to the adoption of the fixed selection method, the numerical viscosity is increased and the oscillation is suppressed; at the same time, due to the use of a large time step format to update multiple units on both sides of the interface at the same time, it breaks through the CFL The limitation of conditions greatly improves the calculation efficiency.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910190895.2A CN110008526B (en) | 2019-03-14 | 2019-03-14 | Source-item-containing shallow water flow simulation method based on large time step format |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910190895.2A CN110008526B (en) | 2019-03-14 | 2019-03-14 | Source-item-containing shallow water flow simulation method based on large time step format |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110008526A CN110008526A (en) | 2019-07-12 |
CN110008526B true CN110008526B (en) | 2023-04-07 |
Family
ID=67167008
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910190895.2A Active CN110008526B (en) | 2019-03-14 | 2019-03-14 | Source-item-containing shallow water flow simulation method based on large time step format |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110008526B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101487846B1 (en) * | 2014-01-24 | 2015-02-02 | 서울대학교산학협력단 | Method for analyzing 2D shallow water flow through assignment of wetting/drying condition using critical drying depth method |
CN108229083A (en) * | 2018-04-11 | 2018-06-29 | 南京航空航天大学 | A kind of Flow Numerical Simulation method based on improved finite difference scheme |
CN108256177A (en) * | 2017-12-28 | 2018-07-06 | 中国水利水电科学研究院 | A kind of parameter optimization method and system of river Water-sand model |
-
2019
- 2019-03-14 CN CN201910190895.2A patent/CN110008526B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101487846B1 (en) * | 2014-01-24 | 2015-02-02 | 서울대학교산학협력단 | Method for analyzing 2D shallow water flow through assignment of wetting/drying condition using critical drying depth method |
CN108256177A (en) * | 2017-12-28 | 2018-07-06 | 中国水利水电科学研究院 | A kind of parameter optimization method and system of river Water-sand model |
CN108229083A (en) * | 2018-04-11 | 2018-06-29 | 南京航空航天大学 | A kind of Flow Numerical Simulation method based on improved finite difference scheme |
Non-Patent Citations (1)
Title |
---|
浅水流动的大时间步长格式及其在沙坝模拟中的应用;许仁义;《博士电子期刊》;20150715;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110008526A (en) | 2019-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4216117B1 (en) | Method and apparatus for training water-and-sediment prediction model for reservoir and method and apparatus for predicting water-and-sediment in reservoir | |
Kang | Characteristics of flow over two circular cylinders in a side-by-side arrangement at low Reynolds numbers | |
CN105677964B (en) | A kind of valve flow coefficient computational methods based on CFD emulation and mesh adaption | |
CN103353908B (en) | A kind of pipe resistance coefficient Method for Accurate Calculation based on numerical computations | |
Balakumar et al. | Stability of hypersonic boundary layers on a cone at an angle of attack | |
CN111079228B (en) | An aerodynamic shape optimization method based on flow field prediction | |
CN103729505B (en) | CFD (computational fluid dynamics) based method for computing equivalent length of valve | |
CN104036095B (en) | A Fast Algorithm for Coupling High-Precision Complicated Flow Field Based on Domain Decomposition | |
CN106372320B (en) | Method for performing large vortex simulation on highway tunnel turbulence by adopting sub-filtering scale model | |
CN105465037B (en) | The hydraulic optimization method and device of a kind of impeller for double suction centrifugal pump | |
CN110929457A (en) | A Numerical Prediction Method of Dipole Source Noise for Driving on Water Roads | |
CN107748823A (en) | A kind of tack orifice plate cavitation inception number determines method | |
CN103737877A (en) | Calculating method of plastic injection moulding technological window | |
CN116698141A (en) | Method and system for correcting speed measurement error of ultrasonic flowmeter under different working conditions | |
CN104239625A (en) | A Steady-state Solving Method Based on Linear Iteration of Modified Fluid Motion Equation | |
Yin et al. | Large eddy simulation of cloud cavitation and wake vortex cavitation around a trailing-truncated hydrofoil | |
Wang | Application of HEC-RAS model in simulation of water surface profile of river | |
CN110008526B (en) | Source-item-containing shallow water flow simulation method based on large time step format | |
Wang et al. | Scale effects on bow wave breaking of KCS ship model: Insights from DDES investigations | |
CN114485863B (en) | Flow error correction method, system, computer and medium for ultrasonic water meter | |
CN102722661B (en) | Forecasting method of micro-pressure waves at tunnel exit when high-speed train passes through long tunnel | |
CN102750414B (en) | A kind of method verifying centrifugal pump mesh quality and computational accuracy relation | |
Yang et al. | Large‐eddy simulation of separated leading‐edge flow in general co‐ordinates | |
CN116595745B (en) | High-precision capture method of strong impact material interface based on particle level set | |
CN117763931A (en) | Complex geometric model particle discrete method, system and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |