A Finite Difference Moving Mesh Method Based On .

3y ago
38 Views
3 Downloads
631.96 KB
24 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Ronan Garica
Transcription

School of Mathematicaland Physical SciencesDepartment of Mathematics and StatisticsPreprint MPS-2014-148 May 2014A finite difference moving mesh methodbased on conservation for movingboundary problemsbyT.E. Lee, M.J. Baines and S. Langdon

A finite difference moving mesh method based on conservation formoving boundary problemsT. E. Leea,b,1 , M. J. Bainesa , S. Langdonaa Departmentof Mathematics and Statistics, University of Reading, UKInstitute, University of Oxford, UKb MathematicalAbstractWe propose a velocity-based moving mesh method in which we move the nodes so as to preservelocal mass fractions. Consequently, the mesh evolves to be finer where the solution presents rapidchanges, naturally providing higher accuracy without the need to add nodes. We use an integralapproach which avoids altering the structure of the original equations when incorporating thevelocity and allows the solution to be recovered algebraically. We apply our method to a range ofone-dimensional moving boundary problems: the porous medium equation, Richards’ equation,and the Crank-Gupta problem. We compare our results to exact solutions where possible, or toresults obtained from other methods, and find that our approach can be very accurate (1% relativeerror) with as few as ten or twenty nodes.Keywords: , Time dependent partial differential equations, Finite difference methods,Velocity-based moving meshes, Mass conservation2010 MSC: , 65M06, 92-08, 92C991. Introduction2468101214Time-dependent partial differential equations (PDEs) on moving domains, with known fluxesacross the boundaries, occur regularly in physical and biological modelling, and must often besolved numerically. The location of the moving boundary is often critical and may require specialnumerical resolution. In particular, the solution may exhibit singular behaviour at the boundarythat is challenging to capture numerically.Adaptive numerical schemes modify the mesh during the course of computation in responseto changes in the dependent variable (or its approximation) in order to achieve greater precision and/or greater efficiency. Generally, an adaptive mesh scheme becomes preferable to afixed mesh scheme when areas of interest represent only a fraction of the domain being investigated. Increasing the resolution in these areas may then be computationally less expensivethan refinement of the mesh over the entire grid. The most common form of mesh adaptivityis h-refinement adaptivity which involves repeated subdivision of the intervals of a fixed mesh.Other strategies include p-refinement, in which the solution is represented locally by higher order polynomials, and r-refinement in which the mesh points are relocated at each time step. The CorrespondingauthorEmail address: tamsin.lee@maths.ox.ac.uk ( 44)1865 611511 (T. E. Lee )Preprint submitted to Journal of Computational Applied MathematicsApril 23, 2014

