CFX-FSI_120_lect-06_TwoWay
CFX-FSI_120_lect-06_TwoWay
Fluid Dynamics
Solid Mechanics Mass
Momentum
Structural
Turbulence
Thermal
Heat Transfer
Fluid Dynamics
Solid Mechanics Mass
Momentum
Structural
Turbulence
Thermal
Heat Transfer
Fluid Dynamics
Solid Mechanics Mass
Momentum
Structural
MFS
Turbulence
Thermal
Heat Transfer
Fluid Dynamics
Solid Mechanics Mass
Momentum
Structural
Thermal Turbulence
Heat Transfer
Fluid Dynamics
Solid Mechanics Mass
MFX
Momentum
Structural
OR
Turbulence
Thermal MFX
Heat Transfer
Fluid Dynamics
Solid Mechanics Mass
Momentum
Structural
MFX
Thermal Turbulence
Heat Transfer
Turbulence
Heat Transfer
• Damping Controls
– Define structural damping if important
– Same as any non-FSI transient dynamic simulation (see ANSYS doc)
• Output Controls
– Each timestep is actually treated as a load
step in ANSYS
– The rst file can become quite large, even for
small cases
– Can reduce by using Output Controls under
Analysis Settings as shown
• Note that Last Time Point means the last
substep of each loadstep – i.e. once per
Coupling Step (transient time step)
– Above creates restart points every 50 time steps, keeping only the
most recent (1) file set required for restarts
– Results are also written to the rst file every 10 time steps – all
these results are maintained
– Must manually create corresponding backup files for CFX too,
typically using the Coupling Step Interval option
– MFRC must be a multiple of MFOU
– Note the RESCONTROL command is ignored for MFX
– MFRC cannot be added when restaring – define it in the initial run
ANSYS, Inc. Proprietary July 2009
© 2009 ANSYS, Inc. All rights reserved. 6-32 Inventory #002678
Two-way Coupled FSI
Mechanical Loads and Supports Training Manual
1
2
• When both thermal and structural loads are to be passed from CFX to
ANSYS, must use coupled field elements in ANSYS
– E.g. SOLID 226 and SOLID 227
– Set up as a Transient Structural analysis then switch the element type
using a Command Snippet inserted into Geometry > Part:
• Analysis Type
– This controls if the CFX solver is run
in steady-state or transient mode
– If Transient, time controls must be in
sync with ANSYS, so nothing to set
Use Additional
Coupling options to
send data 1-way
• Backup tab
– Writes CFX backup files
– ANSYS files are needed too for a
restart
– Use the Coupling Step Interval
option with the same frequency as
the MFRC command
– May cause CFX to overwrite MFOU
command inserted in Mechanical
(next slide)
1 timestep
Forces, displacements,
temperatures, heat flows
should be converged
within a timestep
ANSYS, Inc. Proprietary July 2009
© 2009 ANSYS, Inc. All rights reserved. 6-54 Inventory #002678
Two-way Coupled FSI
CFX Solver Control Training Manual
• MultiField panel:
– Mechanical Input File is that specified
in CFX-Pre
• Can change here if you’ve written a
new one
– Process ANSYS Input File
• Uncheck if the Mechanical Input File
is a .mf file
• See restarts discussion below
• On the Solver panel enable the Double
Precision option
– Recommended for FSI applications
since the mesh deformations are often
very small compared to the size of the
domain
• Start Run
• CFX
– The working directory will contain the CFX
Output and Results files as usual
– The transient (.trn) and backup (.bak) results
files are stored in the <name>_001 directory
• ANSYS
– The subdirectory <name>_001.ansys is
created and contains all the ANSYS files
– The transient and file results are stored in
the .rst file (can get very large)
– The auto-generated ANSYS.mf file can be
viewed in this subdirectory
– ANSYS.stdout is the ANSYS Solver output
as displayed in the CFX Solver Manager
• Workbench
– The working directory is:
…/<ProjectName>_files/dp0/CFX/CFX
ANSYS, Inc. Proprietary July 2009
© 2009 ANSYS, Inc. All rights reserved. 6-73 Inventory #002678
Two-way Coupled FSI
CFX Solver Output Training Manual
1
3
4
2
• Customer Portal
– Knowledge Base
– Tech Support
ANSYS, Inc. Proprietary July 2009
© 2009 ANSYS, Inc. All rights reserved. 6-85 Inventory #002678
Two-way Coupled FSI
Outline Training Manual
…/RunName_002.ansys/ANSYS.mf
• MFRS
– Multifield restart time (for restarts only)
– Usually has a value of -1, meaning restart from end of previous solution
• MFAN
– Turns on Multifield solver
• MFTI
– End time for the Multifield analysis
• MFIT
– Controls the number of stagger loops
• MFDT
– Control the transient time step size
• MFOU
– Controls how often results are stored
• MFRC
– Control how often restart files are written
• MFCO
– Controls Field Convergence Criteria
• MFRE
– Field Relaxation Factors
• MFLC,SURF,CFX,'Interface','Total Force', ANSYS, 1,FORC,CPP
– Load transfer command
• MFPS and MFSO
– Which field goes first, sequential or parallel
• BCSOPTION,,INCORE
– For the sparse solver tries to retain the entire factorized matrix in memory
– Runs faster, but significantly increases memory usage
• KBC,1
– Sets stepped loads
– CFX will always append this command to the ANSYS input
– If using Prep7 make sure you set it manually
• OUTRES
– Minimum data you can write and still restart
– Note that you may need more data for post-processing (e.g Stress data)
• NEQIT
– Sets the maximum number of equilibrium iterations
• NCNV
– The ANSYS solver will continue when convergence has not been
achieved
AFF AFI 0 U , p RF
A AII
AIS I RI
IF
0 ASI ASS S RS
• The interface displacement contribution to the fluid solution, AFII is
handled explicitly
• The AFII term is placed into the right-hand-side of the fluid solution
• No active coefficients in the AFF coefficient matrix – hence explicit
AFF AFI 0 U , p RF
A AII
AIS I RI
IF
0 ASI ASS S RS
• Similarly the fluid force contribution to the solid & interface solution
is handled explicitly
• In both cases an implicit solution is only obtained by iterating
AFF AFI 0 U , p RF
A AII
AIS I RI
IF
0 ASI ASS S RS
• Similarly solid solution implicitness could be improved by adding an
approximation of AIFU and AIFp to the AII term
– Describes how a change in fluid force affects interface displacement
– This is not covered here and is not currently possible in ANSYS
ANSYS, Inc. Proprietary July 2009
© 2009 ANSYS, Inc. All rights reserved. 6-104 Inventory #002678
Two-way Coupled FSI
Improving Implicitness Training Manual
AFF AFI 0 U , p RF
A AII
AIS I RI
IF
0 ASI ASS S RS
• Since the term is multiplied by a change in momentum/pressure, the
contribution will go to zero at convergence
– We are not adding a source term, just a source term coefficient to
improve convergence
• Approximating AFII :
• AFF contains contributions for the continuity and momentum
equations
– We can add a continuity Source Term Coefficient at a boundary
– Therefore AFI needs to describe how interface displacements affect the
continuity equation (pressure is the solved variable for this equation):
M F Rate of change in M
AFI Rate of change in
I interface displacement
• So we can write AFII as:
M F M F I
AFI I I pF
I I pF
AFF contribution
• Now depends on a fluid unknown pF, rather than a solid unknown I
ANSYS, Inc. Proprietary July 2009
© 2009 ANSYS, Inc. All rights reserved. 6-106 Inventory #002678
Two-way Coupled FSI
Improving Implicitness Training Manual
– Fluid Mass Flux sources are entered per unit area, so only need /t