[PDF] Adaptive implicit finite difference method for natural gas pipeline





Previous PDF Next PDF



Differences in Difference and Randomized Experiment

impact evaluation methods: Difference-in-Difference and. Randomized Experiments. ? Outline: 1. Back to the selection bias. 2. Solving the selection bias with a 



Chapter 6 - The finite difference method

The finite difference approximations for derivatives are one of the simplest and of the oldest methods to solve differential equations.



Program Evaluation and the Difference in Difference Estimator - 1

permanent differences between treatment and control) The assumptions we need for the difference in difference estimator to be correct are given by the ...



Session III Estimation en Doubles Différences (Diff- in-diff) et

Contenu de cette session. • Quand utilisons-nous la méthode des doubles différences? (Diff –in- diff ou DD). • Stratégie d'estimation : un peu de théorie.



Adaptive implicit finite difference method for natural gas pipeline

Abstract. The implicit finite difference method is one of the most widely applied methods for transient natural gas simulation.



Quasi experimental methods: Difference in differences

24 mars 2010 While using non experimental data to infer causal relationships we must think through sample selection and omitted variables bias.



Impact Evaluation Methods

9 avr. 2012 Simple Difference c. Differences-in-Differences d. Multivariate Regression e. Statistical Matching f. Instrumental Variables.



Differences-in-Differences

Difference in differences (DID). Estimation step-by-step. * Estimating the DID estimator (using the hashtag method no need to generate the interaction).



Impact evaluation using Difference-in-Differences

Based on a combination of before-after and treatment-control group comparisons the method has an intuitive appeal and has been widely used in economics



How D-I-D you do that? Basic Difference-in-Differences Models in

We include a brief discussion of more advanced D-I-D methods and present an example of a real-world analysis using data from a study on the impact of 



5 Difference in Differences - Home Scholars at Harvard

5) Difference-in-Differences (cf “Mostly Harmless Econometrics” chapter 5) Often there are reasons to believe that treated and untreateddiffer in unobservable characteristics that are associated topotential outcomes even after controlling for differences inobserved characteristics



Module 25: Difference in Differences Designs

Relative to these methods we find both theoretically and empirically that this "synthetic difference in differences" estimator has desirable robustness properties and that it performs well in settings where the conventional estimators are commonly used in practice



Quasi experimental methods: Difference in differences - CEGA

difference?in?difference (takingintoaccountpre? existingdifferences betweenT&Candgeneral timetrend) In 1957 1 Mississippiamendeditsmarriagelaw Raisedminimumageformenandwomen Introducedparentalconsentlaws Proofofagebloodtestsotherrestrictions How canwe figureouttheimpact of thismarriage outcomessuchas Marriages Fertility Education 2



Introduction to Difference in Differences (DID) Analysis

• Difference-in-Differences (DID) analysis is a useful statistic technique that analyzes data from a nonequivalence control group design and makes a casual inference about an independent variable (e g an event treatment or policy) on an outcome variable • The analytic concept of DID is very easy to comprehended within the framework



Module 25: Difference in Differences Designs - edX

In this module we cover the popular quasi- or non-experimental method of Difference-in-Differences (DID) regression which is used to estimate causal effect – under certain assumptions – through the analysis of panel data DID is typically used when randomization is not feasible

What is difference-in-differences regression?

In this module, we cover the popular quasi- or non-experimental method of Difference-in- Differences (DID) regression, which is used to estimate causal effect – under certain assumptions – through the analysis of panel data. DID is typically used when randomization is not feasible.

What is difference-in-differences analysis?

Difference-in-Differences (DID) analysis is a useful statistic technique that analyzes data from a nonequivalence control group design and makes a casual inference about an independent variable (e.g., an event, treatment, or policy) on an outcome variable The analytic concept of DID is very easy to comprehended within the framework of regression

What is the best book on difference-in-differences in economics?

Quarterly Journal of Economics, 119, 249-275. 2. Donald, S. G. and K. Lang (2007). “Inference with Difference-in-Differences and Other Panel Data”, Review of Economics and Statistics, 89, 221-233. 3. Gerber, Alan S., and Donald P. Green. Field experiments: Design, analysis, and interpretation. WW Norton, 2012. 4. McKinnish, T. (2000).

What is the best book on inference with difference-in-differences?

