Brief Review of Numerical Simulation Applied to Solve Oil Extraction Problems

In the last decades, the numerical analysis has abridged the time and cost of oil extractive operations, and thus their implementation has been promoted so much that today is used to solve a large number of phenomena that occur during the extraction of hydrocarbons, not only economizing the operation, but also shedding light to the phenomenon, and helping to have a better understanding. Nevertheless in spite of the success of the applications of numerical simulations, it has been until today, looking for their optimization, because the discretization methods of the domain and the model are through meshes, which require modifying the physics of the problem so that this matches the numerical method, and not in backwards.


Introduction
To achieve a broad state of the art and get a good understanding of the subject, it is necessary to explain generally the main techniques used to analyse, simulate and exploit the oil reservoirs and in what do they consist, reporting a briefly explanation of the more important development points.The aim of this review is to present a summary of numerical simulations used in Oil Extraction industry, which will help to select the best solutionschema that provides more chance of improvement in means of time processing and computational resources.

Numerical Simulation of Geothermal Reservoirs
Two main goals can be identify history matching and forecast of future scenarios (consequent to the exploitation of the reservoir).History matching is usually done to check the reliability of a model and evaluate the sustainability level in retrospect.It is the analysis of an exploitation history according to the data log until present time or during a particular time interval.This also allows to check the numerical model in a "feedback loop" and calibrate or adapt it to what is reported in the history data (in order to improve future scenarios forecast).This is practically done by assigning temperature and mass flow rate of both, the geo fluid extracted and re-injected, and any other useful historical data recorded that can be translated into thermo-physical parameters or boundary/initial conditions.Some phenomena which affect the behaviour of field utilization could not be put into a simulation in a proper way, without knowing about them from the history (natural recharge, natural change of the pathways of circulation into the rock formations, losses of pressure, etc.).If a model is considered to be reliable, it can be used to study how the durability of the resource changes depending on different: extraction rates, reinjection temperatures, wells siting, and fractures.A productive strategy can be based on the results of a model simulation.This is true for both power plants and thermal energy direct uses.Some general and macroscopic aspects of the application of numerical simulation to the geothermal energy study are listed here: o Equations describing the phenomena considered (circulation, energy/mass transport).o Estimation of the main thermo-physical parameters.o Boundary conditions (BC).o Geothermal potential assessment.o Coupling between the power/thermal utilization and reservoir.

Characterization of the Geothermal Source Potential
The final goal of the potential assessment is the sustainable utilization prediction of the resource.It involves the complete characterization of the field, energy stored, maximum fluid rate, useful temperatures and chemical parameters of the fluid (to determine the minimum temperature for reinjection).This evaluation is surely important for each kind of water dominant geothermal field.
During the running of a plant the productivity (and wells deliverability) can show some remarkable variations (in terms of flow rate, fluid chemistry and specific enthalpy of geo fluid).These changes can be addressed to reservoir pressure decline because of excessive fluid production.The reservoir fluid pressure is also another important parameter, linked both to the productivity of the well and the scaling phenomena.High pressure in the geo fluid pipes can keep the scaling phenomena under controlled rates.

Reinjection Strategy and Geofluid Chemistry
When reinjection is practiced, the geothermal energy is being used as a renewable energy source.The practice of reinjection avoids temperature and pressure decline in a geothermalfield.For the binary power plants it is a basic approach for resource management and it appears to be compulsory.The task is the optimization and enhancement of the durability of the resource [1].
The objectives of this methodarethe efficient restitution of the geo fluid to the reservoir (to optimize the recharge in terms of enthalpy and flow rate), and choosing the correct siting and depth of the wells (to guarantee a sustainable use of the resource).The optimum reinjection strategy is a quite complex task and it strongly depends on the type of geothermal system (Kaya et al. [2]).In general the minimum temperature values are in the range between 60˚C and 80˚C.The siting of production and reinjection well and their mutual interference are the main issues of the strategy.A correct reinjection strategy has to take into account the thermodynamic and chemical problems of the scaling phenomena, which in many cases increase with lowering of the temperature.A study of the geothermal system is fundamental, in order to avoid the worst consequences of fouling, corrosion and clogging of the parts of the plant, of the piping's, and the "tapping" of the wells.

Numerical Simulation of Geothermal Reservoirs: An Integrated Approach to Sustainable Design
Numerical simulation of geothermal reservoirs allows to understand the hydrogeological behaviour and heat transport into the reservoir under a certain utilization rate.It is possible to study the geothermal reservoir by solving the balance equations of mass, momentum and energy in the particular volume in which hydro-thermal circulation of fluid occurs.The constitutive laws are peculiar for each kind of reservoir, while the numerical analysis issues are also important in order to achieve a reliable solution.The hydrogeological issues linked to the geothermal exploitation (knowledge of the geological structures and of the groundwater system) must be connected with the engineering tasks of the design and optimization of the energy conversion system.The development of the numerical model itself has to follow two main directions: a.The unperturbed (or undisturbed) natural state.b.The utilization scenarios (during the exploitation).Different phases in the development of the model can be identified.A first "block-structure" has to be built together with the data of the parameters which best fit what it is expected by the conceptual model.This first step model should reproduce: a. Geological structure of the reservoir.b.Geometrical features of wells and fractures.c.Hydraulic, Thermal, Mechanic and Chemical conditions (HTMC).

Conceptual Model and Numerical Model
The conceptual scheme for the realization and simulation of a geothermal reservoir model is represented in Figure 1 [3].An important step of "interpretation" and appropriate data collection must be pursued firstly, for the elaboration of the conceptual model (Huenges [4]).This first step model should reproduce: geological structure of the reservoir; geometrical features of wells and fractures; Hydraulic, Thermal, Mechanic and Chemical conditions (HTMC).
The model should then pass a further step of calibration and refinement.It is an iterative process ruled by the conceptual and physical model, in which the parameters and boundary conditions should be adjusted.Some thermo-physical properties (permeability, thermal conductivity, porosity, specific heat capacity) change with siting, depth and hydrothermal alteration.Their value can be adjusted and the mesh can be refined at this step.
A first model of the unperturbed state is the result of execute these steps.The simulation time interval should be very large, between 80 -100 years, in order to verify the model stability and convergence.Exploitation and energy utilization scenarios can be then run starting from the unperturbed state simulation as initial conditions.In particular, temperature and pressure should be kept stable in the reservoir as much as possible.
If chemical properties are known, scaling and chemical deposition phenomena can be also introduced in the calculations, in a multi-physics simulation environment.The models can couple different transport equations, referring to mass, heat and chemicals.From the simulation, some useful data for the plant design must be extracted.
It is important to remark that building a numerical model of a geothermal reservoir is not easy, a reservoir cannot be practically measured in all its features.Its evolution can be studied, and a model can represent a way of behaviour prediction only if it is based on reliable data.In Figure 2 [5] a conceptual scheme about how the development of numerical models can help the sustainability assessment is shown.The size of the geothermal area must be known, the geometric domain must be big enough to comprehend every interesting mass/energy transfer boundary or spot, but also small enough to reach a proper calculation time.
Once the geometry and mesh have been set up, the equation parameters (and constitutive law) must then be considered.The constitutive law (e.g.Darcy Law) is typical for each phenomena, the conceptual model must arrange and properly describe the transport phenomena occurring in the geological system.Thermo-physical parameters should then be put into the simulation.
One single value of a significant parameter like porosity or permeability is assigned to a layer, or element.Often is not possible to assigning tensors or directional parameters (e.g.preferential directions for circulation), as they derive from very accurate measurements and interpretations.Calibration is a good tool, as it allows addressing parameter values matching with real temperature and pressure data.Anyway, it is possible only when reliable measured data are available.The main parameters to be assigned are essentially: o Porosity (ϕ, defined as the ratio between the voids and the total volume considered) and effective porosity (taking into account all the "interconnected" voids, allowing then the fluid circulation).o Permeability (k), being property of both the rock and the circulating fluid, giving an idea of the productivity of such a rock formation.o Density (ρ, its distribution derives from accurate measurements and usually it is approximated with a single value for each rock formation).o Thermal conductivity (of both rock and fluid).o Specific thermal capacity (of both rock and fluid).The mathematical and engineering 7 physical background is a fundamental part of this very complex process, but is not necessary always to develop a new algorithm, is better first to try with a well-known algorithm.A proper time scale should be identified, considering both economic lifetime (20 -50 years for new fields and 80 -100 years to recovery operations) and natural (or induced) renewability of the resource itself.
Different strategies can be adopted, in order to keep the utilization sustainable.It is very important to define the size of the installation (power plant) only after the simulation and complete resource assessment.Oversizing or resource fast depletion (reservoir cooling, wrong reinjection) can be some consequences of incorrect sizing.

