FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

36
FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1

description

Training Manual May 15, 2001 Inventory # The FLOTRAN Simulation FLOTRAN simulates fluid flow and heat transfer –The conservation equations (mass and momentum) are solved for a fluid. The result is a flow distribution and pressure field. –An energy equation may also be solved for the fluid domain. For the energy equation, the problem domain may contain both fluid and non-fluid elements –Turbulence, Multiple Species simulations are optional Degrees of Freedom (DOF) –Velocities: VX,VY,VZ –Pressure: PRES –Turbulence (if necessary): ENKE,ENDS –Species Concentrations: SP01…SP06

Transcript of FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

Page 1: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

FLOTRAN Characteristics, Capabilities and Analysis Planning

Chapter 1

Page 2: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-2

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training ManualObjectives

• Describe the phenomena modeled with FLOTRAN elements

• Discuss the FLOTRAN Element Characteristics

• Explain CFD terminology

• Present the governing equations

• Discuss Solution Algorithm characteristics

• Outline important user decisions

Page 3: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-3

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training ManualThe FLOTRAN Simulation

• FLOTRAN simulates fluid flow and heat transfer – The conservation equations (mass and momentum) are solved for a

fluid.• The result is a flow distribution and pressure field.

– An energy equation may also be solved for the fluid domain.• For the energy equation, the problem domain may contain both

fluid and non-fluid elements– Turbulence, Multiple Species simulations are optional

• Degrees of Freedom (DOF)– Velocities: VX,VY,VZ– Pressure: PRES– Turbulence (if necessary): ENKE,ENDS– Species Concentrations: SP01…SP06

Page 4: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-4

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

2D Basic3D Basic

3D Transition

FLOTRAN Element Types and Shapes2D Type: Fluid141 (triangles and quadrilaterals may be mixed)3D Type: Fluid142 (hexahedrals, tetrahedrals, pyramids, wedges)

• Pyramids are the required transition elements between Tet and Hex shapes

– Elements are Linear (no mid-side nodes)

Page 5: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-5

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

• Two Dimensional– Cartesian (x-y) or Polar (r-θ) Coordinates

– Axisymmetric Coordinates (about x or y axis)• Three Dimensional

– Cartesian– Cylindrical: VR,V field must be parallel to ANSYS XY plane

• VX(VR) ; VY(V ) ;VZ(VZ)

r

P(r, )

Origin

y

x

Origin

FLOTAN Problem Domains

Page 6: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-6

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training ManualProblem Domain - Geometry

• Equations are formulated in the coordinate system chosen– Required for use of periodic boundaries

• Stationary or Rotating coordinate systems

• Structured or Unstructured meshes

• ALE formulation enables pre-determined change in problem domain.

– ALE formulation activates UX,UY,UZ DOF.– Use functions to program both displacements and velocities for

boundary movement.

Page 7: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-7

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training ManualProblem Domain - Coordinate System

• FLOTRAN Coordinate System Assignment - Command line– 2D:

• et,1,141,,,1 Axisymmetric about Y axis• et,1,141,,,2 Axisymmetric about X axis• et,1,141,,,3 Polar Coordinates

– 3D:• et,1,142,,,3 : Cylindrical Coordinates

• GUI Access to the Coordinate System Assignment– Accessed through PREP7– Element Type > Add/Edit/Delete > Options– FLOTRAN Setup Menu >Flow Environment > Coordinate System

Page 8: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-8

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training ManualCFD Terminology

• We provide definitions of the these terms….– CFD– Turbulent flow– Mach Number– Incompressible fluid– Compressible fluids– Conjugate heat transfer– Distributed resistance– Periodic boundaries– Multiple species transport– Newtonian and non-Newtonian fluids– Free Surface

Page 9: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-9

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

CFD Terminology

Define CFD

• Computational Fluid Dynamics (CFD) – The science (and art) of obtaining a numerical solution to the set of

equations which describe the motion of a fluid.

• Partial differential equations are discretized, resulting in a series of algebraic equations of the form:

– In a completely coupled system, the vector X contains all the DOF– In a segregated Scheme, the variables are solved for sequentially.– In some instances approximate solutions to the matrix systems are

suffcient for intermediate steps.

bxA

Page 10: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-10

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