“Inference with Difference-in-Differences and Other Panel Data”, Review of Economics and Statistics, 89, 221-233. 3. Gerber, Alan S., and Donald P. Green. Field experiments: Design, analysis, and interpretation. WW Norton, 2012.

REGULARARTICLEAdaptive implicitfinite difference method for natural gas pipeline transientflow

Peng Wang

1 ,BoYu 1,* , Dongxu Han 1 , Jingfa Li 1 , Dongliang Sun 1 , Yue Xiang 2 , and Liyan Wang 2 1

Beijing Key Laboratory of Pipeline Critical Technology and Equipment for Deepwater Oil and Gas Development, Beijing

Institute of Petrochemical Technology,102617 Beijing, PR China 2

National Engineering Laboratory for Pipeline Safety, Beijing Key Laboratory of Urban Oil and Gas Distribution Technology,

China University of Petroleum, 102249 Beijing, PR China

Received: 3 June 2017 / Accepted: 20 March 2018

Abstract.The implicitfinite difference method is one of the most widely applied methods for transient natural

gas simulation. However, this implicit method is associated with high computational cost. To improve the

simulation efficiency of implicitfinite difference method, an adaptive strategy is introduced into the simulation

process. The proposed adaptivestrategy consists of the adaptive time stepstrategy and the adaptivespatial grid

strategy. And these two parts are implemented based on the local error technique and the multilevel grid

technique respectively. The results illustrate that the proposed adaptive method can automatically and

independently adjust the time step and the spatial grid system according to the gasflow state in the simulation

process, and demonstrates a significant advantage in terms of computational accuracy and efficiency compared

with the non-adaptive method.1. Introduction The simulation of natural gas transientflow plays a significant role in risk assessment and safety management of natural gas pipeline network (Karimpouret al., 2014). It has been widely studied since the 1960s, and different numerical methods have been proposed for solving the governing equations of transient gasflow in a pipeline.

These methods can be summarized as follows: the

characteristics method (Gutiérrezet al., 2002), implicit finite difference method (Helgakeret al., 2014), implicit finite volume method (Lianget al., 2013;Wanget al., 2011; Zhang, 2016),finite element method (Ebrahimzadehet al.,

2012), equivalent circuit method (Wanget al., 2014), state

space model method (Alamianet al., 2012), reduced-order method (Behbahani-Nejad and Shekari, 2010). Among these methods, the implicitfinite difference method is one of the most widely applied methods for transient natural gas simulation. Many industrial codes are developed by usingfinite difference for transientflow (Evje and Flåtten,

2005;Coquelet al., 2006;Flåtten and Munkejord, 2006;

Andrianovet al., 2007). Especially, the famous pipeline simulation software, Stoner Pipeline Simulator software (SPS) and Realpipe, are both developed by thefinite difference method (Advantica, 2007; Zhenget al., 2012).The main reason is that the time step of this method is not restricted by the spatial step (Wylieet al., 1971;Kiuchi,

1994), which is quite useful for simulating long-term

transient natural gas pipelines. However, in the implicit finite difference method, one system of large-scale nonlinear algebraic equations must be solved at each time level in the transient simulation, which impedes the computation efficiency to a certain degree (Wylieet al.,

1971). Therefore, a series of studies have been devoted to

improving the efficiency of the implicitfinite difference method.

The governing equations of transient gasflow are

nonlinear hyperbolic partial differential equations, which leads to nonlinear algebraic equations. In the early stage of natural gas pipeline simulation studies, the convective inertia term (nonlinear term) of the governing equations was ignored directly to improve the efficiency of simulation (Wylieet al., 1971;Kiuchi, 1994). However, this process could reduce the accuracy of simulation (Abbaspour and Chapman, 2008).Luskin (1979)linearized the nonlinear governing equations about the previous time step based on the Taylor expansion.Zhenget al.(2012)found that the simulation efficiency is improved by more than 5 times via the linearization process, while the calculation accuracy is almost unaffected. To further reduce the nonlinearity of equtions, the decoupled solution strategy was proposed

(Barley, 2012;Helgaker and Ytrehus, 2012). By the*Corresponding author:yubobox@vip.163.comOil & Gas Science and Technology - Rev. IFP Energies nouvelles73, 21 (2018)

©P. Wang et al., published byIFP Energies nouvelles, 2018 https://doi.org/10.2516/ogst/2018013

