Docsity

Process and Fluid Dynamics Simulation - Notes, Questions and Exercises, Appunti di Fluidodinamica

Anteprima parziale del testo

Scarica Process and Fluid Dynamics Simulation - Notes, Questions and Exercises e più Appunti in PDF di Fluidodinamica solo su Docsity!

PROCESS AND FLUID

DYNAMICS

SIMULATION

SUMMARY

  • CONSERVATION EQUATIONS.........................................................
  • TURBULENCE..................................................................................
  • TURBULENT FLOWS......................................................................
  • NUMERICS........................................................................................
  • MULTIPHASE FLOWS.....................................................................
  • MIXING.............................................................................................
  • REACTIVE FLOWS..........................................................................
  • PROCESS SIMULATION..................................................................
  • UNIT OPERATIONS.......................................................................
  • COMPUTATIONAL GRIDS............................................................
  • QUESTIONS....................................................................................
  • EXERCISES.....................................................................................

● the last term 𝑆𝑀𝑥represents the mass forces, like gravity, centrifugal and Coriolis forces or the electromagnetic force In the case of inviscid flow , where the effect of viscous forces can be neglected, the Euler’s equation is obtained:

ENERGY BALANCE

The ponderal total energy is given by internal energy and kinetic energy:

1

2

2

2 ( )

The variation of total energy is given by its substantial derivative

where the first two terms on the right hand side are the contribution of the surface forces and the third is contribution of the conduction. If the kinetic energy is subtracted from the balance for the total energy, the energy balance becomes:

If the fluid is incompressible , the last expression can be changed in:

When the fluid is compressible , the energy balance is often expressed in terms of enthalpy

In momentum and energy balances, the variables ρ, p, T, i are linked through equations of state (as a function of p and T).

CFD

CFD is the acronym for Computational Fluid Dynamics and it’s a numerical technique to solve balance equations describing the fluid flow behaviour in a generic domain. The equation that has to be solved are the material balance, the momentum balance, the energy balance and the equation of state:

When an incompressible fluid is considered, the relation ρ = ρ(𝑝, 𝑇)is often neglected. This can also happen for compressible fluids that move with low velocity flows if there are no relevant thermal phenomena (the temperature doesn’t change much). CFD consists in discretizing the system of differential and algebraic equations to get only a system with algebraic equations.

Every commercial code is constituted by three basic parts:

  1. preprocessor in which the operator sets: ● geometry definition ● domain discretisation → division in cells ● selection of the phenomena involved ● definition of the fluid properties ● setting of boundary conditions
  2. solver ● approximation of flow variables

where the red terms are less important and often indicated as a generic source sMx. If μ and ρare constant the equations become:

SUMMARY - CFD

There are 5 differential equations:

and 2 algebraic equations: ρ = ρ(𝑃, 𝑇) 𝑖 = 𝑖(𝑃, 𝑇) so there are 7 equations in total and 7 unknowns: ρ, 𝑢, 𝑣, 𝑤, 𝑖, 𝑇, 𝑃. The problem can be solved when boundary condition and auxiliary information (such as viscosity and source terms) are given.

COMMON FORM

The conservation equation just seen, may be represented according to the common form (with any property φ):

The integral form is obtained after the integration over a volume V and the application of Gauss’ theorem:

Balance equations in fact can be represented in different ways, and from a numerical point of view, the type of form could determine if a solution can be obtained or not. An equation can be represented in: ● differential form ● integral form and also there is a distinction between: ● Lagrangian form (non-conservative) ● Eulerian form (conservative)

Equation in a form can be changed into other forms, for example:

Velocity and density are defined in time according to coordinate x (in space) in an inertial system. A fluid particle is a point which is moving according to the local velocity. The position of the

particle is 𝑥 where is the particle position at a certain reference time t 0.

(𝑡, 𝑦) 𝑦

BOUNDARY CONDITIONS

INLETS

Inlet boundary conditions may be expressed as “ property = constant ” and usually this property is the velocity.

It is often recommended to use conditions on total pressure pT (especially for gases): ● for incompressible fluids and when the velocity is perpendicular to the inlet surface

○ where pS is the static pressure ○ the second term is the dynamic pressure ● for compressible fluids (knowing that M is the Mach number and a is the speed of sound)

OUTLETS

