scieee AI-readable full text Open interactive document viewer

Nodally exact Ritz discretizations of 1D diffusion–absorption and Helmholtz equations by variational FIC and modified equation methods

Felippa, Carlos,Oñate Ibáñez de Navarra, Eugenio

Abstract

This article presents the first application of the Finite Calculus (FIC) in a Ritz-FEM variational framework. FIC provides a steplength parametrization of mesh dimensions, which is used to modify the shape functions. This approach is applied to the FEM discretization of the steady-state, one-dimensional, diffusion–absorption and Helmholtz equations. Parametrized linear shape functions are directly inserted into a FIC functional. The resulting Ritz-FIC equations are symmetric and carry a element-level free parameter coming from the function modification process. Both constant- and variable-coefficient cases are studied. It is shown that the parameter can be used to produce nodally exact solutions for the constant coefficient case. The optimal value is found by matching the finite-order modified differential equation (FOMoDE) of the Ritz-FIC equations with the original field equation. The inclusion of the Ritz-FIC models in the context of templates is examined. This inclusion shows that there is an infinite number of nodally exact models for the constant coefficient case. The ingredients of these methods (FIC, Ritz, MoDE and templates) can be extended to multiple dimensions.

Full text

Nodally Exact Ritz Discretizations of 1D Diffusion-Absorption and Helmholtz Equations by Variational FIC and Modified Equation Methods C. A. Felippa and E. O˜nate May 2004, Revised August 2005 Accepted for publication in Computational Mechanics TABLE OF CONTENTS Page §1. The Finite Calculus 1 §2. Modified Variational Forms 2 §3. The Modified Equation Method 3 §3.1. Backward Error Analysis ............. 3 §3.2. Applying Modified Equations ........... 3 §3.3. A Brief History of Modified Equations ......... 4 §3.4. Free Parameters for Nodal Exactness ......... 5 §3.5. Nodal Exactness: Advantages and Limitations ...... 5 §4. The Diffusion-Absorption-Helmholtz Problem 6 §4.1. The Model Problem ............... 7 §4.2. Exact Solutions ................. 7 §4.3. Conventional Ritz ............... 8 §4.4. The FIC Functional ............... 9 §5. The Ritz FIC Equations 9 §5.1. Patch and Modified Equations ........... 10 §5.2. Positivity Lower Bound .............. 11 §5.3. Diffusive Upper Bound ............. 11 §5.4. Nodally Exact Matching .............. 11 §5.5. Pade Approximants ............... 12 §5.6. Nodal Exactness Verification ............ 13 §5.7. Reduced Integration Element ............ 13 §5.8. Source Terms ................. 14 §5.9. Numerical Results ............... 14 §6. Templates 18 §7. Generalization to Variable Coefficients 20 §7.1. The VC Model Problem .............. 21 §7.2. Reusing CC Templates .............. 22 §7.3. VC-Customized Templates ............. 22 §7.4. Numerical Results for Variable Coefficients ....... 22 §8. Conclusions 25 §A. PROCESSING MODIFIED EQUATIONS 25 §A.1. Reduction by Series Identification...................... 25 §A.2. Reduction by a Theorem of Muir...................... 26 References ...................... 28 Nodally Exact Ritz Discretizations of 1D Diffusion-Absorption and Helmholtz Equations by Variational FIC and Modified Equation Methods Carlos A. Felippa∗and Eugenio O˜ nate† * Department of Aerospace Engineering Sciences and Center for Aerospace Structures University of Colorado Boulder, Colorado 80309-0429, USA †International Center for Numerical Methods in Engineering (CIMNE) Edificio C-1, c. Gran Capit´ an s/n Universidad Polit´ ecnica de Catalu˜ na 08034 Barcelona, Spain Abstract. This article presents the first application of the Finite Calculus (FIC) in a Ritz-FEM variational framework. FIC provides a steplength parametrization of mesh dimensions, which is used to modify the shape functions. This approach is applied to the FEM discretization of the steady-state, one-dimensional, diffusion-absorption and Helmholtz equations. Parametrized linear shape functions are directly inserted into a FIC functional. The resulting Ritz-FIC equations are symmetric and carry a element-level free parameter coming from the function modification process. Both constant- and variable-coefficient cases are studied. It is shown that the parameter can be used to produce nodally exactsolutionsfortheconstantcoefficientcase. Theoptimalvalueisfoundbymatchingthefinite-order modified differential equation (FOMoDE) of the Ritz-FIC equations with the original field equation. TheinclusionoftheRitz-FICmodelsinthecontextoftemplatesisexamined. Thisinclusionshowsthat there is an infinite number of nodally exact models for the constant coefficient case. The ingredients of these methods (FIC, Ritz, MoDE and templates) can be extended to multiple dimensions. Keywords: finite calculus, variational principles, Ritz method, functional modification, stabilization, finite element, diffusion, absorption, Helmholtz, nodally exact solution, modified differential equation, templates. §1. The Finite Calculus The Finite Calculus (FIC) has been developed over the past five years [23–35] as a general purpose tool for improving the stability and accuracy of interior discretizations of equations of mathematical physics and engineering. Consider a problem governed by the residual equation r(u)=0,(1) where uis an array of nprimary variables. These in turn are functions of the independent variables x, which may include time. Generally (1) is an ordinary or partial differential equation, to be solved by numerical methods. Introduce ncharacteristic lengths hicollected in array h, where each hiis paired with the function ui. These lengths can be viewed as linked, through as yet unspecified means, to mesh or grid dimensions. Using flux balance arguments [26,27] a modified residual is constructed r(u)+rh(u,h)=0.(2) 1 Thesimplestform of rhis−1 2∇rh, where ∇risthe gradientmatrixofrwith respecttothe independent variables. The discretization process, which is usually Galerkin-based FEM, is applied to (2) instead of (1). Consistency with the latter requires that rh→0ashi→0. But the philosophy of FIC, as emphasized in its name, is that in practice the hiremain finite. The key goal is to pick rhand hso that stability and accuracy characteristics of the solution for a given mesh are improved. Further analysis of localized phenomena, such as sharp boundary layers, can be carried out by multiscale devices [6,19,30]. The FIC analysis process is diagramed in Figure 1. FIChasbeenprimarilyusedforthe solution offluid mechanicsequationsinvolvingflow, advection,diffusion, ocean waves and chemical reactions [23– 35]. For those applications it competes with stabilization schemes such as SUPG, residual free bubbles and subgrid scale methods [3,4,9,10,19]. In a study of FIC methods for solid mechanics [36] it was found that a variational form formally analogous to the Minimum Potential Energy principle could be obtained by modifying the displacement, strain and stress fields in a manner similar to that done for the residual in the foregoing description, and adjusting their variations. Analysis process Balance analysis Discretization Accuracy analysis Weak form Residual r(u) = 0 Galerkin or similar discrete form Pick steplengths h Numerical solution Finite Calculus Modified residual r(u) + r (u,h) = 0 h Figure 1. The weak-form-based FIC analysis process. The approach technically falls into the class of variational principles with noncommutative variations [43],alsocalledmodifiedvariationalprinciplesintheliterature[8]. Thatfindingprovidedthedeparture point for the present study. §2. Modified Variational Forms Suppose that (1) is derivable from a functional J[u] in the sense that r(u)=0are the Euler-Lagrange equations of J. The first variation is δJ[u]=δuTr(u). (3) Define a modified primary variable field: ˜ udef =u+uh(h), (4) suchthat uh→0as h→0. Thechoice considered here, suggested by a previous study as noted, is ˜ u=u−1 2hαT∇u.(5) Here his an overall characteristic length, array α collects scaling parameters αi, and the factor −1 2 is for convenience in matching to the standard FIC method. Analysis process Discretization Accuracy analysis Residual r(u) = 0 Ritz discrete form Pick steplengths h Numerical solution Euler- Lagrange equations Variational principle δ J[u] = 0 Modified variational principle δ J[u,h] = 0 Finite Calculus Figure 2. The variational FIC analysis process. Substituting (5) into Jyields the modified functional ˜ Jh=J[˜ u]=J+Jh,(6) 2 in which the augmentation term Jhvanishes as h→0. The Euler-Lagrange equation changes to δ˜ Jh[u]=δuTr(u)+˜ rh(u).(7) This has formally the same configuration as (3), and shares with it the property that as h→0 the Euler-Lagrange equation reduces to (1). But in general starting with rh(u)of FIC, namely that in (2), does not reproduce ˜ rh. To avoid confusion we qualify (7) as the FIC variational residual. The functional ˜ JhwillbecalledtheFIC-modifiedfunctional, orFICfunctionalforbrevity. (Thesuperposed tildes will be eventually dropped for brevity when there is no danger of confusion.) The numerical approximation is obtained by working with ˜ Jhin the usual way, assuming that his known. The residual may be used to study stability and accuracy properties of the approximation. The analysis process is diagramed in Figure 2. §3. The Modified Equation Method The “Accuracy Analysis” stage of Figure 2 is done by the method of modified equations. Since this is not a well known technique for differential equations, a summary along with a historical outline is presented here. An example relevant to the target application problem is worked out in Appendix A. §3.1. Backward Error Analysis Theconventionalwaytoanalyzeaccuracyofadiscreteapproximationisthroughforwarderroranalysis: the amount by which the discrete solution fails to satisfy the source differential form. To make this measure practical, it is computed using local estimators such as truncation or residual errors (in FEM, through recovery from element patches). This technique furnishes a posteriori error indicators, and is well developed in the literature. Backward error analysis takes the reverse approach to accuracy. Given the computed solution, it asks: which problem has the method actually solved? In other words, we seek an ODE or PDE which, if exactly solved, would reproduce the computed solution. This ODE or PDE is called the modified differential equation, often abbreviated to MoDE in the sequel. The difference between the modified equation and the original one provides an estimate of the error. An important practical advantage is that the modified equation can be generated without actually solving the discrete problem. This approach is now routinely used for matrix computations after Wilkinson’s definitive work in the 1960s [47–49] and has become standard part of numerical linear algebra courses. But it is less known in differential equations. This neglect is unfortunate, since the concept follows common sense. Application problems involve physical parameters such as mass, damping, stiffness, conductivity, diffusivity, etc., which are known approximately. Transient loading actions (e.g, earthquakes, winds, waves) may be subject to high uncertainties. If the modified equation models a “nearby problem” with parameters within the range of experimental uncertainty, it is as good as the original one. This “defect correction” can be used as basis for controlling accuracya priori, before any computations are actually carried out. §3.2. Applying Modified Equations Letrh(u,h,α)=0denote a discretization ofan ordinary orpartial differential equation r(u)=0. [As in Sections 1–2, hcollects lengths (in space, time or both) related to mesh or grid dimensions whereas αcollects free parameters]. Processing the modified equation involves three steps: 3 Step 1: Patch discretization →DDMoDE. The discrete equations at a typical node (a patch in FEM terminology) are rendered continuous in the independent variable(s). This produces a differencedifferential form (called delay-differential form when time is the independent variable), abbreviated to DDMoDE. Step 2: DDMoDE→IOMoDE. The difference portion of the DDMoDE is converted to differential form by Taylor series expansion in the mesh dimensions collected in h. This step produces a modified differential equation of infinite order, abbreviated to IOMoDE. Step 3: IOMoDE→FOMoDE. The IOMoDE is reduced to a finite order differential equation, or FOMoDE. This is done by systematic elimination of higher order derivatives. The process typically produces an infinite series in the discretization dimensions. This series can be occasionally identified and summed in closed form. Technically this is (by far) the most difficult step. It generally requires the use of a computer algebra system (CAS) to be viable. By comparing the FOMoDE to the original problem one can learn structural aspects of the discretization that go beyond comparison of physical parameter values. For example: preservation of Hamiltonian flow or of conservation laws in the discrete system. These are impossible or difficult to analyze with the conventional truncation error measures. The procedural steps just outlined are flow-charted in Figure 3. This chart also shows a parameter matching step to achieve nodal exactness, which is discussed in more detail in Section 3.4 below. Reduce to finite order DE by elimination of high order derivatives Parametric discretization via FIC Match by adjusting free parameters (if possible) Convert to difference-differential form (aka delay-differential form) Pass to infinite order DE by Taylor expansion in mesh dimension(s) r(u) = 0 r (u,h,α) = 0 hr (u,h,α) = 0 IO r (u,h,α) = 0 DD r (u,h,α) = 0 FO Discrete Form Given ODE/PDE DDMoDE IOMoDE FOMoDE step 1 step 2 step 3 Figure 3. Steps of the modified equation method. Achieving nodal exactness requires “closing the loop.” As discussed in §3.4, this may involve additional assumptions. §3.3. A Brief History of Modified Equations Modified differential equations as truncated forms of infinite-order ODEs appeared in conjunction with finite difference discretizations for computational fluid dynamics (CFD). The prescription for constructing them can be found in Richtmyer and Morton’s textbook [39, p. 331]. Modified forms were used to interpret numerical dissipation and dispersion in the Lax-Wendroff treatment of shocks, and to derive corrective operators. Similar ideas were used by Hirt [18] and Roache [40]. A drawback of this early work is that there is no guarantee that truncation retains the relevant behavior for finite mesh dimensions, since the discarded portion could be well be dominant in coarse discretizations. Warming and Hyett [45] were the first to describe the correct procedure for eliminating high order time derivatives of PDE space-time discretizations on the way to the finite-order modified equation (FOMoDE). (Space dimensions were treated by Fourier methods.) They attributed the “modified equation” name to Lomax [22]. The FOMoDE forms were used for studying accuracy and stability of several CFD operators. In this work the original equation typically models flow effects of conduction andconvection,hincludesgriddimensionsinspaceandtime,andfeedbackisusedtoadjustparameters in terms of improving stability as well as reducing spurious oscillations (e.g. by artificial viscosity or upwinding) and dispersion. 4 The first MoDE use to study space FEM discretizations for structural mechanics can be found in [44]. However the derivative elimination and force lumping procedures were faulty, which led to incorrect conclusions. This was corrected by Park and Flaggs [37,38], who, being aware of the methods of [45] used modified equations for a systematic study of C0beam, plate and shell FEM discretizations. The method has recently attracted attention from the numerical mathematics community since it provides an effective tool to understand long-time structural behavior of computational dynamic systems, both deterministic and chaotic. Recommended references are [11–14,41]. Web accessible Maple scripts for the reduction process from infinite to finite order are presented in [2]. Little of the work to date has used modified equations for optimal selection of free parameters. One exception is [12]. §3.4. Free Parameters for Nodal Exactness Suppose that the discretization rh(u,h,α)=0contains free parameters collected in α. As discussed in Sections 1–2, this is always the case for FIC discretizations, whether variationally based or not. Obviously the free parameters will carry over to the three modified equation forms: rDD(u,h,α)=0, rIO(u,h,α)=0and rFO(u,h,α)=0. Assuming that the latter is available, the question is whether the parameters can be chosen so that rFO(u,h,αM)≡r(u), for any h.(8) Here subscript Mstands for “matching.” If this is possible, the discretization rh(u,h,αM)becomes nodally exact. That is, it will give the exact answer at the nodes of any discretization which generates the finite-order modified equation being matched. For FEM discretizations this scheme may be labeled anodallyexactpatchtest, sincethe modifiedequations arenecessarily obtainedfrom anelement patch. The idea is straightforward and attractive but fraught with technical difficulties. In particular: •Exactmatchingmaybepossibleonlywithdrasticrestrictionsondimensionality,systemproperties and discretization. For instance: constant coefficients, no source terms, regular meshes. If an exact match is impossible, some “measure of fit” (projection, minimization, etc) has to be chosen. •Solutions may be imaginary, non-unique, inexistent, or very hard to compute. •The FOMoDE may contain “parasitic terms” not present in the governing equation, which cannot be cancelled out by choosing parameters. For example: the source is the Laplace equation uxx +uyy =0 whereas the FOMoDE holds a parameter-free cross-derivative term uxy. The emergence of parasitic terms was in fact observed by Park and Flaggs in their studies of C0plate and shell elements [37,38]. Such occurrences can be often traced to consistency defects in the discretization; in that study the presence of parasitic terms flagged element locking. •Attaining a closed form for the FOMoDE will not be generally possible in more than one space dimension. Truncation is required. In that case the fit can at most be expected to deliver a better solution over a fixed mesh. •Symbolic manipulations may be prohibitive, even with the help of a computer algebra system. On the positive side, the approach is completely general, and not linked to any discretization method. Theprovenanceofrh(u,h,α): finiteelements,finitedifferences,boundaryelements, etc., isirrelevant. It is not restricted by problem dimensionality, and does not require knowledge of exact solutions. For FEM discretizations, the first procedure to achieve nodal exactness was Tong’s adjoint technique [42]; see also [50, App. 7]. This requires finding exact homogeneous solutions of r(u)=0,tobe insertedasweightfunctionsinaPetrov-Galerkindiscretization. Relatedschemesarebasedonlocalized enrichment by homogeneous and/or particular solutions, for example [5,6] 5 §3.5. Nodal Exactness: Advantages and Limitations Featuresof a nodallyexact(NE) discretizationare illustrated inFigure 4. This showstheexactsolution to the variable-coefficient boundary-value problem (BVP), later used in Section 7 as test example: u =−750 xu,u(−1)=25,u(1)=−4,(.)  ≡d2(.)/dx2.(9) This is compared with two FEM discretizations of 6 two-node elements each. That labeled NELVC comes from a model that is nodally exact for a coefficient of uthat varies linearly in xover each element. That labeled FICM1 is nodally exact for constant coefficients. (These two models are developed in Sections 5 and 7, respectively, along with several others.) In both cases the FEM solution between nodes is interpolated linearly. Both approximations are plainly inadequate but for different reasons. The NELVC piecewise linear interpolation widely misses the fast variation of the exact solution, particularly on the oscillatory side. −1 −0.5 0 0.5 1 0 −30 −20 −10 10 20 30 u x Nodally Exact Element for Linearly Varying Coefficient (NELVC) Nodally Exact Element for Constant Coefficient (FICM1) Exact Solution Figure 4. Featuresof a nodallyexactdiscretization for BVP(9). Solution has exponential behavior, with a sharp boundary layer, for x<0. It becomes oscillatory, with increasing frequency, for x>0. Node values of NELVC marked with small circles. This deficiency can be resolved by either using a better intra-element interpolation (for example, if the elementwasderivedfromshapefunctions)orlocalrefinement. Advantagesformultiscalemodelingare nonetheless clear: an individual element can be extracted and converted into a local BVP using the end node values, and physical behavior at smaller scale introduced if appropriate. No such postprocessing is feasible with the nodally-inexact discretization, which is way off in the oscillatory side. −1 −0.5 0 0.5 1 −30 −20 −10 0 10 20 30 −1 −0.5 0 0.5 1 0 −30 −20 −10 10 20 30 (a) (b) Exact Solution Exact, FICM1 & NEVC coincide within plot tolerance Nodally Exact Element for Constant Coefficient (FICM1) Nodally Exact Element for Linearly Varying Coefficient (NELVC) Figure 5. Convergence behavior of discretizations for the BVP (9): (a) 24 elements and (b) 96 elements. As the mesh is refined, the NELVC solution quickly “locks in” the correct behavior, as pictured in Figure 5(a) for 24 elements. The other solution remains inadequate on the oscillatory side x>0 because only 3 elements fit in the shorter wavelengths. Going to 96 elements the two FEM solutions cannot be distinguished from the exact one at the plotting scale of Figure 5(b). What happens is that with 12 elements per (shortest) wavelength the approximation power of the FICM1 model is finally realized, as the coefficient of u(x)is sensibly constant over each element. 6 §4. The Diffusion-Absorption-Helmholtz Problem Sections 4–7 illustrate the variational FIC discretization and the construction of modified equations for the steady-state, one-dimensional diffusion-absorption and Helmholtz equations. This problem has been recently examined by O˜nate, Miquel and Hauke [35] from a FIC-Galerkin standpoint. That study includes advection terms that are not considered here. The governing differential equation that models a one-dimensional, steady state, diffusion-absorption process is d dx kdu dx−su +Q=0,in x∈[xm,xp](10) In this equation uis the state variable, x∈[xm,xp] is the problem domain, k≥0 is the diffusion, s≥0 is the absorption (also called dissipation or destruction parameter) and Qthe source term. Using primes to denote differentiation with respect to x, the foregoing ODE can be abbreviated to ku−su+Q=0.(11) With the flux defined as q=k(du/dx)=ku, the boundary conditions can be stated as u=ˆuon u,q=ˆq,on q.(12) where uand qare the Dirichlet and Neumann boundaries, respectively. For the one-dimensional problem these consist of four combinations taken at the ends of the problem domain. This problem admits a classical variational formulation. The source functional is J[u]=xp xm1 2k(u)2+1 2su2−Qudx.(13) Taking the first variation δJ=0 over admissible functions u(x)that satisfy the essential BCs yields the differential equation (10) as Euler-Lagrange equation, and the flux constraints in (12) as natural boundary conditions. §4.1. The Model Problem Following [35] and assuming k= 0, a model form of (10) is obtained by introducing the dimensionless coefficient w=sa2 k,(14) where a=xp−xmis the length of the problem domain. This coefficient characterizes the relative importance of absorption over diffusion. The problem domain is adjusted to extend from xm=−1 2a to xp=1 2afor convenience. We assume zero source: Q=0, and Dirichlet boundary conditions at both ends: u(−1 2a)=umand u(1 2a)=up. We can now state the model problem as u −w a2u=0 for x∈[−1 2a,1 2a],u(−1 2a)=um,u(1 2a)=up.(15) The associated functional is J[u]=a −a 1 2(u)2+w a2u2dx.(16) where variation is taken over continuous u(x)that satisfy a priori the Dirichlet BCs. 7 0.2 0.4 0.6 0.8 1 χ20 40 60 80 100 w −1 −0.75 −0.5 −0.25 0 0.2 χ αM (b) (a) α - −20 −10 0 10 20 −2 −1.5 −1 −0.5 0 0.5 1 α for exactly integrated Ritz-FIC (FICM2) Μ ζ = w χ 2 2 2 − ζ = π /4 12 2 − ζ = 9π /4 22 α for reduced integrated Ritz-FIC (FICM1) Μ − 2 ζ −11.47 ~ ~ cut Figure 9. Nodally exact ¯αMfor reduced-integration Ritz FIC element. (a) ¯αM(˜,χ) plotted for w≥0; (b) comparing nodally exact αMof exactly and reduced integration for positive and negative values of wχ2. The variation of ¯αM(w, χ) is plotted in Figure 9(a). Its Taylor series is ¯αM=−1 6wχ2−13 720w2χ4+127 20160w3χ6+... (44) whichshowsthat ¯αM→0asw→0orχ→0. Thevariationof ¯αM(w, χ) forthediffusion-absorption case w>0 is plotted in Figure 9(a). It is negative and smooth. The behavior of ¯αMfor the Helmholtz equation is more complicated than that of αM, the positive square root of (36). Both are plotted as functions of ζ2=wχ2for ζ2∈[−25,25] in Figure 9(b). Whereas αMis real for wχ2≥ζ2 cut =−11.474635...and varies smoothly, ¯αMis real for all ζ2but jumps at ¯ ζ2 k=−k2π2/4 for k=1,2,.... These are roots of cosh(i|¯ ζk|)=cos|¯ ζk|=0. These jumps are harmless, however, since they occur at the set of ‘Dirichlet resonances” discussed in Section 4.2, where the exact solution (19) blows up. In fact the RI model has the advantage that ¯αMstays real for any w, whether positive or negative. Using the exact solution to find ¯αMgives two solutions: 1 ±(τ/ζ)ζ2−4+8/τ −4/τ2/(τ −1) with τ=coshζ, which appear as roots of a quadratic. Taking the minus sign reproduces (43), whereas taking the plus sign gives an ¯αMthat “blows up” if wχ2→0, and is therefore less desirable. §5.8. Source Terms The MoDE treatment of a smooth source term q(x)in u −(w/a2)u=q(x)can be done by entirely analogous techniques, but there are representation choices. One is based on expanding q(x)in Taylor series: q(x)=q(xj)+q(xj)(x−xj)/a+...at node j, and inserting into the FIC functional to derive a consistent node force term qjby the usual methods. Then q(xj),q(xj) ... appear in the RHS of the IOMoDE→FOMode elimination system, and the solution series is identified into the FOMoDE. Alternatively q(x)can be expanded in Fourier series [37,38]. Delta function source terms can be processed directly. §5.9. Numerical Results This section present numerical results obtained with the Ritz-FIC method for the model problem (15). The problem domain is taken to have unit length (a=1) extending from xm=−1 2a=−1 2through xp=1 2a=1 2. The boundary conditions are of Dirichlet type: u(−1 2)=8 and u(1 2)=3. The domain is divided into 8 elements of equal size; thus χ=Le/a=1 8. Four values of w: 1000, 50, −50 and 14 −0.4 −0.2 0.2 0.4 −2 2 4 6 8w = 50 (b) −0.4 −0.2 0.2 0.4 −10 −5 5 10 w = −50 (c) −0.4 −0.2 0.2 0.4 −30 −20 −10 10 20 30 w = −1000 (d) −0.4 −0.2 0.2 0.4 −2 2 4 6 8 10 w = 1000 (a) 10 x xx x uu u u 2 2 2 2 2 2 2 Exact CR: α = 0 FICD: α = α =2/3 FICP: α = α FICM2: α = αM P D Figure 10. Ritz-FIC results for 8-element discretization of the diffusion-absorption model problem with: (a) w=1000, (b) w=50, (c) w=−50, (d) w=−1000. Dirichlet BCs u(−1 2)=8 and u(1 2)=3, for four choices of α, compared to the exact solution. −1000, are tested. Results are plotted in Figure 10, and listed to 10 decimal places in Tables 1 through 4. Labels shown in those Tables are template names assigned in Section 6. Results for w=1000. The solution exhibits two sharp boundary layers. Over the propagation region, which extends roughly over the middle six elements of this discretization, u(x)takes small positive values, of order 10−3or less. The problem is discretized using four choices of α:α=0 (conventional Ritz), α2 C=2/3, α2 P=101/375 =0.410667 and α2 M=0.490503. Numerical results are shown in Figure 10(a), and listed in Table 1. As expected the solution for α2 Mis nodally exact. The results for α=0 oscillate giving unacceptable negative values. Results for αDand αPgive the correct physical behavior, and bound the boundary layer behavior on both sides. Although the difference of results computed for αDand αPwith the exact solution are masked in the scale of the plot, discrepancies at interior points are clear from Table 1. Results for w=50. This case pertains to moderate absorption to diffusion ratio (14). The boundary layers are diffuse and the exact solution resembles a second degree parabola. The problem is again discretizedusingfourαchoices: α=0, α2 C=2/3, α2 P=−334/75 =−4.45333andα2 M=0.345961. The numerical results are plotted in Figure 10(b) and listed in Table 2. Again the solution for α2 Mis nodally exact. The solutions for α=0 and α2 C=2/3 bound the exact solution, maintain positivity and display reasonable accuracy. The results for αPare way off as can be expected from the rationale for its construction. Results for w=−50. The solution to this Helmholtz equation goes roughly through one wavelength over the problem domain. Negatives values of u(x)are physically admissible. The problem is discretized with four αchoices: α=0, α2 C=2/3, α2 P=434/75 =5.78667 and α2 M=0.319898. Note 15 Table 1. Ritz-FIC 8-element solutions, w=1000. Node Exact α2=0 (CR) α2 D=2 3(FICD) α2 P(FICP) α2 M(FICM2) 18.0000000000 8.0000000000 8.0000000000 8.0000000000 8.0000000000 20.1535996812 −1.0514115126 0.4553713752 0 0.1535996812 30.0029491079 0.1381982018 0.0259204876 0 0.0029491079 40.0000566306 −0.0182784646 0.0014772218 0 0.0000566306 50.0000014948 0.0028186197 0.0001154770 0 0.0000014948 60.0000212544 −0.0071239995 0.0005580649 0 0.0000212544 70.0011059158 0.0518597445 0.0097204167 0 0.0011059158 80.0575998805 −0.3942838932 0.1707642790 0 0.0575998805 93.0000000000 3.0000000000 3.0000000000 3.0000000000 3.0000000000 Table 2. Ritz-FIC 8-element solutions, w=50. Node Exact α2=0 (CR) α2 D=2 3(FICD) α2 P(FICP) α2 M(FICM2) 18.0000000000 8.0000000000 8.0000000000 8.0000000000 8.0000000000 23.3105043651 3.2068850933 3.4002474704 0 3.3105043651 31.3801678534 1.2942058990 1.4569382771 0 1.3801678534 40.6001402687 0.5439870932 0.6518621127 0 0.6001402687 50.3203030826 0.2823794489 0.3560532239 0 0.3203030826 60.3074243641 0.2744060401 0.3384109163 0 0.3074243641 70.5507702703 0.5129051224 0.5851521371 0 0.5507702703 81.2531588628 1.2120974286 1.2890434650 0 1.2531588628 93.0000000000 3.0000000000 3.0000000000 3.0000000000 3.0000000000 Table 3. Ritz-FIC 8-element solutions, w=−50. Node Exact α2=0 (CR) α2 D=2 3(FICD) α2 P(FICP) α2 M(FICM2) 18.0000000000 8.0000000000 8.00000000000 8.0000000000 8.0000000000 22.1905465154 0.0898920049 3.91683000520 0 2.1905465154 3−5.2217158313 −7.8823533208 −3.22636343116 0 −5.2217158313 4−8.8132821321 −10.4059673187 −7.84896043693 0 −8.8132821321 5−5.9562263170 −5.7365163498 −6.33955710134 0 −5.9562263170 61.2589621643 2.8982685015 0.12262521967 0 1.2589621643 77.5529760894 9.5296419462 6.48900658781 0 7.5529760894 88.3205257619 9.5737052899 7.78585155923 0 8.3205257619 93.0000000000 3.0000000000 3.00000000000 3.0000000000 3.0000000000 Table 4. Ritz-FIC 8-element solutions, w=−1000. Node Exact α2=0 (CR) α2 D=2 3(FICD) α2 P(FICP) α2 M(FICM2) 18.0000000000 8.0000000000 8.0000000000 8.0000000000 8.0000000000 211.5432046602 −4.5551330632 −0.5903534034 0 11.5432046602 3−23.8970551078 2.6374205639 0.0435651218 0 −23.8970551078 421.3673096334 −1.6039299876 −0.0032213812 0 21.3673096334 5−5.5295477072 1.1081731645 0.0003261977 0 −5.5295477072 6−13.7521345403 −0.9839426045 −0.0012230626 0 −13.7521345403 724.4686939039 1.1895887560 0.0163380309 0 24.4686939039 8−19.9456285035 −1.7940565712 −0.2213826078 0 −19.9456285035 93.0000000000 3.0000000000 3.0000000000 3.0000000000 3.0000000000 16 that α2 Mis still positive because wχ2=−50/64 >−11.4746, and no imaginary numbers appear. The numerical results are plotted in Figure 10(c) and listed in Table 3. Again the solution for α2 Mis nodally exact. The results for α=0 and α2 D=2/3 bound the exact solution and follow its shape reasonably well. The solution for αPis worthless. Results for w=−1000. The rapidly oscillatory response goes roughly through five cycles over the problem domain, since κ=√−w/(2π) ≈5.03. The problem is discretized with α=0, α2 C=2/3, α2 P=0.92667 and α2 M=−0.261754. Here α2 Mis negative because wχ2=−1000/64 =−11.875 < −11.4746. The numerical results are plotted in Figure 10(d) and listed in Table 4. Although α2 M produces a nodally exact solution, an 8-element piecewise linear interpolation over five wavelengths is plainly inadequate to capture intra-element oscillations. −0.4 −0.2 0.2 0.4 −30 −20 −10 10 20 30 −0.4 −0.2 0.2 0.4 −30 −20 −10 10 20 30 −0.4 −0.2 0.2 0.4 −30 −20 −10 10 20 30 −0.4 −0.2 0.2 0.4 −30 −20 −10 10 20 30 8 elements 16 elements 32 elements 64 elements x x x x u uu u 2 2 2 2 2 Exact CR: α = 0 FICD: α = α =2/3 FICM2: α = αM D Figure 11. Ritz-FIC convergence study for rapidly oscillatory case w=−1000. Boundary conditions: u(−1 2)=8 and u(1 2)=3. Shown are results for 8, 16, 32 and 64 elements, and three choices of α:αM,αD and conventional Ritz α=0. Results for αPomitted as they are worthless. The effect of injecting more elements in the later case is illustrated in Figure 11. This shows results for three choices of αand 8 through 64 elements. A 64-element mesh places about 10 elements per wavelength, which should be adequate as per well known empirical rules for approximating sinusoidal waveforms. The beneficial effect of nodal exactness is evident. Results for the other two non-matching choices of α, notably conventional Ritz, display erratic behavior even for fine discretizations. Replacing the exactly integrated Ritz-FIC model by the reduced-integrated model with the matching ¯αMof (43) yields identical results. 17 Continuify Taylor Series Expansion Eliminate HOD Match Step 1 Step 2 Step 3 Original ODE FOMoDE Discrete (Patch) Form DDMoDE IOMoDE u'' − u = 0 w a2 Ritz FIC Discretization S u + S u + S u = 0 iji ijk i i j e e u=22arcsinh χ√µ 22u µ = −(2S + S )/(χ S ) i i i j j 4 a χ S u(x−L ) + S u(x) + + S u(x+L ) = 0 2 11 2! 4! 222 − u + u''+ a χ u''''+ ...= 0 µ 2a S + 2 S cosh( χ w) = 0 √ Figure 12. Nodally exact condition matching for patch equations (48) with Si=Sk, which correspond to constant coefficient wand equal length elements Le=aχ. §6. Templates Theexact-andreduced-integratedFIC-basedelementsobtainedbysettingα2andαasper(36)and(43), respectively, are nodally exact but lead to completely different finite element matrices. A nodally exact modelfortheHelmholtzequation,developedbyHarariandHughes[15–17]producesyetanothersetof matrices. This surprising lack of uniqueness raises the question: how many nodally exact elements can be constructed for the absorption-diffusion-Helmholtz equation with constant coefficients? Templates provide the correct answer: an infinite number. Templates [7] are parametrized algebraic forms of FEM matrices that include all possible elements once a priori constraints, such as symmetry, are enforced. Setting parameters to specific values or functions produces element instances. The set of such values is called the template signature. Assuming symmetry, theelementcoefficient matrixofthe modelproblem can beplaced in thetemplate framework by splitting Se=Se K+Se M, with Se M=−wχ2 6Le2+β1+β2+β31−β1 1−β12+β1+β2−β3,Se K=1 Le1+β4+β5+β6−1−β4 −1−β41+β4+β5−β6. (45) Matrix Se K(stiffness-like) and Se M(mass-like) come from the (u)2and u2terms, respectively, in the variational formulation. In (45) β1through β6are dimensionless parameters to be chosen. If all of them vanish the conventional Ritz equations (21) with piecewise linear shape functions result. Thus the βimay be interpreted as specifying the deviation from conventional Ritz. (If unsymmetric matrices are permitted, as produced for example by Petrov-Galerkin methods, one more parameter would enter each matrix for a total of eight.) An obvious simplification is that only the sum Se M+Se Kappears in the FEM equations of the diffusionabsorption and Helmholtz problems, and three parameters become redundant. Consequently one may either set β4=β5=β6=0 and leave SKunchanged, or set β1=β2=β3=0 and leave SM unchanged. In the ensuing development the first choice is selected. Thus (45) reduces to Se M=−wχ2 6Le2+β1+β2+β31−β1 1−β12+β1+β2−β3,Se K=1 Le1−1 −11 .(46) 18 Table 5. Template Instances for 1D Diffusion-Absorption-Helmholtz with Constant Coefficients Instance Description Nodally General performance, trouble spots name exact? CR Conventional Ritz element (21). No Nonphysical oscillations for w>0if wχ2>6. Erratic behavior for w<0 (Helmholtz). FICP Exactly integrated Ritz-FIC element with α2=α2 Pof (34), which guarantees positivity if w>0. No Zero solution at interior nodes, which mimics boundary-layer behavior for huge w>0. Useless for w<0 (Helmholtz). FICD Exactly integrated Ritz-FIC element with α2=α2 D=2/3 of (35), a setting for high artificial diffusion. No Correct physical behavior for any w>0, especially very large values. Performs poorly for w<0 (Helmholtz). FICM1 ReducedintegratedRitz-FICelement with αset as per (42). CC-ELE Behavior identical to FICM2 for w≥0. Higher wavenumber validity range than FICM2 for w<0 (Helmholtz). FICM2 Exactly integrated Ritz-FIC element with α2set as per (36). CC-ELE Behavior identical to FICM1 for w≥0. Imaginary coefficients if ˜χ2<ζ ∗≈ −11.4746. HHH Harari and Hughes [16] nodally exact element for one-dimensional exterior Helmholtz. CC-ELE Canbeusedforw>0,whereperformance is identical to FICM1 and FICM2. For w<0 (Helmholtz) SMbecomes null at wavenumbers noted in Table 6. NECC Template set to match FOMoDE for varying length elements. CC-VLE Performance identical to FICM1, FICM2 and HHH if w>0 and elements are of equal length. Maintains nodal exactness if element lengths vary. CC-ELE: nodally exact for constant coefficients and equal-length elements. CC-VLE: nodally exact for constant coefficients and variable length elements. If β2+3β1=0 and β3=0, on taking β1=1−β0and β2=3(β0−1),β0can be extracted as scaling factor of Se Mand only one parameter remains: Se M=−wχ2β0 6Le21 12 ,Se K=1 Le1−1 −11 .(47) The general form of the 2-element patch equations is Siui+Sjuj+Skuk=0.(48) For constant coefficients and equal-length elements, Si=Sk. The modified equation processing steps forthisparticularcaseisdiagramedinFigure12. TheIOMoDEexpressiondisplayedthereindicatesthat consistencywiththeoriginalequationasthemeshisrefinedrequiresthatµ=(2Si+Sj)/(χ2Si)→w as χ→0. For the template (46), Si=Sk=6w(β1−1)χ2/(6aχ) and Sj=(6+6w(β1+β2+ 2)χ2)/(3aχ). Hence µ=2w(3+β2) (6+w(β1−1)χ2χ→0=w(1+1 3β2)whence β2|χ→0=0.(49) 19 Table 6. Template Signatures for Elements of Table 5. Instance Templ. Template signature Trouble spots name form CR (46) β1=β2=β3=0.Nonphysical oscillations if wχ2>6. FICP (46) ζ=χ√w, α2=2/3−4/ζ 2 β1=1−6/ζ2,β 2=0,β 3=3α. β1→∞if ζ2=wχ2=6. FICD (46) β1=1,β 2=0,β 3=√6. FICM1 (46) ζ=χ√w, τ =coshζ, ¯α=1−(τ/ζ)ζ2−4+8/τ −4/τ2 τ−1 β1=(3¯α2−1)/2,β 2=3¯α, β3=0. If w<0, entries jump at √−wχ = 1 2πn,n=1,2,.... See Figures 9 and 13(a). FICM2 (46) ζ=χ√w, α2=2 3−4 ζ2+1 sinh2(ζ/2) β1=3α2/2,β 2=0,β 3=3α. If w<0 and χ√−w>3.3874... diagonalentriesofSe Mbecomecomplex. See Figures 9 and 13(b). HHH (47) ζ=χ√w, τ =coshζ, β0=6(τ −1) ζ2(τ +2)If w<0 and χ√−w=2πn,n= 1,2,...,β0=0, which makes Se M= 0. See Figure 13(c). NECC (46) ζ=χ√w, β1=ζ2−6+6ζ/sinhζ ζ2, β2=(6/ζ) tanh(ζ/2)−3,β 3=0. If w<0 and χ√−w=πn,n= 1,2,..., entries of Se Mblow up. See Figure 13(d). Matching for nodal exactness yields Si+2Sjcoshζ=0 with ζ=χ√w. In terms of the parameters of the template (46), the condition is 6+w(2+β1+β2)χ2=6+w(β 1−1)χ2coshζ. (50) Notice that β3does not appear in (50) because of equal-element-length cancellations. The foregoing condition, which may be solved for either β1or β2, shows that there is an infinite number of nodally exact finite element models that form a one-parameter family. Four instances of this family are shown in Tables 5 and 6. These are identified by labels FICM1, FICM2, HHH and NECC. The former two are the “matched α” FIC elements obtained in Sections 5.7 and 5.4, respectively, whereas HHH was obtained by Harari and Hughes [16]. A study of the variable-element-length case, omitted to save space, shows that NECC is the only instance that is nodally exact for such discretizations. Each nodally exact instance of Tables 6–7 has “trouble spots” when applied to the Helmholtz equation w<0, if κχ =χ√−w/(2π) exceeds 1/2. Those spots are displayed in Figure 13. §7. Generalization to Variable Coefficients This Section studies the application of the foregoing discretization methods to the variable-coefficient generalization of (10): ku −s(x)u+Q=0,(51) in which k≥0 is constant but sis now a linear function of x. As previously, the computational domain is x∈[xm,xp] with Dirichlet boundary conditions u(xm)=umand u(xp=up. Of particular 20 (a) FICM1 S22 S11 κ χ κ χ κ χ κ χ S12 0 0.5 1 1.5 2 2.5 −4 −2 0 2 4 0 0.5 1 1.5 2 2.5 −4 −2 0 2 4 0 0.5 1 1.5 2 2.5 −4 −2 0 2 4 0 0.5 1 1.5 2 2.5 −4 −2 0 2 4 S = S 11 22 S12 (b) FICM2 S12 (d) NECC S12 (c) HHH S and S become complex for κ χ > 0.5387... 11 22 S = S 11 22 S = S 11 22 S S S S 11 12 12 22 S = e M Notation for all Figures Figure 13. Trouble spots in coarse, nodally-exact discretizations of the constant-coefficient Helmholtz equation w<0. Graphs plot entries of the 2 ×2 matrix Se Mfor instances (a) FICM1, (b) FICM2, (c) HHH and (d) NECC, as functions of the scaled wavenumber κχ =√−wχ/(2π). The number of elements per wavelength is Ne λ=1/(κχ). Difficulties start at roughly κχ > 1/2, or Ne λ<2. Jumps in (a) occur at Dirichlet resonances and are harmless. interest is when schanges sign over the computational domain. If so u(x)will exhibit boundary-layer exponential decay behavior over the portion where s>0, transitioning to oscillations of varying frequency wherever s<0. This is illustrated by the analytical solution curves in Figures 4–5. The goal is to investigate whether variational FIC methods can handle simultaneously the diffusionabsorption and Helmholtz type of equations in the same BVP. The restriction to linear variation in xis imposed tohaveaclosed formsolution, interms ofAiry functions, availablefor comparison. Although these functions are rarely useful in classical mechanics they find application in laser optics, quantum mechanics, electromagnetics, and radiative heat transfer. §7.1. The VC Model Problem As before we restrict the computational domain to ±1 2a, set Q=0, and redefine w(x)=s(x)a2/k as a linear function in xexplicitly given as w=w0+ψ(x/a). The model problem is u −w a2u=0 with w=w0+ψx a,for x∈[−1 2a,1 2a],u(−1 2a)=um,u(1 2a)=up.(52) The associated functional is obtained by simply changing win (16) to w(x): J[u]=a −a(u)2+w0+ψx a 2a2u2dx.(53) where variation is taken over continuous u(x)that satisfy a priori the Dirichlet BCs. The solution of (52) can be expressed in closed form in terms of the Airy functions Ai(x)and Bi(x), as defined for 21 example in [1, Sec. 10.4], as follows. Assuming that ψ= 0, compute: ϒ=3 ψ2,ξ=2x/a,zξ=(w0+1 2ξψ)/ϒ, zp=(w0+1 2ψ)/ϒ, zm=(w0−1 2ψ)/ϒ, Ap=Ai(zp), Am=Ai(zm), Bp=Bi(zp), Bm=Bi(zm), Aξ=Ai(zξ), Bξ=Bi(zξ), d=AmBp−ApBm,u(x)=[(BpAξ−ApBξ)/d]um+[(AmBξ−BmAξ)/d]up. (54) (In symbolic work, it is important to square ψbefore taking the cubic root.) If ψ=0 the solution (54) fails. In that case w=w0is constant and the exact solution in terms of exponentials given by (17)–(19) should be used. As an example, Figures 4–5 show the exact solution of (9), a BVP that fits (52) with w=−3000x/a2,a=2, u(−1)=25 and u(1)=−4. The finite-order modified equation for this ODE requires hypergeometric functions to be expressed in closed form, and is omitted for brevity. §7.2. Reusing CC Templates An expedient approach to FEM discretization of (52) is to reuse the template instances of Tables 5 and 6. If the nodal values of w(x)are wiand wj, the average value wm=(wi+wj)/2 is used to form the element. See Figure 14. For example, the reduced-integration Ritz-FIC element FICM1 is again given by (41) except thatα=¯αMcomes from wm. FortheHHH and NECC instances wmis inserted in the formulas of Table 6. x ij ww im i wj j slope ψ = w - w L = a χ e L /2 L /2 ee Figure 14. Variable coefficient variation over element. For the Ritz-FIC element FICM2 a slight refinement is to evaluate w(x)=w(ξ) at the Gauss points ξ=±1/√3, compute αMthere, and use those in the two-point Gauss quadrature. In the numerical experiments, however, the reduced integration FICM1 performed consistently better than FICM2, even after the foregoing refinement was incorporated. The reuse strategy was found to generally work well over the exponential-behavior portion of the computational domain in which w>0. For oscillatory (Helmholtz) portions in which w<0, convergence was erratic unless a very fine mesh was used. These findings are clearly illustrated in the plots of Figures 4–5. In particular, Figure 5(b) shows that 12 elements per shortest wavelength are needed to get satisfactory convergence of FICM1 over the oscillatory region. §7.3. VC-Customized Templates In an effort to improve convergence over oscillatory regions, the Ritz-FIC steplength parameter αwas allowed to be a function of x:α=α(x), and matching with the modified VC equation attempted. However, no matching was found. Gradually it was realized was that a single steplength parameter was insufficient, and the more general framework of templates introduced in Section 6 was necessary. The developments are lengthy and only the final results are reported. Three useful template instances customized to the VC case are listed in Tables 7 and 8. Model NELVC is nodally exact for linearly varying coefficient. (It is not known whether NELVC is the only nodally exact model for this case). One drawback of NELVC, however, is that its template parameters are expressed in terms of Airy functions and their x-derivatives. These maybe difficulttoevaluateunless appropriatelibraries areavailable. Theothertwotemplateinstances: MNECC and CUBVC, generally produce better results than those in Tables 5 and 6 for the same mesh, although they are not nodally exact. 22 Table 7. Template Instances for 1D Diffusion-Absorption-Helmholtz with Variable Coefficients Instance Description Nodally General performance, trouble spots name exact? MNECC Modification of NECC to account approximately for the variable coefficient by matching a truncated MoDE. No Reasonably accurate for w>0 if variation is not abrupt. Requires fine mesh for Helmhotz. CUBVC Similar to NELVC with Airy functions approximated by cubic over element. No Excellent for w>0, even for sharp coefficient variation. Less accurate for Helmholtz but better than MNECC. NELVC Uses Airy functions to match MoDE exactly. Yes Nodally exact for any linear coefficient variation,nomatterhowabrupt. Alsoexact for variable length elements. Table 8. Template Signatures for Elements of Table 7. Instance Templ. Template signature Trouble spots name form MNECC (46) β1,β 2=same as for NECC,β 3=−3ψχ(ζ cothζ−1) 2wζ2.SameasNECC CUBVC (46) d=10w(11760 +1456wχ2+28w2χ4−χ6ψ2), β1=7χ2(1960w2+36w3χ2+14χ2ψ2−wχ4ψ2)/d, β2=−7(4200w2χ2+100w3χ4+70χ4ψ2−3wχ6ψ2)/d, β3=−3χψ(39200 +2240wχ2+28w2χ4−χ6ψ2)/d. SameasNECC NELVC (46) ϒ=3 √ψ2,zm=(w −1 2χψ)/ϒ, zp=(w +1 2χψ)/ϒ, Ap=Ai(zp), Am=Ai(zm), Bp=Bi(zp), Bm=Bi(zm), Ap=Ai(zp), A m=Ai(zm), B p=Bi(zp), B m=Bi(zm), d1=A mBm+ApBp−AmB m−ApB p, d2=(A m−Ap)(Bm−Bp)−(Am−Ap)(B m−B p), d3=ApBm−A mBp+ApB m−AmB p,d=ApBm−AmBp, β1=1−6/ζ2+3d1χϒ dζ2,β 2=−3−3d2χϒ dζ2,β 3=−3d3χϒ dζ2. Fails for ψ= 0ifnotchecked. §7.4. Numerical Results for Variable Coefficients The test BVP is (9), i.e. u =−750 xu,a=2, u(−1)=25 and u(1)=−4. Consequently w=−750 xa 2=−3000 xvaries from 3000 on the left to −3000 at the right, and ψ=−6000. Results for meshes with 8 through 64 elements are presented in Figures 15 and 16. Figure 15 collects results for the four constant-coefficient nodally exact models of Tables 5–6: FICM1, FICM2, HHH and NECC, plus Conventional Ritz (CR). All models perform reasonably well in the exponential region x<0, and capture the boundary layer near x=−1 well as the mesh is refined. In the oscillatory region x>0 three models: FICM1, NECC and HHH, start to converge satisfactorily at 32 elements, and agree well with the exact solution at 64 elements. The other two models: CR and FICM2, display erratic behavior throughout; in fact convergence was noticeable only on using 256 elements or more. 23