Adaptive finite element solution of multiscale PDE–ODE systems
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (7) MEA(막전극접합체)(15) 디스플레이 패널재료
기본 정보
- 저자
- DOI
- 10.1016/j.cma.2015.01.010
- 저널
- Computer Methods in Applied Mechanics and Engineering
- 발행년도
- 2015
- 발행기관
- Elsevier BV
- 피인용수
- 8
- 라이선스
- publisher-specific-oa
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.cma.2015.01.010
- 토픽
- Composite Material Mechanics
- OpenAlex ID
- W2050642474
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (7) MEA(막전극접합체), (15) 디스플레이 패널재료
- R&D 측면
- 분석·모델링
- 확신도
- 0.60
- 근거 용어
- multiscale model, finite element method, PDE-ODE systems, numerical error, adaptive error control
- 판단 근거
- 이 논문은 거시적(PDE) 및 미시적(ODE) 스케일이 결합된 다중 스케일 시스템을 해결하기 위한 적응형 유한요소법(Adaptive FEM) 수치 해석 모델링을 다룹니다. 이는 복합소재(23)의 미세구조-물성 관계 해석이나 연료전지(7) 내의 화학 반응-물질 전달 결합 모델링 등에 응용 가능한 수치 해석 기법입니다.
- R&D 활용 포인트
- 복합소재의 미세구조에 따른 거시적 물성 예측 모델링이나, 연료전지(PEMFC) 내의 이온 전도 및 화학 반응의 다중 스케일 시뮬레이션 정확도 향상에 활용 가능합니다.
- 평가 입력
- 본문 88,511자 중 30,032자 발췌
초록
초록이 없습니다.
본문 88,511자
본문 펼치기
섹션 본문 119문단 · 42,793자
(제목 없음)
1We consider adaptive finite element methods for solving a multiscale system consisting of a macroscale model comprising a system of reaction-diffusion partial differential equations coupled to a microscale model comprising a system of nonlinear ordinary differential equations. A motivating example is modeling the electrical activity of the heart taking into account the chemistry inside cells in the heart. Such multiscale models pose extremely computationally challenging problems due to the multiple scales in time and space that are involved.We describe a mathematically consistent approach to couple the microscale and macroscale models based on introducing an intermediate "coupling scale". Since the ordinary differential equations are defined on a much finer spatial scale than the finite element discretization for the partial differential equation, we introduce a Monte Carlo approach to sampling the fine scale ordinary differential equations. We derive goal-oriented a posteriori error estimates for quantities of interest computed from the solution of the multiscale model using adjoint problems and computable residuals. We distinguish the errors in time and space for the partial differential equation and the ordinary differential equations separately and include errors due to the transfer of the solutions between the equations. The estimate also includes terms reflecting the sampling of the microscale model. Based on the accurate error estimates, we devise an adaptive solution method using a "blockwise" approach. The method and estimates are illustrated using a realistic problem.
Introduction
2Our interest in problems consisting of a macroscale time dependent partial differential equation (PDE) coupled to a miscroscale system of ordinary differential equations (ODEs) originates in the modeling of the electrical activity in the heart. The standard macroscale model of electrical phenomena in cardiac tissue is the bidomain model proposed by Tung [1], which consists of parabolic and elliptic PDEs modeling the macroscopic potential distribution. These PDEs are derived assuming a representation of the tissue as two anisotropic media, one intracellular, which is strongly anisotropic, and one extracellular, which is weakly anisotropic. If the two media are assumed to have proportional conductivity tensors, it is possible to reduce the model to the monodomain model, consisting of a single reaction-diffusion PDE with a load depending on the solution to the ODEs.
3On the cellular level, the electrical activity may be modeled by a set of ODEs that depends on a potential determined by the solution of the PDE. Many cellular models are available, both phenomenological models that try to mimic measurements, and physiological models which are based on measurements as well as physiological theory. The latter may be very complex, involving up to hundred variables. For a review on mathematical models describing the electrical activity in the heart, see Sundnes et. al. [2] and the references therein. A space-time adaptive method can be found in Colli Franzone and coworkers [3]. A survey of heart modeling can be found in Noble [4].
4Specialized numerical methods are required for high fidelity simulation of the heart, since the heart may consist of up to 10 10 cells [2], each modeled by a set of ODEs, and it is impossible to solve the PDE on the same spatial scale as the ODEs. Moreover, determining the actual physical geometry and location of cells is itself a difficult problem. Thus, including the cellular scale phenomena in the macroscale discretization requires some form of "upscaling" or "recovery" of the information provided by the microscale modeling. This is in fact necessary if the PDE model derived using homogenization as is the case for the bidomain equations.
5Unfortunately, this subtle mathematical issue is often ignored in computational electrocardiography, where it is common to simply evaluate the ODEs in the cells located at the quadrature points of a finite element method, for example. However, this is not mathematically consistent, since caused the model to change with the PDE discretization. One consequence, for example, is that it is impossible to perform a mesh convergence study, which is the crudest form of uncertainty quantification.
6As an alternative, we create an intermediate "coupling" or "mesoscale" representation of the cellular scale physics that is used to exchange information between the macroscale and microscale. To deal with the very large number of cells, we create the mesoscale representation by sampling cells at the microscale at random and taking averages over the mesoscale cells.
7Another potential issue in such coupled systems is significant differences in the temporal scales in the different components. For example, in a system where the ODEs model chemical reactions and the PDE models global behavior such as transport, it is likely that the dynamics of the chemical systems are much faster than that of the total system. Coupled PDE-ODE systems where the ODEs describe chemical reactions and the PDE describe transport occur in applications such as the study of pollution in groundwater, surface water and the atmosphere, control theory and semiconductor simulation. To deal with this, we allow the PDE and ODE systems to employ significantly different time steps.
8Numerical solutions of such multiscale systems are invariably affected by error arising from numerous discretization effects and present significant discretization challenges in terms of obtaining a desired accuracy [5]. It is therefore critically important to accurately estimate the numerical error in computed quantities of interest and devise efficient discretization parameter selection algorithms. In this paper, we derive goal-oriented a posteriori error estimates that distinguish the relative contributions of various discretization effects, and thus provide the capability of adjusting various discretization parameters to efficiently obtain a desired accuracy. The error analysis is based on a posteriori error estimates that employ computable residuals and adjoint equations, see [6,7,8,9,10] for general information. For applications to multiscale systems, see [5,11,12,13,14,15,16]. We base the adaptive strategy on the block adaptive approach described in [17].
9The content of this paper is organized as follows: In Section 2, we formulate the multiscale model. In Section 3, we describe the discretization methods. The a posteriori error analysis is presented in Section 4. In Section 5, we describe some implementation details and the adaptive algorithm. A numerical example is presented in Section 6. The paper ends with a conclusion in Section 7.
Model description
10The nominal model problem consists of a reaction-diffusion PDE that describes macroscale behavior over a domain Ω coupled to systems of ODEs that model processes taking place inside small "cells" C that comprise the heart domain. The coupling of the macro-and micro-scale processes taking place on vastly different scales in space and time raise serious challenges for analyzing the behavior and computing solutions of the model. We first describe the original coupled system, then we describe a new system that includes a coupling mechanism that provides an avenue to address these challenges.
The original model
11The region Ω = ∪
12We model the microscale behavior using a collection of ODEs:
13where p i is a vector of length N r and u is the solution of a PDE modeling the macroscopic behavior described below. In the context of (2.1), u has the role of a parameter. We have allowed the model for the microscale behavior g i to vary with each cell. For simplicity of notation, we have assumed the same number of equations in each cell model, however this is not necessary. In order to introduce the microscale solutions of the reactants into the macroscale model, we define the piecewise constant function p(x) for x ∈ Ω,
14The macroscale model problem reads: Find u(x, t ) ∈ C 1 ((0, T ); C 2 (Ω)) such that
15where = (x) ≥ 0 > 0 is a continuous function and f and u 0 are sufficiently smooth functions. In this equation, p now plays the role of a parameter, but one that varies in space on the microscale.
Multiscale coupling
16The coupled system (2.1)-(2.2) immediately raises several issues:
17• The solutions of the microscale ODEs (2.1) vary in space on the scale of the cells. This happens both because of varying cell model and because the ODE model (2.1) depend on experimentallydetermined parameters that vary stochastically. This microscale variation introduces extremely rapid variation in the coefficient f on the scale of the macroscale PDE (2.2) along with discontinuities across cell boundaries. We would therefore have to use a spatial discretization for (2.2) that is finer than the cells while being consistent with the cell boundaries in order to achieve full order accuracy in numerical solutions.
18• The ODE system (2.1) has an extremely large dimension N C × N r , with the consequence that the solution of many systems of nonlinear ODEs are required to advance the PDE solution if we solve the microscale model (2.1) in every cell. This raises another significant computational burden.
19• At the same time, we expect to see a macroscale pattern in variations in cell type and model, which implies it is inefficient to integrate the microscale ODEs in every cell.
20To deal with these issues, we introduce a coupling scale decomposition of Ω. We assume that Ω = ∪ N ω j =1 ω j is decomposed into a set of non-overlapping regions ω i . Each ω j is comprised of a collection of cells ω j = ∪ i ∈I j C i , where I j is a subset of the indices {1, . . . , N C }. We assume the collection {I j } is non-intersecting while their union equals {1, . . . , N C }. To smooth out the cell-scale variation in the reaction model (2.1), we average the reaction solutions over ω i . We introduce a "recovery" operator R :
21where |ω j | and |C i | denote the volume of the indicated region and cell respectively. Note that i ∈I j |C i | = |ω j |. The function Rp is piecewise constant, but now varies on the coupling scale rather than the cell scale.
22One reasonable criteria to choosing the intermediate scale cells is to assume that the same reaction model g i is used for each cell C i in each coupling region ω j . We now replace the original macroscale
23Next we note that in the original formulation, p i depends implicitly on the spatial variable x (which has the role of a parameter) inside each cell. To avoid this, we introduce a projection of u into a space of functions that are constant on each cell. We let P : L 2 (Ω) → R N C be a suitably chosen projection into functions that are piecewise constant on the cells and we replace (2.1) by
24When the exact spatial location of each cell is unavailable, as often is the case, we use a projection P into the space of functions that are constant on the coupling scale domains ω j , which also produces a function that is constant on each cell.
Multirate finite element methods
25In order to derive a variational a posteriori error estimate, we write the time discretization as a finite element method for a piecewise polynomial while using a common finite element method for spatial discretization. Combined with suitable quadrature formulas, the resulting approximations match standard finite difference schemes.
Variational formulation
26To this end, we let (·, ·) X denote the inner product on L 2 (X ) on a space X with corresponding norm · X and let a(v, w) denote the bilinear form a(v, w) X = ( ∇v, ∇w) X . The subscript X is dropped when X = Ω. Furthermore, we let 〈·, ·〉 C j denote the inner product on R N r on cell C j and let 〈·, ·〉 =
27The corresponding norm is denoted by · , which is the same notation as for the L 2 -norm, but it is obvious from the context which norm is intended. Furthermore, we write the right hand side functions f and g as functions of two variables, replacing ';' with ','.
A multirate finite element method
28We solve the coupled system (2.5)-(2.4) using a discretization that allows different time steps to be used for the ODEs and the PDE. The discretization yields a nonlinear coupled system of discrete equations for the approximate solution that must be solved iteratively in practice. It is common to fix the number of iterations used for such coupled systems, which can significantly affect the properties of the resulting numerical solution. In the extreme case with no iteration, this represents a so-called explicit-implicit scheme.
29For the temporal discretization for the PDE, the time interval [0, T ] is partitioned into N subintervals 0 = t 0 < t 1 < · · · < t N = T , and we denote each subinterval by I n = (t n−1 , t n ] with length by ∆t n = t n −t n−1 . For the temporal mesh for the ODEs, each interval I n may be divided into M n subintervals by t n−1 = s 0,n < s 1,n < · · · < s M n ,n = t n , where J m,n = (s m−1,n , s m,n ] and is of length ∆s m,n = s m,n − s m−1,n . This is illustrated in Fig. 3.1. We also allow for different time steps in different cells, but the notation becomes very cumbersome so we do not indicate this. Moreover, we note that it is possible to let the individual N r ODE components have different time stepping as in [13], but this is not considered here.
30The space of polynomials of order r is denoted P r , and we discretize all the N r ODE components in the space of polynomials of degree r p , Q For the PDE, we define a triangulation T h n of Ω on each interval I n that is inconsistent with the coupling scale decomposition Ω = ∪ N ω j =1 ω j : We let T h n be hexahedral elements and let the coupling scale partition be the Voronoi tessellation defined by N ω uniformly distributed random points in Ω, i.e. each ω j is a Voronoi cell [18]. An illustration of this tessellation can be seen in Fig. 3
.2.
31Let V h n ⊂ H 1 (Ω) be the space V h n = {v(x) ∈ C (Ω) : v| K ∈ P r (K ), K ∈ T h n }. To indicate the sizes of the elements in V h n , we introduce the mesh function h K = diam(K ) for K ∈ T h n and h = max h K . The
32The functions in W r u n and Q r p n are discontinuous at time nodes, and we denote the jump across a time nodes
33Finally in order to evaluate Galerkin orthogonality, we use the following projection operators into the discrete spaces:
34Note that π u n Π n = Π n π u n : L 2 (Ω × I n ) → W r u n . The multirate finite element method now reads: For all cells in C and for each time interval n = 1, . . . , N , find P ∈ Q r p m,n for m = 1, . . . , M n such that
35where U − 0 = Π 0 u 0 . Note that if we use r p = r u = 0 with a left-hand rectangle rule for time integrals and employ a standard "lumped-mass" quadrature rule in space (trapezoidal rule on elements), then we obtain a standard difference approximation consisting of the implicit Euler in time and 5 point stencil difference scheme in space [8].
Practical discretization considerations
36There are additional considerations for discretization that are used in practice.
Evaluation of the recovery operator
37The definition of the recovery operator R in (2.3) requires the solution of the cell reaction equations (2.5) on all N C cells. We expect N C to be very large, e.g. on the order of millions to billions. At the same time, we expect that the physical properties of cells vary over the macroscale rather than microscale, so it is inefficient to solve (2.5) on every cell. We approximate R by an average R computed using a Monte Carlo sampling approach with a (relatively small) sample of the problems (2.5). As a consequence, we replace the PDE equation
38where U − 0 = Π 0 u 0 . There are two ways to compute the samples. First, we can sample in the spatial variable x, so for x ∈ ω j ,
39k=1 is a set of K j points chosen at random in ω j , for each j = 1, . . . , N ω . In this approach, we solve the reaction model (2.5) only in cells located at {x j ,k } K j k=1 . This means that the average is affected by by physical size of the cells, since bigger cells contribute more samples with some probability. Alternatively, we can sample by choosing cell indices at random, so for x ∈ ω j ,
40where {i k } is a randomly selected subset of I j . In the second approach, the cell average is not affected by the size of the cell. Note that this Monte Carlo computation has the property that the computation is actually exact if sufficiently many samples are used, since there are only N C different values. However for very large N C and reasonably small numbers of samples, the convergence of the Monte Carlo approximations appears to behave according to the standard asymptotic results, so that the accuracy is roughly proportional to the variance of the integrand divided by the square root of the number of samples. Since we want to use relatively few samples, this indicates that the coupling regions ω j should be chosen so that the variance of the integrand defining R has small variance.
Iterative solution of the nonlinear discrete equations
41In general, (3.6)-(3.8) presents a nonlinear coupled discrete system that is solved iteratively in practice. We describe a simple fixed point iteration.
42We use the superscript to denote the iteration number and assume that we carry out L n total iterations on each time step. In practice, we may vary the number of iterations in each cell and for the PDE, but we suppress that notation. The fixed point -finite element method can be formulated on time interval I n as: Given P 0 = P (t n−1 ) and U 0 = U (x, t n−1 ), for each cell find P ∈ Q Then, given P on I n , find U ∈ W r u n such that
43given U 0 . We iterate (3.11) and (3.12) for = 1, . . . , L n , set P − n = P L n (t n ) and U − n = U L n (t n ) to form the data for the next interval.
44In this iterative formulation, we are "lagging" the values of the PDE model U in the cell reaction model, but treat the remaining nonlinear problems for P and U implicitly. This entails using an additional nonlinear solver for each model equation. However, we do not indicate this in the notation as these problems can typically be solved very accurately, e.g. using a standard Newton method.
An implicit-explicit method
45In practice, the iterative formulation (3.11)-(3.12) is often solved for only one iteration L n = 1, yielding an "implicit-explicit" method. This is: For n = 1, . . . , N , find P ∈ Q r p m,n for m = 1, . . . , M n such that
46where U − 0 = Π 0 u 0 . The scheme is said to be explicit-implicit due to the use of explicit use of U n−1 when solving for P on I n , while U n is solved implicitly.
A posteriori error analysis
47In this section, we derive adjoint-based error representation formulas for the methods above. Using these formulas, we derive indicators of local contributions to the global error that can serve as the basis for an adaptive method. Ignoring the effect of iteration in the solution of the discrete equations, there are three discretization parameters that affec the numerical accuracy, namely the spatial mesh size, the time steps for the PDE, and the time steps for the ODEs. In addition, there is a choice of the projection and recovery operators. We present error indicators that distinguish the relative contributions of these choices to the global error. For the iterative method, there is the additional parameter of number of iterations per time step.
48We begin by noting that since the right hand side of (3.13) involves the solution U n−1 from the previous time step and since the right hand side of (3.14) involves the approximation R, there is an error arising from operator decomposition [5] due the differences U and U n−1 as well as a modeling error due to the differences between R and R.
Preliminaries
49The adjoint to the function spaces presented is denoted by the superscript * . The same notation is used for the adjoint operators, as noted in the following identities (v, Rq) = 〈R * v, q〉, We define the residuals, the linearizations of the functions f and g and state the adjoint problems.
50The derivation of the theorems follow in the next Section. Definition 4.1. Let the residuals corresponding to (3.13) and (3.14) be denoted by R p (P ) ∈ Q r p * m,n and R u,K (U , P ) ∈ W r u * n . These are defined by
51The linearizations of f and g are defined as
Adjoint problems
52The definition of an appropriate adjoint problem for a multiscale model is a problematic issue [5]. First of all, there are a number of possible adjoint problems that can be associated with any nonlinear differential equation. In addition, it may be reasonable to account for the use of projections between scales and representations and the effects of a finite number of iterations in the definition. Another issue is the computational difficulty and cost required in the numerical solution of the adjoint.
53We consider two different adjoint problems that present a tradeoff between accuracy of the resulting estimates on one hand and the cost and practicality of implementation on the other. The first approach is closely related to the ideal adjoint of the coupled system (3.1)-(3.2) treated by an implicit discretization, a so-called "implicit adjoint". This choice leads to a robustly accurate error estimate, but the cost is that the linear adjoint problem is nearly as difficult to solve numerically as the original multiscale model. As an alternative, we define a second adjoint problem that uses the same decomposition and finite iterations as used in the forward model. This approach is much more computationally tractable, however the resulting error estimate includes terms that cannot be estimated. It is possible to show that these terms are relative small compared to the terms that can be estimated in the limit of refined discretization however.
Fully implicit adjoint problem and error representation formula
54The ideal fully implicit adjoint reads: For n = N , . . . , 1, find φ p (t ) ∈ [L 2 (I m,n )] N r on m = 1, . . . , M n and φ u (x, t ) ∈ L 2 (I n ; H 1 (Ω)) such that
55where ψ u ∈ L 2 (Ω) and ψ p ∈ [L 2 (Ω)] N r are given data that determine the quantity of interest to be computed. The initial conditions for the adjoint problem are φ u (x, T ) = 0 and φ p (T ) = 0. Next we derive the error representation formula corresponding to this fully implicit adjoint problem. where
56(4.14)
57(4.15)
58(4.17)
59The first term is the contribution from error in the initial data for the PDE. The second and the third terms quantify the contributions of the discretization of the PDE and the ODEs respectively. The fourth term quantifies the contribution of the recovery operator and the fifth term is the contribution of the explicit splitting scheme.
60Proof. Introducing the errors e u = u −U and e p = p − P , we use the chain rule identities to obtain, 〈g u P e u + g p e p , q〉 = 〈g(P u, p) − g(P U , P ), q〉, Now substituting e p for q in (4.9) and applying integration by parts we arrive at,
61Now we apply (4.21),
62(4.23)
63A similar computation for e u leads to,
64(4.24)
65Summing (4.23) over all m, combining it with (4.24) and using (4.18) and (4.19) leads to,
66(4.25)
67Now, using (2.4) and (2.5), and summing over all n, Addition and subtraction of I n ( f (U , RP ), φ u ) d t and I n 〈g(P U n−1 , P ), φ p 〉 d t , integration by parts on a(U , φ u ) and the use of Galerkin orthogonalities (3.13) and (3.14) to subtract the interpolants Π n π u n φ u and π p m,n φ p completes the proof.
The implicit-explicit adjoint problem and error representation formula
68Lemma 4.1 gives an error representation formula that requires numerical solution of the fully implicit adjoint problem. Alternatively, we consider an adjoint that employs the same discretization steps as used for the original model. The exact implicit-explicit adjoint corresponding to the implicit-explicit numerical scheme reads: For n = N , . . . , 1, find φ p (t ) ∈ [L 2 (I m,n )] N r on m = 1, . . . , M n such that
69(4.27)
70Note the use of φ u,n , which is known from the time interval I n+1 . Then find φ u (x, t ) ∈ L 2 (I n , H 1 (Ω)) such that
71(4.28)
72The corresponding iterative method follows.
73(4.36)
74The first five terms are similar to the error representation in Lemma 4.1. The last term is the contribution of the transfer error from the ODEs to the PDE through f , weighted by the effect of the splitting of the adjoint equations.
75Proof. The proof proceeds as in the case of Theorem 4.1. However we have to account for the implicitexplicit solve of the adjoint, which shows up in the analogue of (4.23) as,
76(4.37)
77The presence of the term involving φ u,n prevents use of the fact that p and u satisfy (2.4) and (2.5) . Thus, we add and subtract I m,n 〈f p Re p , φ u 〉 d t to (4.37). The rest of the proof follows as before.
78The addition and subtraction of the additional term leads to the sixth term in the error representation formula. where the subscripts indicate restriction. For these to be computable we replace φ u and φ p by the discrete approximations Φ u and Φ p respectively. This leads to additional terms in the representation that cannot be estimated but are relatively small in the limit of discretization refinement.
Furthermore, these indicators can be approximated by the computable indicators AE x , AE t and AE s as
79Proof. We have to account for the effect of replacing the exact adjoints φ u and φ p with the approximations Φ u ∈ W r u +1 n and Φ p ∈ Q r p +1 m,n obtained by finite element discretizations similar to (3.14) and (3.13), but with q ∈ Q r p m,n and v ∈ W r u n . The effect on E (U , P ) of replacing φ u with Φ u in (4.31) -(4.36) leads to additional terms with weights of the type φ u − Φ u . However, these additional terms are higher order. The same holds for replacing φ p with Φ p . Since these errors are negligible we do not indicate this change in the terms I -V I below.
80To have separate indicators for the spatial and the temporal contributions from discretization of the PDE and the contribution for the discretization of the ODEs, we decompose the error E (U , P ) into parts corresponding to these contributions. To distinguish the different contributions, we note that term I I (4.32) contributes both to errors in space as well as in time. To deal with this, we write
81which gives I I n = I I x n + I I t n , where
82(4.45)
83where R u,K is the algebraic equivalent to (4.4), since Π n Φ u ∈ V h n . Term I V n involve the exact quantity R, which is not computable. We compute an approximation of this term by sampling at a large number of points to form R and then choose only a subset of these samples to form R.
84Finally, the Term V I n involving e p , which arises from the choice of a computationally-tractable adjoint problem, is not directly computable. In some cases, such terms can be approximated at the cost of solving auxiliary adjoint problems [12]. Alternatively, a rigorous mathematical analysis showing such terms are small relative to the computable terms in the error estimate is carried out in [15]. Intuitively V I n is small in the limit of discretization refinement because involves a product of the errors e p and φ u − φ u,n . On the other hand, if V I n is large, we expect the other terms in the error estimate to be large as well. Hence, while the error estimate may not capture the true error accurately in this case, it is still be reliable in the sense of indicating a large error in the numerical solution.
Discretization details
85For discretization in space of the PDE, the partition T h n of Ω consists of hexahedral elements with trilinear basis functions for the primal PDE problem and triquadratic basis functions for its adjoint. The capability for spatial mesh adaptivity, including refinement and derefinement, is provided by the use of hanging nodes, where at most one hanging node per edge or face is allowed. Conformity of the basis at the hanging nodes is obtained by interpolation using the neighboring nodes, see [19]. Handling of such shape regular but non-uniform meshes is alleviated by an octree-based data structure [20].
86For the stochastic discretization of the microscale ODEs, the Voronoi cells ω j are generated by N ω uniformly distributed random points in Ω. Given these points, the corresponding Voronoi tessellation is generated by calling the Voro++ library [21]. Since this tessellation is generally not aligned with T h n (as can be seen in Fig. 3.2) a map from each quadrature point in each T h n to the corresponding Voronoi cell is constructed. This procedure requires searching the Voronoi diagram, but the library supplies efficient routines for doing this. Moreover, T h n only varies when the mesh is changed, which happens fairly infrequently in the block adaptivity approach that we use (described in the next section). We sample by using 10 random points in each ω j to compute RP in Term IV (cf. (4.34)) and sample using 1 point to compute (3.9) or (3.10).
87Computing the projection P is performed using the same data structures created for R: We sample 10 points in each ω j , and for each of these points, we find the corresponding element in T h n and compute the function value at that point. Then we average over these function values to get the projection over ω j .
88The temporal discretization of the primal and adjoint PDE problem is performed using a dG(0) and a cG(1) respectively. For the ODEs, a dG(1) method is used for the primal and a dG(2) method for its adjoint. The ODEs are initially solved on the same temporal discretization as the PDE. However, the ODEs are allowed to have individual time steps in each slab K × I n (see Section 3). To determine these time steps, as well as the discretization of the PDE, we use blockwise adaptivity [17], which is a more efficient procedure than a standard compute -estimate -mark -refine strategy. This is described in the following section. Finally, the adjoint time discretization is set to be equal to the temporal discretization for the forward problem.
89To be able to represent data on the different grids, the octree data structure facilitates the projection and interpolation routines that are necessary. To alleviate the matrix allocations, assembly of the matrices and vectors as well as solving the linear systems involved we take use of the PETSc library [22]. We use its conjugated gradient method with the incomplete LU factorization as preconditioner. A Newton method is used for performing the nonlinear iterations for the primal PDE and ODEs.
90Finally, despite the higher order method used for the adjoints, the costs can be compared with those for the forward problem due to the fact that they are linear.
Blockwise adaptive error control
91To determine spatial and temporal refinement, the adaptive algorithm called blockwise adaptivity is used. This procedure, introduced by Carey et. al. in [17], is built upon the creation of a sequence of blocks of meshes. The meshes that constitute the block are carefully created to guarantee that the numerical method is accurate in terms of the goal functional as well as being efficient in the sense that they are as coarse as possible.
92The blocks form the partition in time by 0 = T 0 < T 1 < · · · < T B = T . In each block, both the spatial and temporal meshes are fixed but possibly non-uniform. Given initial primal and adjoint solutions on a coarse discretization, the algorithm is based on an absolute tolerance ATOL for the total error, the Principle of Equidistribution and a strategy for computing blocks. The Principle of Equidistribution says that an optimal mesh for controlling ATOL is obtained when the element contributions are approximately equal, see e.g. Eriksson et. al. [6].
93The strategy may be based on a criteria, for example the maximum size of a mesh due to limitations in computer memory. This strategy, known as a memory-bound strategy, is employed in this paper. Other strategies include forming blocks by considering changes in the topology of the meshes. For the memory-bound strategy we place upper bounds on the number of degrees of freedom, such that there are • a maximum number of spatial elements xMAX,
94• a maximum number of PDE time intervals tMAX,
95• a maximum number of ODE time intervals sMAX.
96Each of this restrictions may define end time of blocks. For completeness we briefly present this method, but is thoroughly described in [17].
97Assuming that in a mesh there are N x space elements, N macro time intervals and M n subintervals in each macro interval, there is a total of N x N M n space-time subslabs in the initial discretization. The Principle of Equidistribution determines an approximate local error tolerance on each subslab of
98since there are three different contributions to the error which should be equal: The spatial and temporal part of the PDE and the ODE. The next step is to predict meshes such that each element contribution is approximately LATOL. For example, standard a priori analysis may show that the error E s | I m,n on a subinterval of size ∆s is of the order of (∆s) r for some r . Due to the Principle of Equidistribution, the desired error should be LATOL. If this requires a subinterval of size ∆s new we have by proportionality It should be noted that if the original discretization is finer than needed, then ∆s new > ∆s, which suggests coarsening. Moreover, ∆s new is in fact a computable quantity, since E s | I m,n ≈ AE s | I m,n (cf. equations (4.40) and (4.43)). For the space and discretizations of the PDE, the procedure is similar and uses the approximations AE x and AE t defined in (4.41) and (4.42).
99Using the memory bound strategy, we determine that the predicted number of elements that are of interest. Thus, besides (5.4) we also need to predict the number of elements in space and time for the PDE. The latter is done using a similar quotient as (5.4), but for the former, there is a scaling factor with the dimension d = 3 as
100where r is the order of convergence in space.
101Using the predicted number of spatial elements (5.5), one can create a block by starting at T 0 = 0, loop over time and add up the total number of predicted number of elements until the sum is about equal to xMAX or tMAX. Then this time defines T 1 . If the maximum predicted number of ODE steps over all spatial elements exceeds sMAX, that PDE time interval is to be refined, thus increasing the predicted number of PDE time intervals. The second block starts with T 1 and is formed analogously.
102Derefinement is restricted to the resolution of the initial coarse mesh, both is space and time. In addition to the three restriction criteria above, a sufficiently coarse predicted mesh may also define the end of a block. This can be determined by a parameter θ defined as θ = #elements in current block #elements predicted for the next block . (5.6) We coarsen the mesh when θ > 10. We note there can be significant contributions to the error if the meshes on adjacent blocks are sufficiently different [17]. We do not include expressions estimating these contributions in the a posteriori error estimate. Rather, we reduce the impact of such contributions by using the maximum error estimate in the final time interval of the previous block to determine the refinements of the first time interval on the next block.
103Below, we use one iteration of the block adaptive algorithm, so the PDE-ODE system is solved once on the initial coarse mesh. This initial mesh is then refined in space and time according to the strategy described above with ATOL ≈ 10% of the approximate total error estimate AE x + AE t + AE s for the initial mesh.
A numerical example
104We consider a problem from electrocardiography known as the monodomain model (cf. [3]), which is (2.4) where u is the transmembrane potential, i.e. the potential difference over the cell membrane and f is a current of charged ions. We assume Ω = [0, 1] 3 , T = 400 ms, and a constant conductivity = 0.1. The initial value u 0 is set such that there is an excited region close to the origin, which decreases to a resting value using smoothed Heaviside functions G δ as,
105where r = |x| − r 0 and,
106Three of the gating variables are fast and thus sensitive to changes in the potential, the other three are slower. See the seminal paper by Hodgkin and Huxley [24] for a thorough analysis of the modeling of the gating variables. Beeler and Reuter uses the following general expression for the rate functions
107exp(c 6 (u + c 3 )) + c 7 , (6.4) and the values for the constants c k , k = 1, . . . , 7, can be found in [23]. The seventh ODE variable models the concentration of calcium ions inside the cell, and is governed by the ODEṗ 7 = −a 0 j S (u, p) − b 0 (a 0 − p 7 ), (6.5) where a 0 and b 0 are constants and j S is a current depending on the potential u and the gating variables. The coupling to the PDE is through the ion current f = j i on which is sum of different currents, j i on (u, p) = −( j N a (P u, p) + j S (P u, p) + j X (P u, p) + j K (P u)). (6.6) Similar to j S , the currents j N a and j X depend on the potential u and the gating variables. The current j K depend only on the potential u.
108We are interested in controlling the average error in the PDE solution, so we set ψ u = 1 and ψ p = 0.
109For the initial temporal discretization of the PDE, a time step of ∆t = 0.1 is chosen up to t = 10, after which point we use ∆t = 1. The total initial total number of time steps is thus 490. The motivation for this initial non-uniform discretization is that it is known a priori that the dynamics is rapid in the beginning of the front. We use L n = 2 for all n.
110To form the initial spatial mesh, Ω is uniformly subdivided into 16 3 = 4096 elements. The adjoint PDE problem is solved on this mesh resolution for all times, even though the primal mesh is refined. Moreover we set N ω = 75000.
111The parameters for blockwise adaptivity are set to be xMAX = 75000 (i.e. equal to N ω ), tMAX = 1000 and sMAX = 20.
Results
112Fig. 6.1 illustrates U and Φ u at t = 0.5 ms on the refined mesh. It is clear how the adjoint is large at the front. For later times, after wave has passed over the domain, the solution have little variation in space as shown in Fig. 6.2. The adjoint also has little variation in space.
113The dynamics of the PDE and its adjoint are clearly visible in Fig. 6.3, which illustrates the solutions in the center of Ω, i.e. at (0.5, 0.5, 0.5). The left graph shows that there is a very steep gradient of U in the first 5 ms of the simulation after which the solution then decays fairly smoothly back to its initial and resting value after about 300 ms. The adjoint solution Φ u in the right plot of Fig. 6.3 has a large peak around 240 ms. This may seem surprising at first, but its explanation can be found by looking at the dynamics of the coupled ODEs in Figures 6.4, 6.5 and 6.6.
114Recalling that the six of the ODE variables are gating variables and one models the calcium ion concentration, we can identify two types of gating variables by looking at Figures 6.4, 6.5 and 6.6. Three rapid gating variables in Fig. 6.4, which has a fast change in state in the beginning and then returns to its original state after about 250-350 ms -thus slightly later than the large peak of Φ u . Moreover, the calcium concentration in Fig. 6.5 seem to be strongly related to Φ u at around 220 ms. Fig. 6.6 illustrates three slower gating variables, and similar to the calcium concentration, they are less influential for small t but rather have their significance when the system goes back to its resting state.
115To examine convergence properties, we evaluate the error terms after varying the number of iterations L n in the iterative multirate method, the spatial and temporal mesh sizes of the PDE as well as the time steps of the ODEs. These four parameters were changed uniformly to produce Figures 6.7 and 6.8. The default values in these experiments are 4096 elements, ∆t = ∆s = 0.1, L n = 1, N ω = 10000 and T = 20. As can be seen the errors in the various terms of (4.29) decrease as expected. The main observation is that the splitting error Term V dominates the total error, but can be controlled by increasing L n , cf. Fig. 6.8. In Fig. 6.9 we show the effect of varying the number of Voronoi cells, N ω , which also show expected behavior.
116The large dynamics in the system are naturally manifested in the number of blocks, and the spatial and temporal discretizations on these blocks. With the given tolerances and parameter values, 8 blocks are obtained and basic statistics about these blocks can be found in Table 6.1. As can be seen, the sizes of the first four blocks are limited by the xMAX criteria, with predicted number of elements being 77309, 79829, 94074 and 87403. Recalling that xMAX = 75000, we thus obtain significantly more elements. This can be understood by looking at the block creation procedure in detail. For example, considering block 3, the predicted number of elements for the first interval (2.3, 2.4] was 48987. Since this is less than xMAX, the procedure considers also the next interval (2.4, 2.5]. The predicted number of elements for the total interval (2.3, 2.5] results in 71870 elements. This is also less than xMAX, albeit close. The fact that this prediction is close to xMAX and knowing that the dynamics of the problem is rapid could suggest that the block should be ended. In the implementation here, the xMAX criterion is a strict inequality and the interval (2.5, 2.6] is considered. This results in a prediction of 94074 elements to guarantee error control. The true number of elements obtained are slightly larger, although less than 1 %, due to the constraint of having at most one hanging node per element edge.
117The blocks 5, 6, 7 and 8 have the same spatial discretization with 45718 elements. Recall that the reason for the spatial meshes not being coarsened is due to the parameter θ (5.6). As can be seen in Table 6.1, blocks 5, 6 and 7 are limited in time by the tMAX = 1000 criteria. Finally we note that the variation in time is great: the time step size for the PDE and the ODEs are in the range of 10 −3 to 1 ms and 10 −4 to 1 ms respectively. Fig. 6.10 illustrates the various time steps over time for the PDE.
Conclusion
118We consider a problem of a macroscale parabolic PDE which is coupled to a set of microscale ODEs. We introduce an intermediate scale to couple information between the scales, and use projections to transfer information to the intermediate scale. We use a Monte Carlo method to deal with the very high dimension of the system of ODEs. We also allow the ODEs to be solved on a much finer scale than the PDE. We derive an adjoint-based a posteriori estimate that accounts for all of the key discretization components, and use the estimate to derive indicators of element contributions to the error both in space and time for the PDE and in time for the ODEs. The estimates take into account errors in the data passed between the PDE and the ODEs, as well as the fact that the ODEs are modeled on a much smaller scale than that of the PDE. The indicators are used to guide an algorithm for adaptive error control.
119Finally, we test the adaptive algorithm on a realistic problem. Future work could consider parallel blockwise adaptivity. Since the ODEs in this model do not interact inbetween spatial elements, this set of ODEs constitute an embarrassingly parallel problem and can simply be parallelized using a graphical processing unit, GPU. Developing adaptive algorithms designed for modern computer technologies with several memory hierarchies such as a GPU are indeed interesting, and the blockwise adaptivity could be one method for limiting the number of data transfers between hierarchies.
참고문헌 24건
- A bi-domain model for describing ischemic myocardial d-c potentials. DSpace@MIT (Massachusetts Institute of Technology) · Massachusetts Institute of Technology · 1978
- Voro++: a three-dimensional Voronoi cell library in C++ 2009 10.2172/946741
- Computational differential equations Choice Reviews Online · Association of College and Research Libraries · 1997 10.5860/choice.34-5733
- Voronoi diagrams—a survey of a fundamental geometric data structure ACM Computing Surveys · Association for Computing Machinery · 1991 10.1145/116873.116880
- An A Posteriori–A Priori Analysis of Multiscale Operator Splitting SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2008 10.1137/07068237x
- Reconstruction of the action potential of ventricular myocardial fibres The Journal of Physiology · Wiley · 1977 10.1113/jphysiol.1977.sp011853
- A quantitative description of membrane current and its application to conduction and excitation in nerve The Journal of Physiology · Wiley · 1952 10.1113/jphysiol.1952.sp004764
- Adaptivity in Space and Time for Reaction-Diffusion Systems in Electrocardiology SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2006 10.1137/050634785
- Simple and Efficient Traversal Methods for Quadtrees and Octrees Journal of Graphics Tools · Taylor & Francis · 2002 10.1080/10867651.2002.10487560
- Modeling the Heart--from Genes to Cells to the Whole Organ Science · American Association for the Advancement of Science · 2002 10.1126/science.1069881
- Adjoint methods for PDEs: <i>a posteriori</i> error analysis and postprocessing by duality Acta Numerica · Cambridge University Press · 2002 10.1017/s096249290200003x
- Blockwise Adaptivity for Time Dependent Problems Based on Coarse Scale Adjoint Solutions SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2010 10.1137/090753826
- A Posteriori analysis of a multirate numerical method for ordinary differential equations Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2012 10.1016/j.cma.2012.02.021
- Multi-Adaptive Galerkin Methods for ODEs I SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2003 10.1137/s1064827501389722
- A Posteriori Analysis and Adaptive Error Control for Multiscale Operator Decomposition Solution of Elliptic Systems I: Triangular Systems SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2009 10.1137/070689917
- <scp>VORO++</scp>: A three-dimensional Voronoi cell library in C++ Chaos An Interdisciplinary Journal of Nonlinear Science · American Institute of Physics · 2009 10.1063/1.3215722
- Aspects of an adaptive hp-finite element method: Adaptive strategy, conforming approximation and efficient solvers Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 1997 10.1016/s0045-7825(97)00101-1
- A posteriori analysis of an iterative multi-discretization method for reaction–diffusion systems Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2013 10.1016/j.cma.2013.08.007
- Estimating the error of numerical solutions of systems of reaction-diffusion equations Memoirs of the American Mathematical Society · American Mathematical Society · 2000 10.1090/memo/0696
- A posteriori analysis and adaptive error control for operator decomposition solution of coupled semilinear elliptic systems International Journal for Numerical Methods in Engineering · Wiley · 2013 10.1002/nme.4482
- Introduction to Adaptive Methods for Differential Equations Acta Numerica · Cambridge University Press · 1995 10.1017/s0962492900002531
- Adaptive Finite Element Methods for Differential Equations Birkhäuser Basel eBooks · Birkhäuser Basel · 2003 10.1007/978-3-0348-7605-6
- Simple and Efficient Traversal Methods for Quadtrees and Octrees A K Peters/CRC Press eBooks · Informa · 2005 10.1201/b10628-3
- A quantitative description of membrane current and its application to conduction and excitation in nerve Bulletin of Mathematical Biology · Springer Science+Business Media · 1990 10.1016/s0092-8240(05)80004-7