Mathematical and Physical Background
From a mathematical point of view, in studies about transport, the task is to understand the response of a porous or fractured system when a hydraulic gradient is applied.The hypothesis and the real situation of the field should be compared very carefully.The basic calculations executed by the software's for numerical simulation substantially deal with the resolution of the flow into porous and/or fractured media.The mathematical tools used by the software's are: constitutive laws and conservation equations.The constitutive laws deal with the particular phenomenon involved.The following conservation equations are usually solved: mass, momentum, energy, concentration of pollutant (or chemicals) dissolved.
Geothermal reservoirs fluid flow can be generally studied according to the Darcy Law about porous media, the Darcy fluid velocity q is de fined as (Saeid et al. [6]) ) where k is the intrinsic permeability, being proportional to the hydraulic conductivity K according to the definition (in [6]): In which ρ is the density, g is the acceleration of gravity and μ is the viscosity, p is the pressure and z is the vertical coordinate.One thing to be considered is that in case of anisotropy and hydraulic conductivity tensor K can be defined: This element is important in order to consider the complexity of the phenomena involved.Average scalar values of the hydraulic conductivity or permeability are often assigned, but the real behaviour of rock formations can be very different from an averaged parameter.For example, porosity also changes with pressure and depth, it is important to understand which assumption must be done when assigning an average value to an extended rock body (having for example an unknown fractures field).The fractures are particularly difficult to reproduce in a numerical model, their accurate description is important if their spatial extension is to be compared to the rock formation size, otherwise average properties can be considered.In the most common reservoir simulation software's, like for example TOUGH2 [7], it is also possible to define different models for the relative permeability (R l ) as a function of the liquid saturation in the mixture (geothermal fluid) (Petrasim Manual [8]).Let us now consider a single phase (liquid) flow in a geothermal system.According to Rybach and Muffler [9] the following assumptions have to be considered: o Rock matrix is homogeneous and isotropic, in particular referring to porosity, permeability and thermal conductivity (supposed to be independent by temperature).o Incompressible fluid; with density (ρ) and kinematic viscosity (v) dependent by temperature according to the laws: with ρ 0 , v 0 , α, β and T 0 being opportune constants, while s(T) is a function of T. Pressure work and dissipations due to viscosity can be neglected, internal energy of liquid (l) and solid matrix (r) being ( ) with c l,vol and c r,vol specific volumetric heat capacities of rock and liquid.Under these assumptions the balance equations of mass, momentum and energy can be written respectively as (according to [9]): κ being the thermal conductivity of the mixture solid liquid.
A double phase system, in which the vapour phase is also considered, is described by similar equations [9].The following assumptions about porosity have to be done in this case: o Porosity ϕ only depends on local pressure of fluid.o Liquid and vapour phases are in local thermal equilibrium.
The equation of conservation (respectively) of mass, momentum (liquid and vapour) and energy can be then written as follows: where E is the internal energy of the liquid vapour mixture, k is the permeability tensor and R l is the relative permeability of the i th phase (I = l/g liquid or vapour).Some fundamental differences between the flow in porous and coherent media than in fractured media must then be taken into account ([9] [10]): a. Permeability induced by fracturing is generally higher than average formation permeability.b.Fracturing permeability is usually anisotropic (it depends on fracturing preferential direction).c.The permeability due to fracturing is considerably more dependent on pressure and tension field in the rock with respect to rock matrix permeability.In the recent paper by Zeng et al. [11] a discussion about the methods for fractured systems simulation is given.Geothermal fracture systems can be represented essentially in two ways: 1. Discrete fracture network method (fracture orientation, spacing and mechanical properties).2. Equivalent continuous porous media method (the fracture system is seen as an equivalent continuous media, with similar methodologies as for double porosity and double permeability).In Fox et al. [12] an analytical and numerical model for fractured reservoirs (multi-fractured EGS) is presented and simulated.In the following Figure 3 an example of simplified scheme of fluid circulation into the fractures is shown (b being the fracture size and x s the fractures mutual spacing).There is also the possibility of coupling thermal-flow problems with chemical or geomechanics problems into the same numerical simulation.It is the case of some models presented in literature, like for example the case of a fully-coupled flow and geomechanical model by Hu et al. [13].

Hot Dry Rock (HDR) Reservoirs
Hot Dry Rock geothermal energy extraction [14]: has come to mean the forced circulation of water between injection and recovery boreholes through a naturally fractured rock mass.In such reservoirs, typically developed in granitic or similar crystalline basement, the intact rock usually has very low permeability and porosity.Heat extraction is controlled by conduction through the intact rock blocks towards water conducting fractures whose apertures may have been artificially increased, where advection transports thermal energy towards the recovery well(s).
Fluid flow rates in fractures are strongly dependent on the fracture aperture, typically the fluid velocity in response to a given pressure gradient is proportional to the square of the fracture aperture.This relation is commonly expressed in terms of the parallel plate laminar flow solution (Reynolds equation), using a hydraulic aperture related to the mean mechanical fracture aperture.The hydraulic aperture is a non-linear function of effective normal stress, the fracture morphology, material properties and its history.Shear displacement of the fracture wall, caused by engineering interventions such as high-pressure fluid injection ("stimulation"), or chemical deposition/solution may alter the hydraulic aperture irreversibly and change the reservoir properties.HDR systems, therefore, respond non-linearly, and sometimes irreversibly, to changes in operational parameters.
HDR field experiments (reservoir stimulation and circulation), are expensive to execute and cannot be repeated indefinitely from the same borehole due to progressive irreversible changes in the system under study.Numerical experimentation provides a mean to demonstrate understanding of the available experimental results and to extend that understanding to other conditions.This leads to a predictive capability, support to design and operational planning.
The HDR modelling task is, in some aspects, more demanding than that faced by the underground storage or hydrocarbon industries.This stems firstly from the strong dependence of reservoir flow properties on the fluid pressures encountered during high pressure injection and secondly from the lack of field data sufficient to adequately characterise the rock mass.Modelling for underground radioactive waste isolation is aided by detailed measurements made in in situ rock laboratories, whilst hydrocarbon reservoir modelling benefits from rock mass imaging using seismic and the possibility of direct measurement of the critical parameters of interest (porosity, permeability, wettability) from core recovery, often from many wells.In contrast, within the HDR community there is little opportunity for direct measurement of many of the parameters of critical interest, such as in situ fracture compliance, shear behaviour or fracture length distributions.Furthermore, in the absence of extensive operational experience of HDR systems, modelling plays a critical role in assessing design and performance expectations.In order to carry out these tasks effectively the HDR community needs to achieve a level of confidence in its modelling methods and also predictive capabilities consistent with the investment needed for commercial prototypes.
The objectives of HDR models are to attempt one or more of the following, but at present no model manages to achieve all five objectives.a.To help understand the performance of actual field experimental systems and to help design measures to improve inadequate system performance (e.g.re-drilling, secondary stimulations, sealant treatments).b.To predict/simulate the effects of different reservoir creation strategies; mainly high pressure fluid injections and proppant placement (stimulation models).c.To predict the thermal performance with time of an engineered reservoir under a given operating strategy (thermal drawdown curve).d.To predict the hydraulic performance of an engineered reservoir under a given operating strategy (impedance, water loss).e.To optimise well placement and operating strategy in relation to both reservoir creation and circulation HDR reservoir models can be examined in the light of their treatment of the coupling of fluid mechanical, rock mechanical, thermal, chemical and hydraulic processes within the reservoir [15]- [24], together with their representation of the geometry of the underground system [25]- [27].The way in which these two aspects, coupling and geometry, are approached will be the result of compromises between the objectives of the model and the resources available.Typically, strong coupling can be placed in geometrically reduced or abstract models, whilst geometrically "realistic" models require excessive computational resources to support strong coupling.Thus, at the present time, it is likely that the best approach to HDR modelling will be made through optimisation of the compromises required, rather than through efforts to simulate with exactitude all processes and the complex geometry of fractured rock within a single model.
The commonly observed distinction between models of stimulation and circulation is a natural one.There is a change from rapidly evolving fluid-rock mechanical coupling on the scale of hours to days during stimulation, to thermal-mechanical-chemical coupling over a time scale measured in years during circulation.HDR field experiments to date indicate that circulation through a virgin rock mass does not appear viable, therefore there is a necessity for models of heat extraction (i.e.circulation) to combine with, or use the results of, stimulation models, to show how the required starting conditions for potentially economic reservoirs may be engineered.