A typical condition is to assume that the gradients of all the considered variables except pressure are zero in the flow directions: ∂φ

Most CFD software requires a condition on the outlet pressure. Typically backflow conditions are taken into account when there are unforeseen incoming flows.

COMMENTS

● inlet and outlet conditions on pressure could establish a backflow (depending on local differences in pressure). Even if an inverse flow on a boundary means that the solution could be inaccurate, it still may be a better approach than setting the velocity when the direction of the flow is unknown ● it’s convenient to set the inlet/outlet boundary conditions ○ where the turbulent flow is well developed ○ far away from the domain of interest so that the local solution does not affect the quality of the simulation results

WALLS

On the domain walls, a no-slip conditions is usually assumed:

● tangential velocity is equal to the wall velocity ● the velocity perpendicular to the wall is zero For the energy and species balances one of the following boundary conditions is usually assumed: ● wall property are assigned → 𝑇 = 𝑇𝑊 and𝑚𝑖 = 𝑚𝑖𝑤

● wall fluxes are assigned → 𝑞𝑤 = 𝑘 (^) ( ∂𝑇∂𝑛) and 𝑤

𝑗𝑖𝑤 = ρ𝐷𝑖𝑗

∂𝑚𝑖 ( (^) ∂𝑛 ) 𝑤 ● properties and transfer coefficients are assigned → 𝑞𝑤 = ℎ𝑞 (𝑇 (^) 𝑒𝑥𝑡 − 𝑇𝑤) and 𝑗𝑖𝑤 = ℎ𝑗 (𝑚 (^) 𝑖,𝑒𝑥𝑡 − 𝑚𝑖𝑤)

If other surface phenomena take place, specific conditions are set.

SYMMETRY/PERIODICITY

If the process of interest exhibits some symmetric or periodic behaviour , it’s convenient to reduce the computational domain by defining some artificial planes characterised by special boundary conditions. If there are symmetry axes (flow symmetry), for each variable in every symmetry plane this expression is valid:

. ∂φ

If the process exhibits a cyclic or repetitive behaviour, the periodic boundary conditions are applied to specific planes → φ 1 = φ 2.

ANSYS SOFTWARE

● velocity inlet ○ velocity specification method ■ magnitude, perpendicular to boundary ■ components ■ magnitude and direction ○ applies a uniform velocity profile at the boundary, unless UDF or profile is used ○ velocity inlets are intended for use in incompressible flows ○ velocity inlets are not recommended for compressible flows ○ velocity magnitude input can be negative, implying that you can prescribe the exit velocity ● pressure inlet ○ suitable for both compressible and incompressible flows ○ pressure inlet boundary is treated as a transition without losses from stagnation to inlet conditions ○ FLUENT calculates static pressure and velocity at inlet ○ Mass flux through boundary varies depending on the interior solution and specified flow direction ○ required inputs:

TURBULENCE

Definitions for turbulence could be: ● turbulent fluid motion is an irregular condition of flow in which the various quantities show a random variation with time and space coordinates, so that statistically distinct average values can be discerned. ● Turbulence is a three-dimensional time dependent motion in which vortex stretching causes velocity fluctuations to spread to all wavelengths between a minimum determined by viscous forces and a maximum determined by boundary conditions of the flow. It is the usual state of the fluid motion except for low Reynolds numbers ● Firstly, a turbulent flow must be unpredictable , in the sense that a small uncertainty at a given initial time will amplify maybe until the impossibility to get a precise deterministic prediction of its evolution. Secondly, it has to satisfy the increased mixing property and should be able to mix transported quantities much more rapidly than if only molecular diffusion properties were involved. Thirdly, it must involve a wide range of spatial wavelengths Turbulence has therefore the following characteristics: ● randomness ● diffusivity (so the fluid mixes very fast → different types of transfers are more effective in a turbulent fluid) ● large Reynolds number (otherwise there is laminar flow) ● 3D velocity fluctuations ● dissipation of the kinetic energy ● it depends on flow but not on the fluid

STATISTICAL APPROACH

BASIC DEFINITIONS

The probability of an event A is 𝑃(𝐴) =. 𝑛 ∞

lim →

𝑛𝐴 𝑛

The cumulative distribution function (CFD) for events that assume discrete values is defined as the probability that the result of the event is equal or lower than some value:

RANDOM VARIABLES