CFD Terminology

Define Turbulent Flow

• According to Webster’s New Collegiate Dictionary, turbulent flow is defined as “a fluid flow in which the velocity (pressure, temperature, species concentration, etc.) at a given point varies erratically in magnitude and direction”.

– Turbulence is a flow regime characterized by velocities, pressures, temperatures, and species mass fractions that fluctuate in response to shearing forces.

• These shear forces can cause an orderly flow to break into eddies with discernible disorder.

• The flow is in reality constantly changing. In principle, turbulent flow is a transient phenomena.

• Steady state solutions are obtained through time-averaging.

Page 11: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-11

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training ManualTurbulence

• When averaged over time, the velocity fluctuations are zero. Calculating the fluctuations is generally not computationally practical.

• Turbulence models are designed to determine the effect of the fluctuations on the mean flow.

Velocity Fluctuations in Time

2

3

4

0 1 2 3 4 5 6

Time (seconds)

Velo

city

(mm

/s)

Actual velocity (mm/s)

Average velocity (mm/s)

Page 12: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-12

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

μ hVDρRe

PerimeterWettedArea*4DiameterHydraulic

Turbulence (continued)

FLOTRAN’s default treatment is a two-differential equation model, the k-ε model

• The optional k-ε turbulence model should be activated when the Reynold’s number for the flow indicates the presence of a turbulent regime.

• The Reynold’s number is a dimensionless parameter which represents the ratio of the inertial to viscous forces. It is defined as:

• ρ is the density, V is the characteristic velocity, μ is the dynamic viscosity, and DH is a characteristic length or diameter, typically the hydraulic diameter for internal flows.

Page 13: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-13

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training ManualTurbulence (continued)

• Reynold’s number ranges for laminar and turbulent flow can be found in fluid dynamics texts, literature, handbooks, etc. Some examples:

Page 14: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-14

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

RTγVM

CFD Terminology

Mach Number

• Mach number– speed of fluid divided by the speed of sound.

• In general,

Note that supersonic flow is characterized by M>1 while subsonic flow exists when M<1.

We estimate the Mach number before analysis to decide whether or not to activate the Solution option for Compressible flow.

Page 15: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-15

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

CFD Terminology

Define Incompressible Fluids

• In FLOTRAN, the terms “compressible” and “incompressible” denote the algorithm chosen by the user to solve the coupled momentum and pressure equations.

– This concerns which terms are considered in the momentum equation. Terms which are zero if the density is perfectly constant are dropped from the equations. This applies to fluids where large pressure changes result in only slight variations in density.

– Density variations are primarily a function of temperature gradients rather than pressure gradients. The flow of liquids is generally incompressible, even when natural convection is present.

Page 16: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-16

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

CFD Terminology

Define Compressible Fluids

• Compressible flow– It refers to (generally high velocity) flow problems where density

varies appreciably as a result of pressure and temperature. The static temperature becomes a function of velocity and stagnation temperature.

• The use of the compressible option should be considered for Mach numbers above 0.3. The compressible option is not appropriate for low mach number flows. Note that for many applications, the incompressible option may be used up to Mach numbers of 0.7.)

• The equation of state for density must be woven into the pressure equation. The Ideal Gas Law is used:

RTP

Page 17: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-17

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

p

2

staticototal CV

21TTT

Compressible Flow Option

• In a compressible/thermal problem, the total energy equation is solved for total temperature. Static temperature is then determined from:

• Shock waves (where discontinuous changes in velocity and properties take place) occur frequently in supersonic flows.

• The solution benefits from mesh refinement in regions near shock waves.

Page 18: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-18

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

CFD Terminology

Define Conjugate Heat Transfer

• Conjugate heat transfer – the solution of the energy equation in a problem domain with both

fluids and solids (i.e., we are solving for the temperature distributions in both fluids and solids simultaneously).

• These problems are generally considered as “ill-conditioned”, meaning that the solution of the matrix equation derived from the energy (a.k.a. temperature) equation can be difficult….

Page 19: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-19

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

CFD Terminology

Define Distributed Resistances

• Distributed resistances – Simulation of the hydrodynamic effects of a feature without modeling

its detailed geometry. The distributed resistance is the CFD analogy of a beam element. Examples include flow through screens, porous media, or small obstructions.

