Journal of Applied Mathematics

Volume 2013 (2013), Article ID 950469, 9 pages

http://dx.doi.org/10.1155/2013/950469

## A Proposed Stochastic Finite Difference Approach Based on Homogenous Chaos Expansion

Engineering Mathematics and Physics Department, Faculty of Engineering, Fayoum University, Fayoum 63514, Egypt

Received 19 March 2013; Revised 24 June 2013; Accepted 26 June 2013

Academic Editor: Livija Cveticanin

Copyright © 2013 O. H. Galal. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

This paper proposes a stochastic finite difference approach, based on homogenous chaos expansion (SFDHC). The said approach can handle time dependent nonlinear as well as linear systems with deterministic or stochastic initial and boundary conditions. In this approach, included stochastic parameters are modeled as second-order stochastic processes and are expanded using Karhunen-Loève expansion, while the response function is approximated using homogenous chaos expansion. Galerkin projection is used in converting the original stochastic partial differential equation (PDE) into a set of coupled deterministic partial differential equations and then solved using finite difference method. Two well-known equations were used for efficiency validation of the method proposed. First one being the linear diffusion equation with stochastic parameter and the second is the nonlinear Burger's equation with stochastic parameter and stochastic initial and boundary conditions. In both of these examples, the probability distribution function of the response manifested close conformity to the results obtained from Monte Carlo simulation with optimized computational cost.

#### 1. Introduction

Stochastic processes are prevalent in nature. They affect all physical phenomena both from external and internal sources. Stochastic excitation and stochastic boundary conditions are a couple of examples of these external sources, while internal inherent random material heterogeneity also exists. To resolve these sources of stochastic inputs, stochastic differential equation is used for mathematical modeling. Methods of solution to these models are classified into two, statistical and nonstatistical. Monte Carlo simulation (MCS) is one of the most popular among the statistical methods of solution in use. As for the nonstatistical methodologies, these include stochastic perturbation method (SPM), stochastic finite element method (SFEM), and stochastic difference method (SFDM), the latter of which is the focus of this paper.

The nonstatistical methods’ expansion process involves the discretization of input random fields. A projection scheme is further used resulting in deterministic equations solved by merely using one of the deterministic methods of solutions. Among these nonstatistical methods, SFEM is attracting the most attention. It has been applied to solve a wide range of problems especially in the field of structure mechanics (see, e.g., [1, 2]). In contrast, FDM is rarely studied in the field of stochastic analysis. These rare studies include Kaminski [3] which introduced a second-order perturbation, second probabilistic moment analysis in the context of FDM. This technique uses the perturbation method to expand the input random fields and was applied to time dependent linear problems with a small range of variability, where the first two statistical moments of the response were calculated. In Kamiński’s later works, he introduced a generalized version of this technique [4] which calculated higher probabilistic moments for any random dispersion of input variables. Ma et al. [5] presented a numerical method for a class of forward backward stochastic differential equations (FBSDEs). Their method is based on the *four step scheme *using a Hermite-spectral method to approximate the solution to the decoupling quasilinear PDE on the whole space. Hovanessian and Chang [6] solved a second-order linear differential equation representing a series RLC network with step function, sinusoidal and stochastic inputs. Soheili et al. [7] later introduced two explicit finite difference schemes in order to approximate the solution of stochastic partial differential equations of Ito type.

This paper utilizes the homogenous chaos expansion in the context of finite difference method (SFDHC). In this technique, the random inputs are discretized using Karhunen-Loève (KL) expansion, while the response is represented in terms of homogenous chaos (HC) expansion then a Galerkin projection scheme is applied to generate a system of deterministic equations, which can then be solved using classical deterministic FDM. Enriching other popular methods like SFEM, the proposed technique can handle time dependent nonlinear as well as linear problems with stochastic or deterministic initial and boundary conditions using less computational cost. Moreover, results are obtained in the form of a probability distribution function (pdf) of the response at the grid points where the extreme values and statistical moments can be easily evaluated, an obvious improvement over the usual solution representation of merely *mean values and standard deviations.* Two illustrative problems are used to validate the efficiency of the proposed technique, the first one being linear diffusion equation with stochastic parameter and the second is the nonlinear Burger’s equation with stochastic parameter and stochastic initial and boundary conditions. Both of these illustrative problem results are compared with MCS results. The comparison showed close conformity between SFDHC and MCS with optimized computational cost in favor of SFDHC.