Modelling of Governing Factors
Rock stress and joint mechanical properties: Knowledge of in-situ stress and fluid pressure are critical for modelling reservoir behaviour.The interaction between stress, pressure, fracture orientation and fracture friction angles determines the fluid pressure that has to be applied to start the stimulation processes.The region activated by hydraulic stimulation often appears to be an ellipsoid with the major axis almost coinciding with the direction of maximum compressive stress.The vertical effective stress gradient determines the migration direction of the stimulation (upward or downward) [28].The fracture mechanical properties, i.e. joint normal stiffness, shear stiffness and shear dilation rate (broadly determined by the roughness at wavelengths comparable to the displacement), are the key factors inducing the nonlinear coupling among the fluid pressure, fracture aperture and rock stress.
Flow within fractures: Corey-type relative permeability is usually assumed.When the reservoir is highly fractured, overall permeability is dependent on the characteristics and spatial distribution of the fractures.Niibori and Chida [29], investigated the effect of the fracture distribution on the relative permeability.Channelling of flow on fracture surfaces is to be expected [30].Channelling reduces the overall flow impedance compared to uniform flow in equivalent mechanical apertures.However, the heat exchange area will be reduced by channelling.Channelling may be treated stochastically by using a model of fracture aperture composed of mated fractal fracture surfaces [31].Simulation of fluid flow through such a fracture is possible, but at this time it is numerically impractical for field-size fractures and approximate treatments are required.Turbulent, or at least non-linear flow, has been suggested to occur in the experimental reservoir at Soultz [32]- [38].The contrast in permeability between the intact rock and fractures is large in HDR reservoirs.Numerical calculations are difficult and special modelling is required [39] if both fracture and intact rock permeability are to be represented explicitly.
Heat transfer: It is common for models to assume that the mean temperature of the fluid within a fracture element is equal to the mean temperature of the fracture surface.But, this assumption may not be appropriate when the flow rate is large or fluid flow is channelled.An experimental study [40] on the heat transfer from the fracture surface to the fluid has provided surface heat transfer coefficients at fracture surfaces.Such considerations are only likely to be important in a small volumetric fraction of HDR reservoirs.
The heat transfer effect of flow channelling within fractures needs further consideration in HDR reservoir models.In most reservoir-scale models, the individual fractures are modelled as uniform aperture discs or polygons.Within models suitable for PCs further small-scale resolution of flow channelling is not possible on computational grounds.Therefore, there is a need for simplified representation of the effect.Channelling on a scale of less than a few meters probably does not have to be spatially modelled provided local time-smearing on the scale of a few months is accepted.This time resolution is quite adequate for modelling long-term heat production.A simple lumped-parameter model should be sought to cover the heat transfer effects of channelling for use at such a geometric scale.Channelling makes it harder for heat to leave the rock mass.The effect could be modelled by the introduction of a layer of "virtual rock" lining each fracture.Such a layer of virtual rock would mimic the effective reduced heat transfer area near the fracture, but would be given no thermal mass.Effectively it would become a large-scale heat transfer coefficient.

Structure of Reservoirs as Derived from Field Observations
Drilling noise measurement and acoustic emission (AE) reflection techniques can give information on reflecting layers that seem to be closely related to the larger subsurface structures.These can be used for modelling in the first stages of exploitation, i.e. before hydraulic stimulation.
Models to estimate the local transmissivity distribution within the reservoir by using AE magnitude through the usual approach of estimating the slip area and magnitude of slip movement have been proposed [41]- [46].By the use of the "collapsing technique" [47] and "doublet analysis" [48], both of which are methods for refining the internal structure of clouds of AE, structures that may be predominant fluid flow paths can be delineated from the AE clouds recorded during hydraulic stimulation.In subsequent circulation simulation, these main flow paths could be taken into account.This is important, because the evaluation of the behaviour of reservoirs during circulation and heat extraction is highly dependent on the condition of reservoirs at the start of circulation and heat extraction.
Almost always aseismic regions are found within the AE cloud detected during hydraulic stimulation.It is not known whether these regions are accepting fluid or are mostly mechanically and hydraulically inactive.In order to overcome this difficulty, new approaches to acquiring information on the flow paths are needed.The AE tomography method [49] and Electrical Resistance Tomography could be used to acquire images of fluid flow paths and of changes of the flow paths with time, but remain dependent on experimental data acquisition opportunities.
Tracers can be used to indirectly assess the state of a reservoir.Although tracers have been used for a long time, their full potential for understanding HDR/HWR reservoirs has not yet been realized.Reactive tracers (those that thermally degrade in a controlled way and those that attach themselves to the crack surface) could be used to monitor the cooling of the reservoir and the surface area of the reservoir.By using tracers repeatedly during operation, a measure of the dynamic changes occurring in a reservoir could be obtained.It may even be possible to use controlled diameter particles to measure joint opening during reservoir operations.
Models must be developed to ensure that they reflect the reservoir's heterogeneity as revealed by increasingly sophisticated field data processing, whilst at the same time recognizing that interpretational ambiguities remain.

