System Coupling Tutorials
System Coupling Tutorials
System Coupling Tutorials
Ansys, Ansys Workbench, AUTODYN, CFX, FLUENT and any and all ANSYS, Inc. brand, product, service and feature
names, logos and slogans are registered trademarks or trademarks of ANSYS, Inc. or its subsidiaries located in the
United States or other countries. ICEM CFD is a trademark used by ANSYS, Inc. under license. CFX is a trademark
of Sony Corporation in Japan. All other brand, product, service and feature names or trademarks are the property
of their respective owners. FLEXlm and FLEXnet are trademarks of Flexera Software LLC.
Disclaimer Notice
THIS ANSYS SOFTWARE PRODUCT AND PROGRAM DOCUMENTATION INCLUDE TRADE SECRETS AND ARE CONFID-
ENTIAL AND PROPRIETARY PRODUCTS OF ANSYS, INC., ITS SUBSIDIARIES, OR LICENSORS. The software products
and documentation are furnished by ANSYS, Inc., its subsidiaries, or affiliates under a software license agreement
that contains provisions concerning non-disclosure, copying, length and nature of use, compliance with exporting
laws, warranties, disclaimers, limitations of liability, and remedies, and other provisions. The software products
and documentation may be used, disclosed, transferred, or copied only in accordance with the terms and conditions
of that software license agreement.
ANSYS, Inc. and Ansys Europe, Ltd. are UL registered ISO 9001: 2015 companies.
For U.S. Government users, except as specifically granted by the ANSYS, Inc. software license agreement, the use,
duplication, or disclosure by the United States Government is subject to restrictions stated in the ANSYS, Inc.
software license agreement and FAR 12.212 (for non-DOD licenses).
Third-Party Software
See the legal information in the product help files for the complete Legal Notice for Ansys proprietary software
and third-party software. If you are unable to access the Legal Notice, contact ANSYS, Inc.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. iii
System Coupling Tutorials
Review Mapping Diagnostics for the Heat Rate Transfer in EnSight ............................................. 62
Review Heat Rate Data Transfer Values in the Transcript ............................................................. 63
Visualize Heat Rate Per-Unit-Volume Data Transfer Values in EnSight .......................................... 64
EnSight Quick Reference ....................................................................................................................... 66
Adding a Text Annotation ............................................................................................................... 66
Running a Simple Animation of Solution Time Steps ........................................................................ 66
Adding a Simple Coordinate Probe ................................................................................................. 67
Adding a Time Annotation .............................................................................................................. 68
Plotting Nodal Displacement as a Function of Time ......................................................................... 68
Adding Force Vector Arrows ............................................................................................................ 70
Solving Co-Simulations from the Command Line .................................................................................... 73
Required Directory Structure and Files .................................................................................................. 73
Preparing a Co-Simulation for a Command-Line Run ............................................................................. 74
Setting Up the Co-Simulation .......................................................................................................... 74
Making Setup Files Available ........................................................................................................... 75
Tutorial Case: Reed Valve Co-Simulation Setup ................................................................................. 75
Solving a Co-Simulation from the Command Line .................................................................................. 76
Running an Interactive Solve ........................................................................................................... 77
Running a Scripted Solve ................................................................................................................ 77
Running a Piped-Command Solve ................................................................................................... 78
Coil-and-Core Induction Heating Co-Simulation (Maxwell-Mechanical) ................................................. 81
Problem Description: Coil-and-Core Induction Heating Case .................................................................. 81
Steps of the Co-Simulation .................................................................................................................... 82
Download the Tutorial Input Files .......................................................................................................... 83
Complete the Electromagnetic Setup .................................................................................................... 83
Load the Maxwell Project ................................................................................................................ 84
Verify Maxwell's Electromagnetic Settings ....................................................................................... 84
Solution Type ........................................................................................................................... 84
Solid Bodies .............................................................................................................................. 85
Thermal Material Properties ...................................................................................................... 85
Excitations ................................................................................................................................ 86
Create Maxwell's System Coupling Setup ........................................................................................ 86
Verify Maxwell's Solver Input and System Coupling Participant Setup Files ....................................... 87
Complete the Thermal Setup ................................................................................................................ 88
Load the Mechanical Setup ............................................................................................................. 88
Verify Mechanical's Transient Thermal Settings ................................................................................ 89
Thermal Material Properties ...................................................................................................... 89
Nonlinear Controls .................................................................................................................... 89
Create the System Coupling Region ................................................................................................ 89
Generate Mechanical's Solver Input and Participant Setup Files ....................................................... 90
Verify Mechanical's Solver Input and System Coupling Participant Setup Files .................................. 90
Create the Co-Simulation ...................................................................................................................... 91
Start the System Coupling GUI ........................................................................................................ 91
Add the Coupling Participants ........................................................................................................ 92
Change Coupling Participant Update Settings ................................................................................. 93
Add the Coupling Interface ............................................................................................................. 93
Add Data Transfers .......................................................................................................................... 94
Change Solution Control Settings ................................................................................................... 95
Change Output Control Settings ..................................................................................................... 95
Solve the Co-Simulation ........................................................................................................................ 96
Postprocess System Coupling's Results .................................................................................................. 96
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
iv of ANSYS, Inc. and its subsidiaries and affiliates.
System Coupling Tutorials
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. v
System Coupling Tutorials
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
vi of ANSYS, Inc. and its subsidiaries and affiliates.
System Coupling Tutorials
Verify Fluent's Solver Input and System Coupling Participant Setup Files ........................................ 175
Create the Co-Simulation .................................................................................................................... 176
Start the System Coupling GUI ...................................................................................................... 176
Add the Coupling Participants ....................................................................................................... 177
Add the Coupling Interfaces and Data Transfers ............................................................................. 177
Change Solution Control Settings ................................................................................................. 182
Solve the Co-Simulation ...................................................................................................................... 183
Postprocess System Coupling's Results ................................................................................................ 183
Evaluate Mapping Quality in the Transcript .................................................................................... 183
Prepare to View Results in EnSight ................................................................................................. 184
Verify the Application of Fluent-Generated Temperatures .............................................................. 184
Verify the Application of Maxwell-Generated Losses ...................................................................... 186
Review Losses in the Transcript ............................................................................................... 187
Visualize Loss Results in EnSight .............................................................................................. 187
Visualize Losses Per-Unit-Volume in EnSight ............................................................................ 188
Create a Loss Per-Unit Volume Variable for Maxwell ........................................................... 188
Plot Losses Per-Unit-Volume .............................................................................................. 189
Adding a Rotating Solid Zone to the Thermal Participant ..................................................................... 190
Reed Valve FSI Co-Simulation in Workbench (Fluent-Mechanical) ......................................................... 191
Problem Description: Reed Valve Case ................................................................................................. 191
Steps of the Co-Simulation .................................................................................................................. 193
Download the Tutorial Input Files ........................................................................................................ 193
Open the Project in Workbench ........................................................................................................... 193
Complete the Structural Setup ............................................................................................................ 195
Verify Structural Settings ............................................................................................................... 195
Solid Bodies ............................................................................................................................ 195
Contacts ................................................................................................................................. 195
Structural Loads ...................................................................................................................... 196
Create the System Coupling Region .............................................................................................. 197
Complete the Fluid Setup ................................................................................................................... 197
Verify Fluid Settings ...................................................................................................................... 198
Materials ................................................................................................................................ 198
Boundary Conditions .............................................................................................................. 198
Dynamic Mesh ........................................................................................................................ 199
Define the System Coupling Dynamic Mesh Zone .......................................................................... 202
Create the Co-Simulation .................................................................................................................... 202
Add the System Coupling System ................................................................................................. 202
Open the System Coupling Workspace .......................................................................................... 203
Set Transient Analysis Controls ...................................................................................................... 203
Create Data Transfers .................................................................................................................... 204
Set Restart Output Control Settings ............................................................................................... 205
Solve the Co-Simulation ...................................................................................................................... 205
Postprocess Co-Simulation Results ...................................................................................................... 206
Evaluate Mapping Quality in the Transcript .................................................................................... 207
Postprocess System Coupling's Data Transfer Results ..................................................................... 207
Open Results in EnSight .......................................................................................................... 208
Set Up the EnSight Interface ................................................................................................... 208
Review Displacement Results .................................................................................................. 208
Review Displacement in the Transcript .............................................................................. 209
Visualize Incremental Displacement in EnSight .................................................................. 209
Visualize Total Nodal Displacement in EnSight ................................................................... 210
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. vii
System Coupling Tutorials
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
viii of ANSYS, Inc. and its subsidiaries and affiliates.
List of Figures
1. Electromagnetic-Thermal FSI tutorial case ............................................................................................... 16
2. EnSight's Parts pane ................................................................................................................................ 20
3. EnSight's Parts pane with grouped regions .............................................................................................. 20
4. EnSight's Variables pane .......................................................................................................................... 22
5. Continuous vs non-continuous palette coloration for element-based mapping variables .......................... 26
6. Continuous vs non-continuous palette coloration for per-element data transfer variables ......................... 27
7. Maxwell's data transfer variables and data locations ................................................................................. 28
8. Force Per-Unit-Area data transfer plots with min-max palette ranges ........................................................ 32
9. Force Per-Unit-Area data transfer plots with adjusted palette ranges ......................................................... 33
10. Mapping diagnostics for the Displacement transfer on Plate 2 ................................................................ 36
11. Mapping diagnostics for the Displacement transfer on Plate 2 ................................................................ 37
12. Displacement data transfer values on Plate 2 for Coupling Step 1, Iteration 10 ......................................... 37
13. Displacement data transfer values on Plate 2 for Coupling Step 1, Iteration 10 ......................................... 39
14. Mapping diagnostics for the Force transfer on Plate 2 ............................................................................. 41
15. Mapping diagnostics for the Force transfer on Plate 2 ............................................................................. 42
16. Force data transfer values on Plate 2 for Coupling Step 1, Iteration 10 ..................................................... 43
17. Force Per-Unit-Area data transfer values on Plate 2 for Coupling Step 1, Iteration 10 ................................ 44
18. Mapping diagnostics for the Displacement transfer on Plate 1 ................................................................ 46
19. Mapping diagnostics for the Displacement transfer on Plate 1 ................................................................ 48
20. Displacement data transfer values on Plate 1 at Coupling Step 1, Iteration 10 .......................................... 48
21. Displacement data transfer values on both sides of Plate 1 for Coupling Step 1, Iteration 10 .................... 50
22. Mapping diagnostics for the Force transfer on Plate 1 ............................................................................. 52
23. Mapping diagnostics for the Force transfer on Plate 1 ............................................................................. 53
24. Force data transfer values on Plate 1 for Coupling Step 1, Iteration 10 ...................................................... 53
25. Force Per-Unit-Area data transfer values on Plate 1 for Coupling Step 1, Iteration 10 ................................ 55
26. Mapping diagnostics for the Temperature transfer on the Cylinder ......................................................... 57
27. Mapping diagnostics for the Temperature transfer on the Cylinder ......................................................... 58
28. Temperature data transfer values on the Cylinder for Coupling Step 1, Iteration 10 .................................. 59
29. Temperature data transfer values on the Cylinder for Coupling Step 1, Iteration 10 .................................. 60
30. Mapping diagnostics for the Heat Rate transfer on the Cylinder .............................................................. 62
31. Mapping diagnostics for the Heat Rate transfer on the Cylinder .............................................................. 63
32. Heat Rate data transfer values on the Cylinder for Coupling Step 1, Iteration 10 ....................................... 63
33. Heat Rate Per-Unit-Volume data transfer values on the Cylinder for Coupling Step 1, Iteration 10 ............. 65
34. Animation of Total Nodal Displacement as a function of time .................................................................. 70
35. Animation of Total Nodal Displacement as a function of time .................................................................. 71
36. Induction coil with resulting core temperature shown ............................................................................ 82
37. System Coupling's mapping diagnostics at initialization ....................................................................... 102
38. Source and target Temperature mapping on the core ........................................................................... 103
39. Temperatures reported in the Transcript at 20 [s] .................................................................................. 103
40. Source-side and target-side Temperatures at 20 [s] ............................................................................... 104
41. Losses reported in the Transcript at 20 [s] ............................................................................................. 105
42. Source-side and target-side Heat Rate (losses) at 20 [s] ......................................................................... 106
43. Moving bar with a stationary coil ......................................................................................................... 108
44. System Coupling's mapping diagnostics for Coupling Step 20 .............................................................. 127
45. Temperature mapping on the bar at 10s and 20s .................................................................................. 129
46. Animation of Temperature mapping on the bar .................................................................................... 130
47. Figure 44: Source nodes, target elements, and combined view of Temperature mapping ........................ 131
48. Temperatures reported in the Transcript at 20 [s] .................................................................................. 132
49. Source-side and target-side Temperatures shown at 10s and 20s .......................................................... 133
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. ix
System Coupling Tutorials
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
x of ANSYS, Inc. and its subsidiaries and affiliates.
List of Tables
1. Example mapping variables from this tutorial case .................................................................................. 29
2. Bus bar Temperature mapping variables and regions .............................................................................. 158
3. Additional System Coupling tutorials ..................................................................................................... 235
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. xi
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
xii of ANSYS, Inc. and its subsidiaries and affiliates.
Introduction to System Coupling Tutorials
The System Coupling Tutorials package provides instructions on how to use Ansys System Coupling to
set up and run coupled multiphysics analyses, integrating different physics solvers and/or static data
sources into a single simulation. When two or more analyses are coupled, an examination of their
combined results can capture more complex interactions than an examination of those results in isolation,
producing more accurate results and yielding an optimal solution.
Two types of tutorials are available: instructional, which provide step-by-step guidance on techniques
that are generally applicable to all System Coupling co-simulations, and application, which use a GUI-
based workflow to illustrate System Coupling's capabilities with regard to specific engineering applica-
tions.
Instructional Tutorials:
Provides guidance on working with System Coupling's Transcript output and EnSight-formatted
results, including how to load Results files, set up the EnSight interface, and perform various
postprocessing tasks.
For the results sections of the case-based application tutorials, you may refer back to this tutorial
for more detailed information on visualizing co-simulation results in EnSight.
Provides details on the ways you can set up a co-simulation using System Coupling in Workbench
or System Coupling's GUI, make the setup files available for command-line execution, and then
solve the co-simulation from the command line.
Application Tutorials:
For each tutorial case, coupling participant physics are set up to the point that each participant
problem can be solved independently. As part of each tutorial, you will complete each participant's
coupling setup, create and solve the co-simulation in the System Coupling GUI, and review a
summary of System Coupling's postprocessing output.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 13
Introduction to System Coupling Tutorials
Uses a reed-valve case to demonstrate a transient fluid-structure interaction (FSI) between volumes
with Fluent and Mechanical coupling participants with a Workbench workflow. Features contact
detection and stabilization.
• Oscillating Plate FSI Co-Simulation with Partial Setup Export from Workbench (CFX-Mechanic-
al) (p. 217)
Uses an oscillating plate case to demonstrate a transient fluid-structure interaction (FSI) between
surfaces with CFX and Mechanical coupling participants. Features export of a partial coupling
setup from Workbench.
Tip:
If you plan on completing multiple System Coupling tutorials, you can also download all the
tutorial files in a single archive, available under Tutorials on the System Coupling 2021 R2
help page.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
14 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing System Coupling's Co-Simulation
Results
During the execution of a co-simulation, System Coupling generates a Transcript/Log file and EnSight-
formatted Results files, both of which can be used to postprocess co-simulation results. This tutorial
demonstrates how to use these outputs in postprocessing.
For each of the three analyses included in the tutorial, you will first review the Transcript to make a
preliminary assessment of the data transfers performed, and then visualize the results in EnSight for
deeper examination and interpretation.
The tutorial steps are followed by a quick-reference section with step-by-step instructions for performing
common postprocessing tasks in EnSight.
To run the tutorial, perform the steps outlined in the following sections, referring to the EnSightquick-
reference as needed:
Sample Case: Electromagnetic-Thermal FSI
Downloading the Tutorial Input Files
Postprocessing Summary
Preparing to Visualize Results in EnSight
Working with Variables in EnSight
Postprocessing Steps for this Tutorial
Postprocessing the FSI Results on Plate 2
Postprocessing the FSI Results on Plate 1
Postprocessing the Electromagnetic-Thermal Results on the Cylinder
EnSight Quick Reference
In the fluid part of the analysis, both plates are the same length. However, the plates in the structural
part of the analyses are of different lengths, both with regard to each other and with regard to the
plates in the fluid analyses. The upstream structural plate is shorter than the corresponding fluid plate,
and the downstream structural plate is taller than the corresponding fluid plate.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 15
Postprocessing System Coupling's Co-Simulation Results
– Motion of the air in the duct is modeled using a Fluent steady fluid-flow analysis.
– On each plate, a surface coupling interface is defined on the three faces that are in contact
with the air.
– Force data from the motion of the air are received by the structural analysis.
– Displacement data from the motion of the plates are received by the fluid analysis.
• Heat Rate data in the cylinder are modeled using a Maxwell Eddy-Current analysis.
• Temperature data in the cylinder are modeled using a Fluent steady-state conjugate heat transfer
(CHT) analysis.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
16 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing Summary
The extracted EnSightPostprocessing directory contains the SyC subdirectory, which contains the
results files needed to work through this tutorial.
The SyC directory is an output folder created in System Coupling's co-simulation working directory
during execution. For this tutorial, you will use the following items:
• scLog.scl
This is a Log file containing information from System Coupling's co-simulation Transcript. It
contains mapping and data transfer details that can be cross-referenced with the results
visualized in EnSight.
• Results
This folder contains System Coupling's EnSight-formatted results files. For specifics on the
different types of files, see Postprocessing Coupling Results in EnSight in the System Coupling
User's Guide.
Note:
The chart.dat and Settings.h5 files in the SyC directory contain charting data and
the data model settings needed to open the case in System Coupling, but otherwise are not
relevant to the postprocessing.
Postprocessing Summary
Result Types
There are two main types of System Coupling results that can be used in postprocessing: mapping
diagnostics and data transfer values. You will review these results in System Coupling's Transcript
and in EnSight.
Postprocessing Preparations
1. Prepare to visualize results in Fluent by loading the results and configuring the Fluent inter-
face to optimize viewing.
2. Access the Transcript by opening the scLog.scl file in the SyC subfolder of System
Coupling's working directory.
3. In the Transcript, identify participant data locations for each data transfer in the co-simulation.
You will need this information to determine which variables to use when reviewing results,
as described in Selecting Variables (p. 27).
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 17
Postprocessing System Coupling's Co-Simulation Results
Postprocessing Sequence
For each analysis in the co-simulation, first review mapping diagnostics, and then move on to review
the data transfer values. For both types of results, you will start out with the Transcript and then
verify what you have learned by visualizing the results in EnSight.
For this tutorial, you will review the analyses in this order:
For a more detailed description of these steps, see Postprocessing Steps for this Tutorial (p. 33).
By default, System Coupling automatically produces EnSight results files at analysis initialization, after
each restart point, and at the end of the run. For information on changing the frequency with which
results files are generated, see Generating EnSight Postprocessing Files in the System Coupling User's
Guide.
Note:
Because the EnSightPostprocessing directory contains only the results needed for this
tutorial, you will see messages indicating that participant working directories do not exist.
You may disregard these messages, which will not be shown for a case with all co-simulation
materials present in the working directory.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
18 of ANSYS, Inc. and its subsidiaries and affiliates.
Preparing to Visualize Results in EnSight
In the System Coupling GUI, select File > Open Results in EnSight.
While the results are being opened, a confirmation message is shown on the Command Console
tab.
>>> OpenResultsInEnSight()
While the results are being opened, a confirmation message is shown in the CLI.
For other methods of opening System Coupling results files, see Loading Coupling Results into EnSight
in the System Coupling User's Guide.
Parts Pane
The Parts pane is a table populated with a list of model "parts" (that is, coupling participant regions)
based on the mesh and associated surfaces defined in the coupled analysis.
The coupled analysis data are loaded into EnSight and shown in the Parts pane as Case 1.
Under the Case1 branch, there is a list of all regions with meshes involved in data transfers. Region
names in EnSight are the participant display name (as defined by System Coupling) and the region
name (as defined by the coupling participant), separated by an underscore.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 19
Postprocessing System Coupling's Co-Simulation Results
This tutorial case has three participants and six regions, with each region representing either one of
the plates or the cylinder.
For convenience, you may group regions according to analysis by multi-selecting the involved regions,
right-clicking, and selecting Add group/move to group. In the image below, the groups were created
in the order the analyses will be addressed in the tutorial.
Note:
• Items shown in EnSight's Parts pane are referred to as "regions," rather than "parts."
• Regions are called by shortened names. For example, the region name Fluid Flow
(Fluent) : wall_deforming_plate1 will be referred to as Fluent : plate1.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
20 of ANSYS, Inc. and its subsidiaries and affiliates.
Preparing to Visualize Results in EnSight
Variables Pane
The Variables pane is populated with a list of all variables involved in data transfers. Variables are
divided by type.
Coordinate and Time variables are activated by default. For each of these variables, columns show
values for units (when defined) and range. For mapping statistics variables, the number of
source/target values used in the mapping is also shown.
Other variables are grouped by type as Scalars, Vectors, and Constants. Under each of these categor-
ies, there is a list of the variables actively involved in data transfers. Two types of variables are shown:
mapping variables and data transfer variables. Information on each type of variable is provided
in Working with Variables in EnSight (p. 27).
Note:
Scalar and Vector fields generated by System Coupling include a suffix that indicates
whether the data exist on nodes or element (__N or __E) locations and whether the data
are scalars or vectors (S or V). For example, Loss__ES exists on element locations and is a
scalar field.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 21
Postprocessing System Coupling's Co-Simulation Results
Graphics Window
The Graphics Window shows the regions selected in the Parts list. Operations can be performed on
regions shown in the window via the right-click context menus for regions and for the viewport itself.
To toggle between showing and hiding a region in the Graphics Window, select or clear its Show
check box in the Parts pane.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
22 of ANSYS, Inc. and its subsidiaries and affiliates.
Preparing to Visualize Results in EnSight
a. In the Parts pane, click Case 1 to multi-select all the participant regions.
b. In the Quick Action icon bar above the Graphics Window, click the Part element settings
c. In the Tools icon bar at the bottom of the screen, click the Overlay hidden lines icon
( ).
Note:
• If you only need to show results on one side of the interface, you may skip this
step and keep the single viewport.
• Choose the viewport orientation best suited to your model. For example, you
would likely use horizontal viewports for a geometry that is elongated along the
x axis.
Right-click inside the Graphics Window and select Viewports > Link All.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 23
Postprocessing System Coupling's Co-Simulation Results
This links the viewports together so the same view is shown in each.
i. In the Parts pane, multi-select all three Fluent regions: plate1, plate2, and cylinder.
ii. In the Quick Action icon bar above the Graphics Window, click the Visibility per
viewport icon ( ).
The Part viewport visibility dialog opens. Both squares are green, indicating that
Fluent's interfaces are visible in both viewports.
The right side of the dialog is now black, indicating that Fluent's interfaces are now
shown only in the left viewport.
i. In the Parts pane, multi-select both MAPDL regions: plate1 and plate2.
The left side of the dialog is black, indicating that Mechanical's interfaces are now
shown only in the right viewport.
In the Part viewport visibility dialog, both squares are shown as green.
The left side of the dialog is black, indicating that Maxwell's interface is now shown
only in the right viewport.
Currently, all regions in the co-simulation are visible. Note that because Fluent has a region involved
in each of the co-simulation's three analyses, the Fluent region will be shown on the left throughout
this tutorial. Depending on the analysis being discussed, you will show either Maxwell's or Mechan-
ical's region on the right, using the Show check boxes to hide the non-pertinent regions.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
24 of ANSYS, Inc. and its subsidiaries and affiliates.
Preparing to Visualize Results in EnSight
Coupling participant data may be stored on either nodal or elemental locations. When data are
stored on elements, there is a constant value per element. When EnSight's continuous palette setting
is enabled, element data are scattered (averaged) to the element's nodes and then presented as
though they were nodal data. When the continuous palette setting is disabled, each element is
displayed with its constant value, which provides a better representation of how System Coupling
has actually mapped the data.
Note:
Because nodal data is not scattered, disabling the continuous palette setting has no effect
when data is stored on nodes.
3. Clear the Use continuous palette for per-element variables check box.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 25
Postprocessing System Coupling's Co-Simulation Results
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
26 of ANSYS, Inc. and its subsidiaries and affiliates.
Working with Variables in EnSight
Selecting Variables
The EnSight variables used to view data transfer data — whether mapping diagnostics or transferred
values — on a given interface side should be determined by the corresponding participant's data
location for that data transfer — that is, whether the participant stores data for that quantity type
on nodes or elements.
Start out by finding the Location value for each participant variable involved in a data transfer. This
information is available in the Coupling Participants section of the Transcript's Summary of Coupling
Setup. Data locations are determined by the coupling participants and cannot be changed. Make
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 27
Postprocessing System Coupling's Co-Simulation Results
note of these values, if needed, because you will use this information later to select the variables that
match each participant's data location for a given transfer.
The example below is from the Transcript for this tutorial's co-simulation case. It shows Maxwell's
participant information, with its data transfer variables and corresponding data locations highlighted
in yellow.
For data transfers of extensive variables (such as Force or Heat Rate), the amount of the conserved
quantity in each mesh element will vary with the sizes of those elements. To facilitate comparison of
source and target values on meshes with different element sizes, you should always view the corres-
ponding intensive variables — that is, per-unit-area or per-unit-volume on surface or volume regions,
respectively.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
28 of ANSYS, Inc. and its subsidiaries and affiliates.
Working with Variables in EnSight
Note:
To assess mapping quality, you should be familiar with System Coupling's mapping process
and the types of mapping used in different scenarios. For more detailed information, see
System Coupling's Mapping Capabilities in the System Coupling User's Guide.
• for transferring data to the target side of that interface (Side1 or Side2)
• as Scalar values
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 29
Postprocessing System Coupling's Co-Simulation Results
Also, a given mapping variable may be applicable to multiple data transfers. For example, a Heat
Transfer Coefficient variable and a Convection Reference Temperature variable are transferred as a
pair to the same target side on an interface. The same mapping variable will be applicable for these
transfers since they both use profile-preserving mapping.
For more information about the mapping type used for various quantities, see Participant Variables
and Quantity Types Supported by System Coupling in the System Coupling User's Guide.
As noted previously, mapping variables indicate how closely the target side of the interface reproduces
the source side. Mapping variables are unitless and are displayed in EnSight as follows:
• Red (a value of 1) indicates that the location is mapped. Source locations have been successfully
mapped to target locations and the source data are being used by the target.
• Blue (a value of 0) indicates that the location is not mapped. Source locations have not been suc-
cessfully mapped to target locations, so the source data are not being used by the target.
To better reflect System Coupling's mapping values, you should configure EnSight as described in
Turning Off the Continuous Palette Setting (p. 25).
To show variable data on a participant region, drag the variable from the Variables pane and drop
it onto the corresponding interface side(s) in the Graphics Window.
Note:
See the EnSight documentation for other methods applying variables to participant regions.
– The variable name and its parameters are shown as enabled (in black text).
– The Range parameter is updated with the minimum and maximum values for the range.
– In the Parts pane, the region's Color by parameter is updated to show the variable
name.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
30 of ANSYS, Inc. and its subsidiaries and affiliates.
Working with Variables in EnSight
– In the Graphics Window, variable values are shown on each region and a legend is
added to the window.
Note:
Adjusting palette ranges for consistency is effective only for data transfers between like
region topologies (i.e., transfers between two surface regions or between two volume re-
gions). For data transfers between unlike region topologies, matching ranges will result in
poor plots for both models.
To adjust the palette ranges for data transfer plots, perform the following steps:
In the image below, note that the plot palette ranges are dissimilar. Also, neither plot has mesh
locations that show values at the upper end of their ranges.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 31
Postprocessing System Coupling's Co-Simulation Results
Figure 8: Force Per-Unit-Area data transfer plots with min-max palette ranges
In both ranges, you can see that highest part of the range shown on the geometry falls somewhere
between 6.0 and 9.0, so an upper boundary between those values is reasonable. Because there
are 5 entries in the legend, however, go with an upper boundary of 8.0 so the palette values
will be whole numbers.
3. Adjust the upper boundary of both ranges. For each side of the interface, perform the following
steps:
a. Right-click the palette bar and select Palette > Edit palette.
a. In the left viewport, right-click the palette bar and select Palette > Edit palette.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
32 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing Steps for this Tutorial
Both plots now share a smooth representation of the full range of values, as shown in the image
below.
Figure 9: Force Per-Unit-Area data transfer plots with adjusted palette ranges
For each side of each coupling interface, review data transfer results in the following order.
The accuracy of the mapping, when taken within the context of the mapping type used (profile-
preserving or conservative), can provide you with an idea of how accurately you can expect the
source data to be reproduced on the target side of the interface.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 33
Postprocessing System Coupling's Co-Simulation Results
Review mapping diagnostics in the Transcript's Mapping Summary. They show the percentage
of the target and source mesh locations that were successfully mapped, providing insight into
the ultimate accuracy of the data transfers and indicating any areas that warrant a closer ex-
amination in EnSight. In general:
• If target-side diagnostics are less than 100%, then System Coupling is implementing
a method of filling in data on unmapped target locations.
• If source-side diagnostics are less than 100%, then some of the source data are not
being used.
– In conservative mapping, this means that the quantity transferred is either not
fully conserved and/or is conserved only in areas where the mesh overlaps.
Guided by what you learned from the Transcript, visualize the mapping in EnSight, focusing
on any areas where mapping did not occur.
Data transfer accuracy is dependent on the quality of the mapping for that transfer. Examine the
data transfer values to see how closely the source is replicated on the target and to see whether
the results confirm what was shown in the mapping.
In the Transcript's Coupled Solution section, review the data transfer values for the final iter-
ation of the final coupling step. Compare the source and target values to verify that the output
values reported by the source match (or are very close to) the input values reported by the
target. The data reported are determined by the type of mapping used for the data transfer,
as follows:
In each case, if the target values are significantly different from the source values, then the
mapped results are suspect and should be reviewed in greater detail.
Guided by what you learned from the Transcript, open the results in EnSight and visualize the
data transfer values for the final iteration of the final coupling step. Verify that what you see
in EnSight confirms what you learned from the Transcript.
If the source is not accurately represented on the target, first try to identify potential causes.
If you can determine why the results might not be as expected, you are in a better position
to determine if the disparity is significant with regard to your analysis goals.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
34 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the FSI Results on Plate 2
• Hide the regions not related to the Plate 2 interface. To do so, go to the Parts pane and clear the
Show check box for all Plate 1 and Cylinder regions. Only the Plate 2 regions should be visible.
• Verify that the Fluent region is visible only in the left viewport, and that the Mechanical region is
visible only in the right viewport.
Both participants have Location set to Nodes for Displacement transfers, so you will use nodal variables
to review nodal values on both sides of the coupling interface.
Of the entire meshed area, 87% of the source mesh and 97% of the target mesh are mapped.
Within this mapping:
• Only 89% of Mechanical's source nodes map to and send values to the target. In a profile-
preserving transfer, data on unmapped source locations are not used.
• 100% of Fluent's target nodes map to and receive values from the source.
You may wish to review the co-simulation mapping diagnostics in EnSight to determine why some
of Mechanical source-side data is not used on the target
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 35
Postprocessing System Coupling's Co-Simulation Results
Note that because both participants have the same data location, the same nodal mapping
variable is applicable to both sides of the coupling interface.
• MappedNodes_CouplingInterface_3_Side_2_Prof__NS
3. Drag the variable from the Variables pane and drop it onto both participant interface sides
in the Graphics Window.
Mapping data for the Displacement transfer are now visible in both viewports, as shown in the
image below. The plots confirm what was shown in the Transcript's Mapping Summary:
• Only 89% of Mechanical's source nodes map to and send values to the target. In a profile-
preserving transfer, data on unmapped source nodes are not used.
• Because the source geometry is taller than the target geometry, there is an area of non-
overlap where the source nodes on the top part of the plate's sides do not overlap any part
of the target. These unmapped areas are not shown in red.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
36 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the FSI Results on Plate 2
• 100% of Fluent's target nodes map to and receive values from the source.
• Because the target geometry is shorter than the source geometry, it is fully overlapped by
the source. The entire target geometry is shown in red because all of its nodes are mapped
to the source.
Note that there are differences between the source and target values. Given that the source-side
mapping diagnostics were only 89%, however, some disparity in the transfer values may be expected.
You may wish to examine the Displacement values in EnSight to determine whether these differences
are significant to your analysis.
Figure 12: Displacement data transfer values on Plate 2 for Coupling Step 1, Iteration 10
+=============================================================================+
| COUPLING STEP = 1 |
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 37
Postprocessing System Coupling's Co-Simulation Results
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 10 |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| Fluid Flow (Fluent) | |
...
| Interface: Plate 2 | |
| Displacement | Converged |
| RMS Change | 4.79E-03 4.84E-03 |
| Weighted Average x | 7.29E-02 6.20E-02 |
| Weighted Average y | -1.20E-05 -9.76E-06 |
| Weighted Average z | 2.82E-09 2.46E-09 |
+-----------------------------------------------------------------------------+
Note that even though the participants have the same data location, each participant has a
different nodal data transfer variable.
2. Drag the appropriate profile-preserving nodal transfer variables from the Variables pane and
drop them on the corresponding participant interface sides in the Graphics Window.
• Fluent: displacement__NV
• Mechanical: Incremental_Displacement__NV
Displacement data transfer values are now visible in both viewports. The image below shows the
plots with palette ranges adjusted for consistency. A cursor is used to mark both an unmapped
target node and its relative location on the source.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
38 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the FSI Results on Plate 2
Figure 13: Displacement data transfer values on Plate 2 for Coupling Step 1, Iteration 10
The plots confirm what was shown in the Transcript's Mapping Summary:
• Because the source geometry is taller than the target geometry, there is unused source data
on upper portion of the plate's sides and on its top. The source nodes in this area of non-
overlap are unmapped, so their values are not applied to the target.
• Because the target geometry is shorter than the source geometry, the target side of the in-
terface completely overlaps the source side. All target nodes are mapped to and receiving
values from source nodes.
Summary:
This is a profile-preserving transfer, with the goal of minimizing the difference between the
profile on the source and target mesh locations. As such, the loss of source data from the plate
sides and tip is not problematic because the unused source values are not needed to reproduce
the full source profile on the on the target side of the interface.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 39
Postprocessing System Coupling's Co-Simulation Results
Remedy:
The loss of source data is primarily due to the difference between the source and target geo-
metries. To improve mapping, consider using geometries of the same size and orientation to
ensure there is overlap between the regions where data is to be transferred.
• Fluent has Location set to Elements, so you will use element-based variables to review elemental
values on the source side of the coupling interface.
• Mechanical has Location set to Nodes, so you will use nodal variables to review nodal values on
target side of the coupling interface.
Of the entire meshed area, 97% of the source mesh and 87% of the target mesh are mapped.
Within this mapping:
• Only 96% of Fluent's source elements map to and send values to the target.
• Only 89% of Mechanical's target nodes map to and receive values from the source. In a conser-
vative transfer, unmapped target locations are assigned a value of zero.
Based on these diagnostics, you should open the co-simulation mapping diagnostics in EnSight to
determine why some of Fluent's source data is not being used and why some of Mechanical's target
nodes are not receiving source-side data.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
40 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the FSI Results on Plate 2
Note that the participants have different data locations, so have mapping variables with different
topologies.
2. Drag the appropriate conservative mapping variables from the Variables pane and drop them
on the corresponding participant interface sides in the Graphics Window.
• Fluent: MappedElements_CouplingInteface_3_Side1_Cons__ES
• Mechanical: MappedNodes_CouplingInteface_3_Side1_Cons__NS
Mapping data for the Force transfer are now visible in both viewports, as shown in the image below.
The plots confirm what was shown in the Transcript's Mapping Summary:
• Only 96% of Fluent's source elements map to and send values to the target.
• Because the source geometry is shorter than the target geometry, there is an area of non-
overlap along the tip of the plate. These elements, shown in blue, are not mapped because
of their distance from the plate-tip elements on the target.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 41
Postprocessing System Coupling's Co-Simulation Results
• Only 89% of Mechanical's target nodes map to and receive values from the source. In a
conservative transfer, unmapped target locations receive a value of zero.
• Because the target geometry is taller than the source geometry, there is an area of non-
overlap on the target — that is, the target elements on the upper portion of the plate's sides
do not overlap any part of the source. These unmapped areas are shown in blue
Note that there are differences between the source and target values. However, given that the
source-side and target-side side mapping diagnostics are 96% and 89%, respectively, some disparity
in the transfer values may be expected. You should review the Displacement values in EnSight to
determine whether why data from some of Fluent's source-side elements are not being used, why
some of Mechanical's target-side nodes are not receiving data from the source, and whether these
differences are significant to your analysis.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
42 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the FSI Results on Plate 2
Figure 16: Force data transfer values on Plate 2 for Coupling Step 1, Iteration 10
+=============================================================================+
| COUPLING STEP = 1 |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 10 |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| MAPDL Static Structural | |
...
| Interface: Plate 2 | |
| Force | Converged |
| RMS Change | 1.09E-02 5.23E-03 |
| Sum x | 2.93E+00 2.91E+00 |
| Sum y | -2.88E-01 -3.76E-01 |
| Sum z | 3.30E-06 3.34E-06 |
+-----------------------------------------------------------------------------+
Force is an extensive quantity, so values plotted are proportional to the local element size, which
makes comparing values on different source and target meshes difficult. Instead of viewing force
directly, view the per-unit-area results on elements to obtain interface ranges that are more consist-
ent. To visualize Force Per-Unit-Area values in EnSight, perform the following steps:
Note that even though participants have different data locations for force transfers, both use
an element-based variable for transfers of a per-unit-area quantity.
2. Drag the appropriate conservative elemental transfer variables from the Variables pane and
drop them on the corresponding participant interface sides in the Graphics Window.
• Fluent: force_per_unit_area__EV
Force Per-Unit-Area data transfer values are now visible in both viewports, as shown in the image
below. The image below shows the plots with palette ranges adjusted for consistency. A cursor is
used to mark both an unmapped source node and its relative location on the target.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 43
Postprocessing System Coupling's Co-Simulation Results
Figure 17: Force Per-Unit-Area data transfer values on Plate 2 for Coupling Step 1, Iteration
10
The plots confirm what was shown in the Transcript's Mapping Summary:
• Because the source geometry is shorter than the target geometry, there are unused data in
the source elements along the tip of the plate. As noted previously, these source elements
are unmapped because of their distance from the plate-tip elements on the target and their
values are not applied to the target.
• Because the target geometry is taller than the source geometry, the target side of the interface
has a non-overlapping area on the upper portion of the plate's sides and top. The elements
in this area are unmapped. Because this is a conservative transfer, these unmapped target
elements are assigned values of zero.
Summary:
There is a significant amount of non-overlap for the taller target geometry. The resulting un-
mapped target locations along the sides and on top of the plate are filled in with zero values.
The values of unmapped source locations on the tip of the plate are not applied to the target.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
44 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the FSI Results on Plate 1
This is a conservative transfer, with the goal of conserving the sum of the source-mesh data on
the target mesh. As such, the loss of the source data from the plate's tip may be a matter of
concern.
Remedy:
The loss of source data is primarily due to the difference between the source and target geo-
metries. To improve mapping, consider using geometries of the same size and orientation to
ensure there is overlap between the regions where data is to be transferred.
• Hide the regions not related to the Plate 1 interface. To do so, go to the Parts pane and clear
the Show check box for all Plate 2 and Cylinder regions. Only the Plate 1 regions should be
visible.
• Verify that the Fluent region is visible only in the left viewport, and that the Mechanical region
is visible only in the right viewport.
Both participants have Location set to Nodes for Displacement transfers, so you will use nodal variables
to review nodal values on both sides of the coupling interface.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 45
Postprocessing System Coupling's Co-Simulation Results
Of the entire meshed area, 97% of the source mesh and 87% of the target mesh are mapped.
Within this mapping:
• Only 95% of Mechanical's source nodes map and send values to the target. In a profile-preserving
transfer, data on unmapped source locations are not used.
• Only 85% of Fluent's target nodes map to and receive values from the source. In a profile-pre-
serving transfer between surfaces, values for unmapped target locations are calculated from the
value nearest to the mapped target location.
Based on these diagnostics, you should open the co-simulation mapping diagnostics in EnSight to
determine why some of Mechanical's source-side data are not used on the target, why some of
Fluent's target-side nodes are not receiving data from the source.
Note that both participants have the same data location, so the same nodal mapping variable
is applicable to both sides of the coupling interface.
• MappedNodes_CouplingInterface_2_Side_2_Prof__NS
3. Drag the variable from the Variables pane and drop it onto both participant interface sides
in the Graphics Window.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
46 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the FSI Results on Plate 1
Mapping data for the Displacement transfer are now visible in both viewports, as shown in the
image below. The plots confirm what was shown in the Transcript's Mapping Summary:
• Only 95% of Mechanical's source nodes map and send values to the target. In a profile-pre-
serving transfer, data on unmapped source locations are not used.
• Because the source geometry is shorter than the target geometry, there is an area of non-
overlap along the tip of the plate, with the elements shown in blue. These elements are not
mapped because of their distance from the plate-tip elements on the target.
• Only 92% of Fluent's target nodes map to and receive values from the source. In a profile-
preserving transfer between surfaces, values for unmapped target locations are calculated
from the value of the nearest mapped target location.
• Because the target geometry is taller than the source geometry, there is a significant area of
non-overlap on the target, where the elements on the upper portion of the plate's sides do
not overlap any part of the source. Any target elements and nodes in this area which are not
shown in red are unmapped.
• Note that there is a "wave" in the target-side geometry, which was not present in Plate 2.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 47
Postprocessing System Coupling's Co-Simulation Results
Note that there are significant differences between the source and target Displacement values,
which is consistent with the mapping diagnostics for this transfer (recall that source-side and target-
side mapping diagnostics were only 95% and 85%, respectively).
Examine the Displacement values in EnSight to further investigate this disparity and determine
whether these differences are significant to your analysis.
Figure 20: Displacement data transfer values on Plate 1 at Coupling Step 1, Iteration 10
+=============================================================================+
| COUPLING STEP = 1 |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
48 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the FSI Results on Plate 1
| COUPLING ITERATION = 10 |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| Fluid Flow (Fluent) | |
...
| Interface: Plate 1 | |
| Displacement | Converged |
| RMS Change | 8.26E-04 8.90E-04 |
| Weighted Average x | 6.93E-02 7.88E-02 |
| Weighted Average y | -1.11E-05 -1.55E-05 |
| Weighted Average z | -3.68E-09 -4.16E-09 |
+-----------------------------------------------------------------------------+
Note that even though the participants have the same data location, each participant has a
different nodal data transfer variable.
2. Drag the appropriate profile-preserving nodal transfer variables from the Variables pane and
drop them on the corresponding participant interface sides in the Graphics Window.
• Fluent: displacement__NV
• Mechanical: Incremental_Displacement__NV
Displacement data transfer values are now visible in both viewports. The image below shows the
plots with palette ranges adjusted for consistency. A cursor is used to mark both an unmapped
target node and its relative location on the source.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 49
Postprocessing System Coupling's Co-Simulation Results
Figure 21: Displacement data transfer values on both sides of Plate 1 for Coupling Step 1,
Iteration 10
The plots confirm what was shown in the Transcript's Mapping Summary:
• Because the source geometry is shorter than the target geometry, there is an area of non-
overlap along the tip of the plate. These source nodes are not mapped because of their dis-
tance from the plate-tip elements on the target, so their values are not applied to the target.
• Because the target geometry is taller than the source geometry, there is a significant area of
non-overlap on the target where the elements on the upper portion of the plate's sides and
on its top do not overlap any part of the source. Any target nodes in this area are unmapped
and their values are calculated from the nearest mapped target nodes.
• The "curve" at the top of the target geometry is caused by the unmapped target node using
data from other target nodes. The deformation occurs because the unmapped nodes move
using the same displacement as the other nodes on the target.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
50 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the FSI Results on Plate 1
Summary:
A significant portion of the target geometry does not overlap the source. The unmapped nodes
in this area take their values from the nearest mapped target nodes, so the unused data on the
tip of the source geometry is lost.
Given that this is a profile-preserving transfer, the loss of the source data along the plate tip is
a matter of concern — this information is needed to reproduce the source profile on the target
but is omitted from the target profile.
Additionally, when a Displacement transfer is defined in an FSI co-simulation and the target
geometry has an area of non-overlap with the source, the consumption of non-source data by
unmapped target nodes can affect the motion, causing structural deformation.
Remedy:
The loss of source data is primarily due to the difference between the source and target geo-
metries. To improve mapping, consider using geometries of the same size and orientation to
ensure there is overlap between the regions where data is to be transferred.
• Fluent has Location set to Elements, so you will use element-based variables to review elemental
values on source side of the coupling interface.
• Mechanical has Location set to Nodes, so you will use nodal variables to review nodal values on
target side of the coupling interface.
Of the entire meshed area, 89% of the source mesh was mapped and 97% of the target mesh are
mapped. Within that mapping:
• Only 88% of Fluent's source elements map and send values to the target. In a conservative
transfer, values on unmapped source locations are not used.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 51
Postprocessing System Coupling's Co-Simulation Results
• Only 95% of Mechanical's target nodes map to and receive values from the source. In a conser-
vative transfer, unmapped target locations are assigned values of zero.
Based on these diagnostics, you should open the co-simulation mapping diagnostics in EnSight to
determine why some of Fluent's source-side data is not used on the target and why some of
Mechanical's target-EnSight nodes are not receiving data from the source.
Note that the participants have different data locations, so each participant has a mapping
variable with a different topology.
2. Drag the appropriate conservative mapping variables from the Variables pane and drop them
on the corresponding participant interface sides in the Graphics Window.
• Fluent: MappedNodes_CouplingInterface_2_Side_1_Cons__ES
• Mechanical: MappedNodes_CouplingInterface_2_Side_1_Cons__NS
Mapping data for the Force data transfer are now visible in both viewports, as shown in the image
below. The plots confirm what was shown in the Transcript's Mapping Summary:
• Only 88% of Fluent's source elements map and send values to the target. In a conservative
transfer, values on unmapped source locations are not used.
• Because the source geometry is taller than the target geometry, the area of non-overlap is
on the upper portion of the plate's sides. Any area not shown in red is unmapped.
• Only 95% of Mechanical's target nodes map to and receive values from the source. In a
conservative transfer, unmapped target locations are assigned values of zero.
• Because the target geometry is shorter than the source geometry, the area of non-overlap
is along the top of the plate tip. As above, any target elements not shown in red are un-
mapped.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
52 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the FSI Results on Plate 1
Note that there are significant differences between the source and target values. Based on these
diagnostics, you should examine the Force values in EnSight to determine why some of Fluent's
source-side data are not used on the target, why some of Mechanical's target-side nodes are not
receiving data from the source, and whether these differences are significant to your analysis.
Figure 24: Force data transfer values on Plate 1 for Coupling Step 1, Iteration 10
+=============================================================================+
| COUPLING STEP = 1 |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 10 |
+-----------------------------------------------------------------------------+
| MAPDL Static Structural | |
| Interface: Plate 1 | |
| Force | Converged |
| RMS Change | 1.31E-02 7.10E-03 |
| Sum x | 4.05E+00 3.63E+00 |
| Sum y | -6.39E-01 -6.41E-01 |
| Sum z | 1.92E-06 9.56E-07 |
+-----------------------------------------------------------------------------+
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 53
Postprocessing System Coupling's Co-Simulation Results
Force is an extensive quantity, so values plotted are proportional to the local element size, which
makes comparing values on different source and target meshes difficult. Instead of viewing force
directly, view the per-unit-area results on elements to obtain interface ranges that are more consist-
ent. To visualize Force Per-Unit-Area values in EnSight, perform the following steps:
Note that even though participants have different data locations for force transfers, both use
an element-based variable for transfers of a per-unit-area quantity.
2. Drag the appropriate conservative elemental transfer variables from the Variables pane and
drop them on the corresponding participant interface sides in the Graphics Window.
• Fluent: force_per_unit_area__EV
Force per-unit-area data transfer values are now visible in both viewports. The image below shows
the plots with palette ranges adjusted for consistency. A cursor is used to mark both an unmapped
source node and its relative location on the target.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
54 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the FSI Results on Plate 1
Figure 25: Force Per-Unit-Area data transfer values on Plate 1 for Coupling Step 1, Iteration
10
The plots confirm what was shown in the Transcript's Mapping Summary:
Because the source geometry is taller than the target geometry, the source side of the interface
has a non-overlapping area on the upper portion of the plate's sides and on its top. The elements
in this area are unmapped and their values are not used on the target.
Because the target geometry is shorter than the source geometry, there is an area of non-
overlap in the elements along the tip of the plate. The elements in this area are unmapped.
Because this is a conservative transfer, these unmapped target elements are assigned values
of zero.
Summary:
The is a significant amount of non-overlap for the taller source geometry. The resulting un-
mapped source locations along the sides and on top of the plate do not send values to the
target. The unmapped target locations on the plate's tip are filled in with zero values.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 55
Postprocessing System Coupling's Co-Simulation Results
This a conservative transfer, with the goal of conserving the sum of the source-mesh data on
the target mesh. As such, the loss of the source data from plate's sides and top is likely a matter
of concern.
Remedy:
The loss of source data is primarily due to the difference between the source and target geo-
metries. To improve mapping, consider using geometries of the same size and orientation to
ensure there is overlap between the regions where data is to be transferred.
• Hide the regions not related to the cylinder interface. To do so, go to the Parts pane and clear the
Show check box for all Plate 1 and Plate 2 regions. Only the Cylinder regions should be visible.
• Verify that the Fluent region is visible only in the left viewport and that the Maxwell region is visible
only in the right viewport.
• Fluent has Location set to Nodes, so you will use node-based variables to review nodal values on
the source side of the coupling interface.
• Maxwell has Location set to Elements, so you will use element-based variables to review elemental
values on the target side of the coupling interface. Also, it is important to note that Maxwell stores
Temperature data on element centroids (rather than on element nodes), which has a significant effect
on mapping.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
56 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the Electromagnetic-Thermal Results on the Cylinder
Of the entire meshed area, 97% of the source mesh and 100% of the target mesh are mapped.
Within this mapping:
• Only 69% of Fluent's source nodes map to and send values to the target. In a transfer with profile-
preserving mapping, data on unmapped source locations are not used.
• 100% of Maxwell's target elements map to and receive data from the source.
Based on these diagnostics, you should open the co-simulation mapping diagnostics in EnSight to
determine why so much of Fluent's source-side data is not used on the target.
Figure 26: Mapping diagnostics for the Temperature transfer on the Cylinder
Note that because the participants have different data locations, a different mapping variable
is applicable to each side of the coupling interface.
2. Drag the appropriate profile-preserving mapping variables from the Variables pane and drop
them on the corresponding participant interface sides in the Graphics Window.
• Fluent: MappedNodes_CouplingInteface_1_Side1_Prof__NS
• Maxwell: MappedElements_CouplingInteface_1_Side1_Prof__ES
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 57
Postprocessing System Coupling's Co-Simulation Results
Mapping data for the Temperature transfer are now visible in both viewports, as shown in the image
below. The plots confirm what was shown in the Transcript's Mapping Summary:
• Only 69% of Fluent's source nodes map to and send values to the target. Continuous palette
coloring is applied because the data is on nodes, so all areas not shown in red are unmapped.
In a profile-preserving transfer, data on unmapped source locations are not used.
• Some source nodes on the end of the cylinder are unmapped, while all of the nodes around
the sides of the cylinder are unmapped. These are all surface nodes, with their nodal values
located on the exterior of the cylinder.
• Note that the source geometry has a much finer mesh than the target.
• 100% of Maxwell's target elements map to and receive values from the source. The entire
target geometry is shown in red because all its elements are mapped.
• Remember that for Temperature transfers, Maxwell has its data on element centroids. With
volume elements, centroids are located inside the mesh. The target element centroids on
the interior of the cylinder are mapping to the nearest source nodes, which are located beneath
the surface of the geometry.
• Note that the target geometry has a much coarser mesh than the source.
Figure 27: Mapping diagnostics for the Temperature transfer on the Cylinder
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
58 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the Electromagnetic-Thermal Results on the Cylinder
Note that the source and target values are identical. However, remember that only 69% of Fluent's
source nodes send values to the target. You should examine the Temperature values in EnSight to
identify potential reasons why this data was not used and to determine whether this relevant to
your analysis.
Figure 28: Temperature data transfer values on the Cylinder for Coupling Step 1, Iteration 10
+=============================================================================+
| COUPLING STEP = 1 |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 10 |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| ANSYS Electronics Desktop | |
| Interface: Cylinder | |
| Temperature | Converged |
| RMS Change | 4.62E-11 4.36E-11 |
| Weighted Average | 5.35E+02 5.35E+02 |
+-----------------------------------------------------------------------------+
Note that the participants have different data locations and so have transfer variables with
different topologies.
2. Drag the appropriate profile-preserving variables from the Variables pane and drop them on
the corresponding participant interface sides in the Graphics Window.
• Fluent: Temperature__NS
• Maxwell: Temperature__ES
Temperature data transfer values are now visible in both viewports, as shown in the image below.
Note that because Fluent uses nodal data, continuous palette coloration is still used on the source
side of the interface.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 59
Postprocessing System Coupling's Co-Simulation Results
Figure 29: Temperature data transfer values on the Cylinder for Coupling Step 1, Iteration 10
Examine how the differences in participant data locations affect the data transfer values.
• On the source side of the coupling interface, Fluent is using nodal data. This means that it
has Temperature values on the surface, as well as in the interior of the geometry.
• Temperatures go from the coolest values (dark blue) on the exterior of the cylinder to the
warmest values (red) in the center of the cylinder.
• On the target side of the interface, Maxwell is using element centroid data. This means that
the element centroids are in the interior of the cylinder.
• Because the target element centroids are in the interior of the cylinder, they receive slightly
higher temperature values than at surface of the cylinder. This is confirmed by the lighter
blue coloring on the outside of target-side geometry.
Summary:
The overall quality of the profile-preserving mapping for this Temperature data transfer is fair.
However, it does not capture details regarding the rapid temperature increase from the surface
into the interior of the cylinder. This omission can be attributed to the following factors:
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
60 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the Electromagnetic-Thermal Results on the Cylinder
• The mesh used for the thermal analysis is generally and more uniformly finer than the elec-
tromagnetics mesh near the cylinder's surface.
• The electromagnetics analysis receives data at element centroids, rather than at nodes.
Remedy:
To improve mapping, consider creating a more uniform mesh for the electromagnetics analysis,
with finer elements near the cylinder surface. Conversely, if details in the temperature distribution
do not require high resolution, consider coarsening the mesh in the thermal analysis of the
cylinder.
Both participants have Location set to Elements for Heat Rate transfers, so you will use element-
based variables to review elemental values on both sides of the coupling interface. Note that in this
case, both Maxwell and Fluent store Temperature data on element centroids (rather than on element
nodes).
To review Heat Rate results on the Cylinder, perform the following steps:
Review Mapping Diagnostics for the Heat Rate Transfer in the Transcript
Review Mapping Diagnostics for the Heat Rate Transfer in EnSight
Review Heat Rate Data Transfer Values in the Transcript
Visualize Heat Rate Per-Unit-Volume Data Transfer Values in EnSight
Review Mapping Diagnostics for the Heat Rate Transfer in the Transcript
For both participants, focus on the mapping diagnostics reported on elements. Relevant diagnostics
are highlighted in the example below.
Of the entire meshed area, 100% of the source mesh and 100% of the target mesh are mapped.
Within this mapping:
• 100% of Maxwell's source elements map and send values to the target.
• 100% of Fluent's target elements map to and receive values from the source.
Based on these diagnostics, no further investigation of Heat Rate mapping is necessary. However,
for the purposes of this tutorial, review the mapping diagnostics in EnSight.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 61
Postprocessing System Coupling's Co-Simulation Results
Figure 30: Mapping diagnostics for the Heat Rate transfer on the Cylinder
Note that both participants have the same data location (elements), so the same elemental
mapping variable is applicable to both sides of the coupling interface.
• MappedElements_CouplingInterface_1_Side2_Cons__ES
3. Drag the variable from the Variables pane and drop it onto both participant interface sides
in the Graphics Window.
Mapping data for the Heat Rate data transfer are now visible in both viewports, as shown in the
image below. The plots confirm what was shown in the Transcript's Mapping Summary:
• 100% of Maxwell's source elements map and send values to the target. The source element
centroids map to Fluent's target element centroids.
• Note that the source geometry has a much coarser mesh than the target.
• 100% of Fluent's target elements map to and receive values from the source. The target
element centroids map to Maxwell's source element centroids.
• Note that the target geometry has a much finer mesh than the source.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
62 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the Electromagnetic-Thermal Results on the Cylinder
Figure 31: Mapping diagnostics for the Heat Rate transfer on the Cylinder
Note that the source and target values are identical, as is expected with 100% source and target
mapping. For the purposes of this tutorial, however, go on to examine the Heat Rate values in En-
Sight.
Figure 32: Heat Rate data transfer values on the Cylinder for Coupling Step 1, Iteration 10
+=============================================================================+
| COUPLING STEP = 1 |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 10 |
+-----------------------------------------------------------------------------+
...
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 63
Postprocessing System Coupling's Co-Simulation Results
+-----------------------------------------------------------------------------+
| Fluid Flow (Fluent) | |
| Interface: Cylinder | |
| Loss | Converged |
| RMS Change | 1.00E-14 1.00E-14 |
| Sum | 1.60E+03 1.60E+03 |
+-----------------------------------------------------------------------------+
Heat Rate is an extensive quantity, so values plotted are proportional to the local element size,
which makes comparing values on different source and target meshes difficult. Instead of viewing
heat rate directly, view the per-unit-volume results on elements to obtain interface ranges that are
more consistent. To visualize Heat Rate Per-Unit-Volume values in EnSight, perform the following
steps:
Note that the participants have the same data location (elements) and use element-based
variables for transfers of a per-unit-volume quantity.
2. Drag the appropriate conservative elemental transfer variables from the Variables pane and
drop them on the corresponding participant interface sides in the Graphics Window.
• Fluent: heatrate_per_unit_volume__ES
Heat Rate Per-Unit-Volume data transfer values are now visible in both viewports. The image below
shows the plots with palette ranges adjusted for consistency. Note that because both participants
use elemental data, non-continuous palette coloring is applied to both plots.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
64 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing the Electromagnetic-Thermal Results on the Cylinder
Figure 33: Heat Rate Per-Unit-Volume data transfer values on the Cylinder for Coupling Step
1, Iteration 10
The plots confirm what was shown in the Transcript's Mapping Summary:
• On the source side of the coupling interface, Maxwell is using data on element centroids.
The greatest heating occurs near the surface of the cylinder.
• Maxwell is providing heat rate data at the centroids of relatively thin elements near the surface
and relatively large elements in the interior of the cylinder.
• Near the surface, Maxwell elements are quite thin and the heat rate per-unit-volume is high.
• On the target side of the interface, Fluent is also using data on element centroids. The greatest
heating occurs near the surface of the cylinder.
• Fluent is receiving heat rate data at the centroids of elements that are slightly smaller near
the surface than in the interior of the cylinder.
• Conservative mapping results in a heat-distribution pattern on the target that reflects the
relatively large elements the Maxwell analysis uses in the interior of the cylinder.
• Near the surface, Fluent elements are thicker (and have larger volumes) than the source-side
elements, so the heat rate per-unit-volume is relatively low.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 65
Postprocessing System Coupling's Co-Simulation Results
Summary:
The overall mapping quality for the conservative transfer of losses from Maxwell to Fluent is
very good. All of the heat generated in the electromagnetic analysis is applied in the thermal
analysis.
Although all heating that originates on the source is correctly applied on the target, the different
mesh resolutions on each lead to artifacts in the target-side heat distribution. As noted, values
from large interior elements on the source lead to groups of target elements with similar values,
as well as potentially significant changes in values between these groups. Similarly, values from
the thin boundary elements on the source lead to strong localized heating that is not evident
in the target.
Remedy:
To minimize the heat-distribution artifacts noted above, consider using meshes with more
similar element sizes and distributions.
1. Right-click inside the viewport and select Quick annotation > Text.
3. Adjust the size of the text annotation as needed by editing the value of the Size field.
4. Click Close.
6. Holding down the left mouse-button, drag the annotation it to the desired location.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
66 of ANSYS, Inc. and its subsidiaries and affiliates.
EnSight Quick Reference
1. In the Solution Time Player (that is, the Time pane), note the value of the Cur field.
The player defaults to using discrete time steps, with the Cur field (the current time step) default-
ing to the last time step in the solution.
2. Set the player back to the first time step setting the Cur field to 0.
For this example, create 2. (In practice, for example, you may want to place a probe on each
side of the interface as reference points for a Displacement animation.)
d. Set the Search fields to Closest node and Pick (use 'p').
The node will be placed on the node closest to the location you select using the 'p' key on
your keyboard.
Note:
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 67
Postprocessing System Coupling's Co-Simulation Results
• To change the appearance of probes, use the settings on the Display style tab.
• To add additional probes, increase the Probe count. To add another probe to this ex-
ample, you would increase the value to 3. Otherwise, the first probe created will be re-
moved when the next probe is created.
• To remove the probes, disable the probe query by setting Query to None.
3. Adjust the size of the time annotation as needed by editing the value of the Size field.
4. Click Close.
6. Holding down the left mouse-button, drag the annotation it to the desired location.
1. In the Parts pane, select the fluid region. For this example, we will use Fluid Flow (Fluent)
: wall_deforming.
2. In the Feature Icon bar at the top of the window, click the Calculator icon ( ).
5. Create an expression.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
68 of ANSYS, Inc. and its subsidiaries and affiliates.
EnSight Quick Reference
b. In the calculator, click the [X] button and then the + (addition) button.
1. In the Feature Icon bar at the top of the window, click the Query icon ( ).
4. For Variable 1, select the vector quantity created in the previous step, (N) nodal_position_x.
You may also create a time annotation and animate the plot, as described in Adding a Time Annota-
tion (p. 68) and Running a Simple Animation of Solution Time Steps (p. 66), respectively. The animation
shows the total displacement on the target side region over the duration of the co-simulation.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 69
Postprocessing System Coupling's Co-Simulation Results
a. Ensure that the appropriate force-per-unit variable is applied to the region to which force
is being applied.
In the Reed Valve valve tutorial example, the Force_per_unit_area__EV variable is applied
to Transient Structural : System Coupling Region.
2. In the Feature Icon bar at the top of the window, click the Vector Arrows icon ( ).
3. In the blank field near the top of the dialog, you may name the new part to be created. Type in
Force Per-Unit-Area Vector Arrows.
4. Confirm that Variable to is set to the applied force per-unit vector variable — in this case, (E)
Force_per_unit_area__EV.
5. Optionally, you may wish to adjust the display of the arrows. To do so, ensure that the Advanced
check box is enabled and then edit the display parameters as needed. For this example:
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
70 of ANSYS, Inc. and its subsidiaries and affiliates.
EnSight Quick Reference
b. Under Arrow Tip, leave Size set to Proportional and type in 1.5000e-01.
Animate the plot, as described in Running a Simple Animation of Solution Time Steps (p. 66). The
arrow shows the vector of the forces applied to the reed valve body.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 71
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
72 of ANSYS, Inc. and its subsidiaries and affiliates.
Solving Co-Simulations from the Command Line
After creating a System Coupling co-simulation in Workbench and/or System Coupling's graphical user
interface (GUI) or command-line interface (CLI), you have the option of executing the solution from the
command line. This may be useful when you want the flexibility of a scripted execution or need access
to System Coupling's full range of capabilities. Examples of such scenarios include:
• Scheduling one or more co-simulations to run at a specific time or for a specific number of times
This tutorial provides guidance on the various workflows available to you — both on how to make co-
simulation setup files available for command-line execution, and on the different methods you can use
to solve the co-simulation from the command line. For more information, see:
Required Directory Structure and Files
Preparing a Co-Simulation for a Command-Line Run
Solving a Co-Simulation from the Command Line
Note:
This tutorial focuses on command-line execution of co-simulations that are not set up from
the command line. However, in practice:
• Co-simulations may also be set up from the command-line using System Coupling's
CLI.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 73
Solving Co-Simulations from the Command Line
• A participant working directory for each coupling participant. Each directory must contain the
following participant files:
• A SyC directory for System Coupling's output. This directory must contain the following file:
– System Coupling Settings file (Settings.h5) that defines the data model state
Workbench Setup
For an example, review the Reed Valve FSI Co-Simulation in Workbench (p. 107) tutorial, up to
where the setup is completed in Workbench at the end of the Create the Co-Simulation (p. 202)
section.
Hybrid Setup
The setup is started in Workbench, exported, andthen completed in System Coupling’s GUI.
For an example, review the Oscillating Plate FSI Co-Simulation with Partial Setup Export from
Workbench (p. 217) tutorial, up to where the setup is completed in System Coupling’s GUI at the
end of the Complete the Co-Simulation Setup (p. ?) section.
For an example, review the Bar-and-Coil Induction Heating Co-Simulation (p. 107) tutorial, up to
where the setup is completed in System Coupling’s GUI at the end of the Create the Co-Simula-
tion (p. 121) section.
Note:
Except for the Reed Valve and Oscillating Plate tutorials, all of System Coupling's ap-
plication tutorials (p. 18) are set up entirely in the System Coupling GUI.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
74 of ANSYS, Inc. and its subsidiaries and affiliates.
Preparing a Co-Simulation for a Command-Line Run
• If the setup was completed in the System Coupling GUI, (that is, a co-simulation with either
a hybrid setup or a System Coupling GUI setup), save the co-simulation and close the GUI.
For more detailed information on exporting co-simulation setups from Workbench, see Exporting a
System Coupling Setup in the System Coupling User's Guide.
For this tutorial, however, you will run the co-simulation three times — once for each of the command-
line execution methods to be discussed. Because each of these three runs will need its own co-simu-
lation working directory, you will export the setup three times, creating a new co-simulation working
directory each time.
b. Double-click ReedValveSetupWB.wbpz.
Workbench opens with the project loaded. On the Project Schematic, note that all three
Setup cells are in an Up-to-Date ( ) state. This indicates that the Reed Valve co-simulation
setup has been fully completed.
3. Export the completed setup for each of the execution methods to be discussed.
a. Right-click the System Coupling system's Setup cell and select Export System Coupling
Setup.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 75
Solving Co-Simulations from the Command Line
c. Click the Make a new Folder button and type in Interactive as the new folder name.
d. Click OK.
System Coupling creates a new Interactive co-simulation working directory and exports
the setup files in the expected subdirectory structure.
e. When the export is completed, repeat steps a through d, but name the new folder Scripted.
f. When the export is completed, repeat steps a through d, but name the new folder Piped.
The CommandLineSolves directory now contains three co-simulation working directories, each with
a completed setup that is ready for a command-line run. Next, you will use these directories and their
contents to try out the different methods of command-line execution.
Interactive Solve
Scripted Solve
Start System Coupling with a command-line argument to issue the commands by running a Python
script.
Piped-Command Solve
Send the commands directly to System Coupling via your operating system shell.
For instructions on using the different methods to run the co-simulation, see:
Running an Interactive Solve
Running a Scripted Solve
Running a Piped-Command Solve
Tip:
During execution, the following console messages may help you to gauge the progress of
the solution:
• "Reading settings" indicates that the Open() command is running and the
data model is being populated from the Settings.h5 file.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
76 of ANSYS, Inc. and its subsidiaries and affiliates.
Solving a Co-Simulation from the Command Line
2. Open the shell for your operating system (either a Windows command prompt or a Linux terminal).
3. Start System Coupling's CLI by running its executable for the platform you are using.
• Windows:
> "%AWP_ROOT212%\SystemCoupling\bin\systemcoupling"
• Linux:
$ "$AWP_ROOT212/SystemCoupling/bin/systemcoupling"
Open()
When you are returned to the prompt, this means that the setup is loaded.
Solve()
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 77
Solving Co-Simulations from the Command Line
2. Create a Python script named run.py, ensuring that it includes the following commands:
Open()
Solve()
3. Open the shell for your operating system (either a Windows command prompt or a Linux terminal).
4. Start System Coupling by running its executable for the platform you are using, adding either
the -R or the --runscript command-line argument to run the script. (Both arguments are
supported for both Windows and Linux.)
• Windows:
• Linux:
$ "$AWP_ROOT212/SystemCoupling/bin/systemcoupling" –runscript=run.py
2. Open the shell for your operating system (either a Windows command prompt or a Linux terminal).
3. Start System Coupling by running its executable for the platform you are using, piping the
Open() and Solve() commands to it, as follows:
• Windows:
• Linux:
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
78 of ANSYS, Inc. and its subsidiaries and affiliates.
Solving a Co-Simulation from the Command Line
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 79
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
80 of ANSYS, Inc. and its subsidiaries and affiliates.
Coil-and-Core Induction Heating Co-Simulation
(Maxwell-Mechanical)
This electromagnetic-thermal co-simulation tutorial is based on a simple coil-and-core induction heating
case with two-way 3D data transfers. In this co-simulation, Maxwell performs an electromagnetic Eddy-
Current (steady-state) analysis and Mechanical performs a transient thermal analysis, and System
Coupling coordinates the simultaneous execution of their solvers and the data transfers between them.
For more efficient handling of the disparate electromagnetic and thermal timescales, System Coupling
allows you to control the frequency of participant updates. By default, Maxwell is updated with every
coupling step, but for this case, you will set Maxwell to update only at a specified interval. Mechanical
will continue to work with data obtained from the most recent Maxwell update.
Each participant is always updated for the first coupling step of a run, regardless of its update frequency
settings. When Maxwell is configured for interval updates, the interval pattern is separate from the first
coupling step. For example, with an update interval of 5, Maxwell will execute an update for coupling
step 5, 10, 15, and so on.
Set up and run the induction heating co-simulation as described in the following sections:
Problem Description: Coil-and-Core Induction Heating Case
Steps of the Co-Simulation
Download the Tutorial Input Files
Complete the Electromagnetic Setup
Complete the Thermal Setup
Create the Co-Simulation
Solve the Co-Simulation
Postprocess System Coupling's Results
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 81
Coil-and-Core Induction Heating Co-Simulation (Maxwell-Mechanical)
• Maxwell simulates the electromagnetic coupling between the coil and core and provides losses
to Mechanical.
• Mechanical then executes the thermal simulation in the core and sends the calculated temper-
atures back to Maxwell.
• Maxwell updates its temperature-dependent material properties, and the co-simulation proceeds
until the core's temperature approaches its steady-state value.
The Maxwell simulation includes an AC power supply that generates an excitation of 150 A at a frequency
of 1 kHz. The adaptive passes used to generate the initial mesh utilize estimated temperatures of 500K
and 600K for the core and coil, respectively.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
82 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Electromagnetic Setup
The extracted CoilAndCore directory will serve as System Coupling's co-simulation working directory.
Within this directory, System Coupling creates a SyC working directory for its coupling-related output.
This directory contains setup files that are already in the recommended directory structure for a co-
simulation. Participant physics are set up only so far as to allow their individual solutions. As part of
this tutorial, you will complete each participant's coupling setup to enable its inclusion in the co-simu-
lation. The following inputs are included:
Maxwell
This is the Maxwell working directory, where you will store all the files related to the electromag-
netic analysis. It contains the following setup file:
Mechanical
This is the Mechanical working directory, where you will store all the files related to the thermal
analysis. It contains the following setup file:
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 83
Coil-and-Core Induction Heating Co-Simulation (Maxwell-Mechanical)
• Windows:
From the Start menu, select Ansys EM Suite 2021 R2 > AnsysElectronics Desktop 2021 R2.
• Linux:
$ $ANSYSEM_ROOT212/ansysedt
Note:
c. Click OK.
Solution Type
Verify the solution type.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
84 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Electromagnetic Setup
Solid Bodies
Verify the solid bodies and their materials.
Under Solids, branches for copper, steel_1010, and vacuum solid materials are visible.
2. Expand each branch to see the names of the bodies made of that material. When you click a
body's name in the tree, it is highlighted in the modeler window.
• Under copper, there are seven coils, named Coil_1 through Coil_7.
Important:
When using the same material(s) in multiple participants, take care to ensure that common
properties (for example, conductivity) are consistently defined. This consideration is often
relevant in analyses involving thermal data transfers.
2. Double-click steel_1010.
3. In the Properties of the Material table, verify that for Bulk Conductivity, the Thermal Mod-
ifier is set to the following expression:
1.0/(1.0+0.00094*(Temp – 22))
Specifying a thermal modifier for the material ensures that the material is temperature depend-
ent.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 85
Coil-and-Core Induction Heating Co-Simulation (Maxwell-Mechanical)
This is the site of the two-way coupling, where Maxwell generates losses and sends them to Fluent
for a thermal simulation. This is also where Maxwell receives the temperatures generated by
Mechanical and adjusts material properties and electromagnetic fields solutions accordingly.
Because thermal solutions are being solved on both sides of the coupling interface, material thermal
properties must be consistently defined by both participants. Later, when you do the thermal setup,
you can verify that the Mechanical and Maxwell models are made of the same material and have
compatible temperature-dependent properties.
Excitations
Verify the excitations to be generated by the AC power supply.
• Solid is selected.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
86 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Electromagnetic Setup
• Loss is defined as an output (regions for loss output correspond to all bodies on which any
losses are generated).
b. Verify that Include Temperature Dependence and Enable Feedback are both selected.
c. Verify that the core and the coils are set to temperatures of 500 K and 600 K, respectively.
Note:
This value for the core temperature takes into account the expectation that in-
ductive heating will cause the initial temperature for the thermal analysis (300
K) to rise by several hundred degrees. An electromagnetic temperature of 600
K will drive Maxwell's adaptive passes and mesh generation.
6. Click OK to save the setup and close the System Coupling Setup dialog.
When you exit the dialog, Maxwell generates the configuration files it needs to participate in the
co-simulation.
Verify Maxwell's Solver Input and System Coupling Participant Setup Files
To verify the creation of necessary configuration files, navigate to the Maxwell coupling working
directory. Confirm that the directory contains a Maxwell solver input file and a System Coupling Par-
ticipant setup file of the same name:
• CoilAndCore_Maxwell3DDesign_SystemCouplingSetup1.py
• CoilAndCore_Maxwell3DDesign_SystemCouplingSetup1.scp
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 87
Coil-and-Core Induction Heating Co-Simulation (Maxwell-Mechanical)
• Windows:
From the Start menu, select Ansys 2021 R2 > Workbench 2021 R2.
• Linux:
Open a command-line interface and enter the path to runwb2. For example:
$ $AWP_ROOT212/Framework/bin/Linux64/runwb2
Workbench opens.
6. On the Project Schematic, double-click the Transient Thermal system's Setup cell.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
88 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Thermal Setup
Important:
When using the same material(s) in multiple participants, take care to ensure that common
properties (for example, conductivity) are consistently defined. This consideration is often
relevant in analyses involving thermal data transfers.
Nonlinear Controls
Verify the non-linear controls.
Create the interface on the region in the structural model that will receive loss data from the electro-
magnetic analysis via System Coupling.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 89
Coil-and-Core Induction Heating Co-Simulation (Maxwell-Mechanical)
1. In Mechanical's Outline, right-click Transient Thermal (A5) and select Insert > System Coupling
Region.
c. In Details of "System Coupling Region" under Scope, click the Apply button.
The Geometry setting updates to 1 body, indicating that the interface has been created
on the selected body.
1. In Mechanical's Outline, right-click Transient Thermal (A5) and select Write System Coupling
Files.
Note:
You may ignore the warning message indicating that the initial time increment may
be too large. System Coupling will provide time increment details.
4. From Mechanical's main menu, select File > Save Project and then File > Close Mechanical.
5. On Workbench's Project Schematic, right-click the Transient Thermal system's Setup cell and
select Update.
6. From Workbench's main menu, select File > Save and then File > Exit.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
90 of ANSYS, Inc. and its subsidiaries and affiliates.
Create the Co-Simulation
• CoilAndCore.dat
• CoilAndCore.scp
• Windows:
– Start Menu:
From the Start menu, select Ansys 2021 R2 > System Coupling 2021 R2.
– Command Prompt:
• Linux:
$ "$AWP_ROOT212/SystemCoupling/bin/systemcoupling" --gui
Note:
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 91
Coil-and-Core Induction Heating Co-Simulation (Maxwell-Mechanical)
The System Coupling GUI opens. Because you are required to select a coupling working directory
before starting to populate the data model, the Select working directory dialog opens imme-
diately.
2. Navigate to the CoilAndCore co-simulation working directory, select the directory, and click
Select Folder.
The Select Folder dialog closes and the System Coupling GUI opens in the co-simulation
working directory.
Note:
The Action Required ( ) messages shown on the Messages tab will be removed as the
corresponding parts of the analysis are defined. As new settings are added, additional
messages will indicate areas that must be addressed to complete a valid data model.
a. In the System Coupling GUI's Outline pane, right-click the Setup branch and select Add
Participant.
The Coupling Participant branch is added to the tree, with the Ansys Electronics Desktop
participant defined underneath it.
c. Navigate to the Mechanical working directory, select the CoilAndCore.scp file, and click
Open.
The MAPDL Transient Thermal participant is added to the tree under the Ansys Electronics
Desktop participant.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
92 of ANSYS, Inc. and its subsidiaries and affiliates.
Create the Co-Simulation
1. In the Outline pane, expand Setup | Coupling Participant | Ansys Electronics Desktop.
Maxwell will now perform an update for the first coupling step (as all participants do, regardless of
update settings), but then only for every fifth coupling step (5, 10, 15…and so on) thereafter.
1. In the Outline pane, right-click the Setup branch and select Add Coupling Interface.
The Coupling Interface branch is added to the tree, with Coupling Interface 1 defined below
it.
Two objects representing the sides of the interface, called One and Two, are defined under Side.
a. Select One.
c. Set Region List to Core, ensuring that no other regions are selected.
a. Select Two.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 93
Coil-and-Core Induction Heating Co-Simulation (Maxwell-Mechanical)
a. In the Outline pane under Coupling Interface, right-click Coupling Interface 1 and select
Add Data Transfer.
The Data Transfer branch is added to the tree, with Data Transfer 1 defined below it.
b. Right-click Data Transfer 1, select Rename, and change the name to Heat Rate Density
This specifies the side that will receive the data transfer quantity. In this case, Mechanical
(side two) will receive losses generated by Maxwell (side one).
Data Transfer 2 is added to the tree below the Heat Rate Density data transfer.
b. Right-click Data Transfer 2, select Rename, and change the name to Temperature
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
94 of ANSYS, Inc. and its subsidiaries and affiliates.
Create the Co-Simulation
This specifies the side that will receive the data transfer quantity. In this case, Maxwell
(side one) will receive temperatures generated by Mechanical (side two).
This is how long it will take the core to approach its steady-state temperature with the 150 AMP
inductive heating excitation from Maxwell.
This is the time step size to be applied to the thermal analysis (not to Maxwell's Eddy-Current
analysis, which is run independently of any times set in System Coupling).
Note:
These settings will override transient settings defined in the participant products.
Restart points will be generated only for the last step, at the end of the analysis.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 95
Coil-and-Core Induction Heating Co-Simulation (Maxwell-Mechanical)
Background instances of both participants are started, connected to System Coupling, and executed
simultaneously.
You can monitor the solution's progress by watching System Coupling's dynamically updated output,
as follows:
• When the solve begins, Transcript output is written to the GUI's Command Console tab. For
more information, see Transcript and Log File (scLog.scl) in the System Coupling User's Guide.
• When the convergence data becomes available, it is plotted to convergence charts, which are
shown on the GUI's Chart tab. For more information, see Reviewing Convergence Diagnostics
Charting Output in the System Coupling User's Guide.
Note:
Note:
• For instructions on how to view and interpret System Coupling's results, see the Postpro-
cessing System Coupling's Co-Simulation Results (p. 15) tutorial.
• For information on working with the results of a given participant, see the participant's
product documentation.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
96 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
+=============================================================================+
| COUPLING STEP = 1 SIMULATION TIME = 1.00000E+03 [s] |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 1 |
+-----------------------------------------------------------------------------+
| Ansys Electronics Desktop | |
| Interface: CouplingInterface 1 | |
| Temperature | Not yet converged |
| RMS Change | 1.00E+00 1.00E+00 |
| Weighted Average | 3.00E+02 3.00E+02 |
+-----------------------------------------------------------------------------+
| MAPDL Transient Thermal | |
| Interface: CouplingInterface 1 | |
| Heat Rate Density | Not yet converged |
| RMS Change | 1.00E+00 1.00E+00 |
| Sum | 3.66E+01 3.66E+01 |
+-----------------------------------------------------------------------------+
| Participant solution status | |
| Ansys Electronics Desktop | Complete |
| MAPDL Transient Thermal | Converged |
+-----------------------------------------------------------------------------+
• Temperature:
– Weighted Average values report a weighted average temperature on the source and target,
respectively. These values should also be very close to one another.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 97
Coil-and-Core Induction Heating Co-Simulation (Maxwell-Mechanical)
Mechanical received losses. Heat Rate Density convergence diagnostics are presented for the
source and target sides of the interface for this and every other iteration.
– Sum values report the net heat leaving the source and entering the target, respectively.
These values should also be very close to one another.
Participant Diagnostics
• Because all participants update for the first coupling step, Maxwell and Mechanical both updated
for this iteration.
+=============================================================================+
| COUPLING STEP = 3 SIMULATION TIME = 3.00000E+03 [s] |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 3 |
+-----------------------------------------------------------------------------+
| Ansys Electronics Desktop | |
| Interface: CouplingInterface 1 | |
| Temperature | Converged |
| RMS Change | 1.00E-14 1.00E-14 |
| Weighted Average | 4.92E+02 4.92E+02 |
+-----------------------------------------------------------------------------+
| MAPDL Transient Thermal | |
| Interface: CouplingInterface 1 | |
| Heat Rate Density | Converged |
| RMS Change | 1.00E-14 1.00E-14 |
| Sum | 3.56E+01 3.56E+01 |
+-----------------------------------------------------------------------------+
| Participant solution status | |
| Ansys Electronics Desktop | Not updated |
| MAPDL Transient Thermal | Converged |
+=============================================================================+
• Temperature:
– Mechanical generated temperature, as shown by the changed Temperature value, but Maxwell
will not receive the data until its next update.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
98 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
– Maxwell did not generate losses, as shown by the unchanged Heat Rate Density value.
– The Heat Rate Density data transfer converged in the third iteration.
Participant Diagnostics:
• Only Mechanical updated. Maxwell did not update because it is set to update only for every
fifth coupling step.
+=============================================================================+
| COUPLING STEP = 5 SIMULATION TIME = 5.00000E+03 [s] |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 3 |
+-----------------------------------------------------------------------------+
| Ansys Electronics Desktop | |
| Interface: CouplingInterface 1 | |
| Temperature | Converged |
| RMS Change | 1.79E-03 1.79E-03 |
| Weighted Average | 5.46E+02 5.46E+02 |
+-----------------------------------------------------------------------------+
| MAPDL Transient Thermal | |
| Interface: CouplingInterface 1 | |
| Heat Rate Density | Converged |
| RMS Change | 3.98E-05 7.32E-05 |
| Sum | 3.39E+01 3.39E+01 |
+-----------------------------------------------------------------------------+
| Participant solution status | |
| Ansys Electronics Desktop | Complete |
| MAPDL Transient Thermal | Converged |
+=============================================================================+
• Temperature:
– Mechanical received losses, as shown by the changed Heat Rate Density value.
– The Heat Rate Density data transfer converged in the second iteration.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 99
Coil-and-Core Induction Heating Co-Simulation (Maxwell-Mechanical)
Participant Diagnostics:
+=============================================================================+
| COUPLING STEP = 20 SIMULATION TIME = 2.00000E+04 [s] |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 1 |
+-----------------------------------------------------------------------------+
| Ansys Electronics Desktop | |
| Interface: CouplingInterface 1 | |
| Temperature | Converged |
| RMS Change | 4.87E-04 4.85E-04 |
| Weighted Average | 5.98E+02 5.98E+02 |
+-----------------------------------------------------------------------------+
| MAPDL Transient Thermal | |
| Interface: CouplingInterface 1 | |
| Heat Rate Density | Converged |
| RMS Change | 1.16E-04 2.14E-04 |
| Sum | 3.34E+01 3.34E+01 |
+-----------------------------------------------------------------------------+
| Participant solution status | |
| Ansys Electronics Desktop | Complete |
| MAPDL Transient Thermal | Converged |
+=============================================================================+
• Temperature:
– The Temperature data transfer converged to 5.98E+02 [K] in the first iteration.
– Mechanical received losses, as shown by the changed Heat Rate Density value.
– The Heat Rate Density data transfer has converged to 3.34E+01 [W] in the first iteration.
Participant Diagnostics:
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
100 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
Tip:
For instructions on these steps, as well as general information on results files and
EnSight's user interface, see Preparing to Visualize Results in EnSight (p. 18) in the
Postprocessing System Coupling's Co-Simulation Results tutorial.
Note that the participants have different data locations, so you will use different variables for each
when visualizing results in EnSight:
• Maxwell's data is on elements, so you will use elemental variables. Also, the data is on element
centroids (rather than element nodes).
Tip:
For instructions on assessing mapping quality, see the Postprocessing System Coupling's
Co-Simulation Results (p. 15) tutorial.
For the Heat Rate Density data transfer, 100% of Mechanical's target elements intersect with
and obtain values from 100% of Maxwell's source elements. No further investigation of Heat Rate
Density mapping is necessary.
Temperature:
For the Temperature data transfer, 100% of Maxwell's target nodes map into Mechanical's source
elements and obtain their values from the nodes of those elements.
However, the Maxwell target nodes obtain their values from between 99% and 100% of the
Mechanical source nodes, which means that one or more source nodes are unmapped. This is
common if the source mesh is finer than the target mesh. Based on these diagnostics, you may
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 101
Coil-and-Core Induction Heating Co-Simulation (Maxwell-Mechanical)
wish to open the co-simulation results in EnSight and examine the Temperature mapping more
closely.
+-----------------------------------------------------------------------------+
| MAPPING SUMMARY |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
| CouplingInterface 1 | |
| Heat Rate Density | |
| Mapped Volume [%] | 100 100 |
| Mapped Elements [%] | 100 100 |
| Mapped Nodes [%] | 100 100 |
| Temperature | |
| Mapped Volume [%] | 100 100 |
| Mapped Elements [%] | 100 100 |
| Mapped Nodes [%] | >99 100 |
+-----------------------------------------------------------------------------+
Drag Temperature mapping variables from the Variables pane and drop them on the corresponding
participant regions the Parts pane, as follows:
Figure 38: Source and target Temperature mapping on the core (p. 103) below confirms the target
diagnostics in the Transcript's Mapping Summary: all target elements are receiving temperature
data, either interpolated from mapping weights (for mapped locations) or filled in with the value
from the nearest source node (for unmapped locations).
On first glance, confirmation of the source mapping diagnostics is not as immediately evident.
Mechanical has a Mapped Nodes [%] value of >99, which indicates that at least one source node is
unmapped and not sending the value(s) to the target. However, according to the figure below (p. 103),
it appears that all source nodes are mapped. This is because Maxwell's element data are on element
centroids (instead of nodes), which for a volume region are located inside the mesh. The unmapped
centroid(s) are not visible, as would be the case if the data were on nodes on the surface of the mesh.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
102 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
+=============================================================================+
| COUPLING STEP = 20 SIMULATION TIME = 2.00000E+04 [s] |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 1 |
+-----------------------------------------------------------------------------+
| ANSYS Electronics Desktop | |
| Interface: CouplingInterface 1 | |
| Temperature | Converged |
| RMS Change | 4.87E-04 4.85E-04 |
| Weighted Average | 5.98E+02 5.98E+02 |
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 103
Coil-and-Core Induction Heating Co-Simulation (Maxwell-Mechanical)
+-----------------------------------------------------------------------------+
For consistency, adjust the palette ranges as shown in the image below.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
104 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
+=============================================================================+
| COUPLING STEP = 20 SIMULATION TIME = 2.00000E+04 [s] |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 1 |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| MAPDL Transient Thermal | |
| Interface: CouplingInterface 1 | |
| Heat Rate Density | Converged |
| RMS Change | 1.16E-04 2.14E-04 |
| Sum | 3.34E+01 3.34E+01 |
+-----------------------------------------------------------------------------+
For consistency, adjust the palette ranges as shown in the image below.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 105
Coil-and-Core Induction Heating Co-Simulation (Maxwell-Mechanical)
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
106 of ANSYS, Inc. and its subsidiaries and affiliates.
Bar-and-Coil Induction Heating Co-Simulation
(Maxwell-Fluent)
This unsteady/transient electromagnetic-thermal tutorial is based on a simple bar-and-coil induction
heating co-simulation with two-way 3D data transfers. Maxwell performs an electromagnetic Eddy-
Current analysis which is dependent on System Coupling time and Fluent performs a transient thermal
analysis, while System Coupling coordinates the simultaneous execution of their solvers and the data
transfers between their coupled volume regions.
Adaptive passes are used to generate and refine Maxwell's mesh. For every coupling step, Maxwell
serves an updated mesh to System Coupling, which triggers Fluent to also serve a new mesh. System
Coupling then remaps both participant meshes on the affected coupling interfaces. The resulting
mapping is used for subsequent coupling steps and iterations until Maxwell provides another new mesh
and the process is repeated.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 107
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
The moving bar has an initial temperature of 22C and is coupled on both participant interfaces. Although
Maxwell runs an Eddy-Current analysis, the motion of the bar is dependent on the coupling time, which
is provided by System Coupling.
The Maxwell simulation includes an AC power supply that generates an excitation of 2000 A at a fre-
quency of 10 kHz. The bar moves in a negative x direction with a constant velocity of 7mm/s. The
Fluent simulation includes a motion profile consistent with the motion defined in Maxwell.
Maxwell simulates the electromagnetic coupling between the bar and coil and provides losses to Fluent.
Fluent executes the thermal simulation on the bar and sends the calculated temperatures back to
Maxwell, which updates its temperature-dependent properties accordingly and then continues the co-
simulation until the transient temperature is reached.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
108 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Electromagnetic Setup
The extracted BarAndCoil directory will serve as System Coupling's co-simulation working directory.
Within this directory, System Coupling creates an SyC working directory for its coupling-related output.
This directory contains setup files that are already in the recommended directory structure for a co-
simulation. Participant physics are set up only so far as to allow their individual solutions. As part of
this tutorial, you will complete each participant's coupling setup to enable its inclusion in the co-simu-
lation. The following inputs are included:
Maxwell
This is the Maxwell working directory, where you will store all the files related to the electromag-
netic analysis. It contains the following setup file:
Fluent
This is the Fluent working directory, where you will store all the files related to the thermal analysis.
It contains the following setup files:
• d.csv: Displacement profile file used to define displacement with regard to time. The profile
is consistent with the motion defined in Maxwell.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 109
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
• Windows:
From the Start menu, select Ansys EM Suite 2021 R2 > Ansys Electronics Desktop 2021
R2.
• Linux:
$ $ANSYSEM_ROOT212/ansysedt
Note:
c. Click OK.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
110 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Electromagnetic Setup
Bar Displacement
Solution Type
Verify the solution type.
Solid Bodies
Verify the solid bodies and their materials.
Under Solids, branches for copper, Target, and vacuum solid materials are visible.
2. Expand each branch to see the names of the bodies made of that material. When you click a
body's name in the tree, it is highlighted in the modeler window.
Under the Target material, note that there are two bodies, named Target and Target_1. These
are the moving bar bodies that will be involved in the co-simulation.
Important:
When using the same material(s) in multiple participants, take care to ensure that common
properties (for example, conductivity) are consistently defined. This consideration is often
relevant in analyses involving thermal data transfers.
2. Double-click Target.
3. On the right side of the dialog, verify that the Thermal Modifier check box is selected.
Specifying a thermal modifier for the material ensures that the material is temperature depend-
ent.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 111
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
This is the site of the two-way coupling, where Maxwell generates losses and sends them to Fluent
for a thermal simulation. This is also where Maxwell receives the temperatures generated by Fluent
and adjusts material properties and electromagnetic fields solutions accordingly.
Because thermal solutions are being solved on both sides of the coupling interface, material thermal
properties must be consistently defined by both participants. Later, when you do the thermal setup,
you can verify that the Fluent and Maxwell models are made of the same material and have com-
patible temperature-dependent properties.
Excitations
Verify the solid bodies and their materials.
2. Check the excitations by performing the following steps for each one:
Note:
You will check the value of the Cur variable in the Design Proper-
ties (p. 113) section.
Design Datasets
Review the data set that defines the velocity and position of the moving bar.
The Edit Dataset dialog opens, showing the ds_Time_Pos data set which defines the x position
of the bar with respect to time.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
112 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Electromagnetic Setup
Design Properties
In this Eddy Current case, the moving bar is dependent on the coupling time provided by System
Coupling. Review the design properties needed to support this.
2. In the Local Variables table, verify the following coupling-related design variables and their
values:
• Cur is the variable used to define the Current parameter. Note that its Evaluated Value
is set to 1000 A.
pwl(ds_Time_Pos,SimTime) /1000
This is the displacement vector of the bar in the x direction. It is a function of the Sim-
Time.
Bar Displacement
Verify the displacement of the bar with respect to the coupling time.
1. In the history tree under Model / Solids / Target, expand Target and Target_1.
These are the solid bar bodies to be involved in the coupled analysis.
These properties define the displacement of the bar with respect to the coupling time.
Recall the expression MoveX = pwl(ds_Time_Pos,SimTime) /1000
where:
• ds_Time_Pos = the x position of the bar with respect to the coupling time
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 113
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
• Note that the Move Vector property is set to a value of -70mm+MoveX ,0mm ,0mm,
indicating that the motion of the bar is a function of the MoveX variable.
3. Under Context:
• System Coupling Time is defined as an input. The time values provided by System Coupling
will be passed to the SimTime design variable.
• Loss is defined as an output (regions for loss output correspond to all bodies on which any
losses are generated).
5. Add coupling time as an input. For the System Coupling Time row:
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
114 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Thermal Setup
b. Verify that Include Temperature Dependence and Enable Feedback are both selected.
7. Click OK to save the setup and close the System Coupling Setup dialog.
When you exit the dialog, Maxwell generates the configuration files it needs to participate in the
co-simulation.
Verify Maxwell's Solver Input and System Coupling Participant Setup Files
To verify the creation of necessary configuration files, navigate to the Maxwell coupling working
directory. Confirm that the directory contains a Maxwell solver input file and a System Coupling Par-
ticipant setup file of the same name:
• BarAndCoil_BarAndCoil_SystemCouplingSetup1.py
• BarAndCoil_BarAndCoil_SystemCouplingSetup1.scp
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 115
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
Verify Fluent's Solver Input and System Coupling Participant Setup Files
Important:
For a co-simulation with Maxwell, the fluid analysis must be set up in a stand-alone instance
of Fluent — not in an instance of Fluent in Workbench.
• Windows:
From the Start menu, select Ansys 2021 R2 > Fluent 2021 R2.
• Linux:
$ $AWP_ROOT212/fluent/bin/fluent
2. Open Fluent.
d. Click Start.
Fluent opens.
c. Click OK.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
116 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Thermal Setup
Solution Type
Verify the solution type.
Note:
Fluent's transient settings are defined on the Solution tab's Run Calculation task page.
System Coupling's time step settings will override any time step settings specified in
Fluent.
Important:
When using the same material(s) in multiple participants, take care to ensure that common
properties (for example, conductivity) are consistently defined. This consideration is often
relevant in analyses involving thermal data transfers.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 117
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
1. In the Outline view under Setup, expand Cell Zone Conditions / Solid.
Under Solid, the two bar objects are visible: target and target_1.
2. Verify the material for each of the bar objects, performing the following steps on each one:
Boundary Conditions
Verify boundary conditions.
3. On the Thermal tab under Thermal Conditions, verify the following values:
Displacement Profile
To ensure accurate mapping between the source and target mesh, a displacement profile consistent
with the motion defined in Fluent has been applied. The profile specifies displacements with regard
to time.
The Profiles dialog opens with values populated from the d.csv profile file.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
118 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Thermal Setup
• Fields box is populated with the variables time and x, which indicates a time-dependent
displacement profile.
Dynamic Mesh
Dynamic mesh is required to allow Fluent to receive the mesh displacement data sent by Maxwell.
1. On the Domain tab under Mesh Models, click the Dynamic Mesh icon ( ).
c. Under Dynamic Mesh Zones, note that the following dynamic mesh zones have been
defined: target – Rigid Body and target_1 – Rigid Body.
3. Verify the settings for each of the defined dynamic mesh zones:
The Dynamic Mesh Zones dialog opens and is populated with the information for the
target zone.
• Motion UDF/Profile is set to dis, indicating that the loaded displacement profile is
applied to the zone.
d. For target_1, repeat the same steps used to verify the settings for target.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 119
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
a. Select File > Export > System Coupling > Auto-write SCP File.
With this setting enabled, the .scp file will be generated each time a .cas.h5 file is produced
or updated for this case.
Tip:
The .scp file can also be generated on demand by selecting Export > System
Coupling > Write SCP File.
b. For Case File, name the file BarAndCoil.cas.h5 and click OK.
Fluent writes a .cas.h5 file and an .scp file of the specified name to the coupling
working directory.
Fluent closes.
Verify Fluent's Solver Input and System Coupling Participant Setup Files
To verify the creation of necessary configuration files, navigate to the Fluent coupling working direct-
ory. Confirm that the directory contains a Fluent case file and a System Coupling Participant setup
file of the same name:
• BarAndCoil.cas.h5
• BarAndCoil.scp
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
120 of ANSYS, Inc. and its subsidiaries and affiliates.
Create the Co-Simulation
1. Start System Coupling's GUI according to the platform you are using:
• Windows:
– Start Menu:
From the Start menu, select Ansys 2021 R2 > System Coupling 2021 R2.
– Command Prompt:
• Linux:
$ "$AWP_ROOT212/SystemCoupling/bin/systemcoupling" --gui
Note:
The System Coupling GUI opens. Because you are required to select a coupling working directory
before starting to populate the data model, the Select working directory dialog opens imme-
diately.
2. Navigate to the BarAndCoil co-simulation working directory, select the directory, and click Select
Folder.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 121
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
The Select Folder dialog closes and the System Coupling GUI opens in the selected directory.
Note:
The Action Required ( ) messages shown on the Messages tab will be removed as the
corresponding parts of the analysis are defined. As new settings are added, additional
messages will indicate areas that must be addressed to complete a valid data model.
a. In the System Coupling GUI's , right-click the Setup branch and select Add Participant.
The Coupling Participant branch is added to the tree, with the Ansys Electronics Desktop
participant defined underneath it.
c. Navigate to the Fluent working directory, select the BarAndCoil.scp file, and click Open.
The Fluid Flow (Fluent) participant is added to the tree under the Ansys Electronics
Desktop participant.
-t3
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
122 of ANSYS, Inc. and its subsidiaries and affiliates.
Create the Co-Simulation
This specifies the number of processes to be used for the coupled analysis.
1. In the Outline, right-click the Setup branch and select Add Coupling Interface.
The Coupling Interface branch is added to the tree, with Coupling Interface 1 defined below
it.
Two objects representing the sides of the interface, called One and Two, are defined under Side.
a. Select One.
c. For Region List, select Target and Target_1, ensuring that no other regions are selected.
a. Select Two.
c. For Region List, select target and target_1, ensuring that no other regions are selected.
a. In the Outline under Coupling Interface, right-click Coupling Interface 1 and select Add
Data Transfer.
The Data Transfer branch is added to the tree, with Data Transfer 1 defined below it.
b. Right-click Data Transfer 1, select Rename, and change the name to Heat Rate.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 123
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
This specifies the side that will receive the data transfer quantity. In this case, Fluent (side
two) will receive losses generated by Maxwell (side one).
a. Right-click the Data Transfer branch and select Add Data Transfer.
b. Right-click Data Transfer 2, select Rename, and change the name to Temperature.
This specifies the side that will receive the data transfer quantity. In this case, Maxwell
(side one) will receive temperatures generated by Fluent (side two).
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
124 of ANSYS, Inc. and its subsidiaries and affiliates.
Solve the Co-Simulation
Note:
These settings will override transient settings defined in the participant products.
With this setting, EnSight results files will be generated for every step. These files will allow you
to generate animations later when you postprocess results in EnSight.
Background instances of both participants are started, connected to System Coupling, and executed
simultaneously.
You can monitor the solution's progress by watching System Coupling's dynamically updated output,
as follows:
• When the solve begins, Transcript output is written to the GUI's Command Console tab. For
more information, see Transcript and Log File (scLog.scl) in the System Coupling User's Guide.
• When the convergence data becomes available, it is plotted to convergence charts, which are
shown on the GUI's Chart tab. For more information, see Reviewing Convergence Diagnostics
Charting Output in the System Coupling User's Guide.
Note:
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 125
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
Note:
• For instructions on how to view and interpret System Coupling's results, see the Postpro-
cessing System Coupling's Co-Simulation Results (p. 15) tutorial.
• For information on working with the results of a given participant, see the participant's
product documentation.
Tip:
For instructions on these steps, as well as general information on results files and
EnSight's user interface, see Preparing to Visualize Results in EnSight (p. 18) in the
Postprocessing System Coupling's Co-Simulation Results tutorial.
Note that the participants have different data locations, so you will use different variables for each
when visualizing results in EnSight:
• Maxwell's data is on elements, so you will use elemental variables. Also, the data is on element
centroids (rather than element nodes).
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
126 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
Tip:
For instructions on assessing mapping quality, see the Postprocessing System Coupling's
Co-Simulation Results (p. 15) tutorial.
Heat Rate
For the Heat Rate data transfer, 100% of Fluent's target elements intersect with and their nodes
obtain values from 100% of Maxwell's source elements.
Temperature:
For the Temperature data transfer, 100% of Maxwell's target elements map into Fluent's source
elements and receive their values from the nodes of those elements.
However, the Maxwell target receive their values from only 24% of the Fluent source nodes. This
is common if the source mesh is finer than the target mesh. Based on these diagnostics, you
should open the co-simulation results in EnSight and examine the Temperature mapping more
closely.
+=============================================================================+
| COUPLING STEP = 20 SIMULATION TIME = 2.00000E+01 [s] |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| MAPPING SUMMARY |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
| CouplingInterface 1 | |
| Heat Rate | |
| Mapped Volume [%] | 100 100 |
| Mapped Elements [%] | 100 100 |
| Mapped Nodes [%] | 100 100 |
| Temperature | |
| Mapped Volume [%] | 45 100 |
| Mapped Elements [%] | 49 100 |
| Mapped Nodes [%] | 24 100 |
+-----------------------------------------------------------------------------+
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 127
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
Drag Temperature mapping variables from the Variables pane and drop them on the corresponding
participant regions the Parts pane, as follows:
The image and animation below confirm the information provided in the Transcript.
Each target element centroid is receiving Temperature data, either interpolated from mapping weights
(for mapped locations) or filled in with the value from the nearest source node (for unmapped loca-
tions).
However, you can see that not all source-node temperatures are used on the target.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
128 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 129
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
Zoom in for a closer view of the source nodes in relation to the target elements, as shown in the
image below. A majority of the source nodes are unmapped, yet all of the target elements receive
values from the source. Maxwell has data on element centroids, which for volume elements, are located
inside the mesh. The centroids take their values from the nearest source nodes inside the geometry,
leaving the data on surface nodes unused.
Also, note that source mesh is significantly finer than the target mesh. For transfers intensive quant-
ities, it is generally better to have a target-mesh resolution that is similar to or finer than the source
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
130 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
mesh. This helps to ensure that features that are finely resolved on the source mesh are not lost in
the transfer to the coarser mesh.
Figure 47: Figure 44: Source nodes, target elements, and combined view of Temperature mapping
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 131
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
+=============================================================================+
| COUPLING STEP = 20 SIMULATION TIME = 2.00000E+01 [s] |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 3 |
+-----------------------------------------------------------------------------+
| Ansys Electronics Desktop | |
| Interface: CouplingInterface 1 | |
| Temperature | Converged |
| RMS Change | 2.08E-05 3.63E-05 |
| Weighted Average | 8.33E+02 8.33E+02 |
+-----------------------------------------------------------------------------+
For consistency, adjust the palette ranges as shown in the image below.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
132 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
Figure 49: Source-side and target-side Temperatures shown at 10s and 20s
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 133
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
134 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
+=============================================================================+
| COUPLING STEP = 20 SIMULATION TIME = 2.00000E+01 [s] |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 3 |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| Fluid Flow (Fluent) | |
| Interface: CouplingInterface 1 | |
| Heat Rate | Converged |
| RMS Change | 1.11E-05 6.77E-06 |
| Sum | 6.23E-01 6.23E-01 |
+-----------------------------------------------------------------------------+
For consistency, adjust the palette ranges as shown in the image below.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 135
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
Figure 52: Source-side and target-side losses per-unit-volume shown at 10s and 20s
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
136 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 137
Bar-and-Coil Induction Heating Co-Simulation (Maxwell-Fluent)
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
138 of ANSYS, Inc. and its subsidiaries and affiliates.
Bus Bar Electromagnetic-Thermal Co-Simulation
(Maxwell-Mechanical)
This steady electromagnetic-thermal tutorial is based on a bus bar induction heating co-simulation with
two-way 3D data transfers. In this co-simulation:
• Maxwell performs a transient electromagnetic solution. However, the solution values sent to
System Coupling are time-averaged over the duration of the co-simulation.
• System Coupling coordinates the simultaneous execution of the participants' solvers and the
data transfers between their coupled volume regions.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 139
Bus Bar Electromagnetic-Thermal Co-Simulation (Maxwell-Mechanical)
Mechanical receives Maxwell's time-averaged losses and applies them as steady losses to the bus bar
components of its model. It then executes the thermal analysis and sends the calculated material tem-
peratures back to Maxwell.
When the temperature data is sent back to Maxwell, it is mapped to the bus bars, which are made of
a temperature-dependent material. The temperature-dependent material properties are updated and
used in Maxwell's next computation. The co-simulation proceeds until the solution converges.
The extracted BusBar directory will serve as System Coupling's co-simulation working directory.
Within this directory, System Coupling creates a SyC working directory for its coupling-related output.
This directory contains setup files that are already in the recommended directory structure for a co-
simulation. Participant physics are set up only so far as to allow their individual solutions. As part of
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
140 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Electromagnetic Setup
this tutorial, you will complete each participant's coupling setup to enable its inclusion in the co-simu-
lation. The following inputs are included:
Maxwell
This is the Maxwell working directory, where you will store all the files related to the electromag-
netic analysis. It contains the following setup file:
MAPDL
This is the Mechanical working directory, where you will store all the files related to the thermal
analysis. It contains the following setup file:
• Windows:
From the Start menu, select Ansys EM Suite 2021 R2 > Ansys Electronics Desktop 2021
R2.
• Linux:
$ $ANSYSEM_ROOT212/ansysedt
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 141
Bus Bar Electromagnetic-Thermal Co-Simulation (Maxwell-Mechanical)
Note:
c. Click OK.
Solution Type
Verify the solution type.
Note:
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
142 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Electromagnetic Setup
2. Double-click Setup1.
3. On the General tab under Transient Setup, verify the following settings:
4. In the table on the Save Fields tab, verify the following settings for Linear Step:
Solid Bodies
Verify the solid bodies and their materials.
Under Solids, branches for air and copper_temp solid materials are visible.
2. Expand the copper_temp branch to see the names of the bodies made of that material. When
you click a body's name in the tree, it is highlighted in the modeler window.
3. Note the following bodies, which will receive thermal data from the Fluent participant:
• bus1
• bus2
• bus3
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 143
Bus Bar Electromagnetic-Thermal Co-Simulation (Maxwell-Mechanical)
Important:
When using the same material(s) in multiple participants, take care to ensure that common
properties (for example, conductivity) are consistently defined. This consideration is often
relevant in analyses involving thermal data transfers.
2. Double-click copper_temp.
3. On the right side of the dialog, verify that the Thermal Modifier check box is selected.
4. In the Properties of the Material table, verify that for Bulk Conductivity, the Thermal Mod-
ifier is set to the following expression:
This is the site of the two-way coupling, where Maxwell generates losses and sends them to
Mechanical for a thermal simulation. This is also where Maxwell receives the temperatures generated
by Mechanical and adjusts material properties and electromagnetic fields solutions accordingly.
Because thermal solutions are being solved on both sides of the coupling interface, material thermal
properties must be consistently defined by both participants. Later, when you do the thermal setup,
you can verify that the Mechanical and Maxwell models are made of the same material and have
compatible temperature-dependent properties.
Excitations
Verify the excitations to be generated by the AC power supply.
There are three bus bar objects: bus1, bus2, and bus3.
Note that a single-conductor input coil terminal and a single-conductor output coil terminal
is defined for each.
3. Review the excitation for each of the bus bar objects, performing the following steps on each
one:
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
144 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Electromagnetic Setup
Solid is selected.
Each bus bar carries 7070A current at 60 Hz frequency, but each at a different phase.
3. Under Context:
These last two settings specify the period over which Maxwell's losses will be time-averaged.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 145
Bus Bar Electromagnetic-Thermal Co-Simulation (Maxwell-Mechanical)
• Loss is defined as an output (regions for loss output correspond to all bodies on which any
losses are generated).
b. Verify that Include Temperature Dependence and Enable Feedback are both selected.
c. In the table, verify that Temperature and Units are set to 22 and cel for all three of the
bus bar objects.
6. Click OK to save the setup and exit the System Coupling Setup dialog.
When you exit the dialog, Maxwell generates the configuration files it needs to participate in the
co-simulation.
Verify Maxwell's Solver Input and System Coupling Participant Setup Files
To verify the creation of necessary configuration files, navigate to the Maxwell coupling working
directory. Confirm that the directory contains a Maxwell solver input file and a System Coupling Par-
ticipant setup file of the same name:
• BusBarTransient_Maxwell3DDesign_SystemCouplingSetup1.py
• BusBarTransient_ Maxwell3DDesign_SystemCouplingSetup1.scp
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
146 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Thermal Setup
• Windows:
From the Start menu, select Ansys 2021 R2 > Workbench 2021 R2.
• Linux:
Open a command-line interface and enter the path to runwb2. For example:
$ $AWP_ROOT212/Framework/bin/Linux64/runwb2
Workbench opens.
6. On the Project Schematic, double-click the Steady-State Thermal system's Setup cell.
Solid Bodies
Verify the solid bodies and their materials.
Note that the Region body is Suppressed ( ) and only the three solid bus bar bodies (bus1,
bus2, and bus3) are visible in the Geometry view.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 147
Bus Bar Electromagnetic-Thermal Co-Simulation (Maxwell-Mechanical)
Important:
When using the same material(s) in multiple participants, take care to ensure that common
properties (for example, conductivity) are consistently defined. This consideration is often
relevant in analyses involving thermal data transfers.
Create the three interfaces on the regions in the structural model that will receive loss data from the
electromagnetic analysis via System Coupling.
a. In Mechanical's Outline, right-click Steady-State Thermal and select Insert > System
Coupling Region.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
148 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Thermal Setup
The Geometry setting updates to 1 body, indicating that the body is included on the inter-
face.
Perform the same steps as previously but scope the bus2 body to System Coupling Region 2.
Perform the same steps as previously but scope the bus3 body to System Coupling Region 3.
1. In Mechanical's Outline, right-click Steady-State Thermal and select Write System Coupling
Files.
4. From Mechanical's main menu, select File > Save Project and then File > Close Mechanical.
5. On Workbench's Project Schematic, right-click the Steady-State Thermal system's Setup cell
and select Update.
6. From Workbench's main menu, select File > Save and then File > Exit.
7. Navigate to the MAPDL coupling working directory and verify that a solver input file and a System
Coupling Participant setup file of the same name were generated:
• BusBarSteady.dat
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 149
Bus Bar Electromagnetic-Thermal Co-Simulation (Maxwell-Mechanical)
• BusBarSteady.scp
1. Start System Coupling's GUI according to the platform you are using:
• Windows:
– Start Menu:
From the Start menu, select Ansys 2021 R2 > System Coupling 2021 R2.
– Command Prompt:
• Linux:
$ "$AWP_ROOT212/SystemCoupling/bin/systemcoupling" --gui
Note:
The System Coupling GUI opens. Because you are required to select a coupling working directory
before starting to populate the data model, the Select working directory dialog opens imme-
diately.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
150 of ANSYS, Inc. and its subsidiaries and affiliates.
Create the Co-Simulation
2. Navigate to the BusBar co-simulation working directory, select the directory, and click Select
Folder.
The Select Folder dialog closes and the System Coupling GUI opens in the selected directory.
Note:
The Action Required ( ) messages shown on the Messages tab will be removed as the
corresponding parts of the analysis are defined. As new settings are added, additional
messages will indicate areas that must be addressed to complete a valid data model.
a. In the System Coupling GUI's Outline pane, right-click the Setup branch and select Add
Participant.
The Coupling Participant branch is added to the tree, with the Ansys Electronics Desktop
participant defined underneath it.
c. Navigate to the MAPDL working directory, select the BusBarSteady.scp file, and click
Open.
The MAPDL Steady-State Thermal participant is added to the tree under the Ansys Elec-
tronics Desktop participant.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 151
Bus Bar Electromagnetic-Thermal Co-Simulation (Maxwell-Mechanical)
-np 2
This specifies the number of processes to be used for the coupled analysis.
Note:
The workflow used in this tutorial — that is, to create all three interfaces before adding
data transfers — is arbitrary.
a. In the Outline pane, right-click the Setup branch and select Add Coupling Interface.
The Coupling Interface branch is added to the tree, with Coupling Interface 1 defined
below it.
Two objects representing the sides of the interface, called One and Two, are defined under
Side.
i. Select One.
iii. Set Region List to bus1, ensuring that no other regions are selected.
i. Select Two.
iii. Set Region List to FVIN_1_bus1, ensuring that not other regions are selected.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
152 of ANSYS, Inc. and its subsidiaries and affiliates.
Create the Co-Simulation
b. Set the details for the sides of the interface as previously, except:
i. For side one, set the Maxwell participant's Region List to bus2.
ii. For side two, set the Mechanical participant's Region List to FVIN_2_bus2.
b. Set the details for the sides of the interface as previously, except:
i. For side one, set the Maxwell participant's Region List to bus3.
ii. For side two, set the Mechanical participant's Region List to FVIN_3_bus3.
a. In the Outline pane, right-click Coupling Interface 1 and select Add Data Transfer.
The Data Transfer branch is added to the tree, with Data Transfer 1 defined below it.
b. Right-click Data Transfer 1, select Rename, and change the name to Loss 1.
This specifies the side that will receive the data transfer quantity. In this case, Mechanical
(side two) will receive losses generated by Maxwell (side one).
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 153
Bus Bar Electromagnetic-Thermal Co-Simulation (Maxwell-Mechanical)
b. Right-click Data Transfer 1, select Rename, and change the name to Temp 1.
This specifies the side that will receive the data transfer quantity. In this case, Maxwell
(side one) will receive temperatures generated by Mechanical (side two).
Use the same steps as previously to create data transfers on Coupling Interface 2 but rename
them Loss 2 and Temp 2.
Use the same steps as previously to create data transfers on Coupling Interface 3 but rename
them Loss 3 and Temp 3.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
154 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
Note:
These settings will override transient settings defined in the participant products.
Background instances of both participants are started, connected to System Coupling, and executed
simultaneously.
You can monitor the solution's progress by watching System Coupling's dynamically updated output,
as follows:
• When the solve begins, Transcript output is written to the GUI's Command Console tab. For
more information, see Transcript and Log File (scLog.scl) in the System Coupling User's Guide.
• When the convergence data becomes available, it is plotted to convergence charts, which are
shown on the GUI's Chart tab. For more information, see Reviewing Convergence Diagnostics
Charting Output in the System Coupling User's Guide.
Note:
• For instructions on how to view and interpret System Coupling's results, see the Postpro-
cessing System Coupling's Co-Simulation Results (p. 15) tutorial.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 155
Bus Bar Electromagnetic-Thermal Co-Simulation (Maxwell-Mechanical)
• For information on working with the results of a given participant, see the participant's
product documentation.
Tip:
For instructions on these steps, as well as general information on results files and
EnSight's user interface, see Postprocessing System Coupling's Co-Simulation Res-
ults (p. 15) in the Postprocessing System Coupling's Co-Simulation Results tutorial.
Note that the participants have different data locations, so you will use different variables for each
when visualizing results in EnSight:
• Maxwell's data is on elements, so you will use elemental variables. Also, the data is on element
centroids (rather than element nodes).
Tip:
For instructions on assessing mapping quality, see the Postprocessing System Coupling's
Co-Simulation Results (p. 15) tutorial.
On all three of the interfaces, 100% of Mechanical's target elements intersect with and obtain
loss values from 100% of Maxwell's source elements.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
156 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
Temperature:
On all three of the interfaces, 100% of Maxwell's target nodes map into Mechanical's source ele-
ments and obtain their values from the nodes of those elements.
However, on all three interfaces, Maxwell's target nodes obtain their values from only a percentage
of Mechanical's source nodes, as follows:
• CouplingInterface-1: 87%
• CouplingInterface-2: 89%
• CouplingInterface-3: 89%
This is common if the source mesh is finer than the target mesh. Based on these diagnostics, you
should open the co-simulation results in EnSight and examine the Temperature mapping more
closely.
+-----------------------------------------------------------------------------+
| MAPPING SUMMARY |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
| CouplingInterface 1 | |
| Loss 1 | |
| Mapped Volume [%] | 100 100 |
| Mapped Elements [%] | 100 100 |
| Mapped Nodes [%] | 100 100 |
| Temp 1 | |
| Mapped Volume [%] | >99 100 |
| Mapped Elements [%] | >99 100 |
| Mapped Nodes [%] | 87 100 |
| CouplingInterface 2 | |
| Loss 2 | |
| Mapped Volume [%] | 100 100 |
| Mapped Elements [%] | 100 100 |
| Mapped Nodes [%] | 100 100 |
| Temp 2 | |
| Mapped Volume [%] | >99 100 |
| Mapped Elements [%] | >99 100 |
| Mapped Nodes [%] | 89 100 |
| CouplingInterface 3 | |
| Loss 3 | |
| Mapped Volume [%] | 100 100 |
| Mapped Elements [%] | 100 100 |
| Mapped Nodes [%] | 100 100 |
| Temp 3 | |
| Mapped Volume [%] | 100 100 |
| Mapped Elements [%] | 100 100 |
| Mapped Nodes [%] | 89 100 |
+-----------------------------------------------------------------------------+
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 157
Bus Bar Electromagnetic-Thermal Co-Simulation (Maxwell-Mechanical)
For Mechanical, use the nodal mapping variables. For Maxwell, use the elemental mapping variables.
Drag Temperature mapping variables from the Variables pane and drop them on the corresponding
participant regions in the Parts pane.
For each coupling interface, the table below shows theTemperature mapping variables associated
with each participant region.
For the purposes of this tutorial, view the Temperature mapping only on Coupling Interface 3. Fig-
ure 56: Temperature mapping on Bus Bar 3 (p. 159) confirms the information provided in the Transcript.
Each target element centroid is receiving temperature data, either interpolated from mapping weights
(for mapped locations) or filled in with the value from the nearest source node (for unmapped loca-
tions).
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
158 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
However, not all source-node temperatures are used on the target. This can be attributed to differences
between the participants' mesh resolutions and data locations, as described below:
Note that the source mesh is significantly finer than the target mesh. In Figure 57: Unmapped
source nodes, mapped target centroids, and combined view (p. 160), you can see where data from
some source nodes are not used on target nodes.
Remember that Mechanical sends Temperature data from element nodes, while Maxwell receives
temperature data on element centroids, which are located inside the mesh for volume elements.
The target element centroids on the interior of the bus bar are mapping to the nearest source
nodes, which are located beneath the surface of the geometry.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 159
Bus Bar Electromagnetic-Thermal Co-Simulation (Maxwell-Mechanical)
Figure 57: Unmapped source nodes, mapped target centroids, and combined view
+=============================================================================+
| COUPLING STEP = 1 |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 5 |
+-----------------------------------------------------------------------------+
| ANSYS Electronics Desktop | |
| Interface: CouplingInterface 1 | |
| Temp 1 | Converged |
| RMS Change | 3.89E-03 3.95E-03 |
| Weighted Average | 3.74E+02 3.74E+02 |
| Interface: CouplingInterface 2 | |
| Temp 2 | Converged |
| RMS Change | 4.34E-03 4.49E-03 |
| Weighted Average | 3.78E+02 3.78E+02 |
| Interface: CouplingInterface 3 | |
| Temp 3 | Converged |
| RMS Change | 4.76E-03 4.75E-03 |
| Weighted Average | 3.80E+02 3.80E+02 |
+-----------------------------------------------------------------------------+
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
160 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
The palettes ranges are very similar and do not need to be adjusted, as shown in the image below.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 161
Bus Bar Electromagnetic-Thermal Co-Simulation (Maxwell-Mechanical)
+=============================================================================+
| COUPLING STEP = 1 |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 5 |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| MAPDL Steady-State Thermal | |
| Interface: CouplingInterface 1 | |
| Loss 1 | Converged |
| RMS Change | 2.58E-10 1.37E-03 |
| Sum | 1.18E+03 1.18E+03 |
| Interface: CouplingInterface 2 | |
| Loss 2 | Converged |
| RMS Change | 2.60E-10 1.51E-03 |
| Sum | 9.61E+02 9.61E+02 |
| Interface: CouplingInterface 3 | |
| Loss 3 | Converged |
| RMS Change | 2.88E-10 1.59E-03 |
| Sum | 1.17E+03 1.17E+03 |
+-----------------------------------------------------------------------------+
For consistency, adjust the palette ranges as shown in the image below.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
162 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 163
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
164 of ANSYS, Inc. and its subsidiaries and affiliates.
Permanent Magnet Electric Motor Co-Simulation
(Maxwell-Fluent)
This steady electromagnetic-thermal tutorial is based on a permanent magnet electric motor co-simu-
lation with two-way 2D-3D data transfers. In this co-simulation:
• Maxwell performs a 2D transient electromagnetic solution. However, the solution values sent to
System Coupling are time-averaged over the duration of the Maxwell simulation.
• System Coupling coordinates the simultaneous execution of their solvers and the data transfers
between their regions.
• Data are transferred between planar surface (Maxwell) and volume (Fluent) topologies.
You can assume a uniform power-loss distribution along the axial direction for Maxwell's transient 2D
solution, so that you can both reduce Maxwell's computation time and explore the full parametric space
by simulating only an axial slice for both participants.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 165
Permanent Magnet Electric Motor Co-Simulation (Maxwell-Fluent)
Figure 62: Model orientation during the execution of the permanent magnet electric motor case
On the electromagnetic side, Maxwell simulates the electromagnetic coupling between the magnet,
rotor, and stator components. On the thermal side, Fluent simulates the thermal coupling between the
rotor and stator components. The rotor and stator are separated by two air-like solid zones.
Note:
In the main version of the tutorial, these air-like solid bodies are stationary. However, to allow
for further exploration of the case, the tutorial input package includes files for a variation on
the case which has a rotation of 15000 rpm defined for each of these solid zones.
Fluent receives Maxwell's losses and applies them as steady losses to the axial segment of its 3D model.
It then executes the thermal analysis and sends the calculated material temperatures back to Maxwell.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
166 of ANSYS, Inc. and its subsidiaries and affiliates.
Download the Tutorial Input Files
When the temperature data are sent back to Maxwell, it is mapped only to the magnets, which are
made of a temperature-dependent material. The temperature-dependent material properties are updated
and used in Maxwell's next computation. The co-simulation proceeds until the solution converges.
The extracted ElectricMotor directory will serve as System Coupling's co-simulation working directory.
Within this directory, System Coupling creates a SyC working directory for its coupling-related output.
This directory contains setup files that are already in the recommended directory structure for a co-
simulation. Participant physics are set up only so far as to allow their individual solutions. As part of
this tutorial, you will complete each participant's coupling setup to enable its inclusion in the co-simu-
lation. The following inputs are included:
Maxwell
This is the Maxwell working directory, where you will store all the files related to the electromag-
netic analysis. It contains the following setup file:
Fluent
This is the Fluent working directory, where you will store all the files related to the thermal analysis.
It contains the following setup file:
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 167
Permanent Magnet Electric Motor Co-Simulation (Maxwell-Fluent)
ElectricMotorSteadyRotating
• Windows:
From the Start menu, select Ansys EM Suite 2021 R2 > Ansys Electronics Desktop 2021
R2.
• Linux:
$ $ANSYSEM_ROOT212/ansysedt
Note:
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
168 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Electromagnetic Setup
c. Click OK.
Solution Type
Verify the solution type.
Note:
2. Double-click Setup1.
3. In the table on the Save Fields tab, verify the following settings for Linear Step:
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 169
Permanent Magnet Electric Motor Co-Simulation (Maxwell-Fluent)
2. Double-click DesignXplorerSetup1.
3. In the table under Input Variables, verify the that the spd_mech variable's Units and Value
fields are set to 3000 rpm
Important:
When using the same material(s) in multiple participants, take care to ensure that common
properties (for example, conductivity) are consistently defined. This consideration is often
relevant in analyses involving thermal data transfers.
2. Double-click N5211.
3. On the right side of the dialog, verify that the Thermal Modifier check box is selected.
4. In the Properties of the Material table, verify that for the Magnitude of the material's mag-
netic coercivity, the Thermal Modifier is set to the following expression:
1.0-0.00647425*(Temp-20)
Specifying a thermal modifier for the material ensures that the material is temperature depend-
ent.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
170 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Electromagnetic Setup
This is the site of the two-way coupling, where Maxwell generates losses and sends them to Fluent
for a thermal simulation. This is also where Maxwell receives the temperatures generated by Fluent
and adjusts material properties and electromagnetic fields solutions accordingly.
Because thermal solutions are being solved on both sides of the coupling interface, material thermal
properties must be consistently defined by both participants. Later, when you do the thermal setup,
you can verify that the Fluent and Maxwell models are made of the same material and have com-
patible temperature-dependent properties.
Model Depth
Verify the model depth.
3. Verify that the fields for Model Depth are set to 0.08382 and meter.
3. Under Context:
These last two settings specify the period over which Maxwell's losses will be time-averaged.
Note:
This start time is different that the start time defined in Analysis / Setup 1, as described
in Transient Solution Details (p. 169). Specifying a different start time for the System
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 171
Permanent Magnet Electric Motor Co-Simulation (Maxwell-Fluent)
Coupling Setup helps to mitigate any unsteadiness that may result from the time-
averaging of losses over the length of the simulation.
• Loss is defined as an output (regions for loss output correspond to all bodies on which any
losses are generated).
b. Verify that Include Temperature Dependence and Enable Feedback are both selected.
c. In the table, verify that Temperature and Units are set to 20 cel for the Magnet1 and
Magnet2 objects.
6. Click OK to save the setup and exit the System Coupling Setup dialog.
When you exit the dialog, Maxwell generates the configuration files it needs to participate in the
co-simulation.
Verify Maxwell's Solver Input and System Coupling Participant Setup Files
To verify the creation of necessary configuration files, navigate to the Maxwell coupling working
directory. The directory contains a Maxwell solver input file and a System Coupling Participant setup
file of the same name:
• ElectricMotor_2D_Transient_SystemCouplingSetup1.py
• ElectricMotor_2D_Transient_SystemCouplingSetup1.scp
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
172 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Thermal Setup
Important:
For a co-simulation with Maxwell, the fluid analysis must be set up in a stand-alone instance
of Fluent — not in an instance of Fluent in Workbench.
• Windows:
From the Start menu, select Ansys 2021 R2 > Fluent 2021 R2.
• Linux:
$ $AWP_ROOT212/fluent/bin/fluent
2. Open Fluent.
d. Click Start.
Fluent opens.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 173
Permanent Magnet Electric Motor Co-Simulation (Maxwell-Fluent)
c. Click OK.
Solution Type
Verify the solution type.
Important:
When using the same material(s) in multiple participants, take care to ensure that common
properties (for example, conductivity) are consistently defined. This consideration is often
relevant in analyses involving thermal data transfers.
a. Double-click n5211.
The Create/Edit Materials dialog opens, with Name set to n5211 (steel).
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
174 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Thermal Setup
Generate Fluent's Solver Input and System Coupling Participant Setup Files
Generate the solver input and System Coupling Participant setup files needed to include Fluent in
the co-simulation.
a. Select File > Export > System Coupling > Auto-write SCP File.
With this setting enabled, the .scp file will be generated each time a .cas.h5 file is produced
or updated for this case.
Tip:
The .scp file can also be generated on demand by selecting Export > System
Coupling > Write SCP File.
Fluent writes a .cas.h5 file and an .scp file of the specified name to the coupling
working directory.
Fluent closes.
Verify Fluent's Solver Input and System Coupling Participant Setup Files
To verify the creation of necessary configuration files, navigate to the Fluent coupling working direct-
ory. The directory contains a Fluent case file and a System Coupling Participant setup file of the same
name:
• ElectricMotorSteadyStationary.cas.h5
• ElectricMotorSteadyStationary.scp
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 175
Permanent Magnet Electric Motor Co-Simulation (Maxwell-Fluent)
1. Start System Coupling's GUI according to the platform you are using:
• Windows:
– Start Menu:
From the Start menu, select Ansys 2021 R2 > System Coupling 2021 R2.
– Command Prompt:
• Linux:
$ "$AWP_ROOT212/SystemCoupling/bin/systemcoupling" --gui
Note:
The System Coupling GUI opens. Because you are required to select a coupling working directory
before starting to populate the data model, the Select working directory dialog opens imme-
diately.
2. Navigate to the ElectricMotor co-simulation working directory, select the directory, and click
Select Folder.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
176 of ANSYS, Inc. and its subsidiaries and affiliates.
Create the Co-Simulation
The Select Folder dialog closes and the System Coupling GUI opens in the selected directory.
Note:
The Action Required ( ) messages shown on the Messages tab will be removed as the
corresponding parts of the analysis are defined. As new settings are added, additional
messages will indicate areas that must be addressed to complete a valid data model.
a. In the System Coupling GUI's Outline pane, right-click the Setup branch and select Add
Participant.
The Coupling Participant branch is added to the tree, with the Ansys Electronics Desktop
participant defined underneath it.
The Fluid Flow (Fluent) participant is added to the tree under the Ansys Electronics
Desktop participant.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 177
Permanent Magnet Electric Motor Co-Simulation (Maxwell-Fluent)
Create the Coupling Interface and Data Transfers for the Magnets
Note:
The workflow used in this tutorial — that to create an interface and add data transfers
before moving on to the creation of the next interface — is arbitrary. In the Bus Bar tutori-
al (p. 139), for instance, all interfaces are created before any data transfers are added.
Create the Coupling Interface and Data Transfer for the Rotor
1. Create the coupling interface for the rotor.
a. In the Outline pane, right-click the Setup branch and select Add Coupling Interface.
The Coupling Interface branch is added to the tree, with Coupling Interface 1 defined
below it.
b. Right-click Coupling Interface 1, select Rename, and change the name to Rotor.
Two objects representing the sides of the interface, called One and Two, are defined under
Side.
i. Select One.
iii. For Region List, select Rotor, ensuring that no other regions are selected.
i. Select Two.
iii. For Region List select rotor, ensuring that no other regions are selected.
The Data Transfer branch is added to the tree, with Data Transfer 1 defined below it.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
178 of ANSYS, Inc. and its subsidiaries and affiliates.
Create the Co-Simulation
b. Right-click Data Transfer 1, select Rename, and change the name to Rotor Losses.
This specifies the side that will receive the data transfer quantity. In this case, Fluent (side
two) will receive losses generated by Maxwell (side one).
Create the Coupling Interface and Data Transfer for the Stator
1. Create the coupling interface for the stator.
a. In the Outline pane, right-click the Coupling Interface branch and select Add.
b. Right-click Coupling Interface 2, select Rename, and change the name to Stator.
Two objects representing the sides of the interface, called One and Two, are defined under
Side.
i. Select One.
iii. For Region List, select Stator, ensuring that no other regions are selected.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 179
Permanent Magnet Electric Motor Co-Simulation (Maxwell-Fluent)
i. Select Two.
iii. For Region List, select stator, ensuring that no other regions are selected.
The Data Transfer branch is added to the tree, with Data Transfer 1 defined below it.
b. Right-click Data Transfer 1, select Rename, and change the name to Stator Losses.
This specifies the side that will receive the data transfer quantity. In this case, Fluent (side
two) will receive losses generated by Maxwell (side one).
Create the Coupling Interface and Data Transfers for the Magnets
1. Create the coupling interface for the magnets.
a. In the Outline pane, right-click the Coupling Interface branch and select Add.
b. Right-click Coupling Interface 3, select Rename, and change the name to Magnets.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
180 of ANSYS, Inc. and its subsidiaries and affiliates.
Create the Co-Simulation
Two objects representing the sides of the interface, called One and Two, are defined under
Side.
i. Select One.
iii. For Region List, select Magnet1 and Magnet2, ensuring that no other regions are se-
lected.
i. Select Two.
iii. For Region List, select magnet, ensuring that no other regions are selected.
The Data Transfer branch is added to the tree, with Data Transfer 1 defined below it.
b. Right-click Data Transfer 1, select Rename, and change the name to Magnet Losses.
This specifies the side that will receive the data transfer quantity. In this case, Fluent (side
two) will receive losses generated by Maxwell (side one).
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 181
Permanent Magnet Electric Motor Co-Simulation (Maxwell-Fluent)
b. Right-click Data Transfer 2, select Rename, and change the name to Magnet Temperatures.
This specifies the side that will receive the data transfer quantity. In this case, Maxwell (side
one) will receive temperatures generated by Fluent (side two).
Note:
These settings will override transient settings defined in the participant products.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
182 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
Background instances of both participants are started, connected to System Coupling, and executed
simultaneously.
You can monitor the solution's progress by watching System Coupling's dynamically updated output,
as follows:
• When the solve begins, Transcript output is written to the GUI's Command Console tab. For
more information, see Transcript and Log File (scLog.scl) in the System Coupling User's Guide.
• When the convergence data becomes available, it is plotted to convergence charts, which are
shown on the GUI's Chart tab. For more information, see Reviewing Convergence Diagnostics
Charting Output in the System Coupling User's Guide.
Note:
• For instructions on how to view and interpret System Coupling's results, see the Postpro-
cessing System Coupling's Co-Simulation Results (p. 15) tutorial.
• For information on working with the results of a given participant, see the participant's
product documentation.
+-----------------------------------------------------------------------------+
| MAPPING SUMMARY |
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 183
Permanent Magnet Electric Motor Co-Simulation (Maxwell-Fluent)
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
| Rotor | |
| Rotor Losses | |
| Mapped Area/Volume [%] | 100 100 |
| Mapped Elements [%] | 100 100 |
| Mapped Nodes [%] | 100 100 |
| Stator | |
| Stator Losses | |
| Mapped Area/Volume [%] | 100 100 |
| Mapped Elements [%] | 100 100 |
| Mapped Nodes [%] | 100 100 |
| Magnets | |
| Magnet Losses | |
| Mapped Area/Volume [%] | 100 100 |
| Mapped Elements [%] | 100 100 |
| Mapped Nodes [%] | 100 100 |
| Magnet Temperatures | |
| Mapped Area/Volume [%] | 100 100 |
| Mapped Elements [%] | 100 100 |
| Mapped Nodes [%] | 100 100 |
+-----------------------------------------------------------------------------+
Note:
If you wish to verify, you can open the results in EnSight and review the mapping for each
data transfer. For instructions on how to assess mapping between coupling interfaces, see
the Postprocessing System Coupling's Co-Simulation Results (p. 15) tutorial.
Tip:
For instructions on these steps, as well as general information on results files and
EnSight's user interface, see Preparing to Visualize Results in EnSight (p. 18) in the
Postprocessing System Coupling's Co-Simulation Results tutorial.
Note that the participants have different data locations, so you will use different variables for each
when visualizing results in EnSight:
• Maxwell's data is on elements, so you will use elemental variables. Also, the data is on element
centroids (rather than element nodes).
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
184 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
+=============================================================================+
| COUPLING STEP = 1 |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 4 |
+-----------------------------------------------------------------------------+
| ANSYS Electronics Desktop | |
| Interface: Magnets | |
| Magnet Temperatures | Converged |
| RMS Change | 1.15E-05 1.15E-05 |
| Weighted Average | 6.58E+02 6.58E+02 |
+-----------------------------------------------------------------------------+
• For Maxwell (elements), drop Temperature__ES on Maxwell's Magnet 1 and Magnet 2 regions.
The target (surface) mesh is obtained by averaging the source (volume) mesh. This may cause a dif-
ference in the ranges if there are spatially varying temperature values in the source mesh along the
normal direction of the target mesh.
For consistency, adjust the palette ranges as shown in the image below.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 185
Permanent Magnet Electric Motor Co-Simulation (Maxwell-Fluent)
Figure 66: Source-side and target-side temperatures shown at Coupling Step 1, Iteration 4
Figure 67: Temperatures in rotated view with rotor and stator hidden to show magnets
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
186 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
+=============================================================================+
| COUPLING STEP = 1 |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 4 |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| Fluid Flow (Fluent) | |
| Interface: Rotor | |
| Rotor Losses | Converged |
| RMS Change | 4.94E-04 9.39E-05 |
| Sum | 5.14E+00 5.14E+00 |
| Interface: Stator | |
| Stator Losses | Converged |
| RMS Change | 3.79E-09 1.70E-09 |
| Sum | 8.19E+01 8.19E+01 |
| Interface: Magnets | |
| Magnet Losses | Converged |
| RMS Change | 1.00E-14 1.00E-14 |
| Sum | 7.21E-01 7.21E-01 |
+-----------------------------------------------------------------------------+
• For Fluent (nodes), drop heatrate_per_unit_volume__ES on Fluent's rotor and stator re-
gions.
• For Maxwell (elements), drop Loss_per_unit_area onMaxwells Rotor and Stator regions.
In this case, note that you will not adjust the palette ranges because the models have different
topologies.System Coupling writes a per-unit-volume variable for 3D models and a per-unit-area
variable for 2D models, and a consistent palette range would result in poor loss plots for both
models. It is preferable to create a per-unit-volume variable for Maxwell, as described in the following
section.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 187
Permanent Magnet Electric Motor Co-Simulation (Maxwell-Fluent)
(For the sake of consistency, this tutorial is following System Coupling's naming conventions
for EnSight variables.)
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
188 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
The Loss_per_unit_volume__ES variable is created and shown under Scalars in the Variables
pane.
From the Variables pane, drag the Loss_per_unit_volume__ES variable and drop it on Maxwell's
Stator and Rotor regions.
Adjust Fluent's palette range so it matches Maxwell's, as shown in the image below. Note that a
slight variation in results is expected because of differences in the handling of 2D and 3D models.
Figure 70: Source-side and target-side losses per-unit-volume at Coupling Step 1, Iteration
4
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 189
Permanent Magnet Electric Motor Co-Simulation (Maxwell-Fluent)
For example, when you run the rotating tutorial, note that the Temperature plot on the fluid1 zone
exhibits the expected circumferential averaging along the path of rotation. It is worth noting, however,
that the overall co-simulation results are barely affected by this change, due to the presence of a constant
high energy source (and resulting high Temperature values) on the stator.
The ElectricMotorSteadyRotating directory of the tutorial input package contains a Fluent case file
with the pre-coupling setup for the rotating version of the electric motor tutorial. To run this version
of the tutorial:
2. Load the case in Fluent as described in Load the Fluent Case (p. 173).
3. Generate a new .scp file, as described in Generate Fluent's Solver Input and System Coupling
Participant Setup Files (p. 175).
4. Run the tutorial as before, but use the new .scp file when you add the Fluent participant (p. 177)
to the co-simulation.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
190 of ANSYS, Inc. and its subsidiaries and affiliates.
Reed Valve FSI Co-Simulation in Workbench
(Fluent-Mechanical)
This two-way fluid-structural interaction (FSI) tutorial is based on a transient reed valve co-simulation
with two-way data transfers. Mechanical performs a transient-structural analysis and Fluent performs a
transient fluid-flow analysis, while System Coupling coordinates the simultaneous execution of their
solvers and the data transfers between their coupled surface regions.
This tutorial uses a Workbench workflow, with both the setup and the solution performed in Workbench.
The following sections walk you through the tutorial and provide a summary of results:
Problem Description: Reed Valve Case
Steps of the Co-Simulation
Download the Tutorial Input Files
Open the Project in Workbench
Complete the Structural Setup
Complete the Fluid Setup
Create the Co-Simulation
Solve the Co-Simulation
Postprocess Co-Simulation Results
The case includes a stainless steel reed valve that is anchored to the valve housing, and a suction
stopper at the free end of the reed. The modeled case includes a symmetry condition near the free end
of the reed, and inlet and outlet conditions that drive air flow through the valve. Although the inlet
pressure follows a sinusoidal variation with a period of 0.02 [s], the simulation includes only the first
half of the period, during which the inlet pressure is positive and drives flow through the valve.
This case is set up as a Fluid-Structure Interaction (FSI) co-simulation with two-way data transfers, as
follows:
• The motion of the reed valve is modeled using a Mechanical Transient Structural analysis system.
• The motion of the air in the closed cavity is modelled using a transient Fluid Flow (Fluent)
analysis system.
• A coupling interface, which is where data is transferred between the two solvers, is defined on
the three faces of the reed valve that are in contact with the air.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 191
Reed Valve FSI Co-Simulation in Workbench (Fluent-Mechanical)
The two analyses are connected to a System Coupling component system and then solved at the same
time (co-simulation), with System Coupling coordinating the solution process and the data transfers
between the coupling participants.
Data Transfers
• Force: Force data from the motion of the air are received by the transient structural analysis,
which models the structural behavior over time.
• Incremental Displacement: Displacement data from the motion of the reed valve are received
by the fluid-flow analysis as it solves the fluid behavior over time.
Transient Settings
The oscillation of the valve is dependent on time, so appropriate time values have been specified
for the transient co-simulation:
• End Time is the total time observed for the analysis. The time duration is set to 0.01 s, which
is enough time to observe the reed valve open and close once.
When setting up a transient analysis, make sure that you choose a time duration that will
allow you to observe the behavior of interest in the system.
• Time Step Size is the length of the time increments that you are solving within the transient
analysis. The time step is set to 0.0001 s, which is fine enough to resolve the high speed
flow through the valve opening.
When setting up a transient analysis, make sure you choose a time step that works for the
physics you are solving. Too large a time step will miss the behavior of the system, and too
small a time step will be computationally expensive.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
192 of ANSYS, Inc. and its subsidiaries and affiliates.
Open the Project in Workbench
The extracted ReedValve directory will serve as the working directory for your project. It contains
ReedValve.wbpz, an archived Workbench project file that contains the pre-coupling Mechanical and
Fluent physics setups.
• Windows:
From the Start menu, select Ansys 2021 R2 > Workbench 2021 R2.
• Linux:
$ $AWP_ROOT212/Framework/bin/Linux64/runwb2
Workbench opens.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 193
Reed Valve FSI Co-Simulation in Workbench (Fluent-Mechanical)
On the Project Schematic, note that there is a Geometry component system which provides the geo-
metry for the Fluid Flow (Fluent) and Transient Structural analysis systems. The participant physics
in the analysis systems are set up only so far as to allow their individual solutions. As part of this tutorial,
you will complete each participant's coupling setup to enable its inclusion in the coupled FSI analysis.
The icon to the right of a system's cells indicates the current state of the cell. In the current Project
Schematic, note the following cells states:
• Attention Required ( ) indicates that you must finish setting up the cell before continuing.
• Unfulfilled ( ) indicates that required upstream data does not exist, so you must complete the
setup for one or more upstream cells.
As you set up the cells, data are transferred from top-to-bottom. For a description of different cell states,
see Understanding Cell States in the Workbench User's Guide.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
194 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Structural Setup
Verify the following structural settings, which are relevant to the co-simulation:
Solid Bodies
Contacts
Structural Loads
Solid Bodies
Verify the solid bodies and their materials.
There are three bodies, but here you are interested only in the two unsuppressed solid bodies:
• FEA\Valve: This is the reed valve, which opens and closes with positive and negative air
flow, respectively.
• FEA\Stopper: This is the stopper, which mimics the wall of the domain onto which the valve
would settle, providing a physical representation of where the valve stops.
b. In the Details pane under Material, confirm the Assignment value is set to Stainless
Steel.
Contacts
Mechanical contacts keep bodies at a specified distance from one another. In this case, the stopper
and contact prevent the valve from swinging into the mesh wall with the negative pressure.
Verify that a contact has been defined between the valve and faces.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 195
Reed Valve FSI Co-Simulation in Workbench (Fluent-Mechanical)
Note that a frictionless contact (Frictionless – FEA\Value To FEA\Stopper) has been defined.
• Contact Bodies are defined on the Valve geometry, with Contact scoped to the high-y
face, just above the stopper.
This setting specifies the faces on the moving body that will be in contact with other faces.
• Target Bodies are defined on the Stopper geometry, with Target scoped to the low-y face
of the stopper.
This setting specifies the faces to be the target for the contact bodies.
4. Under Geometric Modification, verify that the Offset property is set to 2.83e-004 m.
This setting specifies the contact tolerance, or the minimum distance to be maintained between
the faces of the moving bodies. This will prevent the valve from interpenetrating the stopper.
Structural Loads
Loads applied to the structural analysis are equivalent to the boundary conditions in a fluid analysis.
For this analysis, a fixed support is needed to hold the bottom of the reed valve in place.
Verify that each of these supports has been defined for the co-simulation.
In the Geometry pane, note that the fixed support is defined on the top right corner of
the Valve body, opposite to the end near the stopper.
In the Geometry pane, note that the fixed support is defined on the low-x face of the
Stopper body.
In the Geometry pane, note that the frictionless support is defined on the sides of the
Valve body.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
196 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Fluid Setup
Create this interface on regions in the structural model that will receive force data from the fluid
analysis via System Coupling.
1. In the Outline, right-click Transient and select Insert > System Coupling Region.
b. Multi-select the five faces of the geometry that form the interface between the structural
model and the fluid model:
Note:
The Geometry setting updates to 5 Faces, indicating the selected faces are included on the in-
terface
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 197
Reed Valve FSI Co-Simulation in Workbench (Fluent-Mechanical)
Verify the following fluid settings, which are relevant to the co-simulation:
Materials
Boundary Conditions
Dynamic Mesh
Materials
Verify the material of the working fluid.
2. Double-click air.
The Create / Edit Materials dialog opens, with Name set to air.
This setting specifies that the air is incompressible (that is, it has a constant density.)
Boundary Conditions
Verify the boundary conditions.
The Boundary Conditions Task Page opens, with eight boundary conditions in the zones list.
b. On the Momentum tab, verify that Gauge Total Pressure is set to the following expression:
10 [kPa] * sin(2.*PI*t/0.02[s])
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
198 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Fluid Setup
This value limits the input pressure and indicates that the pressure is a function of time.
Tip:
To view the sinusoidal wave of the valve pressure, open the Expression
Editor ( ), enter 0.01 (the simulation end time) for the Max setting,
b. On the Momentum tab, verify that Gauge Pressure is set to the default of 0 [Pa].
Dynamic Mesh
Dynamic mesh is required to allow Fluent to receive the mesh displacement data sent by Mechan-
ical.
a. Verify that the Smoothing and Remeshing check boxes are both selected.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 199
Reed Valve FSI Co-Simulation in Workbench (Fluent-Mechanical)
d. Click Cancel to exit the dialog and return to the Mesh Method Settings dialog.
e. Verify that the length scales are set to the following values:
Note:
f. Click Close and then Cancel to exit the dialogs and return to the Dynamic Mesh Task
Page.
7. On the Options dialog's Contact Detection tab, verify the following settings:
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
200 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Fluid Setup
a. Under Face Zones, the fsi and stopper zones are selected.
This indicates that a contact has been set up between these faces.
This indicates the point at which the contact detection process is enabled and flow control
is applied. When the distance between the faces falls below this value, flow is blocked in
the contact region.
b. Click Cancel and Cancel again to close the dialogs and return to the Dynamic Mesh Task
Page.
10. On the Dynamic Mesh Zones dialog, verify the coupling interface settings:
c. For each, verify the following settings on the Meshing Options tab:
i. Remeshing is enabled
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 201
Reed Valve FSI Co-Simulation in Workbench (Fluent-Mechanical)
These settings cause the solver to use the global dynamic mesh settings configured pre-
viously.
Configure this zone to receive motion data from the structural analysis via System Coupling.
1. From the Toolbox, drag a System Coupling component system and drop it on the Project
Schematic to the right of the participant systems.
2. For both the Fluid Flow (Fluent) and Transient Structural systems, drag the Setup cell (B4 and
C5, respectively) and drop it onto the Setup cell of the System Coupling system (D2).
These connections allow System Coupling to manage the participant solutions and the exchange
of data between them.
Figure#: P
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
202 of ANSYS, Inc. and its subsidiaries and affiliates.
Create the Co-Simulation
Figure 74: Project Schematic with System Coupling system and connections
Note that Fluent system's Setup cell changed from an Up-to-Date ( ) state to Attention Required
( ) when it was connected to System Coupling. This is because the participant systems are now part
of the co-simulation, so their setups are dependent on the completion of System Coupling's setup.
All cells downstream of the Setup cells are in either an Unfulfilled ( ) or an Attention Required ( )
state, indicating that you need to take corrective action for the cell and/or cells upstream of it.
1. On the Project Schematic, double-click the System Coupling system's Setup cell.
The System Coupling tab opens, populated with the participant data needed for the co-simulation.
Under the Outline of Schematic, a tree structure representing the co-simulation has a branch for
each part of analysis. Attention Required ( ) icons indicate the branches where setup is incomplete.
When you click on a branch, corresponding settings are shown below in the Properties pane.
1. In the Outline of Schematic under Setup, click the Analysis Settings branch.
Corresponding settings are shown below, with fields requiring attention highlighted in yellow.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 203
Reed Valve FSI Co-Simulation in Workbench (Fluent-Mechanical)
This duration provides enough time to show the valve going through a full open-close cycle.
This time step size is small enough to detail the valve plate's oscillations to a reasonable
degree.
Increasing the allowable number of interactions per coupling step helps to ensure that full
convergence is reached in each step.
Note:
These settings will override transient settings defined in the participant products.
1. Multi-select the participant regions (by holding down the Ctrl key).
2. With both regions still selected, right-click one of the regions and select Create Data Transfer.
Two data transfers, Data Transfer and Data Transfer 1 are added under the Data Transfers
branch.
3. Click each data transfer and review its settings in the Properties pane.
Note the participant source variable, target variable, and data transfer controls for each.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
204 of ANSYS, Inc. and its subsidiaries and affiliates.
Solve the Co-Simulation
Figure 75: Properties of the Force and Incremental Displacement data transfers
Restart points will now be generated for every coupling step. Although a restart is not included
in this tutorial, this setting allows you to restart the co-simulation at any coupling step.
To begin the solve, right-click the Solution branch and select Update. Background instances of Mech-
anical and Fluent are started, connected to System Coupling, and executed simultaneously.
During the solution process, the System Coupling system coordinates the solving of the Fluid Flow
(Fluent) and Transient Structural systems and the transfer of transfers between them. The fluid system
solves using the structural solution's displacement data, and the structural system solves using the fluid
solution's force data.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 205
Reed Valve FSI Co-Simulation in Workbench (Fluent-Mechanical)
The co-simulation will run for 100 coupling steps because you set System Coupling's End Time to 0.01
[s] and Step Size to 0.0001 [s]. (These are analogous to Time Duration and Time Step in Mechanical,
and Time Step Size and Number of Time Steps in Fluent.)
You can monitor the solution's progress by watching System Coupling's dynamically updated output,
as follows:
Solution Information:
• When the solve begins, System Coupling's Transcript output is written to the Solution Information
pane and is shown by default. For more information, see Viewing Transcript Output and Transcript
and Log File (scLog.scl) in the System Coupling User's Guide.
• You may also monitor the output generated by Mechanical and Fluent. To do so, expand the
Outline of Schematic | Solution | Solution Information branch and click the name of the ana-
lysis system.
Chart Monitor:
• As co-simulation data becomes available, it is plotted to System Coupling's Chart Monitor tab.
Defined charts are shown under the Solution | Chart Monitors branch.
• You can control the display of the selected chart using the corresponding settings in the Properties
pane. For more information, see Viewing System Coupling Charts in the System Coupling User's
Guide.
Progress Bar
• To view the solution's progress, click the Show Progress button at the bottom of the Workbench
window.
Messages Pane
• To view the messages generated for the solution, click the Show Messages button at the bottom
of the Workbench window.
When the solution is complete, select File > Save to save the results.
Note:
• For instructions on how to view and interpret System Coupling's results, see the Postpro-
cessing System Coupling's Co-Simulation Results (p. 15) tutorial.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
206 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess Co-Simulation Results
• For information on working with the results of a given participant, see the participant's
product documentation.
Tip:
For cases run with System Coupling in Workbench, the co-simulation transcript is
written to the scLog.scl file in System Coupling's working directory,
\\dp0\SC\SC\SyC.
Review the Mapping Summary, which was generated at analysis initialization. The mapping diagnostics
indicate that all target and source nodes were successfully mapped for both data transfers.
+-----------------------------------------------------------------------------+
| MAPPING SUMMARY |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
| interface-1 | |
| Data Transfer | |
| Mapped Area [%] | 100 100 |
| Mapped Elements [%] | 100 100 |
| Mapped Nodes [%] | 100 100 |
| Data Transfer 2 | |
| Mapped Area [%] | 100 100 |
| Mapped Elements [%] | 100 100 |
| Mapped Nodes [%] | 100 100 |
+-----------------------------------------------------------------------------+
Note:
If you wish to verify, you can review the mapping for each data transfer when you open
System Coupling's results in EnSight. For instructions on how to assess mapping between
coupling interfaces, see the Postprocessing System Coupling's Co-Simulation Results (p. 15)
tutorial.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 207
Reed Valve FSI Co-Simulation in Workbench (Fluent-Mechanical)
1. From the Start menu, select Ansys 2021 R2 > EnSight 2021 R2.
4. For the Look in field, navigate to System Coupling's results folder, ReedValve\Reed-
Valve_files\dp0\SC\SC\SyC\Results.
5. In the box showing the Results folder contents, multi-select the Results_0.case and
Results_1.case files.
The file path for each case file is added to the EnSight Case Files box.
Set up the Graphics Window and viewports as described in Setting Up the EnSight Interface (p. 22)
in the Postprocessing System Coupling's Co-Simulation Results tutorial.
Tip:
For instructions on these steps, as well as general information on results files and
EnSight's user interface, see Preparing to Visualize Results in EnSight (p. 18) in
thePostprocessing System Coupling's Co-Simulation Results tutorial.
Note that both participants have the same data location (nodes) for displacement and force data,
so you will use nodal variables when visualizing results in EnSight.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
208 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess Co-Simulation Results
Tip:
For cases run using System Coupling in Workbench, you can review the Transcript's
Coupling Interfaces section to determine the quantity associated with each data
transfer. For this tutorial, Data Transfer and Data Transfer 2 are the Force and
Incremental Displacement transfers, respectively.
+=============================================================================+
| COUPLING STEP = 100 SIMULATION TIME = 1.00000E-02 [s] |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 3 |
+-----------------------------------------------------------------------------+
| Fluid Flow (Fluent) | |
| Interface: interface-1 | |
| Data Transfer 2 | Converged |
| RMS Change | 1.46E-04 1.45E-04 |
| Weighted Average x | -3.73E-06 -3.73E-06 |
| Weighted Average y | -3.73E-06 -3.73E-06 |
| Weighted Average z | 8.40E-22 2.04E-28 |
+-----------------------------------------------------------------------------+
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 209
Reed Valve FSI Co-Simulation in Workbench (Fluent-Mechanical)
The animation shows the incremental displacements on the target side of the reed valve body
for each time step of the co-simulation. The interactive probe serves as the reference point for
the motion of the valve.
The animation shows the total displacement on the target side of the reed valve body over the
duration of the co-simulation.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
210 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess Co-Simulation Results
+=============================================================================+
| COUPLING STEP = 100 SIMULATION TIME = 1.00000E-02 [s] |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 211
Reed Valve FSI Co-Simulation in Workbench (Fluent-Mechanical)
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 3 |
+-----------------------------------------------------------------------------+
| Transient Structural | |
| Interface: interface-1 | |
| Data Transfer | Converged |
| RMS Change | 3.51E-03 3.87E-03 |
| Sum x | -4.38E-03 -4.38E-03 |
| Sum y | -4.35E-03 -4.35E-03 |
| Sum z | 1.21E-13 1.21E-13 |
+-----------------------------------------------------------------------------+
The animation shows how the motion of the air applies forces per-unit-area to the Mechanical's
structural region, with the arrows showing the vector of the forces applied to the reed valve
body. The interactive probe serves as the reference point for the motion of the valve.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
212 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess Co-Simulation Results
When you animate the results, it shows how the applied force deforms the reed value over the
duration of the co-simulation.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 213
Reed Valve FSI Co-Simulation in Workbench (Fluent-Mechanical)
Figure 82: Animation of Total Nodal Displacement and Force Per-Unit-Area with force vectors
Click OK.
In the box showing the Fluent folder contents, select the first case file, FFF.1-1-0000.cas.h5.
The file paths for the case file and corresponding data file are populated to the Data tab's "Set"
fields.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
214 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess Co-Simulation Results
Edit both file names, replacing the step number with a wild card, as follows:
\ReedValve_files\dp0\FFF\Fluent\FFF.1-1-*.cas.h5
\ReedValve_files\dp0\FFF\Fluent\FFF.1-1-*.dat.h5
Figure XXX shows the static pressure around the valve and how as the inlet static pressure increases,
the valve starts to open and closes as the pressure decreases.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 215
Reed Valve FSI Co-Simulation in Workbench (Fluent-Mechanical)
Figure XXX shows the fluid velocity around the valve. Similar to the static pressure, the valve opens
and closes as the velocity increases and decreases (due to the inlet condition).
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
216 of ANSYS, Inc. and its subsidiaries and affiliates.
Oscillating Plate FSI Co-Simulation with Partial Setup
Export from Workbench (CFX-Mechanical)
This two way fluid-structural interaction (FSI) tutorial is based on transient oscillating plate co-simulation
with two-way 2D data transfers. Mechanical performs a transient-structural analysis and CFX performs a
transient fluid-flow analysis, while System Coupling coordinates the simultaneous execution of their
solvers and the data transfers between their coupled surface regions.
The tutorial workflow begins in Workbench and finishes in the System Coupling GUI, as follows:
1. Complete a partial setup (participant setups) in Workbench and then export the setup.
2. Open the exported setup in the System Coupling GUI for setup completion and execution.
The following sections walk you through the steps of co-simulation setup, execution, and postprocessing:
Problem Description: Oscillating Plate Case
Steps of the Co-Simulation
Download the Tutorial Input Files
Begin the Coupling Setup in Workbench
Complete the Co-Simulation Setup in System Coupling's GUI
Solve the Co-Simulation in System Coupling's GUI
Postprocess System Coupling's Results
A thin plate is anchored to the bottom of a closed cavity filled with fluid (air), shown below. There is
no friction between the plate and the side of the cavity. An initial pressure of 100 Pa is applied to one
side of the thin plate for 0.5 s to distort it. Once this pressure is released, the plate oscillates back and
forth to regain its equilibrium, and the surrounding air damps this oscillation. You will simulate the
plate and surrounding air for a few oscillations to be able to observe the motion of the plate as it is
damped.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 217
Oscillating Plate FSI Co-Simulation with Partial Setup Export from Workbench (CFX-
Mechanical)
The case is set up as a two-way FSI co-simulation. It models the motion of the oscillating plate using a
Mechanical Transient Structural analysis and the motion of the fluid in the closed cavity using a Fluid
Flow (CFX) analysis. The two analyses are coupled and then solved at the same time (co-simulation),
with Maxwell coordinating the solution process and the data transfers between the two participants.
Data Transfers
• Force: Force data from the motion of the air are received by the transient structural analysis,
which models the structural behavior over time.
• Displacement: Displacement data from the motion of the reed valve plate are received by the
fluid-flow analysis as it solves the fluid behavior over time.
Transient Settings
The oscillation of the plate is dependent on time, so appropriate time values have been specified
for the coupled transient analysis:
• End Time: This is the total time observed for the analysis. The time duration is set to 10 s, which
is enough time to observe the plate of the reed valve oscillating a few times.
With this time duration, the analysis does not model the full damping back to the plate's equilib-
rium. When setting up a transient analysis, make sure that you choose a time duration that will
allow you to observe the behavior of interest in the system.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
218 of ANSYS, Inc. and its subsidiaries and affiliates.
Begin the Coupling Setup in Workbench
• Time Step Size is the length of the time increments that you are solving within the transient
analysis. The time step is set to 0.1 s, which is fine enough to observe the oscillations to a reas-
onable degree.
When setting up a transient analysis, make sure you choose a time step that works for the physics
you are solving. Too large a time step will miss behavior of the system, and too small a time step
will be computationally expensive.
The extracted OscillatingPlateExport directory will serve as System Coupling's co-simulation working
directory. It contains the following input:
OscPlateExport.wbpz
This is a Workbench project archive containing the pre-coupling Mechanical and CFX physics setups.
Participant physics are set up only so far as to allow their individual solutions. As part of the tutorial,
you will complete each participant's coupling setup to enable its inclusion in the coupled FSI ana-
lysis.
Upon export, System Coupling writes all coupling-related output to this directory, as follows:
• When a coupling setup is exported from Workbench, it generates all the folders and files needed
to run the co-simulation in the System Coupling GUI.
• When the co-simulation is executed, it creates a SyC in the coupling working directory for its
coupling-related output.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 219
Oscillating Plate FSI Co-Simulation with Partial Setup Export from Workbench (CFX-
Mechanical)
• Windows:
From the Start menu, select Ansys 2021 R2 > Workbench 2021 R2.
• Linux:
Open a command-line interface and enter the path to runwb2. For example:
$ $AWP_ROOT212/Framework/bin/Linux64/runwb2
Workbench opens.
On the Project Schematic, note that the Mechanical, CFX, and System Coupling systems are all
present and that the participant systems' Setup cells have already been connected to the System
Coupling system's Setup cell.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
220 of ANSYS, Inc. and its subsidiaries and affiliates.
Begin the Coupling Setup in Workbench
Define this interface on regions in the structural model that will receive force data from the Fluid
Flow (CFX) system.
On the Project Schematic, double-click the Transient Structural system's Setup cell.
In the Outline, right-click Transient and select Insert > System Coupling Region.
b. Multi-select the three faces of the geometry that form the interface between the structural
model and the fluid model (low-x, high-y and high-x faces).
5. Apply the interface to the geometric face. In Details of "System Coupling Region" next to
Geometry, click Apply.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 221
Oscillating Plate FSI Co-Simulation with Partial Setup Export from Workbench (CFX-
Mechanical)
The Geometry setting updates to 3 Faces, indicating the selected faces are included on the in-
terface.
Select File > Save Project and then File > Close Mechanical.
On the Project Schematic, right-click the Transient Structural system's Setup cell and select
Update.
Define this interface on the regions in the fluid-flow model that will receive displacement data from
the Transient Structural analysis.
On the Project Schematic, double-click the Fluid Flow (CFX) system's Setup cell.
c. Click OK.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
222 of ANSYS, Inc. and its subsidiaries and affiliates.
Begin the Coupling Setup in Workbench
5. On the Boundary Details tab under Mesh Motion, set Option to System Coupling.
Select File > Save Project and then File > Close CFX-Pre.
• The Setup cell for both the Transient Structural and the Fluid-Flow (CFX) systems should be in
an Up-to-Date ( ) state.
• The Setup cell for the System Coupling system should be in an Attention Required ( ) state. (If
it is in a Refresh Required state, right-click the cell and select Refresh.)
Note:
This tutorial focuses on exporting a partial setup. To export a full setup, you would finish
the co-simulation setup in Workbench, not performing the export until the System
Coupling system is also in an Up-to-Date ( ) state.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 223
Oscillating Plate FSI Co-Simulation with Partial Setup Export from Workbench (CFX-
Mechanical)
in System Coupling's user interfaces) are available for the co-simulation. For details, see System
Coupling Capabilities by Context in the System Coupling User's Guide.
1. Right-click the System Coupling system's Setup cell and select Export System Coupling Setup.
This directory is now designated as System Coupling's working directory. The export operation
copies all necessary co-simulation folders and files to this directory.
4. Exit Workbench.
1. From the Windows Start menu, select Ansys 2021 R2 > System Coupling 2021 R2.
The GUI opens in the working directory and the exported setup is loaded. Note that coupling
participant setup information was populated to the data model upon export, so each participant
is already listed under the Coupling Participant branch.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
224 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Co-Simulation Setup in System Coupling's GUI
On the Messages tab, note that there are four Action Required ( ) icons, indicating that setup is
still required for these items. Because the setup was only partially completed in Workbench, the data
model is populated only with coupling participant information.
Click any message to navigate to the referenced area in the Setup branch.
The Coupling Interface branch is added to the tree, with Coupling Interface 1 defined beneath
it. Under Coupling Interface 1 | Side, there are two objects, called One and Two, which represent
the sides of the interface.
Note:
a. Click One.
c. For the Region List setting, select wall_deforming , ensuring that no other regions are se-
lected.
a. Click Two.
b. For the Coupling Participant setting, verify that MAPDL Transient is selected.
c. For the Region List setting, verify that FSIN_1_System Coupling Region is selected, ensuring
that no other regions are selected.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 225
Oscillating Plate FSI Co-Simulation with Partial Setup Export from Workbench (CFX-
Mechanical)
The Data Transfer branch is added to the tree, with Data Transfer 1 defined beneath it.
Corresponding settings are shown below in the Properties pane.
This specifies the target side of the interface. In this case, CFX (side one) will receive incre-
mental displacements generated by Mechanical (side two).
The Data Transfer 2 branch is added to the tree. Corresponding settings are shown below
in the Properties pane.
This specifies the target side of the interface. In this case, Mechanical (side two) will receive
forces generated by CFX (side one).
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
226 of ANSYS, Inc. and its subsidiaries and affiliates.
Complete the Co-Simulation Setup in System Coupling's GUI
In the Setup branch, the Solution Control branch is highlighted. Corresponding settings are
shown below in the Properties pane.
The end time is the same as the Transient Structural system's time duration. The choice of 10
s gives enough time to observe the plate oscillating a few times.
3. For the Time Step Size setting, enter a value of 0.1 [s].
The coupling iteration size is same as the transient analysis' time step, and the choice of 0.1 s is
small enough to observe the plate's oscillations to a reasonable degree.
For this analysis to converge, five coupling iterations within each coupling step is sufficient. If a
system has trouble converging within the coupling step, you may want to increase the number
of maximum iterations or reduce the time step size.
On the Messages tab, note that there is one Action Optional ( ) message regarding restart output.
The frequency with which restart points and results files are generated is determined by the Output
Control settings.
With this setting, restart points will be generated only for the last step, at the end of the analysis.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 227
Oscillating Plate FSI Co-Simulation with Partial Setup Export from Workbench (CFX-
Mechanical)
With the default Program Controlled option, System Coupling writes EnSight-compatible results
files at the same frequency as restart files. With the changed option, results files will now be
written for every coupling step. These files will allow you to generate an animation later, when
you postprocess results in EnSight.
With this setting, EnSight-compatible results files will be written for every coupling step. These
files will allow you to generate an animation later, when you postprocess results in EnSight.
Background instances of both participants are started, connected to System Coupling, and execute their
solutions simultaneously.
You can monitor the solution's progress by watching System Coupling's dynamically updated output,
as follows:
• When the solve begins, Transcript output is written to the GUI's Command Console tab. For more
information, see Transcript and Log File in the System Coupling User's Guide.
• When the convergence data becomes available, it is plotted to convergence charts, which are shown
on the GUI's Chart tab. For more information, see Reviewing Convergence Diagnostics Charting
Output in the System Coupling User's Guide.
Note:
• For instructions on how to view and interpret System Coupling's results, see the Postpro-
cessing System Coupling's Co-Simulation Results (p. 15) tutorial.
• For information on working with the results of a given participant, see the participant's
product documentation.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
228 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
+-----------------------------------------------------------------------------+
| MAPPING SUMMARY |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
| CouplingInterface 1 | |
| Displacement | |
| Mapped Area [%] | 100 100 |
| Mapped Elements [%] | 100 100 |
| Mapped Nodes [%] | 100 100 |
| Force | |
| Mapped Area [%] | 100 100 |
| Mapped Elements [%] | 100 100 |
| Mapped Nodes [%] | 100 100 |
+-----------------------------------------------------------------------------+
Note:
If you wish to verify, you can open the results in EnSight and review the mapping for each
data transfer. For instructions on how to assess mapping between coupling interfaces, see
the Postprocessing System Coupling's Co-Simulation Results (p. 15) tutorial.
Tip:
For instructions on these steps, as well as general information on results files and
EnSight's user interface, see Preparing to Visualize Results in EnSight (p. 18) in the
Postprocessing System Coupling's Co-Simulation Results tutorial.
Note that both participants have the same data location (nodes) for Displacement and Force data,
so you will use nodal variables when visualizing results in EnSight.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 229
Oscillating Plate FSI Co-Simulation with Partial Setup Export from Workbench (CFX-
Mechanical)
Figure 89: Displacement reported in the Transcript at Coupling Step 100, Iteration 5
+=============================================================================+
| COUPLING STEP = 100 SIMULATION TIME = 1.00000E+01 [s] |
+-----------------------------------------------------------------------------+
| | Source Target |
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 5 |
...
+-----------------------------------------------------------------------------+
| CFX | |
| Interface: CouplingInterface 1 | |
| Displacement | Converged |
| RMS Change | 1.25E-06 1.22E-06 |
| Weighted Average x | -1.36E-02 -1.36E-02 |
| Weighted Average y | -3.34E-04 -3.32E-04 |
| Weighted Average z | -3.40E-11 -3.47E-11 |
+-----------------------------------------------------------------------------+
The animation shows the incremental displacements on the target side of the reed valve body for
each time step of the co-simulation. The interactive probe serves as the reference point for the motion
of the valve.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
230 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
The animation shows the total displacement on the target side of the plate over the duration of the
co-simulation.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 231
Oscillating Plate FSI Co-Simulation with Partial Setup Export from Workbench (CFX-
Mechanical)
Figure 92: Force reported in the Transcript at Coupling Step 100, Iteration 5
+=============================================================================+
| COUPLING STEP = 100 SIMULATION TIME = 1.00000E+01 [s] |
+-----------------------------------------------------------------------------+
| | Source Target |
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
232 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocess System Coupling's Results
+-----------------------------------------------------------------------------+
...
+-----------------------------------------------------------------------------+
| COUPLING ITERATION = 5 |
+-----------------------------------------------------------------------------+
| MAPDL Transient | |
| Interface: CouplingInterface 1 | |
| Force | Not yet converged |
| RMS Change | 2.53E-03 1.79E-03 |
| Sum x | 2.16E-01 2.16E-01 |
| Sum y | 1.78E-02 1.78E-02 |
| Sum z | 8.58E-07 8.58E-07 |
+-----------------------------------------------------------------------------+
The animation shows how the motion of the fluid applies forces per-unit-area on the structural side
of the plate over the duration of the co-simulation, with the arrows showing the vector of applied
forces.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 233
Oscillating Plate FSI Co-Simulation with Partial Setup Export from Workbench (CFX-
Mechanical)
When you animate the results, it shows how the applied force deforms the plate over the duration
of the co-simulation.
Figure 94: Animation of displacement and force per-unit-area with force vectors on the target
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
234 of ANSYS, Inc. and its subsidiaries and affiliates.
Additional System Coupling Tutorials
In addition to the System Coupling tutorials published here, there are several additional coupling-related
tutorials published elsewhere in the Ansys documentation. Available tutorials are described in the table
below.
Tutorial Description
System Coupling Participant Library tutorial, available in the
release-specific documentation under Multiphysics on the Ansys API
Documentation site.
Heat Transfer in
Square Channel Air Command-line tutorial demonstrating the use of Participant Library
Flow Tutorial APIs to create a simple test solver and use it in a steady analysis within
the System Coupling co-simulation infrastructure. Simulates the flow
of air through a rectangular cross-sectioned channel, using the test
solver and the Ansys Fluent solver as participants.
System Coupling Participant Library tutorial, available in the
release-specific documentation under Multiphysics on the Ansys API
Documentation site.
Oscillating Plate
Damping Tutorial Command-line tutorial demonstrating the implementation of Participant
Library APIs in a transient coupled analysis. The case simulates the
damping of an oscillating plate FSI analysis with two-way data transfers
between a simple test solver and a Mechanical solver.
System Coupling Participant Library tutorial, available in the
release-specific documentation under Multiphysics on the Ansys API
Documentation site.
Pipe Mapping
Tutorial Command-line tutorial demonstrating the use of Participant Library
API mapping capabilities to transfer data across a non-conformal mesh
interface.
Command-line coupled analysis tutorial demonstrating System
Coupling's FMU beta functionality. Located in the "Functional Mock-Up
Tutorial: Convection Unit (FMU) Co-Simulation Participants" section of the System Coupling
Heating of Tank Fluid Beta Features documentation.
Using Fluent, an
FMU, and Transient coupled simulation of convection heating of the fluid in a
Command-Line cylindrical tank. Command-line System Coupling manages the transfer
System Coupling of thermal data between the Ansys Fluent participant's fluid-thermal
volumetric region and the FMU participant's thermal region of
undefined topology.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 235
Additional System Coupling Tutorials
Tutorial Description
Forte tutorial, located in the Forte Tutorials.
System Coupling CHT Command-line Conjugate Heat Transfer (CHT) simulation of a T-junction
for T-junction Pipe pipe flow and a thermal analysis in the metal pipe. The pipe flow is
Flow solved by Forte, while the thermal analysis is solved by Fluent. Coupling
of the two solvers is automated and handled by System Coupling.
Forte tutorial, located in the Forte Tutorials.
Release 2021 R2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
236 of ANSYS, Inc. and its subsidiaries and affiliates.