Available online at:

www.ogst.ifpenergiesnouvelles.fr

This isanOpenAccess article distributedunder thetermsoftheCreative CommonsAttribution License (http://creativecommons.org/licenses/by/4.0),

which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

decoupled solution strategy, the hydraulic and thermody- namic equations can be solved alternatively, and the simulation efficiency can be increased by 20%. Additional- ly,Wanget al.(2015)found that the form of hydraulic equations that takes the density and velocity as the solving variablesis themost efficient andeasiest formwhen solving hydraulic systems. And the simulation efficiency can be further improved by 1.5 times. After the above pretreat- ment of the governing equations, the nonlinear iteration process is no longer required, while the large-scale linear the coefficient matrix of discretized equations is a large sparse irregular matrix that is neither diagonally dominant nor symmetrical arranged (Wylieet al., 1971). The sparse matrix technique is recommended to efficiently solve these discretized equations (Wylieet al., 1971). However, this technique is implemented with such difficultly that it is only applied in cases that have heavy computational burdens, such as the simulation of large-scale natural gas pipeline network (Zhenget al., 2012). In recent years,

Madoliatet al.(2016)proposed an approach based on

intelligent algorithms, such as Particle Swarm Optimiza- tion (PSO). It converges over 200 times faster than the traditional elimination algorithms.Wanget al.(2018)and Yuet al.(2017)proposed a fast simulation method based on the divide and conquer concept. Its simulation speed is

1.5 times higher than that of Stoner Pipeline Simulator

(SPS) software. On the basis of the above studies, the efficiency of the implicitfinite difference method for the natural gasflow simulation has been improved considerably. However, a common feature of these studies isthe use offixed time step and spatial grid. The situation may occur that a small time step and a dense spatial grid are excessively used to accurately simulated by a large time step and a sparse spatial grid. Thus, computing resources are unnecessarily wasted byusing thefixedtimestepandspatial gridsystem. Therefore, a method that can adaptively choose the time step and spatial grid according to the gasflow state and allocate computing resources on demand would further improve the simulation efficiency. The adaptive simulation method is simply one type of the above methods (Tao,

2000) and has been widely used in the simulation of various

engineering problems, for example, reservoir simulation (Jacksonet al., 2015), multiphaseflow simulation (

Pivello

et al., 2014), andflooding simulation (Ruponen, 2014). However, it is seldom adopted in natural gas pipeline simulations, and few studies have been performed on the method. Only two studies related to adaptive transient gas flow simulation have been retrieved,Tentiset al.(2003) andLianget al.(2011). The numerical results of the adaptive coarse grid are in good agreement with those of thefixedfiner uniform grid, while thefixed coarse uniform grid gave poor results. However, these two methods were both developed on the method of lines, which is a kind of explicit method. Additionally, the time step of the explicit method is restricted by the spatial step, and such a procedure would not occur in the widely used implicit method. Therefore, no adaptive simulation is built on the implicit method of natural gas pipeline.To further improve the efficiency of the implicitfinite difference method, this paper focuses on the development of an implicit adaptivefinite difference method. The adaptive implicitfinite difference method adopts two successful methods. One is the local error technique which is the basis theoreticalfor adaptive time step; the other is the multilevel grid technique which is the basis theoretical for adaptive spatial grid. Then the detailed implementation of the adaptive time step strategy and the adaptive spatial grid strategy are designed respec- tively based onflow characteristics of natural gas in pipeline.Throughthis study,the timestepand spacegrid can be adjusted intelligently at the same time in the natural gas pipeline simulation, and the computing resources can be allocated on demand. Then the large complex natural gas pipeline network can be efficient simulated by using the adaptive implicitfinite difference method. The layout of this paper is as follows:first, the main process of natural gaspipeline simulation using the implicit finite difference method is introduced. Then, an adaptive strategyforthe implicitfinitedifferencemethodsimulation process is presented. Last, numerical experiments are used to evaluate the performance of the proposed implicit adaptivefinite difference method.

2. Implicitfinite difference method

The implicitfinite difference method is briefly introduced in this section. Major elements of this method are the governing equations and discretization. More detailed process of this method can be found in reference (Zheng et al., 2012;Wanget al., 2015,2018).

2.1. Governing equations

The governing equations of a natural gas pipeline transient flow consist of the continuity equation, momentum equation and energy equation. The continuity equation and momentum equation are also called hydraulic equations, and the energy equation is also called the thermodynamic equation. These equations can be written in a general form (Sanaye and Mahmoudimehr, 2012; Zhenget al., 2012;Duanet al., 2013;Wanget al., 2015,

2018), as shown in Equation(1), and the parameters of the

general form are given inTable 1. ∂U ∂tþB?U ∂x¼Fð1Þ wherec v is the specific heat capacity at constant volume,d mis massflowrate,pis pressure,tis time,wis velocity,xis thespatialcoordinate,Aisthecross-sectional area,Disthe pipe outside diameter,Kis the total heat transfer coefficient,Tis temperature,T g is ambient temperature, pipe. Equation(1)is a nonlinear hyperbolic equation, and it can be linearized about the previous time step based on the

2 P. Wang et al.: Oil & Gas Science and Technology - Rev. IFP Energies nouvelles73, 21 (2018)

Taylor expansion as below (Wanget al., 2015,2018;Zheng et al., 2012): ∂U ∂tþ B? U ∂xþ where the (i,j) elements of matricesGandS, respectively, areG½? i;j ¼X n l¼1 ∂B ∂u j i;l ∂u l ∂x and½S? i;j ∂F i ∂u j ,u i is theith corresponding component ofU, andnequals 2 in the hydrodynamic equations and equals 1 in the thermody- namic equation.

B,G,F,SandUare calculated using the

variables of the previous time step. The boundary conditions of the natural gas pipeline simulation are always given as the pressure orflow rate at the supply and the demand, as well as the temperature at the supply, as Equations(3)-(5).

Give the pressure valuep¼pðtÞð3Þ

Give the flow rate valuem¼mðtÞð4Þ

Give the temperature valueT¼TðtÞð5Þ

2.2. Discretization

In this paper, the decoupled solution strategy (Barley,

2012;Helgaker and Ytrehus, 2012) is adopted to solve the

hydraulic and thermodynamic system. So the hydraulic equations and thermodynamic equation are discretized individually. The pipeline is divided intoNsections, and thus, there areN+1 points. Theith section is the section between theith point and the (i+1) th point.

For the hydraulic equations, at theiþ

12 ??th point, that is the middle of theith section, the time derivative term and convection term are respectively discretized by the forward difference scheme and central difference scheme (Kiuchi, 1994;Abbaspour and Chapman, 2008;Wang et al., 2015,2018). The discretization of the hydraulic equation can be written as follows: CE i ?U ni

þDW

i ?U niþ1 ¼H i

ð6Þ

where U¼ U n?1iþ1 þU n?1i 2;CE i 1 2Dt n I? 1 x iþ1 ?x i Bþ 1 2ð

G?SÞ;

DW i 1 2Dt n Iþ 1 x iþ1 ?x i Bþ 1 2ð

G?SÞ;

H i

¼FþðG?Sþ

1 Dt n

Þ?U:

For the thermodynamic equation, at theith point, the time derivative term and convection term equation are respectively discretized by the forward difference scheme and upwind scheme (Keenan, 1996;Barley, 2012). The discretization of the thermodynamic equation can be written as follows: UP i ?T ni?1

þCE

i ?T ni

þDW

i ?T niþ1 ¼H i ;ð7Þ where UP i

¼?maxw

ni ;0?? 1 x iþ1?xi CE i 1 Dt ?Sþjw ni j 1 x iþ1?xi DW i

¼?max?w

ni ;0?? 1 x iþ1 ?x i H i

¼Fþ

quotesdbs_dbs35.pdfusesText_40
[PDF] how much should we trust differences-in-differences estimates?

[PDF] difference in difference gretl

[PDF] difference in difference stata tutorial

[PDF] haptoglobine basse causes

[PDF] hyperplaquettose causes

[PDF] myélémie causes

[PDF] cours de lobbying pdf

[PDF] exemple de lobbying

[PDF] quels types d'échanges la balance des paiements permet-elle de mesurer ?

[PDF] pédagogie différenciée l école primaire

[PDF] pédagogie différenciée exemple concret

[PDF] les cinq aveugles et léléphant

[PDF] le loup et le chien question reponse

[PDF] histoire du chien frisé et de la lettre jaune

[PDF] le loup et le chien cycle 3