System Coupling Users Guide
System Coupling Users Guide
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: 2008 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 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. iii
System Coupling User's Guide
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
iv of ANSYS, Inc. and its subsidiaries and affiliates.
About This Manual
This manual describes how to use the System Coupling component to control otherwise independent
physics solvers or external data sources so that they work together in a coupled analysis such as Fluid-
Structure Interaction (FSI).
• System Coupling Overview (p. 1) describes how System Coupling works and the types of simulations you
can perform.
• System Coupling Workspace (p. 7) describes how to use the System Coupling views in ANSYS Workbench
to control the analysis.
• Workflows for System Coupling (p. 35) describes common workflow topics such as using the command line,
and restarting coupled analyses
• Understanding the System Coupling Service (p. 43) describes files used by the System Coupling Service,
the communication technology, the run time environment, and the mapping technologies.
• Best Practice Guidelines for Using System Coupling (p. 75) describes best practices for using System Coupling.
Document Conventions
This section describes the conventions used in this document to distinguish between text, file names,
system messages, and input that you need to type.
User Input
Input you must type exactly is shown like this:
cd /usr
Input Substitution
Input that you must supply in a command is shown like this:
fluent 3d -schost="HostName"
That is, you should actually type fluent 3d -schost=" " and substitute a computer's name
for HostName.
Optional Arguments
Optional arguments are shown using square brackets:
Here the argument -verbose is optional, but you must specify a suitable file name.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. v
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
vi of ANSYS, Inc. and its subsidiaries and affiliates.
System Coupling Overview
The ANSYS suite of analysis software facilitates creation of single- and multidisciplinary simulations.
Multidisciplinary simulations are offered both within the context of a single piece of software (for example,
within one solver) and through various mechanisms to couple a single piece of software with others,
such as importing external data from static sources. These coupling mechanisms provide optimal solutions
for the analyses that follow the single, specific workflow that they were built to solve.
The System Coupling infrastructure discussed in this manual should be considered for generic workflows
involving any number of analysis types, static data source and co-simulation participants, and data
transfer quantities and directions. The Workbench System Coupling component system is an easy-to-
use, all-purpose infrastructure that facilitates comprehensive multidisciplinary simulations between
coupling participants.
Coupling participants are systems that will send and/or receive data in a coupled analysis. Supported
systems in Workbench include:
The execution of analyses involving couplings between any of these participants is managed by the
System Coupling Service, which is the runtime component of the System Coupling system. During exe-
cution, a variety of one- and two-way data transfers are performed between coupling participants. For
example, when multiple participants are executing their parts of a coupled analysis together, which is
often referred to as co-simulation, they may engage in both one- and two-way data transfers as either
a source or target. Similarly, when participants are providing access to existing results or data, which
will be referred to as a static data source, they may engage in only one-way data transfers as a source.
This documentation describes the capabilities supported by the System Coupling component system.
All of these capabilities may, however, not yet be supported in conjunction with other Workbench
systems. For information about systems that can act as participants in system couplings, see the summary
of Supported System Coupling Participants (p. 3).
For information regarding product licensing details and interactions with System Couplings, see Product
Licensing Considerations when using System Coupling (p. 4).
To set up and execute a system coupling simulation, perform the following steps:
4. Set up each individual, participating system (generally from top-to-bottom, until you have completed all
the required steps for your analysis). The solution of these systems will be managed through System
Coupling.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1
System Coupling Overview
5. Connect the systems together as shown in Figure 1: Example of Connecting a System Coupling Component
System with Various Types of Systems (p. 2). For co-simulation participants and the External Data static
data participant, connections are drawn from the participants’ Setup cells.
6. Set up the System Coupling system (see System Coupling Workspace (p. 7)).
Figure 1: Example of Connecting a System Coupling Component System with Various Types of
Systems
Updates of co-simulation participant (for example, Fluent) Solution cells are disabled for Workbench
systems connected to the System Coupling system. These updates (and execution of the respective
solvers) are automatically initiated when the System Coupling Solution cell is updated. Note, however,
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
2 of ANSYS, Inc. and its subsidiaries and affiliates.
Supported System Coupling Participants
that these updates respect all settings (for example parallel, precision, and so on) already made for
them.
Note
Projects containing a System Coupling system can be submitted to Remote Solve Manager
(RSM); only project updates are supported for remote execution. For details, see Submitting
Project Updates to Remote Solve Manager (RSM) and Submitting System Coupling Jobs to
RSM in the Workbench User's Guide.
After you have updated the System Coupling Solution cell, you can:
• Debug your system coupling simulation by using the system coupling command line arguments (see System
Coupling Command Line Options (p. 36)). You can also perform additional debugging of the connected
systems as described in Troubleshooting Two-Way Coupled Analyses Problems (p. 76).
– Connecting other participant systems’ Solution cells to the Results cell of the Fluid Flow system, or
– Connecting all participant systems’ Solution cells to a Results component system that you introduce in
the schematic.
• Fluent
For information about using System Coupling with the ANSYS Fluent system in Workbench, see Per-
forming System Coupling Simulations Using Fluent in Workbench in the Fluent in Workbench User's
Guide. For information about restarting a coupled analysis with Fluent, see Restarting Fluent Analyses
as Part of System Couplings.
• CFX
For information about using System Coupling with the ANSYS CFX system in Workbench, see Coupling
CFX to an External Solver: System Coupling Simulations in the CFX-Solver Modeling Guide. For inform-
ation about restarting a coupled analysis with CFX, see Restarting CFX Analyses as Part of System
Coupling.
• Mechanical systems:
– Static Structural
– Transient Structural
– Transient Thermal
– Steady-State Thermal
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 3
System Coupling Overview
– Thermal-Electric
For information about using System Coupling with the ANSYS Mechanical systems in Workbench,
see System Coupling in the ANSYS Mechanical User's Guide. For information about restarting a coupled
analysis with Mechanical, see Restarting Structural Mechanical Analyses as Part of System Coupling.
• External Data
For information about using System Coupling with the External Data system in Workbench, see Ex-
ternal Data.
Fluent can be connected with any of the other supported participants. In addition, the Steady-State
Thermal system can be connected with external data. Note that Steady-State and Static systems cannot
be coupled with Transient systems.
Note
Only two coupling participants can be connected to the System Coupling system at one
time. However, more than one System Coupling system may be introduced within the same
project schematic.
The simultaneous execution of coupling participants currently precludes the use of the license sharing
feature that exists for some product licenses. The following specific requirements consequently exist:
• Licensing preferences should be set to ‘Use a separate license for each application’ rather than ‘Share
a single license between applications when possible.’
Note
If you are running one of the ANSYS Academic Mechanical and CFD licenses (Associate,
Research, or Teaching) with a solver license that supports license sharing (such as ANSYS
CFX), then you will be able to run an FSI simulation with a single license.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
4 of ANSYS, Inc. and its subsidiaries and affiliates.
Product Licensing Considerations when using System Coupling
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 5
System Coupling Overview
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
6 of ANSYS, Inc. and its subsidiaries and affiliates.
System Coupling Workspace
This chapter discusses the following topics:
Setting Up a Simulation that Uses System Coupling
Components of the System Coupling Workspace
Settings for Completing a System Coupling Setup
Settings for Running a System Coupling Solution
Most participant systems with connections originating from their Setup cells will participate in the
analysis in a co-simulation mode (visually indicated in the Project Schematic with connections between
the Setup cells, and different icons and colors for the Solution cells). The exception to this is the External
Data participant system, since a connection originates from its Setup cell, but it acts as a static data
participant. The Update option is disabled from within the right-click menu of the co-simulation parti-
cipant systems' Solution cells because the update (and solution execution) is now controlled by the
System Coupling Solution cell.
Projects containing a System Coupling system can be submitted to ANSYS Remote Solve Manager (RSM);
only project updates are supported for remote execution. For details, see Submitting Project Updates
to Remote Solve Manager (RSM) and Submitting System Coupling Jobs to RSM in the Workbench User's
Guide.
The System Coupling system in the Project Schematic has two cells:
• Setup: Use this cell to see participant, region, and variable information, and to define analysis settings and
data transfer between participants. Double-click the Setup cell, or right-click and select Edit from the context
menu to display the System Coupling workspace.
• Solution: Use this cell to solve a coupled analysis and to see solution information and charts monitors.
Double-click the Solution cell, or right-click and select Edit from the context menu to display the System
Coupling workspace.
For more information about the tabbed views in Workbench, see Workbench Tabs and Views in the
Workbench User's Guide.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 7
System Coupling Workspace
Outline View
The Outline view (in the upper left corner of Figure 2: The System Coupling Workspace (p. 8)) presents
various fields related to the coupling participants and to the setup and solution of the coupled systems.
The deepest fields can be edited in the Properties view.
For additional information, see Settings for Completing a System Coupling Setup (p. 9) and Settings
for Running a System Coupling Solution (p. 28).
Properties View
The Properties view (in the lower left corner of Figure 2: The System Coupling Workspace (p. 8))
presents the properties of an editable item selected in the Outline view.
For additional information, see Settings for Completing a System Coupling Setup (p. 9) and Settings
for Running a System Coupling Solution (p. 28).
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
8 of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup
For additional information, see System Coupling Chart (p. 29) and Using the System Coupling Chart
Monitor View (p. 32).
• All the settings that appear in the Outline and Properties views under the “Setup” branch.
• Context menus (that is, the menus that appear with a right-click) for the Setup cell.
Analysis Settings
The Analysis Settings field has the following properties:
Analysis Type
Initialization Controls
Duration Controls
Step Controls
Analysis Settings Best Practices
Suggested best practices for analysis settings are discussed in Analysis Settings Best Practices (p. 11).
Analysis Type
The following property is used to define the overall coupling type for the analysis.
• General
Used when all of the coupling participants are executing steady or static analyses.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 9
System Coupling Workspace
• Transient
Used when all of the coupling participants are executing transient analyses.
Note
Initialization Controls
The following property is used to define the initialization controls available for all coupling types.
Coupling Initialization
Available options are:
• Program Controlled
– For initial runs (that is, not restart runs), the initial time and step are each set to 0.
– For restart runs, the initial time and step are set to the values obtained from the latest valid restart
point.
The system coupling simulation can have multiple restart points when Intermediate Restart Data
Output (p. 22) is selected for either all coupling steps or for a set of coupling step intervals. The
next coupled analysis will be started based on the restart point that you have selected.
For more information regarding restarts, see Restarting a System Coupling Analysis (p. 37).
Important
Program controlled or explicitly specified restart points only affect the coupling
step and/or time used to restart the coupling service. Appropriate restart points
must also be specified for the co-simulation participants that are part of the
coupled analysis. For more information about coupling participants, see Restarting
a System Coupling Analysis.
Duration Controls
The following property is used to define the duration for the analysis.
Duration Defined By
Available options are:
• End Time
When the End Time option is used, the coupling service will execute coupling steps until the
specified end time is reached. In a transient analysis, each coupling step is a time step (with the
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
10 of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup
time interval specified by the step size). Note that the final coupling step size is reduced automat-
ically, if needed, so that the specified end time is respected.
Some of the participant systems, such as ANSYS Mechanical, require the end time specified in
their setup to be respected. When a coupled analysis involves one or more participants that require
their setup’s end time be respected, then the maximum allowable end time for the coupled
analysis is the minimum of the end times reported by such participants. In this case, a validation
error will be reported if the coupled analysis' specified end time is greater than the minimum
identified.Other participant systems, such as Fluent, can run past the end time specified. These
participant systems have no effect on the allowable end time of the coupled analysis.
• Number of Steps
When this option is used, the coupling service will execute coupling steps until the specified
number of steps is reached.
Step Controls
The duration of the coupled analysis is broken into a sequence of coupling steps. Data transfers between
the coupled solvers occur at the beginning of each coupling iteration within a coupling step. Coupling
steps are always indexed. During the analysis, each new coupling step is started when:
• Either the maximum number of coupling iterations has been reached or the coupling step is converged.
Step Size
If the coupling is defined in terms of time (a transient analysis), then a coupling step is associated with a
time interval. The Step Size option specifies the time interval associated with each coupling step (in
seconds). The final coupling step size is reduced automatically, if needed, so that the specified end time
is respected. This reduction does not occur if the analysis duration is set by the Number of Steps.
The coupling step size is fixed for the duration of the System Coupling analysis, but it can be changed
when restarting the analysis.
Minimum Iterations
Allows specification of the fewest number of coupling iterations (at least 1) that could be executed per
coupling step.
The specified minimum number of coupling iterations will be executed even if all measures of
convergence are realized in fewer iterations.
Maximum Iterations
Allows specification of the greatest number of coupling iterations that could possibly be executed per
coupling step.
The specified maximum number of coupling iterations may not be executed if the analysis converges
prior to the maximum iteration step being reached.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 11
System Coupling Workspace
• determine when result and/or restart data is able to be written, as the restart points can only be written
at the end of a coupling step,
• allow you to balance the required file storage space and your need for analysis restarts,and
• determine how you can use system coupling's under relaxation factor (see Under-Relaxation Al-
gorithm (p. 55)) and ramping (see Ramping Algorithm (p. 55)), as these only apply to coupling iterations
and cannot be applied over coupling steps.
For more information about restarting your coupled analysis, see Restarting a System Coupling Analys-
is (p. 37).
• Coupled Analysis solved using only one Coupling Step (p. 12)
A coupled analysis can be solved using only one coupling step. In this case, the coupling step is made
up of many coupling iterations, and the solution is complete at the end of this one step. The analysis
will continue executing until either the solution converges, or the specified maximum number of
coupling iterations is completed. Only the end of a coupling step can be used as a restart point. When
only one coupling step is used, results and restart data is generated only at the end of the solution.
The analysis can be terminated as usual, but because intermediate restart data is not generated, the
coupled analysis cannot be restarted if it terminates abnormally (due to an error, power interruption,
etc.) or if you terminate it before the coupling step is completed. Using only one coupling step within
a coupled analysis minimizes file storage space at the expense of the ability to restart the analysis. In-
terrupting the analysis will not affect the analysis, because System Coupling will complete the current
coupling step (and so complete the solution) before stopping the analysis. Ramping and under-relaxation
can be applied across coupling iterations within the single coupling step.
A coupled analysis can be solved using many coupling steps. In this case, the coupling steps are made
up of one or more coupling iterations. The analysis will continue executing until the specified number
of coupling steps is completed. The transition from one coupling step to the next will occur when either
the solution converges or the specified maximum number of coupling iterations is completed. Only the
end of a coupling step can be used as a restart point (you are able to specify which steps are used).
Results and restart data is generated at the specified restart points. If the analysis should terminate
abnormally within a coupling step, you can restart the analysis from the previous restart point. By using
more coupling steps with fewer coupling iterations per step, as opposed to one coupling step with
many coupling iterations, more points at which restarts can be done are created. For difficult or complex
analyses, which might experience abnormal terminations, more restart points allow restarts of the
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
12 of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup
analysis (saving time and computational effort) at the expense of file storage space. System Coupling's
ramping and under-relaxation can be used across coupling iterations, but cannot be used across
coupling steps, so System Coupling always transfers the full data transfer value at the end of each
coupling step. Participant solvers may ramp data received from System Coupling at the coupling steps.
The minimum number of coupling iterations may be set to a value larger than one (one is the default).
If the data transfers have been under relaxed, you want to ensure a minimum number of coupling iter-
ations is performed so that you iterate out the effect of the under-relaxation. Note that the data transfer
convergence criteria would usually make this unnecessary.
The maximum number of coupling iterations should be set to allow complete convergence within each
coupling step. Failure to fully converge within a given coupling step will modify the transient behavior
from that step onward.
Participants
You can connect a participant system's Setup cell to the System Coupling Setup cell in the project
schematic. The system coupling workspace displays a read-only summary of the participant data after
a refresh of the System Coupling Setup cell. The participant summary includes:
System name
Name of the participant as presented in the schematic.
Regions
Collection of regions from and to which data can be transferred. A region is most often a point, line, surface
or volume that is part (or all) of the geometry or topology of a coupling participant. Note, however, that
equations or probe (monitored) values may also be considered as point regions.
Note
System Coupling requires participants to use 3D meshes, with data transfer regions
consisting of element faces from a 3D mesh. System Coupling data transfers cannot exist
in 2D meshes.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 13
System Coupling Workspace
Variables
Collection of input and output variables available for data transfer for each region. A variable is a physical
quantity such as force, length, or temperature that can be transferred between regions of participant sys-
tems. Variables are defined as input or output variables for the specific region.
Note
For structural applications, data transfers are limited to force and displacement; for
thermal heat transfer applications data transfers are limited to temperature, heat flow,
heat transfer coefficient (also known as "convection coefficient"), and near wall temper-
ature (also know as "bulk temperature" or "ambient temperature").
Data Transfers
A data transfer is defined by one source and one target region, and is able to transfer one variable type
in one direction between two participants.
Each data transfer is defined by a variety of properties such as Source, Target, and Data Transfer
Control. A one-way coupled analysis has data transfer(s) in only one direction between the coupled
participants. In this type of analysis, the source region(s) are defined on only the participant sending
data, and the target regions(s) are defined on only the participant whose solver is receiving the data.
A two-way coupled analysis has data transfers in both directions between the coupled participants. In
this type of analysis, source and target regions are defined on both participants. For example, consider
a coupled two-way fluid-structure interaction analysis where a Fluent system and a Static Structural
system are the two participants. The Fluent system would have a region which is the source region for
the transfer of force, and the target region for the transfer of incremental displacement. The Static
Structural system would have a region that is the source region for the transfer of incremental displace-
ment, and the target region for the transfer of force.
Source/Target
Both Source and Target are each defined by a coupling participant along with a region and a variable
defined within the context of that participant. For a two-way data transfer on one region, you define two
individual data transfers. When you set up your data transfers, a top-down approach should be followed
when selecting Source and Target. Select in this order:
1. Source Participant
2. Source Region
3. Source Variable
4. Target Participant
5. Target Region
6. Target Variable
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
14 of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup
• If ramping is used when applying data from the source-side to the target-side of the data transfer.
Transfer At
Used to control when the data transfer is executed by the solver. The only available option is:
• Start of Iteration
Transfer data at the start of every coupling iteration within a coupling step.
Transfer data at the start of every coupling iteration within a coupling step.
Note
When under-relaxation is used, there is no guarantee that the full value from the
source side of the data transfer is applied to the target by the end of the coupling
step.
Ramping
The following options are available:
• None
The full data transfer value is applied to the target side of the interface for all coupling itera-
tions. No ramping is the default option.
Within each coupling step, the ramping factor is used to linearly increase the change in the
data transfer value applied to the target side of the interface. The data transfer value is in-
creased during each coupling iteration until the specified minimum number of coupling iter-
ations, , is reached. The ramping factor is applied to the change in the data transfer value
from the previous coupling step. If there is no change in this value from the last coupling
step, the full data transfer value is applied to the target side of the interface for all coupling
iterations of that coupling step.
During the coupling iteration (for ), the ramping factor equals . The full data
transfer value is applied for all coupling iterations that are equal to or greater than the min-
imum number of coupling iterations. As is always reached, the full data transfer value
is always applied by the end of each coupling step. This ramping behavior is demonstrated
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 15
System Coupling Workspace
in Figure 3: Schematic of the Linear to Minimum Iterations Ramping Concept (p. 16) for the
case where the minimum number of iterations specified is 5.
When ramping using Linear to Minimum Iterations, if the minimum number of iterations is
the same as the maximum number of iterations, then it is unlikely that the data transfer will
converge. It is a best practice for your maximum iterations to be larger than your minimum
iterations.
Ramping and under-relaxation are independent operations. Ramping is applied before under-relaxation.
Note
System Coupling's ramping will interact with ramping behaviors within the participant systems.
To understand the full ramping behavior, verify ramping settings to see if your participant
system is ramping loads received from System Coupling. For ramping behavior in Mechanical,
see System Coupling Related Settings in Mechanical in the ANSYS Mechanical User's Guide.
See Working with Data Transfers (p. 16) for details about how to create, modify data transfers and do
other common operations.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
16 of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup
Select the Data Transfers tree node in Outline view, then select Create Data Transfer from the
context menu. This creates a new data transfer without any source or target properties defined.
You can later modify the data transfer definition in Properties view.
• Select two regions from different participants in the Outline view, then select Create Data Transfer
from the context menu. This creates multiple data transfers that vary based on the following criteria:
– Whether the input variable from one region has the same properties (such as the physical type) as
the output variable from the other region
Select a region from a participant in the Outline view, then select Create Data Transfer from
the context menu. This creates data transfers for each variable associated with the region. If the
variable is an output variable, then the source participant, source region, and source variable are
defined for the new data transfer. If the variable is an input variable, then the target participant,
target region, and target variable are defined for the new data transfer.
Select a region from a participant in Outline view, select a variable in the Properties view, then
select Create Data Transfer from the context menu. This creates a new data transfer. If the selected
variable is an output variable, then the source participant, source region, and source variable are
defined for the new data transfer. If the selected variable is an input variable, then the target
participant, target region, and target variable is defined for the new data transfer.
Note
If the data transfer definition is not valid or the data is invalidated for any reason, the state
of the node will show as a ? and the incorrect properties will need to be changed.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 17
System Coupling Workspace
Note
Participant data transfer regions must consist of triangular or quadrilateral faces. Polyhedral
faces as well as faces with hanging nodes (cut-cells) are not supported in System Coupling.
Currently, the following three types of transfers are supported in System Coupling. Details of these
three types of transfers are given in Table 2: Data Transfers available in System Coupling (p. 18).
• Force transfers
• Motion transfers
• Thermal transfers
Use the links in Supported System Coupling Participants (p. 3) to review the data transfers that are
supported for the specific participant systems you are coupling though System Coupling.
Force and motion transfers are typical for fluid-structure interaction problems, where a load to the
structure is transferred from a fluid solver, and the deformations to the fluid are transferred from the
structural solver. There can only be one force transfer and one motion transfer for each data transfer
region.
Thermal transfers can be transferred between ANSYS Fluent and ANSYS Mechanical directly through
System Coupling, or through the coupling of the External Data system. Three thermal transfers are
available, each transferring different thermal variables. The three thermal transfers are described in the
table below.
For one-way thermal transfers, only one of the three options below for thermal transfers can be defined
for a given pair of source and target regions.
For two-way thermal transfers, two data transfers are set up on the same data transfer region. In a two-
way transfer:
• the two variables, heat transfer coefficient and near wall temperature, cannot be transferred on the
same data transfer region as heat flow, and
• a participant's data transfer region cannot provide and receive the same thermal variable(s); for example,
Fluent cannot send and receive temperature data on the same data transfer region.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
18 of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup
**In a general coupled analysis, when the solver receiving the motion (such as Fluent) solves before or
simultaneously to the solver sending the motion (such as Mechanical), then the incremental displacement
transferred during the first coupling iteration of each coupling step is identically zero. This behavior
can be changed by using GeneralAnalysis_IncrDisp_InitIterationValue_Zero in the
Expert Settings (p. 24).
***You must correctly define both variables in the data transfer in order for this thermal transfer to be
valid.
Note
For a given target region, there can only be one source region. However, a given source region
can send data to multiple target regions. In other words, 1-to-M data transfers are supported,
where M is an integer and is greater than or equal to 1. Note that M-to-1 data transfers are
not supported.
Execution Control
Execution Control has the following capabilities:
Co-Simulation Participant Sequencing
Debug Output Control
Intermediate Restart Data Output
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 19
System Coupling Workspace
Note
To improve solution stability, sequential solutions are used by default. Note as well that,
to facilitate synchronization of interface geometry, participants that consume geomet-
rical or mesh deformations (for example, the Fluids solver in a Fluid Structure Interaction
analysis) are automatically assigned larger sequence values by default.
Additional information can also be found in Best Practice Guidelines for Using System Coupling (p. 75).
Sequential Solutions
A sequential solution is done when all co-simulation participants are assigned different solution sequence
values. In particular, participants perform their solutions (that is, all required data transfers, followed by
obtaining the equation solution) in the order of the sequence values specified in the user interface.
Sequential solutions are optimal for analyses that involve strong physical couplings, because the most
recent information from one participant is always used by subsequent participants. This typically
translates into requiring the fewest coupling iteration per coupling step to reach a converged solution.
However, it may not yield the shortest (wall-clock) solution time if the participants are run on different
CPUs.
Simultaneous Solutions
A simultaneous solution is done when one or more co-simulation participants are assigned identical
solution sequence values. In particular, when the same sequence value is applied to multiple participants,
then all those participants perform their respective data transfers, after which those same participants
perform their equation solutions simultaneously.
Simultaneous solutions are optimal for analyses that involve weak physical couplings because the most
recent information from one co-simulation participant is not required by other simultaneously executed
participants in order to reach a converged solution. Additionally, the overall (wall-clock) solution time
may be reduced if the simultaneously executed participants are run on different CPUs. However, if used
with co-simulation participants that exhibit strong physical couplings, simultaneous solutions may ad-
versely affect the rate of convergence, and possibly lead to divergence.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
20 of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup
• None
• Level 1
• Level 2
• Level 3
• Level 4
• All Levels
By default, the value set for the Global Level is applied to all stages of solution execution listed below.
To use a different value for one or more of the specific stages of solution execution, change the value
from Use Global Level to the desired output level.
Note that stages of solution execution that are associated with Data Transfers are grouped together,
and have their own default Data Transfers Level value. To use a different value for one or more of
these stages of solution execution, change the value from Use Data Transfers Level to the desired
output level.
The following properties control the debug level for different sections of the log:
Startup
Controls the level of output from the start of the coupling service until creation of the "Summary of SC
Setup" banner in the SCL file.
Participant Connection
Controls the level of output from the end of the setup validation until the Initial Synchronization syn-
chronization point (that is, between the Setup Validation and System Coupling Summary banners).
Analysis Initialization
Controls the level of output from the end of the setup validation until the Analysis Initialization synchron-
ization point (that is, between the System Coupling Summary and Solution banners).
Solution Initialization
Controls the level of output during the setup of coupling steps and coupling iterations. This output does
not include information related to the data transfers.
Data Transfers
These properties specifiy the debug output generated for data transfers. Note that header information for
mapping is generated whenever the mesh coordinate or mesh topology output is requested. Similarly,
header information for the data transfers is generated whenever the transfer data output is requested.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 21
System Coupling Workspace
that entry is governed by the level set here. If the Data Transfers Level itself is set to Use Global
Level, then it derives its value from the default level defined for all debug output controls.
Source Data
Controls the level of output for the source data in all data transfers.
Target Data
Controls the level of output for the target data in all data transfers.
Convergence Checks
Controls the level of output from the Check Convergence synchronization point until the next synchron-
ization point, which may be either Shutdown or Solution.
Shutdown
Controls the level of output after the Shutdown synchronization point.
For information about synchronization points, see Process Synchronization and Analysis Evolution (p. 43).
Note
The debug level for all the properties, except Default, can be set at any level. For the Default
property, the available levels are from None to All Levels. Increasing levels always generate
more detailed output. Note, as well, that the output level settings for each of the mesh co-
ordinates, topology, and transfer data, control the number of lines of output generated.
Specifically, 10 L lines of data will be written for an output level setting of L (for example,
100 lines will be written for an output level of 2, or Level 2).
Important
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
22 of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup
Coupling Service. Note that this feature only affects the frequency at which data is generated;
the content of data is determined by the participant. To see if this feature is supported, see
Supported System Coupling Participants (p. 3).
Output Frequency
Control when restart data is produced. Avaialable options are:
• None
No intermediate restart output files are generated using this option. Enabled by default.
• All Steps
Restart output files are generated at the end of each coupling step.
• At Step Interval
Restart output files are generated at the end of the coupling steps corresponding to the in-
terval specified in the Step Interval box below.
Note
If you specify a Step Interval that is above or below the allowed limit, an error
is displayed; change the Step Interval as required.
• Start/Stop highlighting linked nodes: From the Setup cell, this option controls whether cells that are related
to the selected cell are highlighted in the Outline view.
• Create Data Transfer: From Data Transfers you can create one or more data transfers using this context
menu. See Working with Data Transfers (p. 16) for details.
• Auto Show/Hide
• Toolbar Option
• Rename: From Data Transfers you can rename the selected data transfers using this context menu. See
Working with Data Transfers (p. 16) for details.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 23
System Coupling Workspace
• Duplicate: From Data Transfers you can duplicate the selected data transfers using this context menu. See
Working with Data Transfers (p. 16) for details.
• Display Validation Failure: Select this to display error messages when System Coupling setup settings are
found to be incorrect due to validation problems.
• Add Property: From Execution Control>Expert Settings, you can add specific expert settings. See Expert
Settings (p. 24) for details about these settings.
• Remove Property: From Execution Control>Expert Settings, you can remove specific expert settings. See
Expert Settings (p. 24) for details about these settings.
See Understanding Cell States in the Workbench User's Guide for detailed information on typical cell
states.
Expert Settings
This subsection is used to specify the expert settings that are available. Expert settings provide you
with additional advanced controls for many of the settings available in the Outline and Properties
views under the Setup branch.
DataTransfer_Clipping_HeatTransferCoef (integer)
Value is 0 (default) or 1, where 0 indicates that negative heat transfer coefficient values will not be clipped
to zero. A setting of 1 (which turns clipping on) will ensure that mapped values are only equal to or
greater than zero.
DumpInterfaceMeshes (string)
The only valid value for this setting is CFDPost. When this expert setting is used, files named <Name of
Data Transfer> source.csv or <Name of Data Transfer> target.csv are generated
during the mapping process. These files report values of 0 and 1 for unmapped and mapped nodes, re-
spectively. These files are appropriate for import into CFD-Post as user defined surfaces for the visualization
of mapping data.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
24 of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup
GeneralAnalysis_IncrDisp_InitIterationValue_Zero (integer)
Value is 0 (default) or 1. This setting is only relevant in a general coupled analysis, when displacement is
transferred, and when the solver receiving the displacement (such as Fluent) solves before or simultaneously
to the solver sending the displacement data (such as Mechanical).
• 1: During the first coupling iteration of each coupling step the displacement transferred to the target
is 0 [m] (irrespective of the value provided by the source). This override of the transfer value is to avoid
possible double displacement, which could create folding of the mesh.
• 0: The value for displacement provided by the source is transferred with no interference by this expert
setting (this value transferred may be modified by other settings such as ramping).
MeshSyncOption (integer)
Value is 0 (default), 1, 2, or 3. This setting is relevant only for coupled analyses with a participant that
consumes geometric data (for example, the Fluids solver in a Fluid Structure Interaction analysis, which
receives displacement data). This setting can be used when the solution of the participant consuming
geometrical data is either sequenced identically as, or sequenced before, the solution of the participant
that provides the geometric data. Available options are:
• 0 (default): If the maximum number of coupling iterations per coupling step is 1, then the solution se-
quence is changed so that the participant that consumes geometrical data is solved last. If the maximum
number of coupling iterations per coupling step is greater than 1, then one additional coupling iteration
is performed at the end of the coupling step and only the participant that consumes geometrical data
is re-solved.
• 1: Regardless of the maximum number of coupling iterations per coupling step, the solution sequence
is changed so that within each coupling iteration, the participant that consumes geometrical data is
solved last.
• 2: Regardless of the maximum number of coupling iterations per coupling step, one additional coupling
iteration is performed at the end of the coupling step and only the participant that consumes geomet-
rical data is re-solved.
• 3: No setup modifications are applied, and the solution proceeds with the specified participant sequen-
cing.
Participant_Variable_InitValue_IncrDisp_X (real)
Participant_Variable_InitValue_IncrDisp_Y (real)
Participant_Variable_InitValue_IncrDisp_Z (real)
Replace initial value for Cartesian components of all variables of type "Incremental Displacement"
for all coupling participants. Default is 0.0 [m].
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 25
System Coupling Workspace
Force Settings
Participant_Variable_InitValue_Force_X (real)
Participant_Variable_InitValue_Force_Y (real)
Participant_Variable_InitValue_Force_Z (real)
Replace initial value for Cartesian components of all variables of type "Force" for all coupling parti-
cipants. Default is 0.0 [N].
Participant_Variable_InitValue_Temperature (real)
Replace initial value for all variables of type "Temperature" for all coupling participants (variables include
temperature and near wall temperature). Default is 295.15 [K].
Participant_Variable_InitValue_HeatRate (real)
Replace initial value for all variables of type "Heat Rate" for all coupling participants. Default is 0.0 [W].
Participant_Variable_InitValue_HeatTransferCoef (real)
Replace initial value for all variables of type "Heat Transfer Coefficient" for all coupling participants. Default
is 0.0 [W m^-2 K^-1].
DataTransfer_ScaleFactor_Force (double)
Scale, by the factor specified, source values for all data transfers of Force variables. Default value is 1.0.
DataTransfer_ScaleFactor_HeatRate (double)
Scale, by the factor specified, source values for all data transfers of Heat Rate variables. Default value is
1.0.
DataTransfer_ScaleFactor_HeatTransferCoef (double)
Scale, by the factor specified, source values for all data transfers of Heat Transfer Coefficient variables.
Default value is 1.0.
DataTransfer_ScaleFactor_IncrDisp (double)
Scale, by the factor specified, source values for all data transfers of Incremental Displacement variables.
Default value is 1.0.
DataTransfer_ScaleFactor_Temperature (double)
Scale, by the factor specified, source values for all data transfers of Temperature variables. Default value
is 1.0.
DTDiagShowRMSChange (string)
Activates reporting of RMS change in data transfers if set to True. Default is False.
When RMS change is the type of data checked against the convergence target (this is the default),
this expert setting does nothing.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
26 of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup
DTDiagShowMaxChange (string)
Activates reporting of Max change in data transfers if set to True. Default is False.
If Max change is the type of data checked against the convergence target, this expert setting does
nothing. Note that the type of data checked (RMS change or Max change) can only be changed
through the System Coupling Input File.
DTDiagShowMinValue (string)
Activates reporting of minimum nodal value in data transfers if set to True. Default is False.
DTDiagShowMaxValue (string)
Activates reporting of maximum nodal value in data transfers if set to True. Default is False.
DTDiagShowAvgValue (string)
Activates reporting of average nodal value in data transfers if set to True. Default is False.
DTDiagShowSum (string)
Activates reporting of sum of nodal values in data transfers if set to True. Default is False.
DTDiagShowAll (string)
Activates reporting of all diagnostics of nodal values in data transfers if set to True. Default is False.
ProfMapBucketScale (integer)
Value ranging from 0 to 100, with a default of 50. Represents the number of discrete search "buckets" as
a percentage of the number of nodes, to use during mapping. The objective is to generate "buckets" that
will contain roughly equal numbers of nodes. This setting will affect the speed of the mapping, but it
should not affect the outcome.
ProfMapBucketTol (double)
Value ranging from 0 to 1, with a default of 1e-4. Used to create a bounding region around each target
node. The bounding region is used to increase the number of buckets that will be included in the Profile-
preserving alogirthm's search, which in some cases will improve the number of mapped nodes.
ProfMapEdgeTol (double)
Value (ranging from 0 to 1, with a default of 0.05 in natural coordinate space. Specifies the tolerance
within which a target node may be found in a source element. See the discussion on Profile-Preserving
Mapping (p. 49) mapping algorithm in the section Mapping Algorithms (p. 48) for more information re-
garding this tolerance setting.
ProfMapTolOption (integer)
Value of 0 (default) or 1, where 0 indicates that the specified tolerance is relative to the maximum Cartesian
extent of the region being mapped, and 1 indicates that the specified tolerance is absolute (using the
same units as the mesh coordinates).
ProfMapTol (double)
Value ranging from 0 to 1, with a default of 1e-6. Specifies the tolerance for the "gap" distance between
a target node and the source element that it is mapped to.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 27
System Coupling Workspace
ProfMapEnforceTol (integer)
Value is either 0 or 1 (default: 0).
A setting of 0 indicates that the distance between a target node and the source element that it is
mapped to (also known as the "gap" distance) is not checked against the tolerance specified with
the expert setting ProfMapTol. Target nodes with final "gap" distances larger than the specified
tolerance will be reported as mapped in the SCL file. These nodes are mapped to the source nodes
like all of the other mapped nodes and given a value accordingly.
A setting of 1 (which means on) indicates that such a check is performed. Target nodes with final
"gap" distances larger than the specified tolerance will be reported as unmapped in the SCL file.
These nodes are mapped to the source nodes like all of the other mapped nodes and given a value
accordingly.
ConsMapPixelRes (integer)
Value ranging from 10 to 256, with a default of 100. Indicates the number of pixels to use when forming
the surfaces of intersection for each pair of source and target mesh element faces on the interface. Larger
values are needed if interface mesh lines are very nearly coincident. Any value entered that is less than 10
or greater than 256 will be reset to 100 automatically.
ConsMapTol (double)
Value ranging from 1e-6 and 1, with a default of 0.1. Specifies the tolerance, in the element-face-normal
direction, to use when determining whether the source and target meshes map to one another. This toler-
ance is normalized by the local element size. Any value entered that is less than 1e-6 or greater than 1
will be reset to 0.1 automatically.
• All the settings that appear in the Outline and Properties views under the Solution branch.
• Context menus (that is, the menus that appear with a right-click) for the Solution cell.
Solution Information
Solution information is automatically generated for output of the System Coupling Service and the
coupling participants. Figure 4: An Example of the Solution Information Branch (p. 29) displays an example
of the Solution Information branch from the Outline view. Select an entry from the listed solution
information sources to display its output in the Solution Information view.
Note
The default behavior of the Solution Information view is to always show the latest inform-
ation in the log file. Each time new information is added, the file will automatically scroll to
the end. However, if you move the vertical scroll bar away from the bottom, the view will
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
28 of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Running a System Coupling Solution
not scroll to the end when new information is added until you move the scroll bar back to
the end.
There are also some keyboard short-cuts that are available when operating in this view:
For additional details about the solution information displayed for the coupling service, see System
Coupling Service Log File (scLog.scl_, scLog_##.scl) (p. 65). For additional details about
solution information displayed for coupling participants, see Supported System Coupling Parti-
cipants (p. 3).
Convergence data is available for plotting once the solution is running or has been completed. You can
create multiple charts (p. 31), and select the variables (p. 30) that you want to plot.
In the chart monitor, data is available for plotting against different levels (X axis data). The higher
(coarser) levels at which the data is present are referred to as parent levels, whereas the lower (finer)
levels at which the data is present are referred to as child levels. Any data present in a child level are
also available at the parent level for plotting. For example: In the graphic that follows, the flow chart
shows different variables and levels for a sample run. "Coupling Step" is the parent level for "Coupling
Iteration", whereas "Solver 1 Step", "Solver 1 Iteration", "Solver 2 Step", and "Solver 2 Iteration" are child
levels of "Coupling Iteration". There are two variables, "Variable 1" and "Variable 2", present. "Variable
1" is present at "Solver 1 Iteration" and hence is available for plotting at "Solver 1 Iteration" or any of
its parents, that is, "Solver 1 Step", "Coupling Iteration" or "Coupling Step". Similarly, "Variable 2" is
available for plotting at "Solver 2 Iteration", "Solver 2 Step", "Coupling Iteration", and "Coupling Step".
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 29
System Coupling Workspace
Chart Properties
Axis X Property:
Quantity: Level at which the X data for the variables is plotted. This can be any level at which the data is
available. For example: For a variable "Data Transfer:Change:RMS", the available levels can be "Coupling
Step" and "Coupling Iteration". The X axis level can be defined by selecting an option in the drop-down
options list in the Properties view of a chart.
Axis Y Property:
Title: Title of the axis
• Scale: Scale of the axis. Scale can be defined as Linear, Common Log (Log base 10) or Natural Log.
• Automatic Range: Property to define whether or not automatic scaling should be applied to the axis,
or whether the RangeMin and RangeMax should be used.
Chart Variable
The System Coupling Chart Monitor plots data produced during the coupled solution process. These
variables that you can plot are organized according to coupling participants and include:
• measures of convergence obtained from co-simulation participants (for example, solver residuals from Fluent)
• diagnostic values (for example, minimum, maximum, average, and sum) taken from the nodal data associated
with data transfers
The variables that are obtained from co-simulation participants are only plotted at the intervals that
they are available. Intermediate data points are not artificially created.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
30 of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Running a System Coupling Solution
Style
• Line Width: Width of the line drawn for this chart variable in pixels
• Symbol Size: Size of a symbol in pixels when a symbol is drawn for this variable
Create Chart
You can create convergence charts by using the Create Chart context menu option. In the Outline view,
right-click Chart Monitors, then select Create Chart from the context menu. This creates a new system
coupling chart without any variables defined. The default X axis level is "Coupling Iteration".
Add Variable
Once the solution is running or completed, variables to be plotted can be added to a system coupling
chart. Select an existing chart in the Outline view, and then select Add Variable from the context menu.
From this context menu, select data of interest to add it to the chart. The default refinement level for the
added variable is set to the X axis level. If the data for the new variable is not available at the level defined
by the X axis, the X axis level and the refinement level for the new variable are set to "Coupling Iteration".
Remove Variable
Select a variable under the Remove Variable context menu option to remove that variable from the chart.
Delete Variable
A variable included in the chart can be removed using the Delete context menu option.
Delete
Select Delete in the chart’s context menu to delete the chart.
Note
When the solution is started, a default chart is added if one is not already present. The default
variables added correspond to the RMS Change in data on the target side of all data transfers.
For example if "Data Transfer" and "Data Transfer 2" are defined with target participants
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 31
System Coupling Workspace
equal to "Transient Structural" and "Fluid Flow", respectively, then the chart variables "Tran-
sient Structural: Data Transfer: Change: RMS" and "Fluid Flow: Data Transfer 2: Change: RMS"
are added to the default chart. If you add/delete variables to the default chart, then new
variables are not added by default on consecutive runs.
Saving a Chart
You can save the chart that you are viewing as a graphic. To do so, right-click the background of the chart
and select Save Image As. In the dialog box that appears, you will see a small image of the chart, and can
select the Size (resolution) that will be used when saving the chart. Click the button and navigate to
the folder where you want to save the file. Enter a file name. You can select either .png or .bmp as the
graphic file type. Click Save to select that file path as your save location. Click OK to save the file to the
location that you selected, with the resolution that you have selected.
These commands are the same as those available on the System Coupling's Solution cell in the Project
Schematic.
• From the Solution > Chart Monitor cell, right-click and select Create Chart to create a system coupling
chart.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
32 of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Running a System Coupling Solution
• From the Solution > Chart Monitor > Chart cell, right-click and select Add/Remove Variable to add or
remove variables from the selected chart. For details, see Working with System Coupling Charts (p. 31).
• Display Validation Failure: Select this to display error messages when System Coupling solution items (for
example, charts) are found to be incorrect due to validation problems.
Note
If a coupled analysis is interrupted before reaching the specified coupling duration, then the
Solution cells will remain in an Update Required state once execution stops, because the
calculation must be continued to complete the analysis. Downstream Results cells may be
refreshed and/or updated to review the results generated up to the point at which the ana-
lysis was interrupted.
See Understanding Cell States in the Workbench User's Guide for detailed information on typical cell
states.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 33
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
34 of ANSYS, Inc. and its subsidiaries and affiliates.
Workflows for System Coupling
This chapter describes general issues common to working with System Coupling systems.
Executing System Couplings Using the Command Line
Restarting a System Coupling Analysis
Stopping the Coupled Analysis Run
To perform a system coupling simulation from the command line, you need to ensure paths to all required
scripts and executables are added to the PATH environment variable so that these applications can be
launched from command line.
Tip
To run an analysis from the command line, execute the steps below. If you would like an example of
this process, the tutorial "Oscillating Plate with Two-Way Fluid-Structure Interaction" provides detailed
steps on how to use the command line. To access tutorials and their input files, go to the ANSYS cus-
tomer site page, which will direct you to the location of ANSYS tutorials.
1. Generate the System Coupling Input file and place this file in the desired working directory for the System
Coupling Service. To do this, double-click the System Coupling Setup cell in the Workbench schematic
and select the Export SCI File option from the File menu. Note that this option is only available when
the state of the Setup cell is up-to-date.
2. Generate all input files required for the co-simulation participants (that is, input files required for the
solvers involved in the coupling) and place these files in the respective desired working directories.
3. The command to start the System Coupling Service differs between Linux and Windows:
• Linux:
/ansys_inc/v181/aisol/.workbench -cmd
ansys.services.systemcoupling.exe -inputFile
oscillating_plate.sci
• Windows:
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 35
Workflows for System Coupling
Note
The paths to the .workbench and workbench.bat scripts may differ, depending
upon your installation.
These commands launch the System Coupling Service and create a System Coupling Server file
(scServer.scs) in the working directory. As described in System Coupling Server File (scServ-
er.scs) (p. 64), this file contains information needed to start each of the co-simulation participants,
specifically port and host information for the coupling service and identifiers for the participants.
Additional information needed to run from the command line is accessible below for each of the
co-simulation participants that support system couplings.
For more information about command line execution and options for supported co-simulation parti-
cipants, see Supported System Coupling Participants (p. 3). Co-simulation participants will tend to use
a common set of coupling-related command line options (such as -schost, -scport, -scname,
-scid, -sclic). You are strongly encouraged, however, to develop some expertise in running each
of the participants without system couplings before attempting to execute coupled analyses from the
command line.
Additional System Coupling command line information can also be found in the following section:
System Coupling Command Line Options
-debugLevel [ 0 | 1 | 2 | 3 | 4 | 5 ]
Generates debug output to the System Coupling Log (.scl) file. The level of debug output increases
with each level, with the default (0) providing no debug output and level 5 providing the most complete
debug output.
-extractInputFile input_file_name
Extracts the content of an identified System Coupling Input (scInput.sci) file that is contained in the
specified System Coupling Results (scResults_##_######.scr) file (via -resultFile). Valid names
are the ones returned by the -listInputFiles command line option.
-help
Displays the option summary.
-inputFile path_to_sci_file
Inputs to the coupled analysis are extracted from the specified System Coupling Input file, where
path_to_sci_file is the location of the input file.
-listInputFiles
Lists all of the input files stored in the specified System Coupling Results file (via -resultFile). Output
is written to the System Coupling Log file for the run.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
36 of ANSYS, Inc. and its subsidiaries and affiliates.
Restarting a System Coupling Analysis
-logFile path_to_scl_file
Generates the System Coupling Log file with a specific name in a specific directory, where
path_to_scl_file is the location of the generated log file. The default log file name is scLog.scl
and will be generated in the same directory from which the coupling services executable is run.
-resultFile path_to_scr_file
Continue the analysis from the specified System Coupling Results file, where path_to_scr_file is the
location of the results file. Note that if the -inputFile option is also used, then inputs to the coupled
analysis are extracted from that file.
For more information about command line execution and options for supported co-simulation parti-
cipants, see Supported System Coupling Participants (p. 3).
Note
• The System Coupling Results file generated by the coupling service contains all the information
and data that are required to restart the coupling service only. Information and data that are re-
quired to restart the coupling participants, as well as the act of restarting those participants, are
managed by the participants themselves.
• The convergence history for a restarted run is generally not identical to that observed in a con-
tinuous run. There are two factors contributing to changes in convergence: interfaces are re-
mapped upon restart, thereby changing the interpolation weights; and restart- and continuous-
run convergence histories are not always identical (for example, the HHT transient discretization
used by ANSYS Mechanical will not yield identical convergence histories while the Newmark
discretization will).
• Changes in convergence history across restarts will yield changes in solution values if solutions
are not fully converged within coupling steps.
During a coupled analysis, restart points that contain information for restarts need to be created by all
of the systems involved in your coupled analysis. System Coupling’s restart file is the System Coupling
Results (.scr) file. Creation of restart points is controlled in System Coupling to ensure participant
solvers are writing data at synchronized coupling steps.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 37
Workflows for System Coupling
To generate restart files for a coupled analysis, follow the steps below:
1. Before starting the analysis’ initial run, ensure that all coupling participants are set up to save (or retain)
the corresponding restart points during the run. For information on how to do this, see Supported System
Coupling Participants for a list of supported systems and references to their corresponding documentation
regarding restarts.
2. Set up the System Coupling system to control the creation of restart points at certain intervals during the
coupled analysis run.
a. From the Project Schematic, double-click System Coupling's Setup cell to open the System Coupling
tab.
b. In System Coupling's Outline view on the left, select System Coupling > Setup > Execution Control
> Intermediate Restart Data Output.
c. In the Properties view, under Output Frequency, select the appropriate setting. See Intermediate
Restart Data Output for more information.
1. Specify a restart point in each participant connected to System Coupling. Make sure that these restart
points correspond to the restart point you will choose in System Coupling.
For information on how to do this for participant systems in your coupled analysis, see Supported
System Coupling Participants for a list of supported systems and references to their corresponding
restart documentation.
2. If setup changes in the participant systems are needed before restarting, make these required changes.
For information on how to do this for participant systems in your coupled analysis, see Supported
System Coupling Participants for a list of supported systems and references to their corresponding
restart documentation.
3. In some cases, setup changes are desired or are required to avoid failure of the coupled analysis. To make
these changes:
a. Double-click the System Coupling Setup cell or Solution cell to open the System Coupling tab.
b. Modify the required settings in System Coupling. Setup changes commonly include changes to a
combination of the following:
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
38 of ANSYS, Inc. and its subsidiaries and affiliates.
Restarting a System Coupling Analysis
If running your analysis from the command line, note that each of the –inputFile and –res-
ultFile command line options are required for this type of restart. If no modifications were
made, only the –resultFile command line option is required for the restart.
4. Select the restart point for the System Coupling system. To do this:
a. If the System Coupling tab is not already open, double-click the System Coupling Setup cell or
Solution cell to open the System Coupling tab.
b. In the System Coupling tab, select Analysis Settings, then in Properties of Analysis Settings >
Coupling Initialization, pick a restart point that corresponds to the restart point you selected in the
participant systems.
5. Start your restart run. To do this, in the System Coupling tab, right-click Solution and select Update. Your
restarted coupled analysis will now begin to solve.
The usual project directory (ProjectName_files) contains the latest System Coupling results and
restart points (these solvers use the live project instead of running in a temporary directory).
Note that the .backup directory contains the original version of any files which have been modified
since the last save. These files are useful to recover the last saved state, but they are not useful for re-
starting your analysis.
1. Launch Workbench and open the project. Since the project was not closed down cleanly, a lock file will
exist. Select Unlock in the dialog box that appears.
2. The next dialog box that appears asks if you want to recover the last saved state before opening. Select
No here despite the warnings.
Your Project Schematic now shows a state as if the solution had not started, but examination of
the project files shows that backup files are available. Your Workbench project will not know about
these files.
3. Populate the restart data from the participant systems connected to System Coupling. Make sure that
these restart points correspond to the restart point chosen in System Coupling.
For information on how to do this for participant systems in your coupled analysis, see Supported
System Coupling Participants for a list of supported systems and references to their corresponding
restart documentation.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 39
Workflows for System Coupling
a. On the Project Schematic, right-click System Coupling's Setup cell, and select Update.
b. Double-click the System Coupling Setup cell to open the System Coupling tab.
c. Select Analysis Settings, then in Properties of Analysis Settings, right-click Coupling Initialization
and select Read Restart Points.
d. In Properties of Analysis Settings > Coupling Initialization, pick a restart point that corresponds
to the restart point you selected in the participant systems.
5. You can now start your restart run. To do this, in the System Coupling tab, right-click Solution and select
Update. Your restarted coupled analysis will now begin to solve.
The workflow for stopping the coupled analysis run in Workbench is as follows:
1. Start the analysis by selecting Update from the context menu of the Solution cell of the System Coupling
component.
3. A popup window, shown in Figure 5: Interrupt Prompt from Workbench (p. 40), will appear asking how
the run should be stopped.
• Select Interrupt to perform a clean shutdown. The analysis will stop once the current coupling
step is completed.
• Select Abort to stop the analysis run immediately. All available generated data will be discarded.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
40 of ANSYS, Inc. and its subsidiaries and affiliates.
Stopping the Coupled Analysis Run
To continue an analysis that you have interrupted, click the Update Project button. In the dialog box
that appears, choose to use the partially updated solutions to update the project or to update all solutions
to completion before updating the project.
For information on how to restart the coupled analysis run, see Restarting a System Coupling Analys-
is (p. 37).
If you are running your analysis from the command line, to stop a run an scStop.stop file must be
created in the working directory for the System Coupling Service. See System Coupling Service Shutdown
File (scStop.stop) (p. 63) for more information.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 41
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
42 of ANSYS, Inc. and its subsidiaries and affiliates.
Understanding the System Coupling Service
This chapter provides information about the System Coupling Service used in the execution of coupled
analyses. The two main roles of the coupling service are: coupling management, and the mapping of
data transfers. This chapter also describes the various files used by and generated by the coupling service.
Coupling Management
The primary role of the System Coupling Service is to manage the coupled analysis. There are three
aspects to this:
Inter-Process Communication
Process Synchronization and Analysis Evolution
Convergence Management
Evaluating Convergence of Data Transfers
Inter-Process Communication
The coupling service and participants, which are often highly optimized physics solvers, are executed
as independent computational processes, and this introduces the need for Inter-Process Communication
(IPC). This communication is realized using a proprietary, light-weight, TCP/IP based client-server infra-
structure that does not interact with other communication mechanisms like the Message Passing Interface
(MPI).
All high level communication needed for process synchronization, brokering data transfers and managing
convergence between the coupling service and participants are defined in terms of Application Pro-
gramming Interfaces (APIs) that use the low level IPC infrastructure.
The five primary synchronization points used to manage advancement through the coupled analysis
are shown in Figure 6: Execution Sequence Diagram for the System Coupling Service and Co-Simulation
Participants (p. 44). This figure also features notes regarding the processing that occurs between these
points, as well as the coupling step and iteration loop structure. Each of these synchronization points,
shown in dark gray, represents a gateway beyond which a given process may not advance until all
other processes (or a subset thereof, as controlled by the coupling service) arrive. Note, as well, that
while a process may serve data both between and at synchronization points, it may only request data
between synchronization points.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 43
Understanding the System Coupling Service
Figure 6: Execution Sequence Diagram for the System Coupling Service and Co-Simulation
Participants
Details regarding processing between the Solution and Check Convergence synchronization points
are shown in Figure 7: Processing Details for the System Coupling Service and Co-Simulation Parti-
cipants (p. 45). During this stage of the analysis, the coupling service controls the advancement of co-
simulation participants, or solvers, through two secondary synchronization points: Data Transfer and
Solve, both shown in light gray. The sequencing of solvers is controlled by manipulating the relative
order in which the solvers advance beyond these secondary synchronization points. For example, solvers
with identical sequence indices all advance through the Data Transfer synchronization point together,
and then do the same for the Solve synchronization point.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
44 of ANSYS, Inc. and its subsidiaries and affiliates.
Coupling Management
Figure 7: Processing Details for the System Coupling Service and Co-Simulation Participants
These figures highlight that all participants traverse the duration of the entire coupling step during
each coupling iteration. They have complete freedom, however, to traverse the coupling step duration
in one or more "solver" steps, each of which may include one or more solver iterations. If multiple
"solver" steps are used within one coupling step, then this is referred to as sub-stepping (or sub-cycling).
Review the participant systems’ documentation to see if sub-stepping occurs and is supported with
System Coupling.
Convergence Management
By default, the System Coupling Log file reports Root Mean Square (RMS) convergence for data transfers
for both the source and target side of the transfer. Convergence of the coupling step is evaluated at
the end of each coupling iteration. Coupling step convergence requires that:
• the target side RMS values have reached the convergence criteria that you specified in the input to the
system coupling setup, and
• that the minimum number of coupling iterations that you specified are met.
If the coupling step is not yet converged, then a new coupling iteration is started. If the coupling step
is converged, then a new coupling step is started if the coupling duration has not yet been reached.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 45
Understanding the System Coupling Service
Two global (that is, over all locations) measures of convergence are evaluated and reported during ex-
ecution of the coupled analysis. These include the maximum and Root Mean Square (RMS) of the nor-
malized change in data transfer values. The RMS is the default measure used to determine convergence.
The measure can be changed to the maximum of the normalized value through the System Coupling
Input file.
where is the normalized change in the data transfer value between successive iterations within/across
a given coupling step, and is measured as:
(2)
where is the data transfer value, and l is the location of the data transfer on the coupling interface.
In Equation 2 (p. 46), the denominator, or normalization factor, is evaluated differently in the transient
and general coupling analyses. In the transient coupling case, the normalization factor equals the average
of the range and mean of the magnitude of data transfer values over all locations for the current iteration.
In the general coupling case, it equals the average of the range and mean of the magnitude of data
transfer values over all locations for all iterations in the entire analysis. This normalization factor is a
representative scale for the data transfer values and ensures that division by zero (due either to zero
range or zero mean) is avoided.
In Equation 2 (p. 46), the numerator, , is the un-normalized change between successive iterations,
and is expressed as:
(3)
where and correspond to the current and the previous iterations respectively, and is the
under-relaxation factor applied in forming the final value applied during the current iteration. In the
first coupling iteration of every coupling step, is assumed to be unity.
When there is no change in data transfer values, the default for RMS/MAX is 1.0e-014.
Note
The global data transfer convergence measures are set to unity in the first coupling it-
eration of the first coupling step during an initial run. After a restart, if a data transfer
involving a new variable is defined or if the region is remeshed, these measures are set
to unity in the first coupling iteration of the first coupling step.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
46 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Transfers
Data Transfers
This section provides an overview of data transfers in System Coupling, addressing the data transfer
process and the quantity types that can be transferred.
1. Data Pre-Processing: Data pre-processing algorithms create supplemental data on mesh locations; this
data will be needed by the mapping and interpolation algorithms.
2. Mapping: Profile-preserving and conservative mapping algorithms each consist of four parts:
• generating weights to enforce either profile preservation or conservation, respectively, of the quantity
being transferred;
• generating data on target locations using source data and mapping weights; and
3. Mapped Data Post-Processing: Interpolated data post-processing algorithms can involve explicit under-
relaxation, ramping, and/or clipping of the target data, as well as the creation of supplemental data (e.g.
scatter from elements to nodes) on mesh locations needed by the consumers of interpolated target data.
For more information, see Interpolated Data Post-Processing Algorithms (p. 54).
Important
• Participant data transfer regions involved with surface data transfers must consist of triangular
or quadrilateral faces. Polyhedral faces as well as faces with hanging nodes (cut-cells) are not
supported by System Coupling.
• Unit conversions are automatically applied for all data transfer algorithms during each of the
mapping and interpolation phases.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 47
Understanding the System Coupling Service
For application-specific details on the quantities that can be transferred via System Coupling, see the
application documentation:
• Variables Available for System Coupling in the Fluent in Workbench User's Guide
• Variables Available for System Coupling in the ANSYS Mechanical User's Guide
• an element-node value is calculated by dividing the total value by the number of nodes that define the
element, and
• the element-node values are scattered to, and accumulated at, each node.
• the area for each face/element that shares a common node is calculated for all nodes,
• the nodal area is calculated as the sum of all areas for each face/element that shares a common node,
• the area fraction is calculated as the area divided by nodal area for each face/element that shares a common
node, and
• the face/element value is calculated for each element-node as the nodal value times the respective area
fraction.
The face/element values corresponding to each element-node are summed if a total face/element value
is required.
Mapping Algorithms
In System Coupling, data transfers are accomplished via mapping, which involves associating target
mesh locations with source mesh locations, followed by generation of either profile-preserving or con-
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
48 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Transfers
servative mapping weights. Weights and source data, or fill-in operations are then used to generate
target data where mapping is respectively successful or unsuccessful.
For efficiency's sake, associating target and source mesh locations is performed in two stages for each
target location: a fast search is used to identify a sub-set of candidate source locations, and then a de-
tailed search is used to identify the source location from which mapping weights are generated.
Mapping is performed only at the start of the System Coupling simulation. Because of this, the mesh
topology on the data transfer regions cannot change (that is, cannot be dynamically remeshed) during
the simulation.
Note that the fidelity of the data transferred to the target side of the interface is limited by the least-
resolved side of the interface. For example, if the mesh on target side of the interface is significantly
coarser than the source side, then fine-scale features of the source solution may be missed in mapping.
Similarly, if the mesh on target side of the interface is significantly finer than the source side, then the
piece-wise constant or linear variation of source data will be apparent over groups of elements on the
target side.
Note
A number of advanced controls for the data transfer algorithms are exposed via expert set-
tings. For more information, see Expert Settings Related to Mapping (p. 27).
Profile-Preserving Mapping
The profile-preserving mapping algorithm is used when transferring extensive quantities, such as dis-
placement or temperature, between surfaces. This algorithm is used to map quantities located on source
mesh nodes to target mesh nodes, as exemplified in Figure 8: Example input and output of profile-
preserving mapping (p. 49).
The following sections describe the different steps used for profile-preserving mapping:
Associating Target and Source Locations
Generating Mapping Weights
Generating Target Data on Mapped Locations
Filling in Target Data on Unmapped Locations
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 49
Understanding the System Coupling Service
1563470446, Chapter 5, Fast Projection Algorithm for Unstructured Meshes by K. Jansen, F. Shakib, and T.
Hughes, 1992.
The Smart Bucket Algorithm begins by fitting a non-uniform, structured mesh of ‘buckets’ to the source
mesh. A 2D bucket is used to demonstrate this concept in Figure 9: Example of a bucket grid on a 2D
source domain (Source mesh elements not shown for clarity) (p. 50). However, the process extends
naturally to 3D. The objective is to form buckets that hold approximately the same number of source
mesh elements.
Figure 9: Example of a bucket grid on a 2D source domain (Source mesh elements not shown for
clarity)
Once the target node is associated with the best non-empty bucket, attention is turned to associate
that node with the best source element within the bucket. First, the target node is checked to see if it
is in the domain of any of the source elements. This is done by looping through all the source elements
in that bucket and checking to see if the target node is either exactly or within a tolerance of their do-
main. Examples of target nodes exactly within or simply within the tolerance of an element are shown
in Figure 10: Target node exactly within and within tolerance of source element (p. 51).
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
50 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Transfers
Figure 10: Target node exactly within and within tolerance of source element
The source element from which the mapping weights are generated is selected as follows:
• If a target node is located exactly within or within the tolerance of a single source element, then mapping
weights are generated using that element.
• If, however, a target node is only located within the tolerance of a set of source elements, then an additional
"gap" measure is considered to determine the best element within that set. The gap is evaluated as the Eu-
clidean distance between the target point and its projection onto the elements in the set. The source element
for which the gap is smallest is chosen. Note that if the smallest gap is shared by multiple source elements,
then the final element processed is selected.
Figure 11: Mapping weights generated for a target node, based upon its projection onto a source
element
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 51
Understanding the System Coupling Service
Weights for all target locations are assembled into a mapping weight matrix that is applied when gen-
erating target data on mapped locations.
Note
Significant "gap" distances between successfully-mapped target nodes and source elements
may occur. For information about how to have mapped nodes with gap distances larger
than a specified tolerance be reported as unmapped, see Expert Settings Related to Map-
ping (p. 27).
Conservative Mapping
The conservative algorithm is used when transferring intensive quantities, such as force or heat rate,
between surfaces. This algorithm is used to map quantities located on source mesh elements to target
mesh elements, as exemplified in Figure 12: Example input and output of conservative mapping (p. 52).
The following sections describe the different steps used for conservative mapping:
Associating Target and Source Locations
Generating Mapping Weights
Generating Target Data on Mapped Locations
Filling in Target Data on Unmapped Locations
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
52 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Transfers
The algorithm begins by fitting a uniform, structured mesh of eight cells to the source mesh. Each cell
that contains more than the target number of source mesh locations is recursively subdivided into eight
new cells forming a hierarchical tree structure, as shown in Figure 13: Example of a quadtree mesh on
a 2D source domain, which extends naturally to an octree in 3D (source mesh elements not shown for
clarity) (p. 53). This continues until either the maximum number of levels in the hierarchy is reached
or the target number of source mesh locations per tree cell is reached. Octree cells at this level are re-
ferred to as "leaf" cells.
Figure 13: Example of a quadtree mesh on a 2D source domain, which extends naturally to an
octree in 3D (source mesh elements not shown for clarity)
Each element in the target mesh is ultimately associated with one or more leaf cells. More than one
leaf cell may be required if the target element intersects multiple leaf cells in the octree. Efficiency is
realized by associating the target mesh element with a cell at each level within the tree hierarchy,
starting with the highest (largest) cells first.
Once the target element is associated with an octree leaf cell(s), it is also associated with all source
elements that leaf cell(s) contains.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 53
Understanding the System Coupling Service
Figure 14: Mapping weights generated for a target element, based upon its intersection with
source elements
Weights for all target locations are assembled into a mapping weight matrix that is applied when gen-
erating target data on mapped locations.
Two optional post-processing algorithms may be applied to the target data generated during interpol-
ation: ramping and under-relaxation. Each of these algorithms is used to improve convergence of the
overall analysis. Other post-processing algorithms that are automatically applied involve:
• clipping unphysical data values (see Clipping Algorithm (p. 56)), and
• creation of supplemental data on mesh (see Data Pre-Processing Algorithms (p. 48)).
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
54 of ANSYS, Inc. and its subsidiaries and affiliates.
Data Transfers
Under-Relaxation Algorithm
Initial Values used in Ramping and Under-Relaxation Algorithms
Clipping Algorithm
Ramping Algorithm
The ramping controlled by the System Coupling Service works by slowing the application of the source-
side value on the target-side of the data transfer. For each data transfer location (node) where
is true, the following formula is applied:
(4)
where
is the reference target-side value, which for the first coupling step is the initial
value for the data transfer variable (see Table 4: Initial Values used for the Reference
Target-Side Value (p. 56)). Thereafter, the reference target-side value is the final value
from the previous coupling step. The one exception is displacement, where for every
coupling step, is always 0.0 [m].
is the raw, target-side value obtained from interpolation.
is the current coupling iteration number within the coupling step.
is the minimum number of coupling iterations per coupling step.
Under-Relaxation Algorithm
Under-relaxation works by limiting a potentially large variation of the target-side data between two
successive coupling iterations. For each data transfer location (node), the following formula is applied:
(5)
where
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 55
Understanding the System Coupling Service
These defaults for the initial values above can be overridden using the methods discussed in the section
Expert Settings (p. 24). Note that for the ramping algorithm, the reference target-side value for displace-
ment cannot be modified using expert settings.
Clipping Algorithm
Although uncommon, it is possible that unphysical values, such as negative heat transfer coefficients,
are provided by the data transfer source or are generated during mapping. To ensure unphysical values
are not applied to the data transfer target, these unphysical values are clipped to be within a valid
range. For example, any negative heat transfer coefficient values are changed to 0 [Wm-2K-1] before
being transferred to the target participant.
The variable(s) that are clipped and their valid range are listed in the table below. Note that at the end
of any coupling step where clipping is used, the System Coupling Log file will have a message about
the clipping.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
56 of ANSYS, Inc. and its subsidiaries and affiliates.
Files Used by the System Coupling Service
When the System Coupling system's Setup cell is up-to-date and the System Coupling user interface
is active (by editing either the System Coupling Setup or Solution cell), you will be able to export, and
save, the input file using the Export SCI File option available from the Workbench File menu.
The input file includes four blocks. For information about the contents of each block, see:
Transfers
Execution Control
Analysis
Participants
Transfers
The Transfers block contains details used to define the data transfers between any static and co-simu-
lation coupling participants.
In this block, you can set the Count (an integer representing the total number of data transfers) as an
attribute.
Name (string)
Name of the participant. This is the name with which the participant identifies itself to the system coupling.
This corresponds to the Component ID which is unique to a specific system's Solution cell in the Workbench
user interface.
FilePath (string)
Full path to the primary file used to access source data from a static data participant.
SupportsCouplingIterations (boolean)
Controls whether or not the co-simulation participant supports the execution of multiple coupling iterations
per coupling step.
UnitSystem
Unit system used.
• Name (string)
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 57
Understanding the System Coupling Service
Display name of the region given by you in the Workbench user interface.
• TopologicalDimensionality (integer)
Gometry type of the region. Available options are 0 (undefined), 1 (point), 2 (curve), 3
(surface), and 4 (volume).
• Name (string)
Display name of the variable given by you in the Workbench user interface.
• PhysicalType (string)
Physical type of the variable. Available options include Length and Force.
BaseUnits (strings denoting base units for all data of noted physical type)
• Length (string)
• Time (string)
• Mass (string)
• Luminance (string)
• Angle (string)
• SolidAngle (string)
• Temperature (string)
• ChemicalAmount (string)
• Current (string)
Execution Control
The Execution Control block contains details used to define the solution sequence between the
coupling participants, the system coupling debug output, intermediate result files output, and expert
settings. For each participant, you can set the following:
CoSimulationSequence
Used to specify the sequencing of co-simulation coupling participants (most often solvers) during a
coupling iteration. In this subsection, the Count attribute specifies the number of participants for which
sequencing information will be provided.
• Participant
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
58 of ANSYS, Inc. and its subsidiaries and affiliates.
Files Used by the System Coupling Service
– Name (string)
– SolutionSequence (integer)
Sequence number of the participant in the coupled solution. Within a coupling iteration, a
participant with a larger sequence number will solve later than another with a lower sequence
number.
DebugOutput
Used to specify the section(s) of debug output to write to the system Coupling Log (SCL) file. As presented
below, the level of detail is specified for each section or all sections (the default).
• DefaultOutputLevel (integer)
Provides the default level for the different sections of debug output. If this entry is set and another
specific entry (for example, Startup) also exists, then the output level for the specific entry will
override the level set here.
• Startup (integer)
Controls the level of output from the start of the coupling service until creation of the Summary
of SC Setup banner in the SCL file.
• ParticipantConnection (integer)
Controls the level of output from the end of the setup validation until the Initial Synchronization
synchronization point.
• AnalysisInitialization (integer)
Controls the level of output from the Analysis Initialization until the Solution\ synchronization
point.
• SolutionInitialization (integer)
Controls the level of output during the setup of coupling steps and iterations. This output does
not include information related to the data transfers.
• ConvergenceChecks (integer)
Controls the level of output from the Check Convergence synchronization point until the next
synchronization point, which may be either Shutdown or Solution.
• Shutdown (integer)
• Transfers
Used to specify the debug output generated for data transfers. Note that header information for
mapping is generated whenever the mesh coordinate or mesh topology output is requested.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 59
Understanding the System Coupling Service
Similarly, header information for the data transfers is generated whenever the transfer data output
is requested.
– DefaultOutputLevel (integer)
Provides the default level for the different kinds of debug output. If this entry is set and another
specific entry (for example, SourceMeshCoords) also exists, then the output level for the
specific entry will override the level set here.
– SourceMeshCoords (integer)
Controls the level of output for mesh coordinates of the source region in all data transfers.
– SourceMeshTopol (integer)
Controls the level of output for mesh topology (elements and nodes) of the source region in
all data transfers.
– SourceData (integer)
Controls the level of output for the source data in all data transfers.
– TargetMeshCoords (integer)
This setting controls the level of output for mesh coordinates of the source region in all data
transfers.
– TargetMeshTopol (integer)
Controls the level of output for mesh topology (elements and nodes) of the source region in
all data transfers.
– TargetData (integer)
Controls the level of output for the target data in all data transfers.
The level of detail to include in debug output is controlled using one of the following integer values
for either the default or specific sections of output:
• 0: None
• 1: Level 1
• 2: Level 2
• 3: Level 3
• 4: Level 4
• 5: All Levels
Increasing values always generate more detailed output. Note, as well, that the output level settings
for each of the mesh coordinates and topology, and transfer data control the number of lines of
output generated. Specifically, 10L lines of data will be written for an output level setting of L (for
example, 100 lines will be written for an output level of 2, or Level 2).
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
60 of ANSYS, Inc. and its subsidiaries and affiliates.
Files Used by the System Coupling Service
IntermediateResultsFileOutput
Used to specify the frequency at which intermediate result files, which can be used for restarts, are written
by the System Coupling Service.
• FrequencyOption (integer)
Available options are 0 (every coupling step) and 1 (coupling step interval)
• StepInterval (integer)
Coupling step interval at which intermediate result files should be generated (note that this is
valid only when FrequencyOption is set to Step Interval). For example, using a step interval
of 3, results will be generated at steps 3, 6, 9, ...
MappingSettings
May be reported in the SCI file, but is not used by the System Coupling Service.
Analysis
The Analysis block contains details used to define the coupled analysis. In this block, you can set the
following:
AnalysisType (integer)
Defines the nature of the sequential steps used in coupling co-simulation participants. Available options
are 0 (general) and 1 (transient).
Initialization
Defines the initial time for the coupled analysis.
• Option (integer)
Available options are 0 (Program Controlled) and 1 (Start Time). The former is the default
option for coupling initialization. When this option is used, the coupling service will make the
most appropriate choice of an initial time value. When the latter option is used, the coupling
service will override the initial/start time for the analysis with the value specified as part of Time
(see below).
• Time (double)
If option 1 is chosen above, then this is the initial time for the coupling analysis.
Duration
Defines the duration of the coupled analysis.
• Option (integer)
• NumberOfSteps (integer)
• Time (double)
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 61
Understanding the System Coupling Service
Step
• MaximumIterations (integer)
• MinimumIterations (integer)
• Size (double)
Size of the coupling step when it is associated with a time (this is done for transient analyses, as
size is measured in seconds).
• Option (integer)
Available options are 1 (coupling step size, used for transient analyses) and 0 (non-di-
mensional step size, used for general analyses).
Unit System
Unit system used.
Participants
The read-only Participants block contains information obtained through connections to upstream
solver systems.
In this block, you can view the Count (an integer representing the number of connected participants).
Note
Depending upon the type of participant (co-simulation or static data), some of the options
may not be applicable.
Name (string)
Name of the participant. This is the name with which the participant identifies itself to the system
coupling. This corresponds to the Component ID, which is unique to a specific system's Solution cell
in the Workbench user interface.
FilePath (string)
Full path to the primary file used to access source data from a static data participant.
SupportsCouplingIterations (boolean)
Controls whether or not the co-simulation participant supports the execution of multiple coupling
iterations per coupling step.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
62 of ANSYS, Inc. and its subsidiaries and affiliates.
Files Used by the System Coupling Service
UnitSystem
Unit system used.
• Name (string)
Display name of the region given by you in the Workbench user interface.
• TopologicalDimensionality (integer)
Geometry type of the region. Available options are 0 (undefined), 1 (point), 2 (curve),
3 (surface), and 4 (volume).
• Name (string)
Display name of the variable given by you in the Workbench user interface.
• PhysicalType (string)
BaseUnits (strings denoting base units for all data of noted physical type)
• Length (string)
• Time (string)
• Mass (string)
• Luminance (string)
• Angle (string)
• SolidAngle (string)
• Temperature (string)
• ChemicalAmount (string)
• Current (string)
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 63
Understanding the System Coupling Service
• If you interrupt or abort an analysis (as described in Stopping the Coupled Analysis Run (p. 40)), the coupling
service automatically generates the scStop.stop file in the run directory.
• If you are running your analysis from the command line, you must create the scStop.stop file and place
it in the run directory manually. Note, however, that this approach should be used only for command-line
runs.
The first line contains an integer flag that indicates whether or not the termination should be interpreted
as an Interrupt or as a Stop.
• With an integer value of 0, the analysis will be interrupted; the coupling service will complete the current
coupling step and signal the co-simulation participants that the execution has ended. This will cause the
coupling service and participants to shutdown cleanly.
• With an integer value of 1, the analysis will be stopped; the coupling service will signal the co-simulation
participants to abort the run as quickly as possible. This will not produce a clean shutdown.
The second line indicates the reason the coupled analysis run shut down.
Information from the shutdown file is r in the coupling service's log file.
• A block containing the number of co-simulation participants connected to the System Coupling system
in the Workbench schematic, and their unique and display names. In the Workbench environment:
– the unique names are automatically generated and are reported as the ComponentID in the Prop-
erties view of the co-simulation participant's Solution cell,
– the display names correspond to the names (which you are able to specify) below the participant's
system
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
64 of ANSYS, Inc. and its subsidiaries and affiliates.
Files Generated by System Coupling Service
• The license server's port and host, separated by an '@' character, at which the coupling participant
codes (i.e., solvers) can reach the license server
Note
When the participants are started and instructed to connect to the running SC Service, they
must connect to the service using the unique names (for example, Fluent and Ansys in
the example above).
– Analysis information
– Data transfer information (number of data transfers, and summary information pertaining to each
data transfer)
– Mapping summary (including percentages of mapped source and target nodes and the percentages
of mapped source and target areas, depending upon the mapping algorithm that was used)
The information here includes the coupling step index, the current analysis time for transient
couplings, the coupling iteration index, the participant name and data transfer name, the
participant convergence status (for example, Not Yet Converged..., Converged, and
so on), and the data transfer convergence (for example, the RMS/Maximum normalized change).
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 65
Understanding the System Coupling Service
During the execution of a run, the service log file, named scLog.scl_, is generated, evolving with
the analysis, and is finally renamed at the end of the run. The final log file is named with the convention:
scLog_##.scl, where the suffix _## denotes the run index. For example, scLog_13.scl corresponds
to the 13th run (that is, the 12th restart) executed for the analysis.
======================================================================
======================================================================
======================================================================
| |
| ANSYS System Coupling Service |
| Version 16.0, Copyright 2014 |
| (Build Info. - 10:09:03, Sep 19 2014) |
| |
======================================================================
======================================================================
======================================================================
The command used to start the System Coupling Service is given next as shown below:
Command line used to start this service: C:\Program Files\ANSYS Inc
(Dev)\v190\aisol\bin\winx64\Ansys.Services.SystemCoupling.exe
An echo of the SC service input file is provided next in the log file below the following header:
======================================================================
======================================================================
| |
| Summary of System Coupling Setup |
| |
======================================================================
======================================================================
The information generally found in this section includes unit system data (for example, MKS, and so
on), as well as information relating to coupling (time versus coupling step), initialization (options such
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
66 of ANSYS, Inc. and its subsidiaries and affiliates.
Files Generated by System Coupling Service
as time value or initial coupling step), duration (for example, end time), and step size and the maxim-
um/minimum number of iterations.
Note
When the coupling is defined by coupling step (and not by time), then time-related inform-
ation (initial time, end time, or step size) is not displayed in this section of the log file, and
only step-related information is available (for example, initial step, number of steps, maximum
and minimum iterations).
• Analysis Information
• Setup Validation
The Analysis Information section includes basic information about the coupling definition, the unit
system, as well as time and step information.
======================================================================
| Analysis Information |
======================================================================
General :
Analysis Type = Transient
Unit System = MKS
Initialization :
Option = Automatic
Step :
Option = Step Size
Size = 0.05
Minimum Iterations = 5
Minimum Iterations = 5
Duration :
Option = End Time
Time = 0.05
The Coupling Participant Information section includes information about each of the solvers connected
to the System Coupling simulations (for example, internal name, type (either Co-Simulation or
Static Data), units, and so on). Additional information for coupled regions and variables that appear
in data transfers is also displayed in this section of the log file. This additional information includes: the
coupled name and type (for regions); and the variable name and physical type (for variables). This in-
formation is not displayed for regions and/or variables that do not participate in data transfers. If such
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 67
Understanding the System Coupling Service
regions or variables exist, a message is written to indicate that the related information has been omitted
from this part of the log file.
======================================================================
| Coupling Participant Information (2) |
======================================================================
+--------------------------------------------------------------------+
| Participant: Fluent |
+--------------------------------------------------------------------+
General :
Unit System = MKS_STANDARD
Type = CoSimulation
Name = Fluent
General :
Unit System = SI
Type = Static Data
Name = Setup 2
File Path = external_load_data.xml
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
68 of ANSYS, Inc. and its subsidiaries and affiliates.
Files Generated by System Coupling Service
• Region and variable information for the source and target of each data transfer
• Under-relaxation factor
• Ramping option
======================================================================
| Data Transfer Information (2) |
======================================================================
+--------------------------------------------------------------------+
| Data Transfer: Mechanical Displacement to Fluent |
+--------------------------------------------------------------------+
Source : Mechanical
Region = Mechanical Wall Display Name
Variable = DISP Display Name
Target : Fluent
Region = plate
Variable = Displacement Display Name
General Information :
Name = Mechanical Displacement to Fluent
Execute Transfer At = Start Of Iteration
Convergence Option = RMS Change In Data
Target Value = 0.01
Under Relax. Factor = 0.25
Ramping = None
+--------------------------------------------------------------------+
| Data Transfer: Fluent Force to Mechanical |
+--------------------------------------------------------------------+
Source : Fluent
Region = plate
Variable = Force Display Name
Target : Mechanical
Region = Mechanical Wall Display Name
Variable = FORC Display Name
General Information :
Name = Fluent Force to Mechanical
Execute Transfer At = Start Of Iteration
Convergence Option = RMS Change In Data
Target Value = 0.01
Under Relax. Factor = 0.25
Ramping = Linear to Min. Iterations
The Execution Control Information section includes a summary of the sequencing of co-simulation
participants, and requests for debug and intermediate result file output. Note that the debug and inter-
mediate result output summaries are generated only if such output is requested. For example:
======================================================================
| Execution Control Information |
======================================================================
+--------------------------------------------------------------------+
| Co-Simulation Sequence |
+--------------------------------------------------------------------+
Sequence Index : 1
Fluent Solver
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 69
Understanding the System Coupling Service
Sequence Index : 2
Mechanical Solver
+--------------------------------------------------------------------+
| Debug Output |
+--------------------------------------------------------------------+
General Output :
Default = Level 1
Startup = None
Participant Conn. = None
Analysis Init. = None
Solution Init. = None
Convergence Checks = None
Shutdown = None
+--------------------------------------------------------------------+
| Intermediate Restart Data Output |
+--------------------------------------------------------------------+
Output Frequency :
Option = Step Interval
Interval = 3
The Setup Validation section includes any warning or error messages that may have been generated.
For example:
======================================================================
| Setup Validation |
======================================================================
+--------------------------------------------------------------------+
| Warnings ( 1) |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| Errors ( 1) |
+--------------------------------------------------------------------+
The System Coupling CoSimulation Summary section includes a brief summary of the participants in
the co-simulation.
======================================================================
| System Coupling CoSimulation Summary |
======================================================================
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
70 of ANSYS, Inc. and its subsidiaries and affiliates.
Files Generated by System Coupling Service
Solution Details
Next is the Solution block. Under it, the following information is provided:
• Mapping Summary
• Coupling Step
• Coupling Iteration
======================================================================
======================================================================
| |
| Solution |
| |
======================================================================
======================================================================
The current coupling step number and the current simulation time are reported as shown below. This
information will be a part of a box that is repeated in the log file at the beginning of every coupling
step. It looks similar to the following:
+====================================================================+
| COUPLING STEP = 1 SIMULATION TIME = 0.001 |
|--------------------------------------------------------------------|
| Solver | Solution Status |
| Data Transfer | |
| Diagnostics | Source Side Target Side |
+====================================================================+
Note that if the simulation is defined only by steps (and not by time), then the log file output will only
present step-related information.
Next is another box that repeats every coupling iteration of every coupling step. It looks like:
+--------------------------------------------------------------------+
| COUPLING ITERATION = 1 |
+--------------------------------------------------------------------+
| Fluent | Not yet converged... |
|- - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - |
| Mechanical Displacement to Fluent| Not yet converged... |
| Change:RMS | 1.00000e+000 1.00000e+000 |
|--------------------------------------------------------------------|
| Mechanical | Not yet converged... |
|- - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - |
| Fluent Force to Mechanical | Not yet converged... |
| Change:RMS | 1.00000e+000 1.00000e+000 |
+--------------------------------------------------------------------+
| COUPLING ITERATION = 2 |
+--------------------------------------------------------------------+
| Fluent | Converged |
|- - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - |
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 71
Understanding the System Coupling Service
As indicated above, after every coupling iteration, the convergence status is given for each participant.
Common participant status values are Converged and Not yet converged..., however, Diver-
gence detected... and Status Unavailable could also be reported. Below the solver status
is a list of the data transfers for which the participant is the target, plus diagnostics used to evaluate
convergence of the data transfer. Any supplemental diagnostics (as described in the SC Log Output
Control Settings section in Expert Settings (p. 24)) that have been requested are also included here.
Notes specific to the execution of a given coupling step will be reported under the final coupling iteration
of the step. For example:
+====================================================================+
| NOTES |
| * During this coupling step, the target variable, Convection |
| Coefficient, was clipped for the data transfer: Upper HTC. |
| * Intermediate result file written: scResult_01_000475.scr |
+====================================================================+
Shut Down
Next is the Shut Down section under which the following information is included:
======================================================================
======================================================================
| |
| Shut Down |
| |
======================================================================
======================================================================
The preceding output is generated under normal shutdown conditions. If a co-simulation participant
(or the coupling service itself ) fails during the analysis, the normal shutdown output will be replaced
by messages similar to the following:
+====================================================================+
| NOTICE |
| An exception has occurred and has been transmitted to the coupling |
| participants. These participants have been disconnected from the |
| coupling service. |
+====================================================================+
+====================================================================+
| System Coupling Exception |
+====================================================================+
| Origin : Fluids Problem (Solution 1) |
| Error Code : 2 |
| Error Description : |
| Fluent encountered fatal error after sync point Solve |
+====================================================================+
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
72 of ANSYS, Inc. and its subsidiaries and affiliates.
Files Generated by System Coupling Service
The first block indicates that all co-simulation participants have been notified of the problem. The
second block indicates the origin (that is, the coupling participant) of the failure, and an error code and
description. For additional information, see Troubleshooting Two-Way Coupled Analyses Problems (p. 76).
• A history of the input (SCI) files used to drive the coupling service’s execution
• Convergence data corresponding to the data transfers and solvers’ field equations
• Heavyweight data corresponding to the source and target regions and variables for defined data transfers
A System Coupling Results file is always created at the end of the analysis. The default file naming
convention is of the form scResults_##_######.scr, where the run index is recorded in the “_##”
suffix and the coupling step index is recorded in the “_######” suffix (for example, scRes-
ult_13_000101.scr corresponds to the 101st coupling step within the 13th run of the analysis). In-
termediate results files, with the same naming convention, can also be created at various coupling step
intervals (defined by you) during the analysis.
Important
All data stored in the System Coupling Results file(s) are written in the SI unit system.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 73
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
74 of ANSYS, Inc. and its subsidiaries and affiliates.
Best Practice Guidelines for Using System Coupling
This chapter presents ideas to facilitate the successful setup and execution of a coupled analysis via
the System Coupling infrastructure:
Building up a Coupled Analysis from Decoupled Systems
Troubleshooting Two-Way Coupled Analyses Problems
Improving Coupled Analysis Stability
Working with Surfaces that Meet at Small Angles
The independent analyses executed prior to coupled analysis should attempt to replicate the effects of
the coupled problem as closely as possible. For fluid-structure interaction problems, for example, the
fluid-only analysis could include user-specified motion that approximately models the expected motion
(or range thereof ) from the structural analysis. Similarly, the structure-only analysis could include a user-
specified load that approximately models the expected load (magnitude and distribution) from the
fluid analysis.
Prior to executing two-way coupled analyses, it is also strongly recommended that you execute a set
of one-way coupled analyses. The benefits of building up coupled analyses this way include:
• Augmenting the fully decoupled analyses proposed above with a more accurate approximation of the
inputs expected from the independent analysis
• Verifying the need for a two-way coupled analysis by assessing the sensitivity of the dependent analysis
to inputs expected from the independent analysis
For fluid-structure interaction problems, for example, loads exported from the fluid-only analysis could
be applied in the structure-only analysis. If, under these conditions, a significant deformation due to
the applied loads is observed, then a two-way coupled analysis may be appropriate. Note, however,
that two-way coupled analyses are significantly more computationally expensive (by approximately an
order of magnitude) than one-way coupled analyses.
Execution of a two-way coupled analysis follows once fully decoupled and one-way coupled analyses
are verified to run as expected and the need to execute a two-way coupled analysis is confirmed. Even
at this point, however, difficulties may be encountered during the execution of the two-way coupled
analysis due to the increased complexity of this problem. The following information will aid in debugging
such analyses.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 75
Best Practice Guidelines for Using System Coupling
• Setup Validation: This section facilitates review and verification of the input settings made for the system
coupling service. These inputs are validated by the coupling service, and both warnings and errors generated
during validation are reported here. Any automatic corrections applied to the inputs are listed with validation
warnings.
• Mapping Summary: This section summarizes the extent to which the source and target regions associated
with each data transfer are correctly mapped onto one-another. Under normal conditions, diagnostics should
report a nearly perfect mapping. Less than perfect mappings should be critically considered for their validity.
• Coupled Solution Convergence History: This section summarizes the convergence of both the coupling
participants and the data transfers that target each of the participants. It is strongly recommended that
sufficient coupling iterations be executed, per step, to ensure that the field equations solved by all coupling
participants and the data transfers defined for the coupled analysis converge fully. Note, however, that the
coupling service will advance to the next coupling step, regardless of convergence, once the maximum
number of coupling iterations per step has been executed. You are advised to identify and understand all
reasons for poor convergence of coupling participants or data transfers.
• Error Messages: Fatal errors are reported, as they occur, in the log output. These errors may have originated
either within the coupling service itself or within any of the coupling participants. When such an error occurs,
output from the service and all participants should be critically reviewed.
• Shutdown Reporting: Under normal conditions, the end of the log output generated by the coupling service
reports whether or not the coupled analysis completed successfully. When the analysis does not complete
successfully, additional information is provided as to what may have caused the problem.
For more information on the content of the SCL file see System Coupling Service Log File (scLog.scl_,
scLog_##.scl) (p. 65). Note, as well, that supplemental debug output can also be written to the SCL
file to facilitate debugging. This output is generated by adding debug output specifications to the system
coupling setup.
Similar output files often exist (either by default or by user request) for the coupling participants. For
example, the ANSYS Fluent solver can generate a text based transcript file and the ANSYS Mechanical
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
76 of ANSYS, Inc. and its subsidiaries and affiliates.
Troubleshooting Two-Way Coupled Analyses Problems
APDL solver can generate a text based output file. Please refer to Supported System Coupling Parti-
cipants (p. 3) for more information regarding the text based monitor output that they can generate.
• Data transfer convergence and diagnostics, corresponding to the numerical data written to the System
Coupling Log file.
• Co-simulation participant convergence, most often corresponding to the (normalized) field equation con-
vergence values from the solvers.
Each co-simulation participant provides whatever convergence data it can. Different amounts of data
may be available for charting from each co-simulation participant.
Convergence data is collected from a co-simulation participant at the end of that participant’s solution
during a given coupling iteration. In particular, the set of solver substep and solver iteration convergence
data corresponding to the coupling iteration are updated all at once. If rapid divergence and failure of
a solver occurs during a given coupling iteration, this information will not be included in the charted
output for that iteration.
Note that visualization of multi-dimensional features (for example, mesh interface regions) of a problem
currently requires the use of an external viewer such as the Results component system (that is, CFD-
Post) in the ANSYS Workbench environment.
To enable this output, create and set the expert setting DumpInterfaceMeshes to the value CFDPost.
When this setting is made, one user surface definition file (in a comma separated value, CSV, format)
will be generated by the coupling service during the mapping process for each source and target for
each data transfer. This data is used in the CFD-Post application either using the "Import Surface or Line
Data" functionality or by creating a user surface location directly from the definition file(s).
Once the user surfaces associated with the source and target interface meshes are created in CFD-Post,
they may be visually examined for consistency (for example, if the source and target surfaces or nodes
are coincident). The surface may be colored by the "Unmapped" variable, which will report values of 0
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 77
Best Practice Guidelines for Using System Coupling
and 1 for unmapped and mapped nodes, respectively. This corresponds to blue and red, respectively,
using the default color map.
Unmapped nodes may also be visualized by inserting a point location with the Method set to Variable
Minimum for the ‘Unmapped’ variable on the surface of interest. Attributes of the plotted points, such
as the symbol shape and size, may be edited to facilitate visualization.
For more information about ramping behavior and controls, see Data Transfers (p. 14). For more inform-
ation about the algorithm used for System Coupling’s ramping, see Ramping Algorithm (p. 55).
For an example of participant solution stabilization, refer to the dynamic mesh system coupling solution
options used in ANSYS Fluent, described in System Coupling Motion in the Fluent User's Guide.
The System Coupling infrastructure allows the co-simulation of multiple coupling participants. In many
cases, the execution (for example, solve) sequence of the co-simulation participants is inconsequential.
In some cases, however, the sequence may affect solution stability and/or the time required to execute
the complete coupled analysis.
Note
To improve solution stability, sequential solutions are used by default. To facilitate syn-
chronization of interface geometry, participants that consume geometrical or mesh de-
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
78 of ANSYS, Inc. and its subsidiaries and affiliates.
Working with Surfaces that Meet at Small Angles
formations (e.g., the Fluids solver in a Fluid Structure Interaction analysis) are executed
last.
Care is taken to ensure that the geometry and mesh are properly synchronized at the end of each
coupling step for all co-simulation participants. This is required to ensure consistency during post-pro-
cessing and during restarts. An extra "partial" coupling iteration reprocesses all participants that are
targets of deformation or motion-related data transfers. An extra partial iteration is executed once after
all convergence targets are met or the maximum number of coupling iterations for the step is realized.
A warning that extra partial iterations will be performed is provided in the validation output that follows
the setup summary in the System Coupling Service Log File (scLog.scl_, scLog_##.scl) (p. 65).
When an extra "partial" coupling iteration is used to properly synchronize the interface geometry and
mesh, there will be no noticeable change in the geometry and mesh during the first coupling iteration
of the subsequent step. In this case, the system coupling chart output will have near-zero values for
the change in motion for the related data transfer values.
If separate interfaces are not possible, the expert setting ConsMapTol can be used to reduce the
mapping tolerances (see Expert Settings Related to Mapping (p. 27)). This solution isn't ideal as there
is a compromise between a small tolerance to prevent the mapper picking up nodes from the wrong
side of the mesh and a large tolerance to prevent unmapped nodes on faceted curved surfaces.
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 79
Best Practice Guidelines for Using System Coupling
Figure 15: Create two interfaces when faces meet at a small angle
Release 19.0 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
80 of ANSYS, Inc. and its subsidiaries and affiliates.