– Values can be obtained from Handbooks or calculated by simulation with FLOTRAN for use in larger simulations.

• One case with the feature• One case without the feature

Page 20: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-20

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

CFD Terminology

Define Periodic Boundaries

• Periodic Boundaries– two boundaries where the conditions are unknown but identical. All

the degrees of freedom are coupled.

Page 21: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-21

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

CFD Terminology

Define Multiple Species Transport

• Multiple Species Transport – This capability enables the user to track species concentration levels

for several fluids as they mix, subject to the limitations that a single momentum equation is solved for the flow field and no chemical reactions are simulated.

– Thus, it is not possible to simulate the separation of two fluids that occurs due to density changes.

Page 22: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-22

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

CFD TerminologyDefine Newtonian and Non-Newtonian Fluids• Newtonian fluids

– have a linear relationship between the stress and rate-of-strain. Newtonian fluids have no memory of past configurations or deformations.

• Non-Newtonian fluids – have a viscosity which may be a function of not only the fluid velocity,

but also the velocity gradient.

• Common Newtonian fluids – include air and water

• Common non-Newtonian fluids – include blood, polymers and clay slurries

Page 23: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-23

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training ManualThe FLOTRAN Elements (continued)

• The fluid is single phase but can be a mixture of up to six different fluids or species.

• You can use Elements 141 & 142 to model heat transfer in solids as well as fluids, but FLOTRAN elements cannot be combined with other ANSYS elements.

• Conservation laws provide the basis for the formulation:– Conservation of Mass– Conservation of Momentum– Conservation of Energy

• Transport equation solved for multiple species.

Page 24: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-24

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