Overall Modelling of Reservoir Performance
The modelling of a reservoir, including all interactions between fracture/channel flow paths and the host rock, all geometric irregularities and all changes in the flow paths during stimulation, development and operation, is a challenging problem.This is, of course, the original problem, which was posed more than 20 years ago.
Willis-Richards and Wallroth (1995) [25]- [27] classified models using six categories for the representation of reservoir geometry: one abstract geometry class, four reduced geometry model classes and one realistic geometry class.All lumped-parameter models fall into the category of abstract geometry models.Single planar fracture models, such as PKN and CGDD models, fall into the category of reduced geometry.Network models with regular grids also fall into this category.Realistic geometry models use computer-generated fracture networks.In this review, we classify models into three categories: lumped-parameter models, continuum models and network models.
Lumped-parameter models: Lumped-parameter models [25]- [27] [50], proposed two simple models, based on standard analytic solutions for the mechanical behaviour of cracks combined with a simple representation of the frictional properties of fracture surfaces.The two models describe the stimulation and circulation of HDR reservoirs in a naturally-fractured basement.Hyodo [50] applied a simple model, which used an analogy to an electrical circuit, to the data from the Hijiori experiments.The model consists of the wellbore impedance, reservoir impedance, loss impedance and reservoir capacitance.All these are set to be dependent on the flow rate, and system parameters can be estimated by simple field experiments, such as step-rate tests.
Continuum modelling approach: In continuum modelling, using either finite difference or finite element approaches, fractures are represented as lying between volumes of matrix rock.These rock masses may be permeable, thermally conducting and/or elastic according to the situation under examination.A variant on this approach has recently been proposed by Vychytil and Horii [51] based on micromechanics.The main input data are joint spacing and preferred orientation of joint sets.It can take into account the aperture change of joints due to slippage along them and is very effective from the view point of the trade-o between the computing time and the geometric reality of the model, especially in the very early stage of exploitation during which information on subsurface structure is very restricted.Three-dimensional simulation is performed fairly easily.The model was successfully applied to data from the Fenton Hill site.
Fracture network modelling: Computer-generated fracture networks conditioned by field data could be used to simulate the operation of the whole reservoir.However, there still remain some problems including this, which need to be solved.For example, the active and the stimulated networks in a HDR reservoir do not correspond exactly to the pre-stimulation (i.e.undisturbed) fracture network.The mechanical and hydraulic processes of stimulation determine which network members can become activated through shear movement and fracture dilation.The additional thermal, chemical and long-term mechanical effects during operation determine their further development.Thus, accurate representation of initial conditions and good representations of the relevant mechanisms are required.Furthermore, whether a statistically accurate realization is sufficient for most purposes has not yet been adequately explored.Also, it is difficult to introduce rock-fracture interactions into a fracture network model without modelling the host rock matrix in at least the same degree of detail mechanically with considerable computational burden ensuing.It is possible to constrain the generated network to ®t the observations in the near field of the access wells.The far field is necessarily treated statistically.
In recent years, it has become apparent that fracture-size distributions are fractal [45] [52] [53]; or at least close to fractally distributed, although it is commonly assumed that spatial distribution of fractures is random.The undisturbed aperture-fracture size relationship is not known at the scale of geothermal reservoirs.This is potentially critical, because the fluid flow resistance primarily depends on a high power of the aperture.Transmissivity, tortuosity and storage are common field data relating to aperture.

Simulation Codes
Many simulation codes have been developed and each has its own merit.It is helpful to summarize, classify and show which code is applicable to each of the four stages of exploration, stimulation, circulation and heat extraction.Table 1 [14] summarizes codes for this purpose.In the table, the column "coupling of processes" represents the coupling between fundamental processes (Tsang, 1987(Tsang, , 1991)), i.e.H-M, rock stresses responding to fluid pressure changes; T-M, rock stresses responding to temperature changes; M-H, fracture flow apertures responding to stress change; H-T, heat transfer by fluid flow water; and T-H, viscosity and flow patterns changing with temperature.DEM, FEM, FDM and BIM stand for Discrete Element Method, Finite Element Method, Finite Difference Method and Boundary Integral Equation Method, respectively.There are no simulation codes included in Table 1 for water/rock chemical interaction.Indeed, the review paper by Willis-Richards and Wallroth (1995) has cited only two papers by Robinson and Pendergrass (1989) and by Shoji et al. (1989), both of which are for a one-dimensional crack, which cover such interactions.

Foam Dynamics in Porous Media and Its Applications in Enhanced Oil Recovery
Foam is a mix of gas, water and a foamer, and consists of liquid films/lamellae and Plateau borders (Schramm

H-T, T-H, H-M, M-H
Flow channels along stochastically generated fractures and Wassmuth, [54]; Vikingstad, [55]).A plateau border is the connection point of three lamellae, at an angle of 120˚ (Figure 4).Foam is a special case of two-phase (gas-liquid) flow.For gas-liquid flow in porous media without foam, the gas phase resides in the center of the large pores occupying the main paths of flow, while the liquid phase fills the small pores and coats walls of the large pores.Existence of foam affects this diffusivity mechanism.The gas phase in foam will be trapped by films of the liquid lamellae.As a result the gas velocity decreases and gas and liquid phases will move together at the same velocity if a case of stable foam has been achieved.This section briefs mechanisms of generating, stability, and flow regimes of foam in porous media.

Generation of Foam in Porous Media
Ransohoff and Radke [56] observed three mechanisms lead to foam generation in porous media; snap-off, leavebehind, and lamella division.Figure 5 shows these mechanisms.

Snap-Off Mechanism
Roof [57] showed that when oil emerges from a water-wet constriction into a water-filled pore, the interfacial forces are such that a leading portion of the oil may separate into a droplet (snap off).The same mechanism occurs during invasion of gas to pores filled with liquid.It takes place regardless of the presence or absence of surfactant, but if a stabilizing surfactant is not present, snapped off bubbles quickly coalesce (Kovscek and Radke, [58]).The snap-off process is a result of the difference in the capillary pressure between the pore body and pore throat.Thus occurrence of the process is a function of ratio of the body-to-throat equivalent diameters.Kovscek and Radke [58], and Li [59]- [61] presented details of the snap-off process.

Leave-Behind Mechanism
The leave behind mechanism also occurs during invasion of a gas phase to a porous medium saturated with a liquid phase.Foams generated solely by leave-behind give approximately a five-fold reduction in steady-state gas permeability (Ransohoff and Radke, [56]; Kovscek and Radke, [58]), whereas discontinuous-gas foam created by snap-off resulted in a several-hundred fold reduction in gas mobility (Persoff et al., [62]; Ettinger and Radke, [63]; Kovscek and Radke, [58]).This indicates that the strength of foam (i.e.number and stability of lamellae) is affected by the dominant mechanism of foam generation.

Lamella Division Mechanism
Increasing number of lamellae or bubbles by lamella division mechanism can be existed when mobile foam bubbles are pre-existed in the porous medium.When a moving lamella train encounters a branch in the flow path, it may split into two, one in each branch of the path (Tanzil et al., [64]).Lamella division is thought to be the primary foam-generation mechanism in steady gas-liquid flow (Gauglitz et al., [65]; Li, [59]- [61]).

Stability of Foam in Porous Media
Foam in porous media can be in a stable state at a certain value of the capillary pressure, called the limiting capillary pressure (Pc*) (Khatib et al., [66]).The limiting capillary pressure is a function of the surfactant formulation and concentration, gas velocity, permeability of the porous medium, and presence of oil.The corresponding liquid saturation of (Pc*) is (Sw*).
Flow regimes of foam in porous media (Osterloh and Jante [67]) showed that two flow regimes of foam in porous media can be identified; high-quality (dry) regime in which steady-state pressure gradient is independent of gas flow rate and low quality (wet) regime in which pressure gradient is independent of liquid flow rate.The transition zone between the two regimes was characterized by a specific value of gas fractional flow (gas velocity divided by total velocity) (fg*).Alvarez et al. [68] confirmed conclusions of Osterloh and Jante [67] and showed that this behaviour of foam flow is general by using data of foam flow with a variety of porous media and surfactant formulations, over a range of flow rates.There is a critical pressure gradient that must be exceeded to generate a high-quality regime of foam during the flow of surfactant solution and gas through homo-geneous porous media (Li et al., 2008).Figure 6 shows a schematic plot of parameters of the foam flow in porous media.