e of r-refinement has been stimulated by interest in geometric integration, in particular scaleinvariance (see, e.g., [7]). For scale invariant differential equations, independent and dependentvariables are treated alike. An r-refinement method varies the solution and the mesh simultaneously, meaning that the scheme exhibits the same scale invariance as the underlying differentialequation. The article by Budd, Huang and Russell [7] and the book by Huang and Russell [14]describe many theoretical and practical aspects of r-adaptivity.In this paper a particular r-refinement adaptive scheme is described for the solution of onedimensional time-dependent PDEs on moving domains. The approach relocates a constant number of nodes by moving the mesh points, keeping a node located at each moving boundary. Weshow that a mesh with as few as ten or twenty nodes can offer a relative error of less than 1% (seeTables 1–4 in §4). The work we present here preserves mass (or relative mass as appropriate),causing the mesh to naturally refine where the solution has a high gradient. This is particularlyuseful for solutions with blow-up, or (as demonstrated here) infinite slope. Attractive aspects ofthe approach are that no interpolation of the boundary is required, only the moving domain needbe discretised, and the continuous movement of the mesh points allows easier inclusion of timeintegrators.Under r-refinement nodes may be relocated in many ways, according to the choice of monitor functions, and the solution is often found from a modified form of the PDE. A mesh equationis often solved simultaneously with the modified PDE so as to generate the node positions intandem with the solution, as in the Moving Mesh PDE approach [4, 13], the Moving Finite Element method of Miller [18, 19, 21], or the parabolic Monge-Ampere approach of Budd andWilliams [5, 6]. By contrast, in the method described in this paper a single time-dependent equation is solved, that of the mesh, the solution being determined algebraically from a conservationprinciple. The approach is a finite difference version of the velocity-based moving mesh finiteelement scheme described by Baines, Hubbard and Jimack in [1], in which the mesh equationis based upon conserving a proportion of the total integral (mass) of the dependent variable inthe domain. The method in [1] differs from methods depending on the technique of equidistribution [4, 13, 5, 6] since equidistribution is not an integral part of the strategy, but is related to theDeformation method of Liao and co-workers [16, 17] and to the Geometric Conservation Law(GCL) method of Cao, Huang and Russell [8]. The scheme described herein has been appliedto a specific tumour growth problem in [15]. Here we generalise the approach to a wider classof problems, provide key implementation details, and show numerical results for three differentnonlinear diffusion problems, each example demonstrating a key feature absent from the problemin [15]. Moreover, we validate our results via comparison with known exact solutions and withresults from other (unrelated) approaches.The layout of the paper is as follows. In §2 we describe the conservation approach, and itsfinite difference implementation. First, in §2.1, we consider mass conserving problems. Thenin §2.2 these ideas are extended to non mass-conserving problems using a normalisation technique. In §3 the schemes are applied to three moving boundary problems, beginning in §3.1 witha mass-conserving problem governed by the porous medium equation (PME) (see, e.g., [24]), forwhich we consider a symmetrical test problem, treated with just one moving boundary. In §3.2the method is applied to a test problem governed by Richards’ equation (see [23]). This problem also conserves global mass but the test problem considered is unsymmetrical, so there aretwo moving boundaries. The third problem, detailed in §3.3, is known as the Crank-Gupta ordiffusion-absorption problem [9], for which global mass is not conserved. We solve the CrankGupta problem for two sets of boundary data, one corresponding to that of the original problem(see [9]), and the other chosen so that we can easily verify our results against a known exact2

646668solution. Numerical results for all our examples are provided in §4, and some conclusions arepresented in §5.We remark finally that our investigation is confined to initial-boundary-value problems forwhich the solution u(x, t) is one-signed in the interior of the domain, which is sufficient for thevalidity of the method.2. Conservation-based moving mesh methodsLet u(x, t) be a positive solution of the generic time-dependent scalar PDE u(x, t) Lu(x, t), t70t t0 , x (a(t), b(t)),where L is a purely spatial differential operator. In all of our examples we have a movingboundary at x b(t) at which we impose the following boundary conditionsu(b(t), t) 0,dbu(b(t), t) 0.dt7276(2)(3)The initial condition isu(x, t0 ) u0 (x),74(1)x (a(t0 ), b(t0 )).We introduce a time-dependent space coordinate x̃(x, t) which coincides instantaneously with thefixed coordinate x. Consider two such coordinates, x̃(x1 , t) and x̃(x2 , t), in (a(t), b(t)), abbreviatedto x̃1 (t) and x̃2 (t). The rate of change of the mass in the subinterval ( x̃1 (t), x̃2 (t)) is given byLeibnitz’ Integral Rule in the form!Z x̃2 (t)Z x̃2 (t)d u(s, t)u(s, t) ds (u(s, t)v(s, t)) ds,(4)dt x̃1 (t) t sx̃1 (t)wherev(x, t) 78d x̃dt(5)x̃ xis a local velocity. We denote the total mass byθ(t) : Zb(t)u(x, t) dx.(6)a(t)80822.1. A method based on preservation of partial massesWe begin by describing a solution method for problems that conserve the total integral (globalmass) of the solution, i.e. for which θ(t) remains constant for all t t0 . Since x̃1 (t) and x̃2 (t) arearbitrary, equation (4) demonstrates the equivalence of the Lagrangian conservation law,ddtZx̃2 (t)u(s, t) ds 0,x̃1 (t)3(7)

