Raoult's & Henry's Law

25
Group 4 (PT2) Saifulhadi-Azri-Faisal-Arif

description

Partial Pressure

Transcript of Raoult's & Henry's Law

Page 1: Raoult's & Henry's Law

Group 4 (PT2)

Saifulhadi-Azri-Faisal-Arif

Page 2: Raoult's & Henry's Law

Objective

• Able to identify the difference between matrix solver and iterative method

• Able to compare them in terms of application in reservoir simulation

Page 3: Raoult's & Henry's Law

Comparison Method Iterative Method Direct Matrix Solver

Definition The mathematical procedure that generates a sequence of improving approximate solutions for a class of problems with additional stopping criteria.

The direct solution methods are characterized by their capacity to produce the solution vector for a given system of linear equations after a fixed number of operations.

Example •Gauss-Seidel •Newton-Raphson •Convergent Matrix •Conjugate gradient •Jacobian Method •Matrix Splitting

•Gaussian Elimination •Domain decomposition •Thomas algorithm •Tang’s algorithm

Application •Decreasing space computation in database •Used to converge to root solution.

•1D Rectangular or Radial Flow Problems (Thomas' Algorithm) •2D and 3D Flow Problems (Sparse Matrices) •Solving last part of Reservoir Numerical simulator.

Page 4: Raoult's & Henry's Law

Comparison

Method Iterative Matrix Solver

Advantages •decrease the data size of database used in simulation. •able to converge to root solution.

•can achieve to the solution directly.

Disadvantages •might not work (converge) then the initial guess is an outlier or having a big timestep. •need a lot of run depending on method (loop)

•different matrix have different solution scheme. •use bigger space in database (according to martix size)

Page 5: Raoult's & Henry's Law

References

• http://faculty.washington.edu/finlayso/ebook/algebraic/NR/NRmult.htm

• Journal of Mathematical Analysis and Application, Vol 5, No. 2, August 1996, Belgium.

Page 6: Raoult's & Henry's Law

BACK UP

Page 7: Raoult's & Henry's Law

Direct Matrix Solver

Page 8: Raoult's & Henry's Law

Definition

• The direct solution methods are characterized by their capacity to produce the solution vector for a given system of linear equations after a fixed number of operations.

Page 9: Raoult's & Henry's Law

Examples

• Gaussian Elimination

• Domain decomposition

• Thomas algorithm

• Tang’s algorithm

Page 10: Raoult's & Henry's Law

Applications

• 1D Rectangular or Radial Flow Problems (Thomas' Algorithm)

Page 11: Raoult's & Henry's Law

• Incompressible

• Slightly compressible

Page 12: Raoult's & Henry's Law

• 2D and 3D Flow Problems (Sparse Matrices)

Page 13: Raoult's & Henry's Law
Page 14: Raoult's & Henry's Law

Extra

Page 15: Raoult's & Henry's Law
Page 16: Raoult's & Henry's Law
Page 17: Raoult's & Henry's Law

Iterative Method

Page 18: Raoult's & Henry's Law

Definition

• In computational mathematics, an iterative method is a mathematical procedure that generates a sequence of improving approximate solutions for a class of problems. A specific implementation of an iterative method, including the termination criteria, is an algorithm of the iterative method.

Page 19: Raoult's & Henry's Law

Example

• Convergent Matrix

• Gauss-Seidel

• Newton-Raphson

• Jacobian Method

• Matrix Splitting

• Thomas Algorithm

• Etc.

Page 20: Raoult's & Henry's Law

Newton raphson • Imagine the following is the linear equation for the depth in

the reservoir,

Page 21: Raoult's & Henry's Law
Page 22: Raoult's & Henry's Law

More example to understand IM mathematically (flashback CM

memory) • Given a current approximation

x(k) = (x1(k), x2

(k), x3(k), …, xn

(k))

for x, the strategy of Jacobi's Method is to use the first equation and the current values of x2

(k), x3(k), …, xn

(k) to find a new value x1

(k+1), and similarly to find a new value xi(k) using

the i th equation and the old values of the other variables.

Page 23: Raoult's & Henry's Law

• This system can also be written as (decomposition)

• If we write D, L, and U for the diagonal, strict lower triangular and strict upper triangular and parts of A, respectively

Page 24: Raoult's & Henry's Law

• then Jacobi’s Method can be written in matrix-vector notation as

so that

Page 25: Raoult's & Henry's Law

Sparse Matrix

• In numerical analysis, a sparse matrix is a matrix in which most of the elements are zero. By contrast, if most of the elements are nonzero, then the matrix is considered dense. The fraction of zero elements (non-zero elements) in a matrix is called the sparsity(density).

• Conceptually, sparsity corresponds to systems which are loosely coupled. Consider a line of balls connected by springs from one to the next: this is a sparse system as only adjacent balls are coupled. By contrast, if the same line of balls had springs connecting each ball to all other balls, the system would correspond to a dense matrix. The concept of sparsity is useful in combinatorics and application areas such as network theory, which have a low density of significant data or connections.

• Large sparse matrices often appear in scientific or engineering applications when solving partial differential equations.