Factors Affecting Foam Dynamics in Porous Media
Experimental studies that investigated factors affecting foam dynamics in porous media have been reviewed and their important conclusions have been highlighted.The studies investigated different types of surfactant (anionic, non-ionic, cationic, and amphoteric surfactants) with types of porous media consisted of steel wool packs, sand packs, crush cores, and sandstone and carbonate cores.The used methodologies included static and flow tests (pre-prepared foam injection, co-injection of surfactant solution and gas, and SAG injection) at conditions ranged from room to reservoir conditions and in absence and presence of oil.The progress of foam front was monitored by measuring of the differential pressure.To identify the liquid saturation and propagation of foam in porous media, some studies used X-ray computed tomography e.g.Apaydin and Kovscek [69] and Nguyen [70], or Gama ray e.g.Persoff et al. [71].The investigated factors include; surfactant, injection parameters, permeability and heterogeneity of porous media, and presence of oil.

Surfactant
The surfactant has an important role in generation and stability of the foam in porous media.It affects the interfacial forces between the gas and liquid which in turn affects value of Pc*.The proper surfactant should have the following properties: be capable of generating ample, lasting foam at the reservoir conditions, should have low adsorption and decomposition losses, should increase the sweep efficiency and the oil recovery, in addition it should be commercially available and inexpensive (Casteel and Djabbarah, [72]).Foam is readily formed during a drainage process (displacing the liquid phase by the gas phase) whenever the porous medium is pre-saturated with a surfactant solution (Chou, 1991).The reduction of surfactant concentration below the Critical Miscelle Concentration (CMC) caused a shift of the transition zone of the flow regimes to lower values of fg* and Pc* (Alvarez et al., 1999).Foam coalescence forces are inversely proportional to surfactant concentration, thus the foam weakens and the displacement efficiency decreases as the surfactant concentration decreases (Apaydin and Kovscek, [73]).Friedmann and Jensen [74] showed that size of foam bubbles inside porous media slightly decreases with increasing of the surfactant concentration.Li [59]- [61] found that higher velocity is required to create foam when the surfactant concentration is reduced.Adsorption of the surfactant on the reservoir rock reduces the surfactant concentration in the injected fluid.The adsorption is a function of the surfactant formulation, reservoir fluids, reservoir lithology, and reservoir conditions (Casteel and Djabbarah, [72]).For unconsolidated sand cores at temperatures ranging from 50˚C (122˚F) to 150˚C (302˚F) it was found that the surfactant adsorption decreases with increasing the temperature, and increases with the presence of clays in the core (Novosad et al., [75]).Grigg and Mikhalin [76] showed that the adsorption is a function of state of the fluid movement beside the other parameters, and the density of adsorption of the surfactant on the rock is best described as a function of the surfactant available in the system (concentration plus volume), rather than by surfactant concentration only.In experiments on carbonate cores, Liu et al. [59]- [61] observed that the presence of gas with the surfactant solution in the rock does not affect the surfactant adsorption.

Pre-Prepared Foam Injection and Co-Injection of Surfactant and Gas
The injection flow rate affects foam dynamics strongly.Faster flow rate produces foam with smaller and more uniform bubble sizes, and the foam formed at the higher pressure is more stable (Friedmann and Jensen, [74]).The relationship between the gas fractional flow (also called foam quality, fg) and gas mobility is characterized by two straight lines intersecting at a critical foam quality (fg*) (Khatib et al., [66]; Liu et al., [59]- [61]), as shown in Figure 7.At values of fg slightly below fg*, gas mobility slightly decreases or remains constant with increasing of fg, which indicates a stable state of foam texture (high-quality regime).While at higher fg (above fg*) the gas mobility increases with increasing of fg which indicates an unstable state of the foam texture (lowquality regime).Persoff et al. [62] [71] found that during the transient foam flooding, the flow characteristics vary from characteristic of free gas to that of strong, fine-textured foam.Nguyen [70] showed that before the breakthrough the foam displaces the liquid in a piston-like manner and after the breakthrough a stage of strong secondary liquid de-saturation initiates in central portion of the porous medium and propagates towards the inlet and the outlet.

SAG Injection
Since foam is readily formed during drainage process whenever the porous medium is pre-saturated with a surfactant solution (Chou, [77]), thus SAG injection is a favourite method to create in-situ foam in porous media.(Xu,[78]) proved that the SAG injection can produce stable and persistent foam.Li et al. [79] [80] pointed that foam generated in situ by SAG injection can be a substitute for polymer drive in the alkaline-surfactant-polymer EOR process.Gas mobility in SAG injection is higher than that in co-injection of surfactant and gas [59]- [61].This makes SAG injection more favourite than co-injection to overcome problem of the injectivity reduction that accompanies foam applications in EOR processes.

Permeability and Heterogeneity of the Porous Media
The foam propagation rate in porous media is significantly affected by rock permeability (Friedmann and Jensen, [74]).The minimum pressure gradient required for triggering foam generation in steady flow through porous Figure 7. Schematic plot for the relationship between fg and gas mobility.media varies with the permeability (Rossen et al., [81]).As permeability increases, the pressure gradient and gas velocity required for foam generation decrease (Li,[59]- [61]), and value of fg* is much higher in the high-permeability medium (Alvarez et al., 1999).In SAG injection, gas breakthrough is much faster in a high-permeability bead-pack than in a low-permeability pack (Li, 2006).Khatib et al. [66] concluded from their experiments on porous media with permeability range of 69.09 to 8882.31 µm 2 (70 to 9000 Darcies) that Pc* decreases with increasing of the permeability, and there is a straight line relationship between Pc* and logarithm of permeability.This conclusion needs to be verified for low permeability porous media.Siddiqui et al. (1997) stated that the dependence of foam mobility on the injection parameters is different for the low-permeability porous media than that of higher-permeability porous media.(Rossen et al., [81]) showed that the relation between the minimum pressure gradient required for creating foam and permeability is more complex in consolidated media.Casteel and Djabbarah [72] conducted an interesting experiment to optimize oil recovery from parallel layers have different permeabilities.The result was the foam is more effective to improve oil recovery if it is conducted after the recovery by gas injection.This result agrees with findings of Apaydin et al. [82] where they showed that in heterogeneous layers the foam fronts move at identical rates in all layers if the layers are in capillary communication and cross flow is allowable, but if the cross flow is prohibited between the layers, foam partially plugs the high permeability zone and diverts flow into the low permeability zone.Based on that, it can be concluded that the stage of using foam in EOR should be after a stage of gas flooding alone to get the maximum oil recovery.Thus, foam injection must be the fourth stage of the recovery after primary recovery, water flooding, and gas flooding.