and the Eulerian conservation law, u(x, t) (u(x, t)v(x, t)) 0. t x84From (8) and the PDE (1) we haveLu(x, t) 86(8) (u(x, t)v(x, t)) 0, x(9)which, given u(x, t), may be regarded as an equation for the velocity v(x, t). For a unique solutionof (9), u(x, t)v(x, t) must be imposed at one point which may be thought of as an ‘anchor’ point.Integrating (9) from a(t) to x,Z xLu(s, t) ds u(x, t)v(x, t) u(a(t), t)v(a(t), t),a(t)8890where u(x, t)v(x, t) is imposed at the anchor point x a(t). The velocity v(x, t) is then given byRxu(a(t), t) v(a(t), t) a(t) Lu(s, t) ds,(10)v(x, t) u(x, t)at all interior points, since u(x, t) 0 in the interior of the domain.Our numerical method is based on the idea that points x̃(x, t) of the domain can be movedwith this velocity in a Lagrangian manner usingx̃(x, t t) x̃(x, t) t v(x, t) O( t)2 .92To recover the solution u( x̃(t), t), given x̃1 (t) and x̃2 (t), we use the conservation law (7) in theintegrated formZ94(11)x̃2 (t)u(s, t) ds c( x̃1 (t), x̃2 (t)),(12)x̃1 (t)where a(t) x̃1 (t) x̃2 (t) b(t), andc( x̃1 (t), x̃2 (t)) c( x̃1 (t0 ), x̃2 (t0 )) Zx̃2 (t0 )x̃1u0 (s) ds.(t0 )A one point quadrature approximation to (12) leads tou( x̃, t) 9698100c( x̃1 (t0 ), x̃2 (t0 )) O ( x̃) ,x̃2 (t) x̃1 (t)(13)where x̃ x̃2 (t) x̃1 (t), for all x̃ ( x̃1 , x̃2 ). Boundary conditions may be imposed on u( x̃, t) atthis stage. Examples are described in §3 below.We now define our notation. Given a time step t 0 and a fixed number N 1 of spatialnodes, choose discrete times tm m t, m 0, 1, . . ., and discretise the interval at each discretetime tm using the nodal points X mj x̃ j (tm ), j 0, 1, . . . , N, for which a(tm ) X0m X1m . . . XNm b(tm ). Also define approximations U mj u( x̃ j , tm ) and V mj v( x̃ j , tm ).4