Considering the throw of a pair of dice, its result is determined by mechanics law, so it would be possible to predict the outcome, but we would need: the initial position, the velocity, the condition of the ambient, the description of the surface ecc… but it’s quite unlikely that we know all of these information. It is more convenient to use a statistical approach to define a probability function. In a turbulent flow, the velocity field 𝑢(𝑥, 𝑡)is assumed to be random. An event A (and therefore a value for the velocity field) is random, when it may occur or not. Turbulence is not a random phenomenon, in fact the Navier-Stokes equations still holds but:

● there are perturbations in initial conditions, boundary conditions and material properties ● the flow fields are extremely sensitive to these perturbations Because of these considerations, a statistical approach will be followed to describe the probability of some events.

PROBABILITY FUNCTIONS

Velocity u is described as a continuous random variable and the variable v refers to its sample space. For example, the probability of an event 𝐴 ≡ (^) {𝑢 < 𝑣 (^) 𝑎} is 𝑝 = 𝑃(𝐴) = 𝑃 𝑢 < 𝑣{ (^) 𝑎}and it

ranges from 0 (impossible event) to 1 (certain event). The cumulative distribution function ( CDF ) is defined as 𝐹(𝑣) = 𝑃 𝑢 < 𝑣{ }and is non-dimensional. The following properties have to be valid: ● 𝐹(− ∞) = 0 ● 𝐹(+ ∞) = 1 ● if 𝑣𝑎 > 𝑣𝑏 then𝐹(𝑣𝑏) > 𝐹(𝑣𝑎)

The probability density function ( PDF ) has the dimension of the inverse of the property

analyzed and is defined as 𝑓(𝑣) = 𝑑𝐹(𝑣)𝑑𝑣

and the following properties have to be valid: ● 𝑓(𝑣) ≥ 0

● → the total probability is the certainty −∞

+∞ ∫ 𝑓(𝑣)𝑑𝑣 = 1

● 𝑓(− ∞) = 𝑓(+ ∞) = 0→ the probability of the velocity being infinite is zero The probability for the velocity to be in a certain interval (^) {𝑣 (^) 𝑎 < 𝑢 < 𝑣𝑏} is

𝑃 𝑣{ (^) 𝑎 < 𝑢 < 𝑣𝑏} = 𝐹(𝑣𝑏) − 𝐹(𝑣𝑎) =. 𝑣𝑎

𝑣𝑏 ∫ 𝑓(𝑣)𝑑𝑣

If the interval is infinitesimal 𝑃 𝑣{ (^) 𝑎 < 𝑢 < 𝑣 + 𝑑𝑣} = 𝐹(𝑣 + 𝑑𝑣) − 𝐹(𝑣) = 𝑓(𝑣)𝑑𝑣.

The PDF value at any given value in the sample space is the relative probability that the value of the random variable would be equal to that sample. Formally, the probability density is the probability per unit length: the PDF is used to specify the probability of the random variable be within a particular range of values; this probability is given by the integral over that range (as just seen). The PDF 𝑓(𝑣)(or equally the CDF) completely characterises the random variable u. Two random variables having the same PDF are said to be statistically identical.

MOMENTS

The mean of a random variable (in this case u) is defined by

𝑈 = 𝑢 = −∞

+∞ ∫ 𝑣𝑓(𝑣)𝑑𝑣

● 𝑃 𝑣( (^) 1𝑎 ≤ 𝑢 1 < 𝑣1𝑏; 𝑣2𝑎 ≤ 𝑢 2 < 𝑣2𝑏) = 𝑣1𝑎

𝑣1𝑏 ∫ 𝑣2𝑎

𝑣2𝑏 ∫ 𝑓 12 (𝑣 1 ; 𝑣 2 )𝑑𝑣 2 𝑑𝑣 1

● 𝑓 12 (𝑣 1 ; 𝑣 2 ) ≥ 0

● −∞

+∞ ∫ 𝑓 12 (𝑣 1 ; 𝑣 2 )𝑑𝑣 1 = 𝑓 2 (𝑣 2 )

−∞

+∞ ∫ −∞

+∞ ∫ 𝑓 12 (𝑣 1 ; 𝑣 2 )𝑑𝑣 2 𝑑𝑣 1 = 1

The covariance of u 1 and u 2 is the mixed second central moment