#### 2. Random Field Discretization

When one or more of the physical parameters are modelled as random fields, it is essential, first, to represent them by an enumerable set of random variables. Quite a number of random field discretization techniques were cited in the literature [1, 8]. However, during the past two decades, KL and HC expansions have risen as two of the most practical techniques.

##### 2.1. Karhunen-Loève Expansion

KL expansion is dependent on the covariance kernel [1]. Let be a random process and be its correlation function. The discretized version of this field is written as where denotes the mean value of , is a set of uncorrelated random variables, and and are the eigen values and the eigen functions, respectively. The said eigen value and eigen function are evaluated by solving Fredholm integral equation: where is the spatial domain over which is defined, and , . In the computational implementation of the expansion, (1) is truncated at the th term to reach the finite-dimensional approximation:

##### 2.2. Homogeneous Chaos Expansion

The solution process for stochastic differential equations is not *known a priori,* which means that its covariance function is unknown. KL expansion is, in this case, inapplicable requiring HC expansion instead. HC expansion considers a probability space , where denotes the space of basic outcomes, is the -algebra associated with , and is a probability measure on . Considering some physical domain , , this can be a combination of spatial and temporal dimensions. A stochastic process (SP) can be seen as a scalar or vector-valued function , where is an element of the physical space, denotes the time, and is a point in the sample space . Because of the infinite-dimensional nature of the probability space, it has to be discretized by using a finite number of random variables , .

HC expansion polynomials are functions in the infinite set of random variables and therefore of infinite dimensions. A finite subset was chosen to build these polynomials; hence, the finite-dimensional polynomials of any order will be a subset of the infinite-dimensional polynomials of the same order. The convergence of the finite-dimensional polynomials is related to as well as to the choice of the subset ; the choice of this subset can be taken according to K-L expansion of the random process to ensure the convergence of a polynomial chaos (PC) expansion in the mean-square sense. As shown in [1, 9, 10], the solution process can be expressed as a summation of nonlinear functionals of the set multiplied by deterministic constants. These functionals can be expanded as a set of polynomials of second-order Gaussian random variables, , referred to as polynomial chaos. Hence, the random process, which represents the random field, can be expressed as in which is the polynomial chaos of order in the set of variables given in [10]. Truncating at the th order, (4) can be then written as or simply

The total number of these polynomials is , where

In (5), is a set of deterministic coefficients dependent on both and , is a set polynomials (up to order ) in the set of random variables , and refers to the number of terms in KL expansion. For example, if , the set of second-order-second-degree PC consists of 6 elements; . Also, if , , the set of second-order-fourth-degree PC consists of 15 elements; . Also, have the following orthogonality properties:

According to the Cameron-Martin theorem [11], for a fixed value of and , this expansion converges to any functional in the sense. This implies that the application of polynomial chaos is restricted to those stochastic processes with finite second-order moments (finite variance), and this applies to most physical processes yielding

#### 3. A Proposed Stochastic Finite Difference Approach Based on Homogenous Chaos Expansion (SDFHC)

In this proposed technique, the involved random parameters in SDE are expanded using KL expansion, which is truncated at the th term. The response function is, in turn, expanded using HC expansion since its covariance kernel is not *known a priori*. Applying Galerkin projection scheme through multiplying both sides of the resulting equation by and taking the statistical average yields a deterministic system of equations in which can be solved simply using the classical deterministic FDM. Consider
where is a random external excitation and is a differential operator involving differentiation in space and/or time which can be nonlinear and defined on the product space . Also, satisfies the initial and boundary conditions, deterministic or stochastic, and they are defined on some section of the boundary . Using (6) to expand in (10) yields