Presence of Oil
For simplicity most of the experimental studies have been conducted in the absence of oil (Sayegh and Girard, [83]; Liu, [84]; Persoff et al., [71]; Apaydin et al., [82]; Schramm and Kutay, [85]; Apaydin and Kovscek, [69] [73]; Dong, [86]; Xu, [78]; Nguyen, [70]; Xu and Rossen, [87]; Kutay and Schramm,[88]; Du et al., [89]; Kim et al., [90] [91]; Li, [59]- [61]; Liu et al., [61]; Li, [79] [80]).Success without oil is a precondition to success with oil (Ashoori and Rossen, [92]).But presence of oil has important effects on foam flow in porous media.Presence of oil represents an additional phase to the gas phase and the surfactant solution phase in the porous medium.This will affect the interfacial tension between phases and the saturations of the phases in the porous medium.Nikolov et al. [93] showed that brine concentration, and surfactant type and concentration affect directly the stability of emulsion and foam films.Oil saturation has a stronger effect on foam than the variances in properties of oil (Jensen and Friedmann,[94]), and behaviour of foam to displace oil is not the same for all the surfactants (Novosad et al. [95] [96]).Effect of the presence of oil on the propagation of foam in porous media is strongly surfactant-specific, this was confirmed by Jensen and Friedmann [94], Novosad et al. [95] [96], Mannhardt et al. [97], and Vikingstad and Aarra [98].For instance Friedmann and Jensen [74] found that presence of oil greater than 20% saturation is detrimental to both foam generation and to propagation of preformed foam, while with different porous medium, oil, and surfactant Vassenden et al. [99] showed that in presence of oil even at very low saturation (5%), gas and surfactant solution were found to flow together without forming foam, and a low-mobility foam zone was found to propagate from the inlet significantly slower than the gas and surfactant fronts.This high difference in the critical oil saturation at which presence of oil be a detrimental factor for propagation and stability of foam indicates that results of experiment of the foam flooding are very restricted to the used type of porous medium, type and saturation of oil, and type and concentration of surfactant, i.e. it is difficult to develop generalized correlations for predicting performance of foam in oil reservoirs.

Introduction
Smooth Particle Hydrodynamics (SPH) method will be explained and developed in its original form based on updated Lagrangian formalism.SPH is a relatively new numerical technique for the approximate integration of partial differential equations.It is a meshless Lagrangian method that uses a pseudo-particle interpolation method to compute smooth field variables.Each pseudo-particle has a mass, Lagrangian position, Lagrangian velocity, and internal energy; other quantities are derived by interpolation or from constitutive relations.
The advantage of the meshless approach is its ability to solve problems that cannot be effectively solved using other numerical techniques.It does not suffer from the mesh distortion problems that limit Lagrangian ap-proaches based on structured mesh when simulating large deformations.As it is a Lagrangian method it naturally tracks material history information, such as damage, without the diffusion that occurs in Eulerian approaches due to advection.
Gingold [100] and Lucy [101] initially developed SPH in 1977 for the simulation of astrophysics problems.Their breakthrough was a method for the calculation of derivatives that did not require a structured computational mesh.Review papers by Benz [102] and Monaghan [103] cover the early development of SPH.Libersky and Petchek [104] extended SPH to work with the full stress tensor in 2D.This addition allowed SPH to be used in problems where material strength is important.The development SPH with strength of materials continued with extension to 3D [105], and the linking of SPH with existing finite element codes [106] [107].
The introduction of material strength highlighted shortcomings in the basic method: accuracy, tensile instability, zero energy modes and artificial viscosity.These shortcomings were identified in a first comprehensive analysis of the SPH method by Swegle [108], and Wen [109].The problems of consistency and accuracy of the SPH method, identified by Belytschko [110], were addressed by Randles and Libersky [111] and Vignjevic and Campbell [112].This resulted in a normalised first order consistent version of the SPH method with improved accuracy.The attempts to ensure first order consistency in SPH led to the development of a number of variants of the SPH method, such as Element Free GalerkinMehod (EFGM) [113] [114], Reproducing Kernel Particle Method (RKPM) [56] [57], Moving Least Square Particle Hydrodynamics (MLSPH) [12], Meshless Local Pet-rovGalerkin Method (MLPG) [115].These methods allow the restoration of consistency of any order by means of a correction function.It has been shown by Atluri [115] [116] that the approximations based on corrected kernels are identical to moving least square approximations.The issue of stability was dealt with in the context of particle methods in general by Belytschko [117], and independently by Randles [118].They reached the same conclusions as Swegle [108] in his initial study.
In spite of these improvements, the crucial issue of convergence in a rigorous mathematical sense and the links with conservation have not been well understood.Encouraging preliminary steps in this direction have already been put forward very recently by Ben Moussa [119], who proved convergence of their meshless scheme for non-linear scalar conservation laws; see also [120].This theoretical result appears to be the first of its kind in the context of meshless methods.Furthermore, Ben Moussa proposed an interesting new way to stabilise normalised SPH and allow for treatment of boundary conditions by incorporating upwinding, an approach usually associated with finite volume shock-capturing schemes of the Godunov type, see [121]- [123].The task of designing practical schemes along these lines is pending, and there is scope for cross-fertilisation between engineers and mathematicians and between SHP specialists and Godunov-type schemes specialists.
The improvements of the methods in accuracy and stability achieved by kernel re-normalisation or correction, have not, however, come for free; now it is necessary to treat the essential boundary conditions in a rigorous way.The approximations in SPH do not have the property of strict interpolants so that in general they are not equal to the particle value of the dependent variable, i.e.

( ) ( )
Consequently it does not suffice to impose zero values for u I at the boundary positions to enforce homogeneous boundary conditions.
The treatment of boundary conditions and contact was neglected in the conventional SPH method.If the imposition of the free surface boundary condition (stress free condition) is simply ignored, then conventional SPH will behave in an approximately correct manner, giving zero pressure for fluids and zero surface stresses for solids, because of the deficiency of particles at the boundary.This is the reason why conventional SPH gives physically reasonable results at free surfaces.Contact between bodies occurs by smoothing over all particles, regardless of material.Although simple, this approach gives physically incorrect results.
Campbell [124] made an early attempt to introduce a more systematic treatment of boundary condition by re-considering the original kernel integral estimates and taking into account the boundary conditions through residual terms in the integral by parts.Probably the most sophisticated work on boundary conditions in SPH is due to Takeda et al. [125], who have applied SPH to a variety of viscous flows.A similar approach has also been used to a limited extent by Libersky [104] [105] with the ghost particles added to accomplish a reflected symmetrical surface boundary condition.In, Belytschko, Lu and Gu [113] the essential boundary conditions were imposed by the use of Lagrange multipliers leading to an awkward structure of the linear algebraic equations, which are not positive definite.Krongauz and Belytschko [126] proposed a simpler technique for the treatment of the essential boundary conditions in meshless methods, by employing a string of finite elements along the essential boundaries.This allowed for the boundary conditions to be treated accurately, but reintroduced the shortcomings inherent to structured meshes.
Randles et al. [111] [118] were first to propose a more general treatment of boundary conditions based on an extension of the ghost particle method.In this, the boundary is considera surface one-half of the local smoothing length away from the so-called boundary particles.A boundary condition is apply to a field variable by assigning the same boundary value of the variable to all ghost particles.A constraint isimpose on the boundary by interpolating it smoothly between the specified boundary particle value and the calculated values on the interior particles.This serves to communicate to the interior particles the effect of the specific boundary condition.There are two main difficulties in this: o Definition of the boundary (surface normal at the vertices).o Communication of the boundary value of a dependent variable from the boundary to internal particles.
A penalty contact algorithm for SPH was developed at Cranfield by Campbell and Vignjevic [112].This algorithm was tested on normalised SPH using the Randles approach for free surfaces.The contact algorithm considered only particle-particle interactions, and allowed contact and separation to be correctly simulated.However tests showed that this approach often excited zero-energy modes.
Another unconventional solution to the SPH tensile instability problem was first proposed by Dyka [127] in which the stresses are calculated at the locations other than the SPH particles.The results achieved in 1D were encouraging but a rigorous stability analysis was not performed.A 2D version of this approach was investigated by Vignjevic [112], based on the normalised version of SPH.This investigation showed that extension to 2D was possible, although general boundary condition treatment and simulation of large deformations would require further research.
To utilise the best aspects of the FE and SPH methods it was necessary to develop interfaces for the linking of SPH nodes with standard finite element grids [107] [128] and contact algorithms for treatment of contact between the two particles and elements [129].
From the review of the development of meshless methods, given above, the following major problems can be identified: consistency, stability and the treatment of boundary conditions.