𝑐𝑜𝑣(𝑢 1 ; 𝑢 2 ) = 𝑢 1 '𝑢 2 ' = −∞

+∞ ∫ −∞

+∞ ∫ (^) (𝑣 1 − 𝑈 1 ) (𝑣 2 − 𝑈 2 )𝑓 12 (𝑣 1 ; 𝑣 2 )𝑑𝑣 2 𝑑𝑣 1

The correlation coefficient is 𝑟 12 = and it’s always

𝑐𝑜𝑣(𝑢 1 ;𝑢 2 )

σ^2 (𝑢 1 )σ^2 (𝑢 2 )

𝑢 1 '𝑢 2 '

(𝑢 1 ')^2 (𝑢 2 ')^2

The correlation coefficient is positive when positive fluctuations of one random variable from the mean are preferentially associated with positive fluctuation of the other. If the correlation coefficient is zero, then the random variables u 1 e u 2 are uncorrelated.

CONDITIONAL PDF

Correlation between variables are made more precise by defining conditional PDFs:

𝑓2|1 (𝑣 2 |𝑣 1 ) =

For a function 𝑄 𝑢( 1 ; 𝑢 2 ), the conditional mean referred on u 1 is

𝑄|𝑣 1 = (^) [𝑄 𝑢 ( 1 ; 𝑢 2 )|𝑢 1 = 𝑣 1 ] = −∞

+∞ ∫ 𝑄 𝑣( 1 ; 𝑣 2 )𝑓2|1 (𝑣 2 |𝑣 1 )𝑑𝑣 2

If u 1 e u 2 are independent, the knowledge on either one of them provides no information on the other one. If these two variables are independent , conditioning has no effect so: ● 𝑓2|1 (𝑣 2 |𝑣 1 ) = 𝑓 2 (𝑣 2 ) → the probability that 𝑢 2 = 𝑣 2 when also 𝑢 1 = 𝑣 1 is equal to the probability that only 𝑢 2 = 𝑣 2 ● 𝑓 12 (𝑣 1 ; 𝑣 2 ) = 𝑓 1 (𝑣 1 )𝑓 2 (𝑣 2 )→ the probability that two independent events happen is the product of the probability of each event

RANDOM FIELDS

In a turbulent flow, velocity 𝑢(𝑥, 𝑡)is a time dependent random vector field. The one-point one-time JCDF and JPDF are: 𝐹 𝐯; 𝒙; 𝑡( ) = 𝑃 𝑢{ (^) 𝑖 (𝒙; 𝑡 ) < 𝑣𝑖 𝑤𝑖𝑡ℎ 𝑖 = 1, 2, 3}

𝑓 𝐯; 𝒙; 𝑡( ) = ∂

3 ∂𝑣 1 ∂𝑣 2 ∂𝑣 3 𝐹 𝐯; 𝒙; 𝑡(^ )

The mean velocity field is

The fluctuating velocity field is

The Reynolds stress is defined (assuming constant density) as − ρ𝑢𝑖' 𝒙; 𝑡( )𝑢𝑗' 𝒙; 𝑡( )and it’s

often abbreviated as

The N-point N-time joint PDF is defined as: 𝑓𝑁 (𝐯 1 , 𝒙 1 , 𝑡 1 ,.., 𝐯𝑁, 𝒙𝑁, 𝑡𝑁)

REYNOLDS STRESS Because of turbulent motion, an element of fluid jumps across a unit area of the plane at constant y. Considering a 2D flow where ● there is no general movement in direction y → 𝑈𝑦 = 0 ● the fluid moves in direction x → 𝑈𝑥 ≠ 0 ● there are fluctuations both in direction x and y → 𝑢𝑥' ≠ 0 and𝑢𝑦' ≠ 0

the instantaneous rate of transfer of x momentum in the y direction across a surface orthogonal to y is ρ𝑢𝑦' 𝑈( (^) 𝑥 + 𝑢𝑥')

Considering all vortices crossing the plane in both direction, the average rate of transfer of x

momentum in the y direction (per unit area) is ρ𝑢𝑦' 𝑈( (^) 𝑥 + 𝑢𝑥') = ρ𝑢𝑦'𝑈𝑥 + ρ𝑢𝑦'𝑢𝑥' → the

average of the mean becomes 0 → ρ𝑢𝑦' 𝑈( (^) 𝑥 + 𝑢𝑥') = 0 + ρ𝑢𝑦'𝑢𝑥'→ the Reynolds stress is

