CFX Intro 13.0 L04 Solver
CFX Intro 13.0 L04 Solver
Solver Settings
Introduction to
ANSYS CFX
• Initialization
• Solver Control
• Output Control
• Solver Manager
• In some cases a poor initial guess may cause the solver to fail
during the first few iterations
ip = up + r
– Where is the variable gradient and ip = up + r is the vector between the
upstream node and the integration point
– In other words, the ip value is equal to the upstream value plus a
correction due to the gradient
– b can have values between 0 and 1 …
Flow is misaligned
ip = up + r with mesh
Theory
1
• If b = 0 we get the Upwind advection
scheme, i.e. no correction 0
– This is robust but only first order accurate
– Sometimes useful for initial runs, but
usually not necessary
Upwind Scheme
• The Specified Blend scheme allows you to
specify b between 0 and 1 (i.e. between no
correction up to full correction)
– But this is not guaranteed to be bounded,
meaning that when the correction is =1.00
included it can overshoot or undershoot
what is physically possible
Initial Guess
50 iterations
100 iterations
150 iterations
Final Solution
• Physical Timescale
• Auto Timescale
– The Solver calculates a timescale based on
boundary / initial conditions or current solution
and domain length scale
– Can accelerate convergence when vastly different local velocity scales exist
• E.g. a jet entering a plenum
– Best used on fairly uniform meshes, since small element will have a small
timescale
© 2010 ANSYS, Inc. All rights reserved. which can slow convergence
ANSYS, Inc. Proprietary
4-19
Release 13.0
December 2010
Solver Settings
Solver Control – Convergence Criteria Training Manual
where [A] is the coefficient matrix and [Φ] is the solution variable
• Since each control volume has a residual we usually look at the RMS
average or the maximum normalized residual
• Residual Type
– MAX: Convergence based on maximum
residual anywhere
– RMS: Convergence based on average
residual from all control volumes
R i
2
• Residual Target
– For reasonable convergence MAX residuals
should be 1.0E-3, RMS should be at least
1.0E-4
– The targets dependent on the accuracy
needed
• Lower values may be needed for greater
accuracy
• When set, the Solver must meet both the Residual and Conservation Target
before stopping (assuming Max. Iterations is not reached)
• Interrupt Control
– Can specify other criteria for stopping
the Solver based on logical CEL
expressions
– When the expression returns true the
solver will stop
• Any value >= 0.5 is true
– Examples
• If temperature exceeds a specified value
if(areaAve(T)@wall>200[C],1,0)
• If mesh quality drops below a specified value in a moving mesh case
– More on logical expressions in the CEL lecture
• Advanced Options
– Advanced solver control options
– Rarely needed
• Option:
– Standard: Like a full results file
– Essential: Allows a clean solver restart
– Smallest: Can restart the solver, but there’ll
be a jump in the residuals
– Selected Variables: Not recommended
• Serial
• Local Parallel
• Distributed Parallel
• Multidomain Option:
– Independent Partitioning: Each domain is
partitioned into n partitions
– Coupled Partitioning: All domains are combined
and then partitioned into n partitions
• There’s a specific option for Transient Rotor Stator
cases
• During a solution Edit Run in Progress lets you make changes on the fly
– Models generally cannot be changed, but timescales, BC’s, etc can