Basic Formulations
The spatial discretisation of the state variables is provided by a set of points.Instead of a grid, SPH uses a kernel interpolation to approximate the field variables at any point in a domain.For instance, an estimate of the value of a function f(x) at the location x is given in a continuous form by an integral of the product of the function and a kernel (weighting) function.
( ) ∫ where: the angle brackets denote a kernel approximation, h is a parameter that defines size of the kernel support known as the smoothing length, and x' is new independent variable.The kernel function usually has the following properties: Compact support, which means that it's zero everywhere but on a finite domain inside the range of the smoothing length 2h: These requirements, formulated by Lucy [101], ensure that the kernel function reduces to the Dirac delta function when h tends to zero: Therefore, it follows that: ( ) ( ) If the function f(x) is only known at N discrete points, the integral of equation 1 can be approximated by a summation: ∑ where m j /ρ j is the volume associated to the point or particle j.In SPH literature, the term particles is misleading as in fact these particles have to be thought of as interpolation points rather than mass elements.The last equation constitutes the basis of SPH method.The value of a variable at a particle denoted by superscript is calculate by summing the contributions from a set of neighbouring particles (Figure 8), denoted by superscript j and for which the kernel function is not zero:

Conservation Equations
The conservation equations in Lagrangian framework are given by: The subscripts α and β denote the component.These equations are the forms proposed by Monaghan [130].The kernel interpolation allows the derivation of the basic SPH form of these conservation equations as: ( ) All the equations above contain integrals of the form: As W is an even function, the terms containing odd powers of x' − x vanish.Neglecting second and higher order terms, which is consistent with the overall order of the method, gives: Substituting for gives : Using the last relation: All equations include kernel approximations of spatial derivatives: Integrating by part gives: The first term of the second member can be rewritten: The surface integral is zero if the domain of integration is larger than the compact support of W or if the field variable assumes zero value on the boundary of the body (free surface).If none of these conditions is satisfied, modifications should be to make to account for boundary conditions.
One should note that in equations: The spatial derivatives of the field variables are substitute by the derivatives of the kernel: ( ) ( ) The final step is to convert the continuous volume integrals to sums over discrete interpolation points.Finally, after a few arrangements in order to improve the consistency between all equations, the most common form of the SPH discretised conservation equations are obtain: ( ) where ,

Kernel Function
To complete the discretisation one has to define the kernel function.Numerous possibilities exist.A large number of kernel function types are discuss in literature, ranging from polynomial to Gaussian.The most common is the B-spline kernel that was propose by Monaghan [130]: ( ) ( ) D is the number of dimensions of the problem (i.e. 1, 2 or 3).C is the scaling factor, which depends on the number of dimensions and ensures that the consistency conditions 2 and 3 are satisfied:

Variable Smoothing Length
If large deformations occur, particles can largely separate from each other.If the smoothing length remains constant, the particle spacing can become so large than particles will no more interact.On the other hand, in compression, many particles might enter in the neighbouring of each other, which can significantly slow down the calculation.In order to avoid these problems, Benz [102] proposed the use of a variable smoothing length.The intent was to maintain a healthy neighbourhood as continuum deforms.The equation for evolution of h derived by [102] is:   where h 0 and ρ 0 are initial smoothing length, and density and n is the number of dimensions of the problem.
Another frequently used equation of evolution based on conservation of mass is: ( ) where div(v) is the divergence of velocity.

Neighbour Search
An important step in the SPH computation is the neighbour search.This task can be extremely time consuming.The neighbour search routine lists the particles that are inside the neighbourhood of each particle at each time step.A direct search between every particle is particularly inefficient.A bucket sort algorithm is more efficient.In this method, an underlying grid of side 2 h is generated and the particles are sorted according to the box in which they are located (Figure 9).Then for each particle, the neighbours are searched among the particles contained in the same box and the surrounding boxes.This allows the computational time to be cut down from a default time proportional to N 2 for a direct search to N * log (N), where N is the total number of particles.

SPH Shortcomings
The basic SPH method has shown several problems when used to model a solid body: o Consistency.o Tensile instability.o Zero-energy modes

Consistency
The SPH method in its continuous form is inconsistent within 2 h of the domain boundaries due to the kernel support incompleteness.In its discrete form the method loses its 0th order consistency not only in the vicinity of boundaries but also over the rest of the domain if particles have an irregular distribution.Meglicki [131] showed that node disorder results in a systematic error.Therefore, a proper SPH grid should be as regular as possible and not contain large discrepancies in order to perform most accurate simulation.
The first order consistency of the method can be achieve in two ways.Firstly, by correcting the kernel function, second, by correcting the discrete form of the convolution integral of the SPH interpolation.Johnson [132] uses this correction procedure, and proposed the Normalised Smoothing Function.Vignjevic [112] also implemented a kernel normalisation and correction to lead to a Corrected Normalised Smooth Particle Hydrodynamics (CNSPH) method which is first order consistent.The full derivation of this correction is given below.In SPH methods based on a corrected kernel, it is no-longer possible to ignore boundary conditions.In basic SPH, free surface boundary conditions are not imposed and are simply ignored as variables tends to zero at boundaries because of the deficiency of neighbour particles.

Derivation of normalised corrected gradient SPH formula
The approximation of fields using a Normalised Corrected SPH (NCSPH) interpolation has been published [112] [118] [133].Some authors have chosen to use properties of the integrals of motion (linear and angular momentum) to derive Normalisation and Gradient Correction for kernel interpolation, see [133].This approach lacks generality and does not provide the insight into the origin and the nature of the problem.A full derivation of the correction proposed by Vignjevic [112], which has not been published before, is given below.The derivation is based on the homogeneity and isotropy of space, the space properties, which have as a consequence conservation of linear and angular momentum, see [134].The mixed correction insures that homogeneity and isotropy of space are preserved in the process of spatial discretisation.
An interpolation technique should not affect homogeneity of space.One way of demonstrating this is to prove that the interpolation of the solution space itself is independent of a translation of the coordinate axes.In order to express this statement mathematically one can start by writing the general expression for the SPH interpolation of a vector field: If the field to be interpolated is the solution space then: And the last equation becomes: In a different, translated coordinate system, this equation is: where X′ is the coordinate vector in the new coordinate system.If the translation vector by which the origin of the coordinate system was move is defined as ∆X then the relationship between X and X′ is: If the interpolated coordinates of a point are independent of the translation of coordinate axes then the following should hold: By substituting the last two equations, for both X i and X′ I one obtains: Alternatively: ( ) By comparison between: ( ) It is clear that the discretised space will only be homogeneous if the following condition is satisfied: Similarly, an interpolation technique should not affect isotropy of space.One way of demonstrating this is to prove that the interpolation of the solution space itself is independent of a rotation of the coordinate axes.The same holds for the SPH approximation.The change in coordinates due to a rotation of the coordinate axes is: where C is the rotation matrix.For small rotations, this can also be write as: x where ∆φ is the rotation vector.
If one wants to ensure that, the SPH approximation does maintain the fact that space is isotropic then the approximation has to satisfy the following condition: This means that the rotation matrix has to be approximate exactly.
In order to develop this equation one can start by rewriting: This means that, for small rotations, the rotation matrix is given by: The approximation of the rotated coordinates is: This means that the requirement on the interpolation is: ( ) Therefore to preserve space isotropy: x x φ φ