0)(

i

i

xu

t

0)()(

yv

xu

t

Conservation of Mass

• The Conservation of Mass equation to a FLOTRAN analysis:

• The Conservation of Mass equation (or Continuity equation) when combined with the Conservation of Momentum equation leads to an equation for pressure. The above form of the Continuity equation is stated in indicial notation (a repeated index implies a summation of terms). It can be rewritten in 2D, Cartesian coordinates as:

Page 25: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-25

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

i

j

jj

i

j

iiij

iji

xu

μxx

uμx

βgρxp

x)uuρ(

t)uρ(

Diffusion terms

Advectionterms

Time-dependentterms Source terms

Conservation of Momentum

• Discuss the application of the Conservation of Momentum equation to a FLOTRAN analysis.

• FLOTRAN solves the complete Navier-Stokes Equations:

Page 26: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-26

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

2

2

2

2

yu

xug

xp

yuv

xuu xx

2

2

2

2

yv

xvg

yp

yvv

xvu yy

Conservation of Momentum (continued)

• Additional source terms (ßi) such as Lorentz forces may exist.

• The Navier-Stokes equations can be rewritten for 2D, Steady State, Constant properties in Cartesian coordinates as:

Page 27: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-27

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

• Discuss the application of the Conservation of Energy equation to a FLOTRAN analysis.

• For incompressible flow, the energy equation is simplified into a transport equation:

• The specific heat may vary.

• The density for non-fluid regions must be constant.

• The conductivity for non-fluids may be orthotropic and also vary with temperature.

iii

ipp

xTk

xS

xTuC

tTC

)()(

Conservation of Energy

Page 28: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-28

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

• Discuss the application of the Conservation of Energy equation for compressible flow to a FLOTRAN analysis.

• For compressible flow, the energy equation is solved in terms of total temperature.

• The viscous work, kinetic energy and viscous dissipation terms can be significant at high velocities.

22

21

)()(

VxC

kxx

uxxx

uu

tP

xTk

xS

xTuC

tTC

iPij

j

ijj

ii

i

o

ii

oipop

Viscous work terms Kinetic energy terms

Viscous dissipation

Compressible Flow Total Energy Equation

Page 29: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-29

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

• Discuss the application of the transport equation for multiple species to a FLOTRAN analysis.

• The transport equations are solved for the mass fraction of each specie and based on advection and diffusion processes only.

• In these equations, Yi is the mass fraction for the ith species and Di is the mass diffusion coefficient for the ith specie in relation to the bulk mixture.

( ) ( )Yt

u Yx x

DYx

i i i

i ii

i

i

0

Note: To ensure the sum of N specie mass fractions at any location is 1, only N-1 equations are actually solved.

Species Transport Equation

Page 30: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-30

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training ManualFLOTRAN Analysis Capabilities

• Transient or Steady-state flow– Ramped, Step time dependent boundary conditions

• Laminar or Turbulent flow– User choice

• Incompressible or Compressible flow

• Newtonian or non-Newtonian flow– Power Law, Carreau, Bingham models available– User Programmable models possible

• Subsonic, Transonic, or Supersonic flow

Page 31: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-31

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

FLOTRAN Analysis Capabilities (continued)

• Internal or External flow

• Forced flow or buoyancy driven flow– Incompressible algorithm with variable density

• Forced, free or mixed convection heat transfer

• Conjugate heat transfer

• Distributed resistance/Fan model

• Free Surface (2D) with Surface Tension

• ALE formulation for changing problem domain

• Interpolation of solution onto revised mesh

Page 32: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-32

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

FLOTRAN Solution Algorithm Characteristics• Sequential solution of the governing equations.

• Iterative matrix solvers - the symmetric and non-symmetric iterative solvers are separate from those used in the rest of ANSYS.

• In-memory solution - Memory requirements are minimized by storing only the non-zero matrix terms.

• Equal Order Method (velocity-pressure) - Equal order interpolation functions simplify boundary condition specification and interpretation of results.

• Streamline upwind method - the default for treating the non-linear advection terms. Inexpensive, bounded and stable method. (The Streamline Upwind Petrov Galerkin method is a more accurate but slightly less stable alternative.)

Page 33: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-33

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training ManualFLOTRAN Analysis Decision Making

• You must make decisions about the expected flow characteristics and subsequently verify these decisions.

– Are fluid property variations with temperature important?– Is the flow steady state or transient in nature? – Is the flow laminar or turbulent?– Are “compressible” effects important?– How much of the problem domain should be modeled?– Where should the mesh densities be greatest?

• Continued advances in CFD will help automate these decisions, but this will not relieve the engineer of the need to understand what phenomena are important.

Page 34: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-34

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training ManualThe Sequence of Events• Geometry:

– Create within ANSYS (PREP7) or..– Import from a CAD program (Use Connection Products!)

• Ensure that the flow domain volume is imported

• Meshing– Use mapped meshing as much as possible.– Slice volumes as necessary for Mesh sweeping.– ICEM CFD mesh is easily imported into ANSYS.

• Boundary Conditions– Use solid model boundary conditions if possible

• FLOTRAN execution– Stability parameters and restarts as necessary

• Post-Processing

Page 35: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-35

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

Twall = 20°CVinlet

Tinlet

H = 1 P = 0

Insulated wall, q" = 0

Density = = 998 kg/m3

Viscosity = = 1.0(10-3) kg/m-sSpeed of sound = a = 1480 m/s

CASE A: Vinlet = 0.1 m/s, Tinlet = 95°CCASE B: Vinlet = 1 m/s, Tinlet = 25°C

CASES A and B: Consider water flowing through a channel.

Exercise

Answer the following questions for cases A through D shown below.1. Is the flow laminar or turbulent?

2. Is the flow compressible or incompressible?

3. Are property variations with temperature important?

4. Where should the mesh be fine?

Page 36: FLOTRAN Characteristics, Capabilities and Analysis Planning Chapter 1.

May 15, 2001Inventory

#0014771-36

CFD A

NA

LYSIS 5.7CFD

AN

ALYSIS 5.7

Training Manual

Answers:

Vinlet

Tinlet

H = 0.5 m

P = 0

Tambient = 20°C

Density = = 1.20 kg/m3

Viscosity = = 1.81(10-5) kg/m-sSpeed of sound = a = 340 m/s

CASE C: Vinlet = 50 m/s, Tinlet = 20°CCASE D: Vinlet = 500 m/s, Tinlet = 20°C

CL

CASES C and D: Consider air flowing through an expanding duct.

CASE A CASE B CASE C CASE D

Laminar (L) or Turbulent (T)?

Compressible (C) or Incompressible (I)?

Are property variations with temperatureimportant (Yes or No)?Location of fine mesh?

Exercise (continued)