therefore

TURBULENT INTENSITY and TURBULENT

KINETIC ENERGY

The relative turbulent intensity (also simply called turbulent intensity) is

𝑇(𝒙, 𝑡) = 13 ∑ where.

(𝑢 𝑖')^2

𝑈^2

1 2 = 13 ∑ 𝑇𝑖^2

1 2 𝑈 = (^) (∑ 𝑈 𝑖^2 )

1 2

The maximum observed Ti is 0,19. The mean turbulent kinetic energy is

𝑘(𝒙, 𝑡) = 12 ∑ (^) (𝑢 (^) 𝑖')

2

TURBULENT FLOWS

ENERGY CASCADE

Richardson suggested that turbulence can be described as an energy cascade. Energy is transferred from the higher scales and is then “cascaded” down in an inviscid way through even smaller scales until it is dissipated by viscous phenomena. Turbulent motion is characterised by a large number of rotational flow structures, called eddies (vortices). Larger eddies are unstable and break down into progressively smaller eddies. Largest eddies have the largest energy per eddy; however, since there are many more of the smaller eddies, the total rate of mechanical energy passed down the chain is nearly constant → steady state.

The energy of larger eddies has to be maintained because they are continuously losing energy to smaller eddies. Largest eddies extract energy from the mean flow (experimental evidence suggests that the most effective eddies at extracting energy from the mean flow are the vortices whose principal axis is roughly aligned with that of the mean strain [ deformation ] rate ). The energy transfer mechanism is believed to be associated with vortex stretching (see figure): eddies are strained by shear [ sforzo di taglio ], thus reducing their length scale; the conservation of angular momentum tends to maintain the good correlation between velocities (as required in the Reynolds stress definition) and amplifies the vorticity component w. At some point, eddies are stretched so much that they break down into eddies that are further stretched by larger turbulent eddies.

Let us assume that the Reynolds number 𝑅𝑒 = ( is the dynamic viscosity) is large.

𝑈𝐶𝐿𝐶 ν ν Eddies are characterised by characteristic length (size) ℓ and velocity ϑ, which determines

the eddy time scale (turnover time) τ = (^) ϑ𝑙 and its frequency 𝑓 = τ^1.

Larger eddies have a characteristic size ℓ 0 comparable to the characteristic length scale of the process LC. Assuming that characteristic velocity of larger eddies , ϑ 0 , is also

comparable to the process characteristic velocity UC , then

𝑅𝑒 0 ≈ 𝑅𝑒 = 𝑡𝑟𝑎𝑛𝑠𝑓𝑒𝑟 𝑜𝑓 𝑚𝑜𝑚𝑒𝑛𝑡𝑢𝑚 𝑑𝑢𝑒 𝑡𝑜 𝑐𝑜𝑛𝑣𝑒𝑐𝑡𝑖𝑜𝑛 𝑓𝑜𝑟𝑐𝑒𝑠𝑡𝑟𝑎𝑛𝑠𝑓𝑒𝑟 𝑜𝑓 𝑚𝑜𝑚𝑒𝑛𝑡𝑢𝑚 𝑑𝑢𝑒 𝑡𝑜 𝑣𝑖𝑠𝑐𝑜𝑢𝑠 𝑓𝑜𝑟𝑐𝑒𝑠 >> 1 → larger eddies are inviscid.

Energy is transferred to smaller and smaller eddies until the eddy Reynolds number 𝑅𝑒𝑙 = ϑ𝑙ν

is “small” and kinetic energy is dissipated by viscous action. If it is assumed that the energy cascade is a steady-state process, then the turbulent energy

dissipation rate ε 𝐿 at the lower scale is defined by the energy transfer rate at the

2 𝑡^3

largest scale.

The ratio 𝑘 is often used to represent a characteristic length scale for turbulence.

(^32) ε

Similarly, 𝑘ε can be used to represent a characteristic time scale.

TURBULENT ENERGY DISSIPATION

RATE

Let’s consider the Navier-Stokes equations for flows at constant density and viscosity with constant U and considering its fluctuations u’:

After multiplying by u’ and averaging, this expression is obtained:

In the case of homogeneous turbulence , turbulent statistics do not vary in space. Thus (when the gradient is inside the average it’s not zero):