=
The following condition has to be satisfied.

x I
The form of the normalised kernel function and the approximation of the first order derivatives which provides first order consistency is given in Table 2 below.
Using the NCSPH approximations, the conservation equations assume the following form: ( )

Tensile Instability
A Von Neumann stability analysis of the SPH method was conducted Swegle [108] and Balsara [135] separately.This has revealed that the SPH method suffers from a tensile instability.This instability manifests itself as a clustering of the particles, which resembles fracture and fragmentation, but is in fact a numerical artefact.Swegle [108] concluded that the instability does not result from the numerical time integration algorithm, but rather ( ) from an effective stress resulting from a non-physical negative modulus being produce by the interaction between the constitutive relation and the kernel interpolation.In other words the kernel interpolation used in spatial discretisation changes the nature of original partial differential equations.These changes in the effective stress amplify, rather than reduce, perturbations in the strain.From Swegle's stability analysis, it emerged that the criterion for stability was that: where W'' is the second derivative of W with respect to its argument and σ is the stress, negative in compression and positive in tension.This criterion states that instability can also occur in compression, not only in tension.Indeed, if the slope of the derivative of the kernel function is positive, the method is unstable in tension and stable in compression and if the slope is negative, it is unstable in compression and stable in tension.
The fact that this instability manifests itself most often in tension can be explain.Figure 10 shows the stability regime for the B-spline kernel function.The minimum of the derivative is situated at u = 2/3 h.In standard configurations, the particle spacing is equal to the smoothing length, u = h.Thus, standard configurations are unstable in tension.This explains why this unstable phenomenon is generally observe in tension and hence, it is misleading name "tensile instability".
In order to remedy this problem several solutions have been propose.Guenther [136] and Wen [109] have proposed a solution, known as Conservative Smoothing.Randles and Libersky [111] proposed adding dissipative terms, which is relate to conservative smoothing.Dyka [127] proposed an original solution by using a noncollocated discretisation of stress and velocity points.At one set of points, the stresses are evaluate, while the momentum equation is calculated at another set of points.The "stress" points are equivalent to the Gauss quadrature points in FE, the other set of points is equivalent to the element nodes.This approach was extende to two dimensions, in combination with kernel normalisation, by Vignjevic and Campbell [112].Other solutions were proposed, for instance see [137].The former proposes a corrective SPH method by enforcing higher order consistency, while the latter proposes the addition of an artificial force to stabilise the computation.Recently Randles and Libersky combined MLS interpolation with the stress and velocity point approach.They called this approach the Dual Particle Dynamics method [138].
The conservative smoothing and the artificial repulsive forces methods have limited applicability and have to be use with caution because they affect the strength of material being modelled.At present, the most promising approach is non-collocational spatial discretisation.This problem is in the focus of attention of a number of researchers working on mesh-less methods.

Zero-Energy Modes
Zero-energy modes are a problem that is not unique to particle methods.These spurious modes, which correspond to modes of deformation characterised by a pattern of nodal displacement that produces zero strain energy, can also be find in the finite difference and finite element methods.
Swegle [108] was first to show that SPH suffers from zero energy modes.These modes arise from the nodal under integration.The fundamental cause is that all field variables and their derivatives are calculate at the same locations (particle positions).For instance, for an oscillatory velocity field, illustrated in Figure 1, the kernel approximation would give negligible gradients and consequently stresses at the particles.These modes of deformation are not resist and can be easily excite by rapid impulsive loading.Another explanation can be find in the origin of the kernel approximation.As the kernel approximation, which is the basis of SPH, is an interpolation of a set of discrete data, a constant field, can be fitted with a sinusoidal curve/surface if the order of the interpolation is high enough.
Figure 11 illustrates this spurious mode for a field in 1D SPH.If one would approximate the derivative of the field shown in Figure 4 with a central difference formula: ( ) ( ) At all points.Hence, this mode cannot be detect, and can grow unhindered.This means that this mode could grow to a level where it dominates the solution.
Zero energy or spurious modes are characterised by a pattern of nodal displacement that is not a rigid body but produces zero strain energy.
One of the key ideas to reduce spurious oscillations is to compute derivatives away from the particles where kernel functions have zero derivatives.Randles [118] proposed a stress point method.Two sets of points are create for the domain discretisation, one carries velocity, and another carries stress.The velocity gradient and stress are compute on stress points, while stress divergence is sample at the velocity points using stress point neighbours.According to [108], these spurious modes can be eliminate by replacing the strain measure by a non-local approximation based on gradient approach.Beissel [139] proposed another way to stabilise nodal integration, the least square stabilisation method.

Summary
Smoothed particle hydrodynamics (SPH) is a meshfree particle method, which not only uses particles as the computational frame for interpolation or differencing, but also uses the particles to carry the material properties.In this survey, the smoothed particle hydrodynamics method, and its recent development in numerical algorithms and applications have been reviewed.In methodology and numerical approximation, the basic concepts of kernel and particle approximations as well as the main technique for developing SPH formulation have been addressed.Some smoothing kernel functions have been reviewed with constructing conditions provided.
The emphasis is on the consistency problem, which traditionally limits the accuracy of the SPH method.The general definition of consistency has been surveyed.Several important numerical topics have been investigated, including boundary treatment, solid obstacles, material interface treatment and tensile instability.
The last decades have witnessed the great success of SPH developments in methodology and applications, and there are still many remaining tasks and challenges.To achieve a reliable solution, the computational accuracy, consistency, efficiency, stability and convergence need to incorporate into good SPH algorithms.In general, SPH has great potential in many problems in engineering and science.It has salient advantages over traditional grid based numerical models in treating large deformation, tracking free surfaces, moving interfaces, and deformable boundaries, resolving moving discontinuities such as cracks and shock waves.
The attraction of the SPH method has been showcased not only by saving time and computational resources, but also for its use in diversified applications.One obvious advantage is that the SPH method provides a feasible physical model for non-continuum, as it has some same features as the classic molecular dynamics method and the dissipative particle dynamics method.Therefore, it would be very attractive to apply the SPH method to simulating problems where the main concern of the object is a set of discrete physical particles rather than a continuum, e.g.environmental flows with solid and fluid particles such as landslide, mudslide and multiphase flow in an oil reservoir.

Figure 1 .
Figure 1.Conceptual scheme for the elaboration of a numerical model of a geothermal reservoir.

Figure 2 .
Figure 2. Information flow and prospect for the sustainable assessment through the use of the numerical simulation of the reservoir.

Figure 3 .
Figure 3. Conceptual scheme for multi-fracture vertical geothermal system (x s is the spacing between fractures, b is the fracture aperture).

Figure 4 .
Figure 4. Sketch of a foam system.

Figure 5 .
Figure 5. Mechanisms of foam generation in porous media.

Figure 6 .
Figure 6.Schematic plot of parameters of the foam flow in porous media.

Figure 9 .
Figure 9. Bucket sort and neighbour search.

Table 1 .
Program codes for numerical simulation of hydraulic simulation and heat extraction.

Table 2 .
Corrected forms of the kernel function and its gradient.