102104Our finite difference moving mesh algorithm for mass-conserving problems is then as follows. Choose initial node positions X 0j , j 0, 1, . . . , N, with corresponding approximate solutionvalues U 0j 0, and use them to determine the approximate masses C j X 0j 1 X 0j 1 U 0j ,j 1, . . . , N 1.Then at time tm for m 1, 2, . . ., given X mj and U mj we compute X m 1and U m 1as follows:jj1061. Evaluate the interior velocities (c f. (10))V mj U0m V0m R X mjX0mLu(s, tm ) dsU mjj 1, ., N 1,,108where the integral is discretised, for example, by a trapezium rule. At the boundariesextrapolate the velocity from interior values.1102. Evolve the nodal positions X mj , j 1, . . . , N 1, in time from tm to tm 1 by the explicitEuler timestepping scheme (c f . (11))X m 1 X mj t V mj .j(14)3. Recover the solution U m 1at interior points as (c f. (13))jU m 1 j112114116118120CjX m 1j 1 X m 1j 1,j 1, ., N 1,(15)with U Nm 1 0 from (2) and U0m 1 being updated either from given boundary conditions orby extrapolation, depending on the nature of the problem (see §3).2.2. A method based on preservation of relative partial massesFor more general problems that do not conserve mass, θ(t) (defined by (6)) varies with time.Hence (7) and (8) no longer hold. We may however make use of Leibnitz’ Integral Rule appliedto the normalised function u(x, t)/θ(t), giving)!(Z x̃2 (t)Z x̃2 (t) u(s, t)1 θ̇(t)1du(s, t) ds (u(s, t)v(s, t)) u(s, t) ds,(16)dt θ(t) x̃1 (t)θ(t) x̃1 (t) t sθ(t)for all a(t) x̃1 (t) x̃2 (t) b(t), where v(x, t) is the local velocity (5) and θ̇(t) dθ/dt. Sincex̃1 (t) and x̃2 (t) are arbitrary, equation (16) shows that the Lagrangian conservation equation,()Z x̃2 (t)1du(s, t) ds 0,(17)dt θ(t) x̃1 (t)is equivalent to the generalised Eulerian conservation equation , θ̇(t) u(x, t) (u(x, t)v(x, t)) u(x, t). t xθ(t)5(18)

122We derive the velocity from this generalised form in the same manner that we used in (8). Thatis, from (18) and the PDE (1) we deriveLu(x, t) 124126Hence the velocity is given byu(a(t), t) v(a(t), t) xa(t)RLu(s, t) ds u(x, t)132Rθ̇(t) xθ(t) a(t)u(s, t) ds(20)at all interior points, since u(x, t) 0 in the interior of the domain.To evaluate θ̇ we integrate (19) from a(t) to b(t), assuming that u(x, t) and v(x, t) are continuous up to the boundary, yieldingZ b(t)hib(t)Lu(s, t) ds u(x, t)v(x, t) θ̇(t),(21)a(t)a(t)130(19)which, given u(x, t), can be regarded as an equation for v(x, t) in terms of θ(t) and θ̇(t). As before,for a unique solution u(x, t)v(x, t) must be imposed at the anchor point x a(t), so that theintegral of (19) from a(t) to x givesZ xZθ̇(t) xu(x, t)v(x, t) u(a(t), t) v(a(t), t) Lu(s, t) ds u(s, t) ds.θ(t) a(t)a(t)v(x, t) 128 (u(x, t)v(x, t)) θ̇(t) u(x, t), xθ(t)which determines θ̇ explicitly (using (3)).The points x̃(x, t) of the domain are now moved with the velocity (20) in a Lagrangian manner, again using (11), and we can also update θ usingθ(t t) θ(t) t θ̇(t) O( t)2 .To recover the solution u( x̃(t), t) we choose x̃1 , x̃2 , such that (17) holds, in which caseZ x̃2 (t)1u(s, t) ds c( x̃1 (t), x̃2 (t)),θ(t) x̃1 (t)134(22)for a(t) x̃1 (t) x̃2 (t) b(t), wherec( x̃1 (t), x̃2 (t)) c( x̃1 (t0 ), x̃2 (t0 )) 1θ(t0 )Zx̃1 (t0 )x̃1u0 (s) ds,(t0 )and thusu( x̃, t) θ(t)136138c( x̃1 (t), x̃2 (t)) O ( x̃)x̃2 (t) x̃1 (t)(23)for all x̃ ( x̃1 , x̃2 ), as in (13). Again, the boundary conditions may be imposed on u( x̃, t) at thisstage.The discretisations given in §2.1 are augmented by the additional approximations Θm θ(tm )and Θ̇m θ̇(tm ), and then our finite difference moving mesh algorithm for non mass-conserving6

140problems is as follows. Choose initial node positions X 0j with corresponding approximate solution values U 0j 0, j 1, . . . , N 1, and use them to calculate the approximate relative massesCj 142where Θ0 is given by (c f. (6))Θ0 144 1 0X j 1 X 0j 1 U 0j ,0Θ 1 X 0X j 1 X 0j U 0j U 0j 1 ,2 jusing a trapezium rule. Then at time tm for m 1, 2, . . ., given Θm , X mj and U mj we computeΘm 1 , X m 1and U m 1as follows:jj1. Evaluate the rate of change Θ̇m of the approximate total mass Θm in the form (c f. (21))Θ̇m 146ZXNmX0mLu(s, tm ) ds U Nm VNm U0m V0m ,where the integral is discretised using a trapezium rule;2. Evaluate the discrete velocity at interior points as (c f. (20)),V mj 148150152U0m V0m R X mjX0mLu(s, tm ) ds, C j Θ̇mU mj,j 1, . . . , N 1,where the integral is discretised using, for example, a trapezium rule. At the boundariesextrapolate the velocity from interior values.3. Evolve both the nodal positions X mj , j 1, . . . , N 1, and the total mass Θm from tm totime tm 1 by the explicit Euler time-stepping scheme (14) and Θm 1 Θm tΘ̇m .4. Recover the solution U mj at interior points as (c f. (23))U mj ΘmCj,X mj 1 X mj 1j 1, . . . , N 1,and at j 0, j N as in Step 3 of the algorithm of §2.1.1543. Examples156In this section we apply the methods outlined in §2 to some specific moving boundary problems in one-dimension.7

1581601621643.1. The Porous Medium EquationThe PME is the simplest nonlinear diffusion problem which arises in a physically naturalway, describing processes involving fluid flow, heat transfer or diffusion. It also occurs in mathematical biology and other fields [24]. We assume the initial data is symmetrical about its centreof mass, taken to be the origin, in which case the PME takes the form! n u u u,t t0 , x ( b(t), b(t)), t x xwith u( b(t), t) u(b(t), t) 0 and u( b(t), t)db/dt 0. For this problem the total mass (6) isconserved and the centre of mass is fixed in time [24], from which it follows that the solutionretains the symmetry of the initial data for all time. We therefore model only half of the region,i.e. x(t) [0, b(t)], with a(t) 0 as the anchor point for all t. For the half problem we have u 0 x166168170172x 0,(24)by symmetry. From (10) the velocity is given by!Z x1 u 1 (un )n uv(x, t) u(s, t)ds un 1 ,u(x, t) 0 s s xn xt t0 , x [0, b(t)). (25)Given X mj and U mj , j 0, 1, . . . , N, m 0, 1, 2, . . ., the finite difference algorithm of § 2.1 isused to calculate the velocity V mj at each node j, j 0, 1, . . . , N, then the new nodal positionsX m 1, and finally the approximate solution U m 1. A standard discretisation of the velocity (25)jjat interior nodes is m nm n 1 (U j 1 ) (U j 1 ) mV j j 1, 2, ., N 1, ,nX mj 1 X mj 1 which, although of second order on a uniform mesh, is only a first order discretisation on a nonuniform mesh. An approximation which is second order on a non-uniform mesh (i.e. exact forquadratics) uses all three values U mj 1 , U mj and U mj 1 , and is 1 m (U jmm )n X j1 X jV mj 1n m X j174atwhere1 X mj1 X mj (U jm )n X mj , j 1, 2, ., N 1,(26) (·) j (·) j 1 (·) j and (·) j (·) j (·) j 1176178180(see [21]). We note that equation (26) is an inversely weighted sum, or linear interpolation, ofthe gradients (U mj )n / X mj . The velocity at x 0 is zero and at the moving boundary x XNmthe velocity VNm is extrapolated by a polynomial approximation using three adjacent points. Thenew mesh is obtained at time tm 1 tm t by the explicit Euler time-stepping scheme (14).The updated approximate solution U m 1is given by (15), j 1, . . . , N 1. At j 0 thejm 1approximate solution U0 is calculated using (26) with X 1 X1 , approximating the boundarycondition (24). At the outer boundary, U Nm 1 0 from (2). Results are presented in §4.8

1821841861881903.2. Richards’ EquationRichards’ equation is a nonlinear PDE which models the movement of moisture in an unsaturated porous medium [23]. In the present paper we model a particular form of Richards’equation, where the solution describes liquid flowing downwards through an unsaturated porousmedium, making it applicable to the tracking of a contaminated liquid. The equation is of theform! u un n 2 uu ,t t0 , x (a(t), b(t)),(27) t x x xfor some integer n 2, with u(a(t), t) u(b(t), t) 0 and u( a/ t) u( b/ t) 0 at theboundaries. The total mass is again conserved in time [23]. The velocity is given by (10) withLu defined as the right-hand side of (27),v(x, t) un 3In a similar way to (26) we discretise (28) as 1 m (U jmm)n 2 1 m (U jmm)n 2 X j X j X j 1 X j (U mj )n 1 ,V mj 11 n 2 m m X Xj1921941961982001 (un 2 ) u un 1 un 1 . xn 2 x(28)j 1, . . . , N 1.jAgain, the outer boundary velocities V0m , VNm are extrapolated from interior points, using threeadjacent nodes. The new mesh X m 1is obtained from V mj by an explicit Euler time-steppingjscheme, as in (14). The updated approximate solution U m 1, j 1, . . . , N 1, is given by (15),jand at the boundaries U0m 1 Unm 1 0. Results for this example are shown in §4.3.3. The Crank-Gupta problemThe Crank-Gupta problem was derived to model the diffusion of oxygen through an absorbing tissue [9], but also applies within the Black-Scholes framework of financial modelling due tothe valuation of an American option being a similar free boundary problem [11].The differential

A finite di fference moving mesh method based on conservation for moving boundary problems T. E. Leea,b,1, M. J. Bainesa, S. Langdona aDepartment of Mathematics and Statistics, University of Reading, UK bMathematical Institute, University of Oxford, UK Abstract We propose a velocity-based moving mesh method in which we move the nodes so as to preserve

Related Documents:

Figure 3.5. Baseline finite element mesh for C-141 analysis 3-8 Figure 3.6. Baseline finite element mesh for B-727 analysis 3-9 Figure 3.7. Baseline finite element mesh for F-15 analysis 3-9 Figure 3.8. Uniform bias finite element mesh for C-141 analysis 3-14 Figure 3.9. Uniform bias finite element mesh for B-727 analysis 3-15 Figure 3.10.

Western White 4869-60 Western Tan 4870-60 Gold Alchemy ‡4861K-07‡ Silver Alchemy 4860K-07 Pewter Brush 4779-60 Antique Brush 4823-60 Grey Mesh 4877-38 Soft Gold Mesh 4911-38 Pewter Mesh 4878-38 Steel Mesh 4879-38 Carbon Mesh 4880-38 Copper Mesh 4881-38 Sheer Mesh 4876-38 Desert Zep

Filtrexx Blower Truck Mesh The mesh you choose matters. Filtrexx Mesh Netting is the original compost sock mesh for field installation with blower trucks or track machines. Reliable and durable, multiple mesh types ensure the right fit for your job. BLOWER TRUCK MESH SEDIMENT CONTROL BASIC Blower Truck Mesh

problem is to use a multi-size mesh. The computation domain is first divided into subdomains. The mesh size is uniform in each subdomain but changes from subdomain to subdomain. Figure 1 shows a typical multi-size mesh. In this case, the mesh size changes by a factor of 2 across the mesh-size-change interface. A factor of 2 change in the mesh .

Mesh Polypropylene Monofilament Mesh Polyester Multifilament Mesh Flow Rates of Filter Bags Material Used Micron Rating Flow Rate (GPM) Felt 1 & 3 80 GPM/#2 BAG Felt 5 THRU 200 120 GPM/#2 BAG Mesh 1, 3, 5 & 100 100 GPM/#2 BAG Mesh 25 THRU 100 125 GPM/#2 BAG Mesh 150 THRU 800 150 GPM/#2 BAG Microfiber 1A and 2A 60 GPM/#2 BAG

A Robust Moving Mesh Finite Volume Method applied to 1D Hyperbolic Conservation Laws from Magnetohydrodynamics A. van Dam , P.A. Zegeling Mathematical Institute, Utrecht University, P.O. Box 80.010, 3508 TA Utrecht, The Netherlands Abstract In this paper we describe a one-dimensional adaptive moving mesh method and its

Finite element mesh and boundary conditions 9. The finite element mesh and the displace-ment boundary conditions are shown in Fig. 3. '-The idealized geometry (see Fig. 1) is symmetri- I cal about the centre line, so the mesh represents one-half of the cross-section through the tunnel. ;', The lower horizontal boundary to the mesh was

Dictator Adolf Hitler was born in Branau am Inn, Austria, on April 20, 1889, and was the fourth of six children born to Alois Hitler and Klara Polzl. When Hitler was 3 years old, the family moved from Austria to Germany. As a child, Hitler clashed frequently with his father. Following the death of his younger brother, Edmund, in 1900, he became detached and introverted. His father did not .