Multiply the different orthogonal polynomials of the finite expansion in (11) and get statistical average results to

From (12), it should be noted that set of coupled equations is generated. This most recent step is actually Galerkin projection in random space. The projection ensures the orthogonality of the residual to the functional space spanned by the finite-dimensional basis . As predicted, a strictly deterministic was achieved which would merely require a classical FDM-based solution in space and time. The resulting feature is mainly due to the averaging inherent in the projection, eliminating the randomness of the system model. It could also be noted that no additional errors, except for truncation errors, manifest from this step.

For a numerical solution using FDM, the physical domain is covered by a grid of mesh points where and are mesh parameters that are relatively infinitesimal and and are positive integers. The approximate solution of at these mesh points will be denoted by ; provided that the derivatives of have been replaced by finite difference quotients. Moreover, the choice of both and must satisfy all necessary conditions of the deterministic FD scheme like convergence, stability, and consistency. Once is obtained at every point in the mesh, (6) can be used to get the solution vector where the mean is given as and the covariance matrix for two points and is and the resulting variance vector of each point is

#### 4. Illustrative Example I: The Stochastic Diffusion Equation

In order to validate the efficiency of the proposed SFDHC technique, stochastic diffusion equation is evaluated under the effect of random parameter . The results are then compared with that obtained from MCS method.

##### 4.1. Problem Formulation

Consider the diffusion equation [12] with random parameter in the form where: and . Also, consider the case of deterministic initial and boundary conditions

Moreover, the random parameter can be written as: where is SP which expresses the spatial randomness in the parameter . Expanding both and using (3) and (6), respectively, yields

Using Galerkin projection scheme and multiplying both sides of (18) by then taking the statistical average yields where

Replacing the derivatives of by their difference quotients at the mesh points leads to

Introducing and solving the last equation for yields which can be solved using an explicit scheme to find at the different mesh points.

##### 4.2. Numerical Implementation and Results

To implement the results obtained in (22), consider as a second-order Gaussian SP with exponential covariance kernel given in [1] where denotes the coefficient of variation (COV) of the random field (which is constant) and is the correlation length. Assume and both and are unity. Also, let the initial and boundary conditions be considered as where , , and . Consider also the mesh parameters and so that , which is a necessary condition for the convergence of the FD scheme. This, produces a moderately course mesh of 11 joints in both and directions, with a total number of unknown joints (without the boundary ones). The problem is solved using MCS [13], where is expanded using KL expansion with . A large sample size of is then used to generate the random variables where exact deterministic solution, given in [12], is evaluated for each input. This in turn, becomes a benchmark for the proposed technique. HC of second and fourth degrees, SFD2 and SFD4, respectively, with order two were employed to derive the SFDHC’s solution. The same sample size was then used to generate the HC polynomials. The pdf of the solution process is plotted using MCS on SFD2 and SFD4 for 2 arbitrary points, point on the midspan at and near the boundary at , as shown in Figures 1 and 2, respectively. The mean and standard deviation (SD) of are also plotted at an arbitrary time level as shown in Figures 3 and 4.

##### 4.3. Error Analysis

The resulting response from the SFDHC technique, with two degrees of the polynomial chaos (SFD2 and SFD4), and MCS results (incorporating the exact solution given in [12]) were compared in terms of the maximum and minimum errors, their locations, and average error. From this, the relative accuracy of SFDHC technique is then recorded as shown in Table 1.

Note that the average error for the mean value and SD was calculated through the summation of the errors over all points and then dividing the sum by the number of points NP. Table 1 shows good convergence of the SFDHC technique with increasing the degree of the used polynomials. Evidently, for SFD2, the mean value and SD errors were maximum at the midspan, while they were minimum near the boundary. For SFD4, however, the mean value error has the same positions as SFD2, while the SD error is minimum around the first and third quarters. This conclusion is made from this particular problem with their corresponding inputs. Generally, from the insignificant errors recorded, the SFDHC technique exhibits very high accuracy for calculating the mean value and SD.

