Professional Documents
Culture Documents
TECHNIQUE
DR. EMMANUEL E. OKORO
OPTIMIZATION
• Optimization is an important tool in decision science and in the analysis of
physical systems.
• To make use of this tool, we must first identify some objective, a quantitative
measure of the performance of the system under study.
• If the model is too simplistic, it will not give useful insights into the practical
problem. If it is too complex, it may be too difficult to solve.
• Once the model has been formulated, an optimization algorithm can be used to find
its solution, usually with the help of a computer.
• After an optimization algorithm has been applied to the model, we must be able to
recognize whether it has succeeded in its task of finding a solution.
MATHEMATICAL FORMULATION
- ci are constraint functions, which are scalar functions of x that define certain
equations and inequalities that the unknown vector x must satisfy.
APPLICATION
• The analytical solutions provide the theoretical bases of pressure transient
analysis technique, and employing analytical solutions is a cost-effective and
readily available way to validate numerical simulators.
• The mathematical model, i.e., the diffusivity equation, is derived based on the:
• Continuity equation,
• An equation of state.
FIGURE 1. ILLUSTRATION OF PARALLELEPIPED ELEMENT
MATHEMATICAL MODEL OF SINGLE-PHASE FLOW - LIQUID
Continuity Equation
• The x-direction component of the mass flux, qmi,x, into the element at x is
qmi,x = ρ ux ………………………………………………………(2)
• The x-direction component of the mass flux, qmo,x, out of the element at x + Δx
is;
𝜕 𝜌𝑢𝑥
𝑞𝑚𝑜,𝑥 = 𝜌𝑈𝑥 + ∆𝑥 ………………… (3)
𝜕𝑥
• Hence, the difference of mass fluxes in and out of the element in x-direction is;
𝜕 𝜌𝑈𝑥
𝑞𝑚𝑖,𝑥 − 𝑞𝑚𝑜,𝑥 = ∆𝑥 ……………………(4)
𝜕𝑥
MATHEMATICAL MODEL OF SINGLE-PHASE FLOW - LIQUID
Continuity Equation
• The difference of mass flow rate in and out of the element in x-direction can be
obtained as;
𝜕 𝜌𝑈𝑥
𝑞𝑚𝑖,𝑥 − 𝑞𝑚𝑜,𝑥 ∆𝑦∆𝑧 = ∆𝑥∆𝑦∆𝑧 ……………………(5)
𝜕𝑥
• where Δy and Δz are the sizes of the element in y direction and z direction,
respectively.
• The y-direction component of the mass flux, qmi,y, into the element at y is (Class
Work!!!)
MATHEMATICAL MODEL OF SINGLE-PHASE FLOW - LIQUID
Continuity Equation
qmi,y = ρ uy ………………………………………………………(6)
• The y-direction component of the mass flux, qmo,y, out of the element at y + Δy
is;
𝜕 𝜌𝑢𝑦
𝑞𝑚𝑜,𝑦 = 𝜌𝑈𝑦 + ∆𝑦 ……………………. (7)
𝜕𝑦
• Hence, the difference of mass fluxes into and out of the element in y-direction
is;
𝜕 𝜌𝑈𝑦
𝑞𝑚𝑖,𝑦 − 𝑞𝑚𝑜,𝑦 = ∆𝑦 ……………………(8)
𝜕𝑦
MATHEMATICAL MODEL OF SINGLE-PHASE FLOW - LIQUID
Continuity Equation
• The difference of mass flow rate in and out of the element in x-direction can
be obtained as;
𝜕 𝜌𝑈𝑦
𝑞𝑚𝑖,𝑦 − 𝑞𝑚𝑜,𝑦 ∆𝑥∆𝑧 = ∆𝑥∆𝑦∆𝑧 ……………………(9)
𝜕𝑦
• The z-direction component of the mass flux, qmi,z, into the element at z is;
qmi,z = ρ uz ………………………………………………………(10)
MATHEMATICAL MODEL OF SINGLE-PHASE FLOW - LIQUID
Continuity Equation
• z-direction component of the mass flux, qmo,z, out of the element at z + Δz is;
𝜕 𝜌𝑢𝑧
𝑞𝑚𝑜,𝑧 = 𝜌𝑈𝑧 + ∆𝑧 ……………………. (11)
𝜕𝑧
• Hence, the difference of mass fluxes into & out of the element in z-direction is;
𝜕 𝜌𝑈𝑧
𝑞𝑚𝑖,𝑧 − 𝑞𝑚𝑜,𝑧 = ∆𝑧 ……………………(12)
𝜕𝑧
• The difference of mass flow rate in and out of the element in z-direction can be
obtained as;
𝜕 𝜌𝑈𝑧
𝑞𝑚𝑖,𝑧 − 𝑞𝑚𝑜,𝑧 ∆𝑥∆𝑦 = ∆𝑥∆𝑦∆𝑧 ……………………(13)
𝜕𝑧
MATHEMATICAL MODEL OF SINGLE-PHASE FLOW - LIQUID
Continuity Equation
• Total difference of mass flow rate into and out of the element in x, y, and z directions
is;
𝜕 𝜌𝑈𝑥
𝑞𝑚𝑖,𝑥 − 𝑞𝑚𝑜,𝑥 ∆𝑦∆𝑧 + 𝑞𝑚𝑖,𝑦 − 𝑞𝑚𝑜,𝑦 ∆𝑥∆𝑧 + 𝑞𝑚𝑖,𝑧 − 𝑞𝑚𝑜,𝑧 ∆𝑥∆𝑦 = +
𝜕𝑥
𝜕 𝜌𝑈𝑦 𝜕 𝜌𝑈𝑧
+ ൨ ∆𝑥∆𝑦∆𝑧 ………………………….(14)
𝜕𝑦 𝜕𝑧
𝑉𝑝 = 𝜑∆𝑥∆𝑦∆𝑧 ……………………..(15)
MATHEMATICAL MODEL OF SINGLE-PHASE FLOW - LIQUID
Continuity Equation
• Also, the mass in the element is (relating mass in the element with density);
m = 𝜌𝜑∆𝑥∆𝑦∆𝑧 ……………………..(16)
• Thus, the rate of change in mass with time in the element is given as;
𝑑𝑚 𝜕 𝜌∅
= ∆𝑥∆𝑦∆𝑧 ………………….(17)
𝑑𝑡 𝜕𝑡
• Combining equations (1), (14) and (17), we have;
𝜕 𝜌𝑈𝑥 𝜕 𝜌𝑈𝑦 𝜕 𝜌𝑈𝑧 𝜕 𝜌∅
− + + ∆𝑥∆𝑦∆𝑧 = ∆𝑥∆𝑦∆𝑧 ……………(18)
𝜕𝑥 𝜕𝑦 𝜕𝑧 𝜕𝑡
MATHEMATICAL MODEL OF SINGLE-PHASE FLOW - LIQUID
Continuity Equation
Where 𝛻 is the del operator used for specifying the divergence of the vector u.
MATHEMATICAL MODEL OF SINGLE-PHASE FLOW - LIQUID
Continuum Theories
• Many systems exhibit evolution over time with properties of interest that vary
throughout their spatial domains.
• One way to study the overall population is to attempt to track each individual,
such approaches are sometimes called individual-based models.
• But there are multiple methods of integration, which are used in Mathematics
to integrate the functions.
• There are different integration methods that are used to find an integral of
some function, which is easier to evaluate the original integral.
MATHEMATICAL MODEL OF SINGLE-PHASE FLOW - LIQUID
Continuity Equation
• Take a small volume element, dV anywhere in the volume V. The mass of fluid
in dV will be given as;
dm = ρφdV ……………….(24)
The total volume of the fluid in the volume V, will been estimated by integration
over the entire volume, V.
𝑚 = ∭𝑉 𝜌∅𝑑𝑉 ……………(25)
MATHEMATICAL MODEL OF SINGLE-PHASE FLOW - LIQUID
Continuity Equation
• From Gauss’s theorem, the left-hand side of equation (27) can be written as;
∯𝑠 ρu • n 𝑑𝑠 = ∭𝑉 𝛻 ∙ 𝜌𝑈 𝑑𝑉 ……………(28)
MATHEMATICAL MODEL OF SINGLE-PHASE FLOW - LIQUID
Continuity Equation