#### 5. Illustrative Example II: Stochastic Nonlinear Burger’s Equation

To illustrate the proposed SFDHC technique on a nonlinear case, consider stochastic nonlinear Burger’s equation (SBE) [14]. In addition, let us involve random parameters and expose them to deterministic or stochastic random excitation with deterministic or stochastic boundary and initial conditions.

##### 5.1. Problem Formulation

With a random parameter and random excitation , the nonlinear stochastic Burger’s equation can then be written as

Given that the domain and initial and boundary conditions are consistent with Section 4.2 and the excitation functions can be written as where is an SP expressing the spatial randomness in the excitation function. Also, can be expanded using (3) with and as the eigen values and the eigen functions, associated with its covariance kernel, respectively. Expanding as in (6) yields

Multiplying both sides of (17) by and taking the statistical average yields where

Replacing the derivatives of by their difference quotients and solving the last equation for yields

##### 5.2. Numerical Implementation and Results

The proposed technique will be applied to SBE in two cases: Case 1 using random parameter and, Case 2 using random initial and boundary conditions. Both Cases 1 and 2 are treated as follows.

*Case 1. *The same data used in Section 4.2 concerning the domain, the initial and boundary conditions, the mesh parameters, and will be employed here. First, assume the COV as unity for error analysis and for Figures 5 and 6. Then, some practical values (0.05, 0.10, and 0.20) will be considered in Figures 7 and 8. Both of SFD2 and SFD4 are used to solve (30), where the following results are obtained for points and .

##### 5.3. Error Analysis

As in Section 4.3, errors and accuracy are recorded as shown in Table 2.

Although the errors are slightly bigger than the linear case, the SFDHC technique still exhibits high performance for nonlinear problems.

*Case 2. *The proposed SFDHC technique can handle stochastic initial and boundary conditions expressed as
defined on some section of the boundary , where and both degree and order of are less than or equal to those used for . After executing the same procedure as in Case 1, it yields

As a practical example, assume an initial condition with the form
and boundary conditions
where is the same Gaussian SP used in Section 4.2 with COV = 1. Then, , for , and for . Also, , , for and for . Both of SFD4 and SFD2 are used to solve (32) with initial and boundary conditions given by (33) and (34), respectively. An MCS solution was provided through expanding the included stochastic processes using KL expansion then a sample of size 50,000 random numbers is used to generate the initial and boundary random values. Consequently, the problem is solved using FD forward scheme leading to 50,000 values of the stochastic response at each of the mesh points. A solution pdf for SFDHC is generated and then plotted for points and shown in Figures 9 and 10.

Comparing with MCS, SFD4 shows better approximation for the response (as expected) since it uses 4 random variables in its expansion, while SFD2 uses only 2.

#### 6. Discussion and Conclusions

As evidenced in this work, the SFDHC technique was designed to solve a wide range of time dependent nonlinear as well as linear problems with stochastic or deterministic initial and boundary conditions and exposed to deterministic or stochastic excitation. This technique uses HC expansion in compliment with FDM, providing the capacity to present the analysis result as pdf and not just the statistical moments of the response. Using two illustrative examples, as representative of linear and nonlinear problems, the proposed technique has proven to be highly efficient and computationally optimized. Using SFD4, the efficiency of this technique exceeds 98.6% for both mean and SD evaluations in the linear problem and exceeds 97% for the nonlinear one. Moreover, the computation times spent for SFDHC, on a Core-i3 computer, were 3.08 and 3.91 seconds for linear and nonlinear problems, respectively, as against 40.19 and 989.82 seconds for MCS, respectively, which means that 7.66% and 0.395% only of the execution time are in favor of SFDHC. The overwhelming advantages manifested by the proposed technique open the door for the versatility manifested by FDM in the deterministic field into the stochastic field. FDM had shown its versatility in the deterministic field by directly dealing with time dependent and nonlinear systems through explicit or implicit schemes. These capabilities of FDM will be available in the stochastic field by the way of this proposed technique. The SFDHC technique can handle more complicated nonlinear problems in 2 and 3 dimensions with explicit or implicit schemes which are available in the FDM literature. However, the illustrative examples in this paper were one-dimensional problems and were solved explicitly. Further research concerning the range of variability of random inputs, the choice of mesh parameters which satisfy FDM’s essential conditions, and closed forms for the produced error is highly recommended and is deemed worthwhile.

#### References

- R. G. Ghanem and P. D. Spanos,
*Stochastic Finite Elements: A Spectral Approach*, Springer, New York, NY, USA, 1991. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - O. H. Galal, W. El-Tahan, M. A. El-Tawil, and A. A. Mahmoud, “Spectral SFEM analysis of structures with stochastic parameters under stochastic excitation,”
*Journal of Structural Engineering and Mechanics*, vol. 28, no. 3, pp. 281–294, 2008. View at Google Scholar · View at Scopus - M. M. Kaminski, “Stochastic perturbation approach to engineering structures vibrations by the finite difference method,”
*Journal of Sound and Vibration*, vol. 251, pp. 651–670, 2002. View at Google Scholar · View at Scopus - M. Kamiński, “A generalized version of the perturbation-based stochastic finite difference method for elastic beams,”
*Journal of Theoretical and Applied Mechanics*, vol. 47, no. 4, pp. 957–975, 2009. View at Google Scholar · View at Scopus - J. Ma, J. Shen, and Y. Zhao, “On numerical approximations of forward-backward stochastic differential equations,”
*SIAM Journal on Numerical Analysis*, vol. 46, no. 5, pp. 2636–2661, 2008. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - S. A. Hovanessian and B. C. C. Chang, “Finite difference solution of differential equations with stochastic inputs,”
*Journal of Theoretical and Applied Mechanics*, vol. 47, pp. 957–975, 2009. View at Google Scholar - A. R. Soheili, M. B. Niasar, and M. Arezoomandan, “Approximation of stochastic parabolic differential equations with two different finite difference schemes,”
*Bulletin of the Iranian Mathematical Society*, vol. 37, no. 2, pp. 61–83, 2011. View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - B. A. Zeldin and P. D. Spanos, “On random field discretization in stochastic finite elements,”
*Journal of Applied Mechanics, Transactions ASME*, vol. 65, no. 2, pp. 320–327, 1998. View at Google Scholar · View at Scopus - N. Wiener, “The homogenous chaos,”
*American Journal of Mathematics*, vol. 60, pp. 897–963, 1938. View at Google Scholar - R. Ghanem and P. D. Spanos, “Polynomial chaos in stochastic finite elements,”
*Journal of Applied Mechanics, Transactions ASME*, vol. 57, no. 1, pp. 197–202, 1990. View at Google Scholar · View at Scopus - R. H. Cameron and W. T. Martin, “The orthogonal development of non-linear functionals in series of Fourier-Hermite functionals,”
*Annals of Mathematics*, vol. 48, pp. 385–392, 1947. View at Publisher · View at Google Scholar · View at Zentralblatt MATH · View at MathSciNet - K. W. Morton and D. F. Mayers,
*Numerical Solution of Partial Differential Equations*, Cambridge University Press, Cambridge, UK, 2nd edition, 2005. View at Publisher · View at Google Scholar · View at MathSciNet - M. Shinozuka and T. Nomoto, “Response variability due to spatial randomness of material properties,” Tech. Rep., Department of Civil Engineering, Columbia University, New York, NY, USA, 1980. View at Google Scholar
- L. Debnath,
*Nonlinear Partial Differential Equations for Scientists and Engineers*, Birkhäuser, Boston, Mass, USA, 1st edition, 1997. View at MathSciNet