System Coupling Users Guide
System Coupling Users Guide
System Coupling Users Guide
ANSYS, Inc. Southpointe 275 Technology Drive Canonsburg, PA 15317 ansysinfo@ansys.com http://www.ansys.com (T) 724-746-3304 (F) 724-514-9494
Disclaimer Notice
THIS ANSYS SOFTWARE PRODUCT AND PROGRAM DOCUMENTATION INCLUDE TRADE SECRETS AND ARE CONFIDENTIAL 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. is certified to ISO 9001:2008.
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, please contact ANSYS, Inc. Published in the U.S.A.
Table of Contents
About This Manual ...................................................................................................................................... vii Document Conventions ........................................................................................................................ vii Technical Support ................................................................................................................................ viii System Coupling Overview ........................................................................................................................ 1 Supported System Couplings .................................................................................................................. 3 Product Licensing Considerations when using System Coupling .............................................................. 4 System Coupling Workspace ...................................................................................................................... 7 Setting Up a Simulation that Uses System Coupling ................................................................................. 7 Components of the System Coupling Workspace ..................................................................................... 7 Outline View ..................................................................................................................................... 8 Properties View ................................................................................................................................ 8 Chart Monitor View .......................................................................................................................... 9 Solution Information View ................................................................................................................ 9 Settings for Completing a System Coupling Setup ................................................................................... 9 Analysis Settings .............................................................................................................................. 9 Analysis Type .............................................................................................................................. 9 Initialization Controls ................................................................................................................ 10 Coupling Initialization ......................................................................................................... 10 Duration Controls ..................................................................................................................... 10 Duration Defined By ........................................................................................................... 10 Step Controls ............................................................................................................................ 11 Analysis Settings Best Practices ................................................................................................. 12 General Analysis Type ......................................................................................................... 12 Transient Analysis Type ....................................................................................................... 13 Participants .................................................................................................................................... 13 Data Transfers ................................................................................................................................. 14 Working with Data Transfers ..................................................................................................... 16 Data Transfer Rules ......................................................................................................................... 18 Execution Control ........................................................................................................................... 19 Co-Simulation Participant Sequencing ...................................................................................... 20 Sequential Solutions ........................................................................................................... 20 Simultaneous Solutions ...................................................................................................... 20 Debug Output Control .............................................................................................................. 20 Intermediate Restart Data Output ............................................................................................. 22 Validation and State of the System Coupling Setup Cell ................................................................... 23 System Coupling Setup Cell Context Menus .................................................................................... 23 Expert Settings ............................................................................................................................... 24 Settings for Running a System Coupling Solution .................................................................................. 28 Solution Information ...................................................................................................................... 28 Chart Monitors ............................................................................................................................... 29 Chart Properties ....................................................................................................................... 29 Chart Variable ........................................................................................................................... 30 Chart Variable Properties .......................................................................................................... 30 Working with Convergence Charts ............................................................................................ 30 Using the Scene Chart Monitor View ......................................................................................... 31 Validation and State of the System Coupling Solution Cell ............................................................... 32 System Coupling Solution Cell Context Menus ................................................................................ 32 Workflows for System Coupling ............................................................................................................... 33 Executing System Couplings Using the Command Line .......................................................................... 33 System Coupling Command Line Options ....................................................................................... 34
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
iii
System Coupling User's Guide Restarting a System Coupling Analysis .................................................................................................. 35 Generating Restart Files .................................................................................................................. 35 Executing the Restart Run ............................................................................................................... 36 Recovering from a Workbench Crash ............................................................................................... 37 Stopping the Coupled Analysis Run ....................................................................................................... 38 Understanding the System Coupling Service ........................................................................................... 41 Coupling Management ......................................................................................................................... 41 Inter-Process Communication ......................................................................................................... 41 Process Synchronization and Analysis Evolution .............................................................................. 41 Convergence Management ............................................................................................................. 43 Evaluating Convergence of Data Transfers ....................................................................................... 43 Data Transfers ....................................................................................................................................... 44 Data Pre-Processing Algorithms ...................................................................................................... 45 Creating Nodal Data from Face/Element Centroid Data .............................................................. 46 Creating Face/Element Data from Node Data ............................................................................. 46 Mapping Algorithms ....................................................................................................................... 46 Data Transfer Algorithms .......................................................................................................... 46 Profile Preserving ................................................................................................................ 47 Conservative Profile Preserving ........................................................................................... 47 Bucket Surface .......................................................................................................................... 48 General Grid Interface (GGI) ...................................................................................................... 51 Interpolation Algorithms ................................................................................................................ 53 Interpolated Data Post-Processing Algorithms ................................................................................. 53 Ramping Algorithm .................................................................................................................. 53 Under-Relaxation Algorithm ..................................................................................................... 54 Initial Values used in Ramping and Under-Relaxation Algorithms ............................................... 54 Clipping Algorithm ................................................................................................................... 55 Files Used by the Coupling Service ........................................................................................................ 55 System Coupling Service Input File (scInput.sci) ...................................................................... 55 System Coupling Service Shutdown File (scStop.stop) ............................................................... 56 Files Generated by Coupling Service ..................................................................................................... 56 System Coupling Server File (scServer.scs) ............................................................................... 56 System Coupling Service Log File (scLog.scl_, scLog_##.scl) ............................................ 57 System Coupling Results File (scResults_##_######.scr) ..................................................... 58 Understanding the System Coupling Input File ...................................................................................... 58 Understanding the System Coupling Log File ........................................................................................ 65 Best Practice Guidelines for Using System Coupling ............................................................................... 73 Building up a Coupled Analysis from Decoupled Systems ...................................................................... 73 Troubleshooting Two-Way Coupled Analyses Problems ......................................................................... 73 Using Text-Based Monitor Output to Debug Coupled Analyses ........................................................ 74 Using Graphical Monitor Output to Debug Coupled Analyses .......................................................... 75 Using Supplemental Output to Debug Coupled Analyses ................................................................ 75 Supplemental Output for Diagnosing Mapping Problems ................................................................ 75 Improving Coupled Analysis Stability .................................................................................................... 76 Data Transfer Ramping .................................................................................................................... 76 Participant Solution Stabilization .................................................................................................... 76 Co-Simulation Participants Sequencing .......................................................................................... 76 Controlling Participant Sequencing ........................................................................................... 77 Using Sequencing to Reduce Coupled Solution Execution Time ................................................. 77 Tutorial: Oscillating Plate with Two-Way Fluid-Structure Interaction ...................................................... 79 Overview of the Problem to Solve ......................................................................................................... 80 Creating the Project .............................................................................................................................. 81
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
iv
System Coupling User's Guide Optional: Preparing for a Command-line Run ......................................................................................... 82 Adding Analysis Systems to the Project ................................................................................................. 82 Adding a New Material for the Project ................................................................................................... 84 Adding Geometry to the Project ........................................................................................................... 85 Defining the Physics in the Mechanical Application ............................................................................... 86 Generating the Mesh for the Structural System ................................................................................ 86 Assigning the Material to the Geometry .......................................................................................... 87 Setting the Basic Analysis Values ..................................................................................................... 87 Inserting Loads ............................................................................................................................... 88 Defining the Fixed Support ....................................................................................................... 88 Defining the Fluid-Solid Interface .............................................................................................. 88 Defining the Pressure Load ....................................................................................................... 89 Preparing for a Command-Line Run of the Structural System ........................................................... 90 Completing the Setup for the Structural System .............................................................................. 90 Setting up your Fluid Analysis ............................................................................................................... 91 Generating the Mesh for the Fluid System ....................................................................................... 91 Defining the Physics in the ANSYS Fluent Application ...................................................................... 93 Adding the Solution Setup Settings .......................................................................................... 93 Defining the Dynamic Mesh ...................................................................................................... 93 Adding the Solution Settings .................................................................................................... 95 Preparing for a Command-Line Run of the Fluent System .......................................................... 96 Defining and Running the Coupling in the System Coupling Application ............................................... 97 Setting the Basic Analysis Values ..................................................................................................... 97 Creating the Data Transfers ............................................................................................................. 97 Preparing System Coupling for Restarts ........................................................................................... 98 Solving and Restarting the Coupled Analysis ................................................................................... 98 Preparing for a Command-Line Run of the System Coupling System .............................................. 100 Viewing Results in CFD-Post ................................................................................................................ 100 Creating an Animation .................................................................................................................. 100 Plotting Results on the Solid ......................................................................................................... 102 Post-Processing in Mechanical ...................................................................................................... 103 Setting Up and Executing a Coupled Analysis Restart from Workbench ................................................ 104 Executing the Coupled Analysis from the Command Line .................................................................... 105 Preparing the Required Input Files ................................................................................................ 105 Running the Analysis .................................................................................................................... 105 Restart Analysis Execution ............................................................................................................. 107 Preparing the Required Input Files .......................................................................................... 107 Run the Analysis ..................................................................................................................... 108 Loading the Results into CFD-Post ........................................................................................... 108 Tutorial: Heat Transfer from a Heating Coil ............................................................................................ 111 Overview of the Problem to Solve ....................................................................................................... 111 Part 1: Transferring Data from the Steady-State Thermal Analysis to the Fluid Flow Analysis .................. 112 Creating the Project ...................................................................................................................... 112 Setting the Units in ANSYS Workbench .................................................................................... 113 Adding Analysis and Component Systems ..................................................................................... 113 Adding New Materials for the Project ............................................................................................ 114 Adding Geometry to the Project .................................................................................................... 115 Preparing the Steady-State Thermal Source Data ........................................................................... 115 Assigning the Material to the Geometry .................................................................................. 115 Generating the Mesh .............................................................................................................. 115 Defining the Physics for the Structural Analysis ........................................................................ 116 Defining the Steady-State Thermal Analysis ....................................................................... 116
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
System Coupling User's Guide Executing the Structural Analysis ............................................................................................ 117 Post-Processing the Structural Analysis Results ........................................................................ 117 Using External Data to Access the Steady-State Thermal Source Data ............................................. 119 Preparing the Fluid Flow Analysis .................................................................................................. 120 Importing the Mesh for the Fluid Flow Analysis ........................................................................ 120 Defining the Physics for the Fluid Flow Analysis ....................................................................... 120 Preparing and Executing the Coupled Thermal Analysis ................................................................. 122 Reviewing Results in CFD-Post ...................................................................................................... 123 Part 2: Transferring Data from the Fluid Flow Analysis to the Steady-State Thermal Analysis .................. 126 Exporting the Data ....................................................................................................................... 126 Adding Additional Analysis and Component Systems .................................................................... 127 Using External Data to Access the Fluid Flow Source Data ............................................................. 128 Preparing the Steady-State Thermal Analysis ................................................................................. 128 Preparing and Executing the Coupled Thermal Analysis ................................................................. 129 Reviewing Results in the Mechanical Application ........................................................................... 129 Index ........................................................................................................................................................ 133
vi
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
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. File and Directory Names File names and directory names appear in this font: /usr/lib. 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: export -cgns [-verbose] file
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates. vii
About This Manual Here the argument -verbose is optional, but you must specify a suitable file name.
Technical Support
Technical Support for ANSYS, Inc. products is provided either by ANSYS, Inc. directly or by one of our certified ANSYS Support Providers. Please check with the ANSYS Support Coordinator (ASC) at your company to determine who provides support for your company, or go to www.ansys.com and select Contact ANSYS > Contacts and Locations. If your support is provided by ANSYS, Inc. directly, Technical Support can be accessed quickly and efficiently from the ANSYS Customer Portal, which is available from the ANSYS Website (www.ansys.com) under Support > Customer Portal. The direct URL is: support.ansys.com. One of the many useful features of the Customer Portal is the Knowledge Resources Search, which can be found on the Home page of the Customer Portal. Systems and installation Knowledge Resources are easily accessible via the Customer Portal by using the following keywords in the search box: Systems/Installation. These Knowledge Resources provide solutions and guidance on how to resolve installation and licensing issues quickly. NORTH AMERICA All ANSYS, Inc. Products Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option. Toll-Free Telephone: 1.800.711.7199 Fax: 1.724.514.5096 Support for University customers is provided only through the ANSYS Customer Portal. GERMANY ANSYS Mechanical Products Telephone: +49 (0) 8092 7005-55 (CADFEM) Email: support@cadfem.de All ANSYS Products Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option. National Toll-Free Telephone: German language: 0800 181 8499 English language: 0800 181 1565 Austria: 0800 297 835 Switzerland: 0800 546 318 International Telephone: German language: +49 6151 152 9981 English language: +49 6151 152 9982 Email: support-germany@ansys.com UNITED KINGDOM All ANSYS, Inc. Products
viii
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Technical Support Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option. Telephone: Please have your Customer or Contact ID ready. UK: 0800 048 0462 Republic of Ireland: 1800 065 6642 Outside UK: +44 1235 420130 Email: support-uk@ansys.com Support for University customers is provided only through the ANSYS Customer Portal. JAPAN CFX , ICEM CFD and Mechanical Products Telephone: +81-3-5324-8333 Fax: +81-3-5324-7308 Email: CFX: japan-cfx-support@ansys.com; Mechanical: japan-ansys-support@ansys.com Fluent Products Telephone: +81-3-5324-7305 Email: Fluent: japan-fluent-support@ansys.com; Polyflow: japan-polyflow-support@ansys.com; FfC: japan-ffc-support@ansys.com; FloWizard: japan-flowizard-support@ansys.com Icepak Telephone: +81-3-5324-7444 Email: japan-icepak-support@ansys.com Licensing and Installation Email: japan-license-support@ansys.com INDIA All ANSYS, Inc. Products Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option. Telephone: +91 1 800 209 3475 (toll free) or +91 20 6654 3000 (toll) Fax: +91 80 6772 2600 Email: FEA products: feasup-india@ansys.com; CFD products: cfdsup-india@ansys.com; Ansoft products: ansoftsup-india@ansys.com; Installation: installation-india@ansys.com FRANCE
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
ix
About This Manual All ANSYS, Inc. Products Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option. Toll-Free Telephone: +33 (0) 800 919 225 Toll Number: +33 (0) 170 489 087 Email: support-france@ansys.com BELGIUM All ANSYS Products Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option. Telephone: +32 (0) 10 45 28 61 Email: support-belgium@ansys.com Support for University customers is provided only through the ANSYS Customer Portal. SWEDEN All ANSYS Products Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option. Telephone: +44 (0) 870 142 0300 Email: support-sweden@ansys.com Support for University customers is provided only through the ANSYS Customer Portal. SPAIN and PORTUGAL All ANSYS Products Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option. Telephone: +34 900 933 407 (Spain), +351 800 880 513 (Portugal) Email: support-spain@ansys.com, support-portugal@ansys.com Support for University customers is provided only through the ANSYS Customer Portal. ITALY All ANSYS Products Web: Go to the ANSYS Customer Portal (http://support.ansys.com) and select the appropriate option. Telephone: +39 02 89013378 Email: support-italy@ansys.com Support for University customers is provided only through the ANSYS Customer Portal.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
System Coupling Overview 4. 5. Set up each individual, participating system (generally from top-to-bottom, until you have completed all the required steps for your analysis). 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. Set up the System Coupling system (see "System Coupling Workspace" (p. 7)).
6.
Figure 1: Example of Connecting a System Coupling Component System with Various Types of Systems
It is important to note that updates of co-simulation participant (for example, a solver) 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
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Supported System Couplings is updated. Note, however, that these updates respect all settings (for example parallel, precision, and so on) already made for them.
Important
Using System Coupling in conjunction with the Remote Solver Manager (RSM) is not supported. In the isolated case of Mechanical, the use of RSM for runs on a single local host is, however, permitted. After you have updated the System Coupling Solution cell, you can: Pause the analysis by interrupting its progress. Restart the analysis as described in the Initialization Controls (p. 10). Debug your system coupling simulation by using the system coupling command line arguments (see System Coupling Command Line Options (p. 34)). You can also perform additional debugging of the connected systems as described in Troubleshooting Two-Way Coupled Analyses Problems (p. 73). Use CFD-Post to simultaneously analyze the results of the simulation by: 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.
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.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
System Coupling Overview For information about using System Coupling with the ANSYS Fluent system in Workbench, see Performing 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. For information about using System Coupling with the ANSYS Mechanical system 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. For information about using System Coupling with the External Data system in Workbench, see External Data.
ANSYS Academic Associate, ANSYS Academic Research, ANSYS Academic Research Mechanical,
Product Licensing Considerations when using System Coupling System Commercial License Required ANSYS Multiphysics, ANSYS Structural Solver, ANSYS Mechanical Solver, or ANSYS Multiphysics Solver Steady-State Thermal or Transient Thermal ANSYS Mechanical, ANSYS Mechanical CFD-Flo, ANSYS Mechanical Emag, ANSYS Multiphysics, ANSYS Structural Solver, ANSYS Mechanical Solver, or ANSYS Multiphysics Solver ANSYS Academic Teaching Advanced, ANSYS Academic Teaching Introductory, or ANSYS Academic Teaching Mechanical ANSYS Academic Teaching Introductory, or ANSYS Academic Teaching Mechanical ANSYS Academic Associate, ANSYS Academic Research, ANSYS Academic Research Mechanical, Academic License Required ANSYS Academic Teaching Advanced,
External Data
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
See the following sections for additional information: Outline View Properties View Chart Monitor View Solution Information View
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,
8 Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup see Settings for Completing a System Coupling Setup (p. 9) and Settings for Running a System Coupling Solution (p. 28).
Analysis Settings
The Analysis Settings field has the following properties: Analysis Type Initialization Controls Duration Controls Step Controls Suggested best practices for analysis settings are discussed in Analysis Settings Best Practices (p. 12).
Analysis Type
This option is used to define the overall coupling type for the analysis. The available options are:
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
System Coupling Workspace General This is the only available option when one or more of the coupling participants is executing steady or static analyses. Note that mixed steady/static and transient analyses are not currently possible. Transient This is the only available option when all of the coupling participants are executing transient analyses.
Initialization Controls
This option is used to define the initialization controls available for all coupling types.
Coupling Initialization
The 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. Restart Points (indicated by Step and Time) 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. 35).
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
This option is used to define the duration for the analysis.
Duration Defined By
The options available to define the duration of a coupled analysis are: End Time Available only when the Analysis Type is Transient 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 time interval
10
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup specified by the step size). Note that the final coupling step size is reduced automatically, 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 setups 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 Available only when the Analysis Type is General. 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: The coupling analysis duration has not been reached, and Either the maximum number of coupling iterations has been reached or the coupling step is converged. The available options are: 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 This option 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 This option allows specification of the greatest number of coupling iterations that could possibly be executed per coupling step.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
11
System Coupling Workspace The specified maximum number of coupling iterations may not be executed if the analysis converges prior to the maximum iteration step being reached.
Settings for Completing a System Coupling Setup analyses, which might experience abnormal terminations, more restart points allow restarts of the analysis (saving time and computational effort) at the expense of file storage space. System Couplings 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.
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 The name of the participant as presented in the schematic. Regions The 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 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
13
System Coupling Workspace Variables The 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 systems. 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 temperature (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 displacement, 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 Data Transfer Control Additional properties can be defined to control the way in which the specified data transfers are executed. For each data transfer you can specify controls that determine: When the transfer is to occur.
14
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup The under-relaxation factor applied to the transfer. The convergence target. If ramping is used when applying data from the source-side to the target-side of the data transfer. Transfer At The Transfer At property is 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. Under Relaxation Factor The factor multiplying the current data transfer values when under-relaxing them against the previous values. This is overridden with unity in the first coupling iteration of every coupling step only when the Analysis Type is Transient.
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. RMS Convergence Target The target value used when evaluating convergence of the data transfer within a coupling iteration. The default value is 1e-2. The convergence target is RMS-based. For information regarding how this target is applied, see Evaluating Convergence of Data Transfers (p. 43). Ramping The available options for ramping controlled by System Coupling are as follows: None The full data transfer value is applied to the target side of the interface for all coupling iterations. No ramping is the default option. Linear to Minimum Iterations 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 increased during each coupling iteration until the specified minimum number of coupling iterations, , 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 minimum 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 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.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
15
System Coupling Workspace 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. Figure 3: Schematic of the Linear to Minimum Iterations Ramping Concept
Ramping and under-relaxation are independent operations. Ramping is applied before under-relaxation.
Note
System Couplings 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.
16
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup Create data transfers for two regions from different participants 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 two regions have the same topology Whether the input variable from one region has the same properties (such as the physical type) as the output variable from the other region Create data transfers for single 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. Create a data transfer for single variable 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. Modify Data Transfer Select a data transfer in the Outline view. The Properties view displays all the properties for the data transfer. You can modify all the properties for the data transfers in the same view. Rename Data Transfer Select a data transfer in the Outline view. Double-click to rename the data transfer. Duplicate Data Transfer Select one or more data transfers in the Outline view. Right-click and select Duplicate. This operation creates new data transfers with the same Source, Target, and Data Transfer Control properties. Note that you can change these properties as needed for these new data transfers. Suppress Data Transfer Select one or more data transfers in the Outline view. Right-click and select Suppress to prevent the data transfer. Delete Data Transfer Select one or more data transfers in the Outline view. Right-click and select Delete to remove them.
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 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
17
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. 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 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 twoway 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 participants 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. Table 2: Data Transfers available in System Coupling Transfer Type Force transfer Variable(s) Transferred Force (VectorXYZ*) Data Transfer Direction from a fluid solver to a structural solver
Motion transfer**
18
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup Transfer Type Thermal Data Transfers 1. Temperature transfer Variable(s) Transferred Temperature (Scalar) Data Transfer Direction from a structural solver to a fluid solver, or from a fluid solver to a structural solver 2. Heat flow transfer Heat flow (also known as heat rate) (Scalar) from a structural solver to a fluid solver, or from a fluid solver to a structural solver 3. A pair of variables*** Heat transfer coefficient (also known as convection coefficient)** (Scalar) Near wall temperature (also known as bulk temperature, or ambient temperature)** (Scalar) from a fluid solver to a structural solver
) respectively.
**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 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates. 19
Note
To improve solution stability, sequential solutions are used by default. Note as well that, to facilitate synchronization of interface geometry, participants that consume geometrical 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. 73).
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 adversely affect the rate of convergence, and possibly lead to divergence.
20
Settings for Completing a System Coupling Setup 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 synchronization 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 synchronization 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 Specifies 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. Data Transfers Level Provides the default level for the different debug output controls in the Data Transfers group. If the debug level of any property in the Data Transfers group is set to Default, then the debug level of 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 Mesh Coordinates Controls the level of output for mesh coordinates of the source region in all data transfers. Source Mesh Topology Controls the level of output for mesh topology (elements and nodes) of the source region in all data transfers.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
21
System Coupling Workspace Source Data Controls the level of output for the source data in all data transfers. Target Mesh Coordinates Controls the level of output for mesh coordinates of the source region in all data transfers. Target Mesh Topology Controls the level of output for mesh topology (elements and nodes) of the source region 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 synchronization 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. 41).
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 coordinates, 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).
Important
During execution of the coupled analysis, co-simulation participants will automatically be requested to generate intermediate restart data at the same frequency as the System 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 Couplings (p. 3). Choose one of the following options to control when restart data is produced. None No intermediate restart output files are generated using this option. This option is enabled by default.
22
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup 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 interval 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.
23
System Coupling Workspace See Understanding Cell States in the Workbench Users 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. General Expert Settings 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, respectively. These files are appropriate for import into CFD-Post as user defined surfaces for the visualization of mapping data. MeshSyncOption (integer) Value is 0, 1, 2, or 3 (default: 0). This setting is only relevant 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 sequence 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 geometrical data is re-solved. 3: No setup modifications are applied, and the solution proceeds with the specified participant sequencing. GeneralAnalysis_IncrDisp_InitIterationValue_Zero (integer) Value is 0 or 1 (default: 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.
24
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup 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). Participant Variable Initial Value Settings The following expert settings are useful for overriding the default initial values of variables of a given type for all participants. These initial values are currently used in the ramping as well as the underrelaxation of data transfers. Note that for the ramping algorithm, the reference target-side value for displacement is always 0.0 [m]. The expert settings below will have no effect on the value used in this case. 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]. 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 participants. 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]. Data Transfer Control Settings The following expert settings are useful for controlling the behavior of data transfers. 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)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
25
System Coupling Workspace 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. SC Log Output Control Settings The following expert settings are useful for controlling the output of various supplemental diagnostics to the SC log file: 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. 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)
26
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Completing a System Coupling Setup Activates reporting of all diagnostics of nodal values in data transfers if set to true. Default is False. Expert Settings Related to Mapping The coupling service uses a Profile Preserving mapping (ProfMap) for non-conservative quantities (for example, displacement) data transfers, and a Conservative mapping (ConsMap) for conservative quantities (for example, forces). ProfMapBucketScale (integer) Value (ranging from 0 to 100, default: 50) that 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, default: 1e-4) that is 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 Bucket Surface Algorithm's search, which in some cases will improve the number of mapped nodes. ProfMapEdgeTol (double) Value (ranging from 0 to 1, default: 0.05 in natural coordinate space) that specifies the tolerance within which a target node may be found in a source element. See the discussion on Bucket Surface (p. 48) mapping algorithm in the section Mapping Algorithms (p. 46) for more information regarding this tolerance setting. ProfMapTolOption (integer) Value is either 0 or 1 (default: 0), 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, default: 1e-6) that specifies the tolerance for the 'gap' distance between a target node and the source element that it is mapped to. ProfMapEnforceTol (integer) Value is either 0 or 1 (default: 0), where 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)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
27
System Coupling Workspace Value, (ranging from 10 to 256, default: 100), that 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 0.1 and 1, default: 0.1), that specifies the tolerance, in the element-face-normal direction, to use when determining whether the source and target meshes map to one another. This tolerance is normalized by the local element size. Any value entered that is less than 0.1 or greater than 1 will be reset to 0.1 automatically.
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 information 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 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: Page Up scrolls up one page. Page Down scrolls down one page. Ctrl+Home jumps to the top of the log. Ctrl+End jumps to the bottom of the log.
28
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Running a System Coupling Solution Figure 4: An Example of the Solution Information Branch
For additional details about the solution information displayed for the coupling service, see System Coupling Service Log File (scLog.scl_, scLog_##.scl) (p. 57). For additional details about solution information displayed for coupling participants, see Supported System Couplings (p. 3).
Chart Monitors
Convergence data is available for plotting once the solution is running or has been completed. The 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, where as 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".
Chart Properties
Axis X Property: Quantity: The 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: The title of the axis
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
29
System Coupling Workspace Properties Supported for Both Axes: Scale: The scale of the axis. Scale can be defined as Linear, Common Log (Log base 10) or Natural Log. Automatic Range: The property to define whether or not automatic scaling should be applied to the axis, or whether the RangeMin and RangeMax should be used. Range Minimum: The minimum range of the values in this axis. Range Maximum: The maximum range of the values in this axis.
Chart Variable
A variable that is plotted in the convergence chart. These variables are organized according to coupling participants and include: measures of convergence obtained from co-simulation participants (for example, solver residuals) the change (RMS or maximum) in data transfer values diagnostic values (for example, minimum, maximum, average, and sum) taken from the nodal data associated with data transfers
30
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Settings for Running a System Coupling Solution Add Variable Once the solution is running or completed, variables to be plotted can be added to a convergence chart. Select a convergence chart in the Outline view, and then select Add Variable from the context menu. Chartable data of interest are subsequently selected and added to the chart via the context menus presented. 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 A variable included in the chart can be removed using the Remove Variable context menu option. This removes the selected variable from the chart. Delete Variable A variable included in the chart can be removed using the Delete context menu option. Delete Convergence Chart A convergence chart can be deleted using the Delete context menu option. Editing Chart and Chart Variable Properties Chart and Chart Variable properties are displayed and can be edited in Properties view based on selection in Outline view.
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 equal to "Transient Structural" and "Fluid Flow", respectively, then the chart variables "Transient 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.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
31
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. This reflects the need to (re)update in order to complete the analysis, as specified during the setup. However, downstream Results cells may be refreshed and/or updated to review the results generated up to the point at which the analysis was interrupted. See Understanding Cell States in the Workbench Users Guide for detailed information on typical cell states.
32
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Tip
Search your installation to help resolve any missing dynamic libraries. 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 in the section Executing the Coupled Analysis from the Command Line. 1. Generate the System Coupling Input file and place this file in the desired working directory for the Coupling Service. To do this, enter (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. 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. The command to start the Coupling Service differs between Linux and Windows: Linux:
.workbench -cmd ansys.services.systemcoupling.exe -inputFile oscillating_plate.sci
2. 3.
where .workbench is a script located in /ansys_inc/v150/aisol on Linux. The typical location of the executable on Linux 64-bit Workbench installations is:
/ansys_inc/v150/aisol/CommonFiles/linx64
Windows:
ansys.services.systemcoupling.exe -inputFile oscillating_plate.sci
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
33
Workflows for System Coupling The typical location of the executable on Windows 64- and 32-bit Workbench installations are, respectively:
C:~\ANSYS Inc\v150\aisol\bin\winx64 C:~\ANSYS Inc\v150\aisol\bin\intel
These commands launch the Coupling Service and create a System Coupling Server file (scServer.scs) in the working directory. As described in System Coupling Server File (scServer.scs) (p. 56), 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 participants, see Supported System Couplings (p. 3). Co-simulation participants will tend to use a common set of system coupling related command line options (such as -schost, -scport, and -scname). 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
34
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Restarting a System Coupling Analysis -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 participants, see Supported System Couplings (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 required 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 continuous 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.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
35
Workflows for System Coupling System Couplings 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. b. c. From the Project Schematic, double-click System Coupling's Setup cell to open the System Coupling tab. In System Coupling's Outline view on the left, select System Coupling > Setup > Execution Control > Intermediate Restart Data Output. In the Properties view, under Output Frequency, select the appropriate setting. See Intermediate Restart Data Output for more information.
36
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information 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 resultFile 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. b. 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. 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.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
37
Workflows for System Coupling c. Select Analysis Settings, then in Properties of Analysis Settings, right-click Coupling Initialization and select Read Restart Points. The restart points will now be available in System Coupling as usual. 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.
3. A popup window, shown in Figure 5: Interrupt Prompt from Workbench (p. 38), will appear asking how the run should be stopped. Figure 5: Interrupt Prompt from Workbench
You can choose from the following options: 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. Select Cancel to continue with the current run. 4. See Restarting a System Coupling Analysis (p. 35) for information on how to restart the coupled analysis run.
38
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Stopping the Coupled Analysis Run 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. 56) for more information.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
39
40
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
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 For more information, see the following sections. 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 infrastructure 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 Programming Interfaces (APIs) that use the low level IPC infrastructure.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
41
Understanding the System Coupling Service The five primary synchronization points used to manage advancement through the coupled analysis are shown in Figure 6: Execution Sequence Diagram for the Coupling Service and Co-Simulation Participants (p. 42). 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. Figure 6: Execution Sequence Diagram for the 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 Coupling Service and Co-Simulation Participants (p. 43). 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.
42
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Coupling Management Figure 7: Processing Details for the 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.
43
Understanding the System Coupling Service Two global (that is, over all locations) measures of convergence are evaluated and reported during execution of the coupled analysis. These include the maximum and Root Mean Square (RMS) of the normalized 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. The RMS value is evaluated as:
(1)
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. 44), 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. 44), the numerator, and is expressed as:
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.
and correspond to the current and the previous iterations respectively, and is the where =
Note
Global data transfer convergence measures are initialized to unity during the first coupling iteration of the first coupling step. Although monotonic convergence to the specified target values is ideal, oscillatory convergence and/or divergence (i.e., constant or increasing convergence measures) may also occur.
Data Transfers
Data transfers in System Coupling use one of two data transfer algorithms:
44
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Data Transfers Profile Preserving data transfer algorithm is used when transferring non-conserved quantities like displacements and temperatures. Conservative Profile Preserving data transfer is used when transferring conserved quantities like mass, momentum, and energy flows (for example, forces). These two data transfer algorithms are discussed in the section Data Transfer Algorithms (p. 46). Both data transfer algorithms incorporate the following components: Data Pre-Processing: This is the first component used in the data transfer process and could involve creation of supplemental data on mesh locations that are needed by the mapping and interpolation algorithms. Mapping: This is the second component used in the data transfer process and involves the matching/pairing of a source and a target location to generate weights. For example, in a fluid-solid interaction problem, a fluid node must be mapped to a solid element to receive displacements. Similarly, either a solid node or a Gauss point in a solid element must be mapped to a fluid element to receive stress. Interpolation: This is the third component used in the data transfer process and involves the (re)use of the generated weights to project source data onto target locations. Interpolated Data Post-Processing: This is the final component of the data transfer process and could involve explicit under-relaxation, ramping, and/or clipping of the target data, as well as the creation of supplemental data on mesh locations needed by the consumers of interpolated, target data. Note that 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 by System Coupling. A variety of algorithms exist in the literature to address these components. In the discussions below, only those that are used in System Coupling are presented. Data Pre-Processing Algorithms (p. 45) Mapping Algorithms (p. 46) Interpolation Algorithms (p. 53) Interpolated Data Post-Processing Algorithms (p. 53)
Important
Unit conversions are automatically applied for all data transfer algorithms during each of the mapping and interpolation phases.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
45
Mapping Algorithms
Several mapping algorithms are used when executing data transfers during system couplings. To assist in evaluating the quality of the mapping, a mapping summary is included in the System Coupling service log file (see System Coupling Service Log File (scLog.scl_, scLog_##.scl) (p. 57)). Note that summary data depends upon on the availability and relevance of specific information (for example, the number of nodes or area on the surface and/or target meshes) for each mapping algorithm. 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. The two mapping algorithms used in System Coupling (discussed below) are Bucket Surface and General Grid Interface (GGI).
46
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Data Transfers transfer. Similarly, if the target side of the interface is significantly finer than the source side, then the resulting target data will be a linearly interpolated representation of the data on the source side.
Note
A number of advanced controls for the data transfer algorithms are exposed via expert settings. For more information, see Expert Settings Related to Mapping in Expert Settings (p. 24).
Profile Preserving
The Profile Preserving data transfer algorithm is the default algorithm used by System Coupling when transferring non-conserved quantities like displacements and temperatures. For this data transfer algorithm, the Bucket Surface mapping algorithm is used to generate mapping weights. In this algorithm, the mesh nodes on the target side of the data transfer interface are mapped onto mesh elements on the source side as illustrated in Figure 8: Mapping target node to source element for Profile Preserving Data Transfer (p. 47). Standard, weight-based interpolation (resulting in the values shown) and subsequent under-relaxation are used to evaluate the final data applied on the target side of the interface. Figure 8: Mapping target node to source element for Profile Preserving Data Transfer
Profile Preserving data transfer algorithm is the default algorithm used when transferring non-conservative quantities because of the profile-preserving nature of the mapping weights generated by the Bucket Surface algorithm.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
47
Bucket Surface
The underlying ideas for this algorithm are presented in the book Computational Nonlinear Mechanics in Aerospace Engineering, American Institute of Aeronautics and Astronautics, edited by S. Atluri, ISBN 1563470446, Chapter 5, Fast Projection Algorithm for Unstructured Meshes by K. Jansen, F. Shakib, and T. Hughes, 1992. Specifically, the implementation of the Smart Bucket Algorithm as described in the chapter stated above is used in system coupling. This algorithm generates weights that are ideal for transferring the profiles of non-conserved quantities like stresses, displacement, temperature, and heat transfer coefficient from a source mesh to a target mesh. Since a complete description of the algorithm is available in the reference quoted above, only a brief overview of it is presented below. The first step in the process of computing the mapping weights using the Smart Bucket Algorithm is to divide the mapping source mesh into an imaginary structured grid, with each grid section called a bucket. A 2D bucket is used to demonstrate this concept in Figure 9: Example of a Bucket Grid on a 2D Source Mesh (p. 48). Similarly, a 3D bucket grid is generated for a 3D mesh, and this is what is used in System Coupling. Next, each node on the data transfer regions of the target mesh is initially associated with a bucket. In System Coupling, data transfer regions consist of element faces from the 3D mesh. Two cases arise: buckets associated with the target node are either empty (without even one source element in it) or non-empty. For example, bucket A shown in Figure 9: Example of a Bucket Grid on a 2D Source Mesh (p. 48) is empty. Each case (empty and non-empty buckets) is discussed separately in the sections below. Figure 9: Example of a Bucket Grid on a 2D Source Mesh
Case 1: The bucket associated with a target node is non-empty If the bucket associated to a given target node is non-empty, the mapping algorithm attempts to match each of the target nodes to one source element in the bucket.
48
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Data Transfers First, each 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 within their domain. For each source element in the bucket, the vector elementlocal (or natural) coordinates (corresponding to the vector of global coordinates of the target node, by solving the set of nonlinear equations given by the isoparametric mapping below:
=
) is found
(4)
where is the matrix of linear shape functions associated with the source element and is the vector of global coordinates of elementlocal node . It is then checked to see if lies within the domain of the source element based on certain criteria discussed next.
For a four-noded quadrilateral source element, if the natural coordinates corresponding to a target node satisfy the conditions in Equation 5 (p. 49) below, the target node is said to be exactly within the domain of the element.
(5)
where and are the components of the vector of natural coordinates . However, if the natural coordinates do not satisfy the conditions in Equation 5 (p. 49) but do satisfy the ones in Equation 6 (p. 49) below, then the target node is in the domain of the source element but only within the specified tolerance (also known as element edge tolerance). The value of tolerance is exposed in the System Coupling UI as one of the expert settings. See the description of ProfMapEdgeTol in the section Expert Settings Related to Mapping in Expert Settings (p. 24).
!
+ +
(6)
This concept is explained with the help of Figure 10: A Quadrilateral Source Element in the Natural Coordinate Space (p. 50) wherein a quadrilateral source element is shown along with two different target nodes, one of which satisfies Equation 5 (p. 49), and other that satisfies Equation 6 (p. 49).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
49
Understanding the System Coupling Service Figure 10: A Quadrilateral Source Element in the Natural Coordinate Space
Similarly, for a three-noded triangle element, the conditions listed in Equation 7 (p. 50) below, are used to check if a target node is exactly within the domain of the element:
(7)
And the conditions in Equation 8 (p. 50) below will determine if the target node is within the domain but up to a tolerance .
(8)
Now that target nodes are determined to be in the domain of specific source elements, each node must be paired with only one source element. In both of the cases above (four-noded quadrilateral and threenoded triangle), it is possible that a target node occurs (either exactly or within a tolerance) in more than one source elements domain. The finite element interpolation of the nodal solution requires each target node to be paired with only one source element. To satisfy this requirement, the target node is consequently paired with that source element for which the gap is minimized. The gap is defined as the Euclidean distance between the target node and its projection onto/into a source element. In some cases, such as when candidate source elements are coplanar, the gap values may be identical and an alternate approach is required to pair the target node with one source element. Under these conditions, only the source elements with identical (and minimized)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
50
Data Transfers gaps are considered. The target node may be exactly in the domain of any of these source element, or it will be in their domain within a tolerance. Preference is given to the last source element for which the target node is exactly in its domain. If the target node is only in the different domains within a tolerance, then the last candidate source element is used. Once the target node is paired with a source element, mapping weights are computed by evaluating the finite element shape functions associated with the paired source element at the target node. If no target node-to-source element match is found in a non-empty bucket, then the target node is reported as being unmapped. It is important to note, however, that mapping weights are still evaluated for such nodes using the Bucket Surface Algorithm. Specifically, all unmapped target nodes are simply mapped to the nearest source node in the bucket and the target node is assigned the solution value corresponding to that source node.
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 Mapping in Expert Settings (p. 24). Case 2: The bucket associated with a target node is empty If the bucket initially found for the target node is empty, then the closest non-empty bucket is found and the same procedure as highlighted in Case 1 is followed so that each target node is mapped to one source element and mapping weights are calculated. Unmapped Nodes With the Bucket Surface algorithm, there are two types of target nodes that can be reported as unmapped: nodes that do not fall within a bucket (these are unmatched nodes), and nodes that do fall within a bucket, but that do not meet the gap tolerance (these are "gap nodes). Unmatched nodes are mapped to the nearest source node in the bucket and the target node is simply assigned the solution value corresponding to that source node. Unmatched nodes are always reported as unmapped in the SCL file. Gap nodes are within a bucket, and so are mapped to the source nodes like all of the other mapped nodes and given a value accordingly. Gap nodes are reported as mapped in the SCI file. The gap tolerance and the reporting of gap nodes in the SCI file can be modified using Expert Settings (p. 24).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
51
Understanding the System Coupling Service tersections. Final mapping weights for each of the target (or source) nodes are evaluated by accumulating these control surface contributions. If no control surfaces are created (for example, when no polygon intersection between mapping source and target exists), then mapping weights are identically zero and nodes and elements on the target (or source) side of the interface are reported as being unmapped. As an example, consider the schematic shown in Figure 11: General Grid Interface Mapping (p. 52) that corresponds to a typical interface between the source (sending) and target (receiving) sides. In the schematic, the control surfaces resulting from the intersection of all IP faces on the interface (labeled with an X), are shown. For example, the IP faces S1 and S2 on the source side intersect with the IP faces R1 and R2 on the target side creating areas A1, A2, and A3 on the control surface. In this case, the mapping weight contributions for the target IP face R1 (and associated target node) that are associated with the source IP faces S1 and S2 (and nodes) are respectively given by:
=
and
(9)
= +
Figure 11: General Grid Interface Mapping
(10)
52
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Data Transfers
Interpolation Algorithms
The interpolation algorithm is responsible for providing target node values using the source data and mapping weights that were generated by the mapping algorithm(s) (see Mapping Algorithms (p. 46)). The mapping weights are applied in Equation 11 (p. 53) to evaluate , which is the target node, or iteration point (IP) face value.
= =
where is the value at the
(11)
with the bucket surface mapping algorithm, is the number of nodes in the source element. For weights obtained via the GGI mapping algorithm, is the number of areas (associated with a target IP face) obtained due to the intersection of the sender and receiver faces on the control surface.
Ramping Algorithm
The ramping controlled by the System Coupling service works by slowing the application of the sourceside value on the target-side of the data transfer. For each data transfer location (node) where is true, the following formula is applied:
= !"# +
where
(12)
% &'()*+ is the ramped, target-side value. , -./.0.12. is the reference target-side value, which for the first coupling step is the initial
value for the data transfer variable (see Table 3: Initial Values used for the Reference Target-Side Value (p. 54)). Thereafter, the reference target-side value is the final value
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
53
Understanding the System Coupling Service from the previous coupling step. The one exception is displacement, where for every coupling step, is always .
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:
= +
where
(13)
!"# is the relaxed, target-side value. $ %&'&(&)*& is the reference target-side value. For coupling iterations within a coupling
step, the reference target-side value is the final value from the last coupling iteration. For the first coupling iteration of the first coupling step, the reference target-side value is the initial value for the data transfer variable (see Table 3: Initial Values used for the Reference Target-Side Value (p. 54)). For the first coupling iteration of all subsequent steps, the reference target-side value is the final value from the last coupling step.
+ ,-. is the raw, target-side value obtained from interpolation or from ramping (if applied).
Note that if you have applied both ramping and under-relaxation, the data is first ramped and then under-relaxed. In this case, / 012 = / 013456 for the under-relaxations raw
target-side value. is the under-relaxation factor (URF). In a transient analysis, in the first coupling iteration of every coupling step, the URF is overridden and set to 1, and so data transferred at this coupling iteration is not under-relaxed.
For the ramping algorithm, the reference target-side value for incremental displacement is always 0.0 [m] for every coupling step.
Force
0.0 [N]
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
54
Files Used by the Coupling Service Variable Type Temperature Initial Value used for the Reference Target-Side Value ( ) 295.15 [K] Notes
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 displacement 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 [
] 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. Variable Type Heat Transfer Coefficient Minimum Value 0 [
]
55
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 and subsequent lines in the file are reported in the coupling services log file when summarizing the reason for shutting down the coupled analysis.
56
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
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 Solution 1 and Solution 2 in the example above).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
57
Understanding the System Coupling Service 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. For more detailed information about the log file contents, see Understanding the System Coupling Log File (p. 65).
Important
All data stored in the System Coupling Result file(s) are written in the SI unit system.
58
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Understanding the System Coupling Input File Name (string) The 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 systems Solution cell in the Workbench user interface. DisplayName (wide string) The display name of the participant provided by you in the in Workbench user interface. FilePath (string) The full path to the primary file used to access source data from a static data participant. SupportsCouplingIterations (boolean) Whether or not the co-simulation participant supports the execution of multiple coupling iterations per coupling step. UnitSystem Regions (options below are applicable to an individual region) Name (string) The name of the region (intrinsic to the participant). DisplayName (wide string) The display name of the region given by you in the Workbench user interface. TopologicalDimensionality (integer) The geometry type of the region (0 undefined, 1 point, 2 curve, 3 surface, 4 volume). Variables (options below are applicable to an individual variable) Name (string) The name of the variable (intrinsic to the participant). DisplayName (wide string) The display name of the variable given by you in the Workbench user interface. PhysicalType (string) The physical type of the variable (options include: Length / Force). BaseUnits (strings denoting base units for all data of noted physical type) Length (string) Time (string) Mass (string)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
59
Understanding the System Coupling Service Luminance (string) Angle (string) SolidAngle (string) Temperature (string) ChemicalAmount (string) Current (string) The analysis section contains details used to define the coupled analysis. In the analysis section, you can set the following: AnalysisType (integer) This setting defines the nature of the sequential steps used in coupling co-simulation participants. Available option is 0 (general), and 1 (transient). Initialization This setting 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 This setting defines the duration of the coupled analysis. Option (integer) Available options are 0 (NumberOfSteps) and 1 (EndTime). NumberOfSteps (integer) This option is available only if no end-time requirements exist for co-simulation participants. Time (double) Final time of coupling analysis. Step MaximumIterations (integer) The maximum number of coupling iterations allowed per coupling step.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
60
Understanding the System Coupling Input File MinimumIterations (integer) The minimum number of coupling iterations allowed per coupling step. Size (double) The size of the coupling step when it is associated with a time (this is done for transient analyses, size is measured in seconds). Option (integer) Available option is 1 (coupling step size, used for transient analyses) and 0 (non dimensional step size, used for general analyses). UnitSystem (string) The transfers section contains details used to define the data transfers between any static and co-simulation coupling participants. In the transfers section, you can set the Count (an integer representing the total number of data transfers) as an attribute. For each coupling transfer, you can set the following: Name (string) The name of the transfer (which you provided) in the Workbench user interface. ExecuteCouplingAt (integer) This setting defines when the current data transfer is executed during the coupled analysis. The only available option is 2 (Start of Iteration). Source The information related to the source participant involved in the data transfer. Participant (string) The name of the source participant. Region (string) The name of the source region (defined for a given participant) participating in the data transfer. Variable (string) The name of the source variable, the data corresponding to which is exchanged during the data transfer (also defined for a given participant). Target The information related to the target participant involved in the data transfer Participant (string) The name of the target participant Region (string)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
61
Understanding the System Coupling Service The name of the target region participating in the data transfer Variable (string) The name of the target variable, the data corresponding to which is exchanged during the data transfer ConvergenceOption (integer) Specifies the type of data transfer convergence check in an implicit coupling (that is, if more than one coupling iteration per coupling step is specified; a value of 0 indicates the RMS normalized change). ConvergenceTarget (double) The target value that determines the convergence of the data transfer UnderRelaxationFactor (double) The Under Relaxation factor (URF) applied to the data increments between any two successive coupling iterations. The URF has a range of < . Note that when transferring incremental displacement, the URF must equal 1. In this case, a value less than 1 can lead to an accumulation of errors, and the following warning will be displayed in your SCL file:
The under relaxation factor for the data transfer named '<name of data transfer>' is smaller than one. Under relaxation factor less than one for incremental displacement might lead to errors.
Ramping (integer) This setting defines if and how ramping is used when applying data from the source-side to the targetside of the data transfer. Valid options are: 0 none (that is, stepped), and 1 linearly ramped up to the minimum number of coupling iterations. The default is none, which implies the target side of the data transfer experiences the full value from the source side during the first coupling iteration. The execution control section 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 This subsection is used to specify the sequencing of co-simulation coupling participants (most often solvers) during a coupling iteration. In the CoSimulationSequence subsection, the 'Count' attribute specifies the number of participants for which sequencing information will be provided. Participant A Participant subsection is required for each co-simulation participant. Name (string) The name of the participant. SolutionSequence (integer)
62
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Understanding the System Coupling Input File The 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 This subsection is 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) This setting 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) This setting 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) This setting controls the level of output from the end of the setup validation until the Initial Synchronization synchronization point. AnalysisInitialization (integer) This setting controls the level of output from the Analysis Initialization until the Solution synchronization point. SolutionInitialization (integer) This setting 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) This setting 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) This setting controls the level of output after the Shutdown synchronization point. Transfers This section is 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. Similarly, header information for the data transfers is generated whenever the transfer data output is requested. DefaultOutputLevel (integer) This setting 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.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates. 63
Understanding the System Coupling Service SourceMeshCoords (integer) This setting controls the level of output for mesh coordinates of the source region in all data transfers. SourceMeshTopol (integer) This setting controls the level of output for mesh topology (elements and nodes) of the source region in all data transfers. SourceData (integer) This setting 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) This setting controls the level of output for mesh topology (elements and nodes) of the source region in all data transfers. TargetData (integer) This setting 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). IntermediateResultsFileOutput This subsection is 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)
64
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Understanding the System Coupling Log File Available options are 0 (every coupling step) and 1 (coupling step interval) StepInterval (integer) The 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, ... The following entry may be reported in the SCI file, but is not used by the System Coupling service: MappingSettings
Command line used to start this service: C:\Program Files\ANSYS Inc\v150\aisol\bin\winx64\Ansys.Services.SystemCoupling.exe -inputFile scInput.sci ====================================================================== ====================================================================== ====================================================================== | | | ANSYS System Coupling Service | | Version 15.0, Copyright 2013 | | (Build Info. - 10:09:03, Sep 19 2013) | | | ====================================================================== ====================================================================== ======================================================================
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)\v150\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 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates. 65
Understanding the System Coupling Service as time value or initial coupling step), duration (for example, end time), and step size and the maximum/minimum number of iterations.
Note
When the coupling is defined by coupling step (and not by time), then time-related information (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). Summary of System Coupling Setup Under this section of the log file, there are sub-blocks (for example, Analysis Information , Coupling Participant Information , Data Transfer Information , Execution Control Information , Setup Validation and System Coupling Co-Simulation Summary). A brief description of these sub-blocks is provided below. 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 Unit System Initialization : Option Step : Option Size Minimum Iterations Minimum Iterations Duration : Option Time
= Transient = MKS
= Automatic
= = = =
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 information is not displayed for regions and/or variables that do not participate in data transfers. If such regions or variables exist, a message is written to indicate that the related information has been omitted from this section of the log file.
====================================================================== | Coupling Participant Information (2) | ====================================================================== +--------------------------------------------------------------------+ | Participant: Fluent | +--------------------------------------------------------------------+ General : Unit System Type Name
66
Summary of Coupling Regions (1) Region : plate Internal Name = plate Type = Surface Summary of Variable : Internal Physical Variable : Internal Physical Coupling Variables (2) Displacement Display Name Name = INCD Type = Length Force Display Name Name = FORC Type = Force
Summary of Base Units (9) Angle = radian ChemicalAmount = mol Current = A Length = m Luminance = cd Mass = kg SolidAngle = sr Temperature = C Time = s +--------------------------------------------------------------------+ | Participant: External Data | +--------------------------------------------------------------------+ General : Unit System Type Name File Path
= = = =
Summary of Coupling Regions (1) Region : File1 Internal Name = ExtDataReg_Setup 2_0 Type = Surface Summary of Variable : Internal Physical Coupling Variables (1) Temperature1 Name = ExtDataVar_Setup 2_0_1 Type = Temperature
Summary above omits variables not used in data transfers. Summary of Base Units (9) Angle = radian ChemicalAmount = mol Current = A Length = m Luminance = cd Mass = kg SolidAngle = sr Temperature = K Time = s
The Data Transfer Information section includes: Region and variable information for the source and target of each data transfer Data transfer options, such as the convergence criteria and target The under-relaxation factor Ramping option
====================================================================== | Data Transfer Information (2) | ======================================================================
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
67
+--------------------------------------------------------------------+ | Data Transfer: Mechanical Displacement to Fluent | +--------------------------------------------------------------------+ Source : Mechanical Region Variable Target : Fluent Region Variable General Information : Name Execute Transfer At Convergence Option Target Value Under Relax. Factor Ramping
= = = = = =
Mechanical Displacement to Fluent Start Of Iteration RMS Change In Data 0.01 0.25 None
+--------------------------------------------------------------------+ | Data Transfer: Fluent Force to Mechanical | +--------------------------------------------------------------------+ Source : Fluent Region Variable Target : Mechanical Region Variable General Information : Name Execute Transfer At Convergence Option Target Value Under Relax. Factor Ramping
= = = = = =
Fluent Force to Mechanical Start Of Iteration RMS Change In Data 0.01 0.25 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 intermediate result output summaries are generated only if such output is requested. For example:
====================================================================== | Execution Control Information | ====================================================================== +--------------------------------------------------------------------+ | Co-Simulation Sequence | +--------------------------------------------------------------------+ Sequence Index : Fluent Solver 1
Sequence Index : 2 Mechanical Solver +--------------------------------------------------------------------+ | Debug Output | +--------------------------------------------------------------------+ General Output : Default Startup Participant Conn. Analysis Init. Solution Init. Convergence Checks Shutdown
= = = = = = =
68
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Data Transfer Output : Default Source Coords. Source Topology Source Data Target Coords. Target Topology Target Data
= = = = = = =
+--------------------------------------------------------------------+ | Intermediate Restart Data Output | +--------------------------------------------------------------------+ Output Frequency : Option Interval
= Step Interval = 3
The Setup Validation section includes any warning or error messages that may have been generated. For example:
====================================================================== | Setup Validation | ====================================================================== +--------------------------------------------------------------------+ | Warnings ( 1) | +--------------------------------------------------------------------+ 1 ) Auto-Correction: The specified maximum iterations per step is less than the specified minimum iterations. The maximum iterations will be set to the minimum iterations.
+--------------------------------------------------------------------+ | Errors ( 1) | +--------------------------------------------------------------------+ 1 ) The solution sequence specified for the participant named 'Fluent' is not greater than zero. Adjust this (and other) sequence values appropriately.
The System Coupling CoSimulation Summary section includes a brief summary of the participants in the co-simulation.
====================================================================== | System Coupling CoSimulation Summary | ====================================================================== Participant : Mechanical APDL Version/Build Info = Mechanical APDL Release 15.0 UP20130905 DISTRIBUTED WINDOWS x64 Version Participant : Fluent Version/Build Info = ANSYS Fluent 15.0.0
Solution Next is the Solution block. Under it, the following information is provided.
====================================================================== ====================================================================== | | | Solution | | | ====================================================================== ======================================================================
69
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 | |- - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - | | Mechanical Displacement to Fluent| Converged | | Change:RMS | 2.82982e-005 1.42982e-004 | |--------------------------------------------------------------------| | Mechanical | Converged | |- - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - | | Fluent Force to Mechanical | Converged | | Change:RMS | 1.30000e-004 2.08200e-000 | +--------------------------------------------------------------------+
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, Divergence 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 Understanding the System Coupling Input File (p. 58)) 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:
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
70
Shutdown Next is the Shut Down block under which the following information is included:
====================================================================== ====================================================================== | | | Shut Down | | | ====================================================================== ====================================================================== System Coupling Service shut down... Run completed successfully.
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 | +====================================================================+
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. 73).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
71
72
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
73
Best Practice Guidelines for Using System Coupling section provides a summary of tools and strategies available to facilitate debugging two-way coupled analyses. These focus on text based and graphical monitor output, and supplemental output for visualization in ANSYS CFD-Post. For more information, see the following sections: Using Text-Based Monitor Output to Debug Coupled Analyses Using Graphical Monitor Output to Debug Coupled Analyses Using Supplemental Output to Debug Coupled Analyses Supplemental Output for Diagnosing Mapping Problems
74
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, 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 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.
Note
To improve solution stability, sequential solutions are used by default. To facilitate synchronization of interface geometry, participants that consume geometrical or mesh deformations (e.g., the Fluids solver in a Fluid Structure Interaction analysis) are executed last.
76
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
77
78
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Vector
Tutorial: Oscillating Plate with Two-Way Fluid-Structure Interaction Setting Up and Executing a Coupled Analysis Restart from Workbench Executing the Coupled Analysis from the Command Line
Note
In the main flow of the tutorial, you use the user interface to completely solve the simulation. However, at a series of points during the tutorial you have optional instructions that produce files that will enable you to solve the simulation from the command line. The steps related to this are: 1. 2. 3. 4. 5. Optional: Preparing for a Command-line Run (p. 82) Preparing for a Command-Line Run of the Structural System (p. 90) Preparing for a Command-Line Run of the Fluent System (p. 96) Preparing for a Command-Line Run of the System Coupling System (p. 100) Executing the Coupled Analysis from the Command Line (p. 105)
If you do not want to solve the simulation from the command line, you may ignore those steps.
To simulate this case, you will set up a two-way Fluid-Structure Interaction (FSI) analysis. You will model the motion of the oscillating plate using the Mechanical applications Transient Structural analysis system. You will model the motion of the fluid in the closed cavity using the Fluent applications
80 Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Creating the Project Fluid Flow (Fluent) analysis system. The two analyses are solved at the same time with the System Coupling system coordinating the solution process as well as the data transfers between the two analysis systems. The two-way coupling involves two data transfers: Force data from the motion of the air is received by the Transient Structural analysis system as it solves the structural behavior over time. Displacement data from the motion of the plate is received by the Fluid Flow (Fluent) analysis system as it solves the fluid behavior over time. The oscillation of the plate is dependent on time, and so you need to choose appropriate time values for the coupled transient analysis: Time duration is the total time observed in the analysis. In this analysis, you will set the time duration to be 10 s, which is enough time to observe the plate oscillating a few times. With this time duration, you will not model the full damping back to the plates equilibrium. When setting up a transient analysis, make sure that you choose a time duration that will allow you to observe the behavior of interest in your system. Time step is the size of the time increments that you are solving within your transient analysis. In this analysis, you will set the time step to be 0.1 s, which is fine enough to observe the oscillations to a reasonable degree. When setting up a transient analysis, make sure you choose a time step that works for the physics you are solving. Too large a time step will miss behavior of the system, and too small a time step will be computationally expensive.
3. 4. 5.
Select the path to your working directory to store files created during this tutorial. Under File name, type SystemCouplingOscillatingPlate and click Save.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
81
Tutorial: Oscillating Plate with Two-Way Fluid-Structure Interaction The project files and their associated folder locations appear under the Files view. To make the Files view visible, select View > Files from the main menu of ANSYS Workbench. 6. This tutorial uses the geometry file, oscillating_plate.agdb, for setting up the project. To access tutorials and their input files on the ANSYS Customer Portal, go to http://support.ansys.com/training. Copy the supplied geometry file, oscillating_plate.agdb, to the user_files directory that is in the SystemCouplingOscillatingPlate_files directory. By working with a copy of the geometry file in your working directory, you prevent accidental changes to the original geometry file.
82
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Adding Analysis Systems to the Project A Fluid Flow (Fluent) system, coupled to the Structural system, is added to the Project Schematic. This Fluid Flow (Fluent) system is connected to the Structural system through the Geometry cell (A3 to B2), and so both of these systems will share the same geometry. 4. 5. 6. 7. 8. Change the name of this system to Fluid. In this tutorial, Fluid system will be used to refer to the Fluid Flow (Fluent) system. Expand the Component Systems toolbox, drag a System Coupling system and drop it to the right of the Fluid Flow (Fluent) system. Drag the Structural system's Setup cell (A5) and drop it on the System Coupling systems Setup cell (C2). Drag the Fluid system's Setup cell (B4) and drop it on System Coupling systems Setup cell (C2). Now all three systems are connected for a two-way FSI analysis. Save the project.
The Project Schematic should appear as shown in Figure 13: System Coupling of Transient Structural and Fluid Flow (Fluent) Systems (p. 83). Figure 13: System Coupling of Transient Structural and Fluid Flow (Fluent) Systems
The Structural and Fluid systems have various cells. The icons on the right side of each cell provides visual indications of a cell's state at any given time. In your current Project Schematic in Workbench (shown in Figure 13: System Coupling of Transient Structural and Fluid Flow (Fluent) Systems (p. 83)), most cells appear with a blue question mark ( ), indicating that cells need to be set up before continuing the analysis. As these cells are set up, the data transfer occurs from top to bottom. See Understanding Cell States for a description of various cell states. Now that your project systems are in place, you can start working through your analysis. Your current project systems enables you to perform your analysis by: adding a new material, sharing the geometry, setting up the physics in the Structural system, setting up the physics in the Fluid system,
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates. 83
Tutorial: Oscillating Plate with Two-Way Fluid-Structure Interaction defining and running the coupling in the System Coupling system, and viewing the results in CFD-Post.
84
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Adding Geometry to the Project 4. 5. In the Properties of Outline Row 4: Plate view, set the Value of Density (B2) to 2550 kg m^-3. Do not type in units. In the toolbox under Linear Elastic, drag Isotropic Elasticity onto Plate (A4) in the Outline of Schematic A2: Engineering Data view. Isotropic Elasticity is added as the plate property in the Properties of Outline Row 4: Plate view. 6. In the Properties of Outline Row 4: Plate view, expand Isotropic Elasticity by clicking the plus sign. Now set Youngs Modulus to 2.5e06 [Pa] and Poissons Ratio to 0.35. Do not type in units.
The desired plate data is created and is available to the remaining cells in the Structural system. The next step is to set Plate as the default material for the analysis as outlined below: 1. 2. 3. In the Outline of Schematic A2: Engineering Data view, under Material, right-click Plate (A4) and select Default Solid Material For Model. From the main menu, select File > Save to save material settings to the project. Close the Engineering Data tab to return to the Project Schematic.
3.
5.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
85
Tutorial: Oscillating Plate with Two-Way Fluid-Structure Interaction bodies from within the Mechanical and Meshing applications, so no further changes are needed in DesignModeler.
Note
Because the Structural systems Geometry cell (A3) shares its content directly with the Fluid systems Geometry cell (B2), you can edit the geometry only through the Structural systems Geometry cell (A3).
You will define the mesh by marking divisions on the edges of the solid. These divisions will be used as guides for the mesh creation:
86
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Click an edge that lies parallel to the X axis. In the Outline, right-click Mesh and select Insert > Sizing. Beside Type, select Number of Divisions from the drop-down menu. Beside Number of Divisions, select 1.
Repeat steps a to d to create 10 divisions on an edge that is parallel to the Y axis and 4 divisions on an edge that is parallel to the Z axis. To summarize: Edge Direction X axis Y axis Z axis Number of Divisions 1 10 4
6.
In the Outline, right-click Mesh and select Generate Mesh from the shortcut menu. A hex mesh is generated on your solid body.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
87
Tutorial: Oscillating Plate with Two-Way Fluid-Structure Interaction 1. 2. 3. Set Step End Time to 10. Set Auto Time Stepping to Off. Set Time Step to 0.1.
Inserting Loads
The loads applied for the structural analysis are equivalent to the boundary conditions in a fluid analysis. In this section, you will set the following loads and interface: a fixed support on the bottom of the plate a fluid-solid interface where the plate interacts with the fluid a pressure load on one side of the plate, to start the oscillation On the surfaces of the plate that lie coincident with the symmetry planes, you will not set a load. With no load set, the default of an unconstrained condition will be applied on these two surfaces. For this particular case, this unconstrained condition is a reasonable approximation of the frictionless support that would otherwise be applied.
That face is highlighted to indicate the selection. 3. In the Details of Fixed Support view, click Apply beside Geometry to set the fixed support. If the Apply button is not visible, select Fixed Support in the Outline view and, in the Details view, click the text next to the Geometry setting to make the Apply button reappear. The text next to the Geometry setting changes to 1 Face.
88
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Defining the Physics in the Mechanical Application 2. Using the same face-selection procedure described earlier in Defining the Fixed Support (p. 88), select the three faces of the geometry that form the interface between the structural model and the fluid model (low-x, high-y and high-x faces). Hold down Ctrl to be able to select multiple faces. In the Details of Fluid Solid Interface, beside Geometry, click Apply. The text next to the Geometry setting changes to 3 Faces. Note that this load (fluid-solid interface) is automatically given an Interface Number of 1.
3.
You now have tabular data similar to a step function for your pressure, with 100 Pa applied for 0.5 s. The step function is displayed in the graph to the left of the table. 6. 7. The settings for the structural physics are now complete. Save these settings by selecting File > Save Project from Mechanicals main menu. If you do not intend to execute a command line run using the set up from the Mechanical system, proceed to Completing the Setup for the Structural System (p. 90). If you do intend to execute a command line run, continue with the next section.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
89
Tip
The Write Input File option is available only if you have Transient (A5) selected in the Outline tree.
Note
Though out of the scope of this tutorial, below is information about augmenting your structural setup, and transferring the structural setup from the Mechanical application to the Mechanical APDL application. In some cases, you may need to augment your structural setup in the Mechanical APDL application. If this is the case, then open that application and select File > Read Input From to choose the .dat file created by Mechanical. Once the .dat file has been read, make your setup modifications and write a Mechanical APDL Database file using File>Save As Jobname.db or File >Save As. Starting the Mechanical APDL solver from the created database file is explained later in the tutorial. Transferring the structural setup from the Mechanical application to the Mechanical APDL application is facilitated in ANSYS Workbench. To do this, right-click the Mechanical system's Setup cell (A5), and select Transfer to New > Mechanical APDL. Once the new Mechanical APDL system is introduced, update the upstream Mechanical system's Setup cell (A5). The setup will be read into the Mechanical APDL user interface by right-clicking that system's Analysis cell and selecting Edit in Mechanical APDL.
The set up for the Structural system is complete. Remember that you will not solve the structural analysis from the Mechanical application because you are using the System Coupling system to solve both Structural and Fluid systems at the same time. In the next section, you will set up the Fluid system.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
90
91
Tutorial: Oscillating Plate with Two-Way Fluid-Structure Interaction f. Select Face , then Ctrl-select all five fluid faces on one of the walls in the x-y-plane (either side of the wall will work). In the Details view, beside Source, click No Selection. Click the Apply button that appears. The text next to Source changes to 5 Faces.
g.
h. i. j.
Set Free Face Mesh Type to All Quad so that all of the mesh elements are quadrilateral. Next to Sweep Num Divs, set the value to 1. In the Outline above, click Mesh. In the Details of Mesh, expand Sizing and set Min Size to 0.06 and Max Face Size to 0.2. These settings control the size of the mesh elements that will be generated.
92
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Setting up your Fluid Analysis 6. Now that all of the settings for your swept mesh are complete, you need to generate the mesh. In the Outline, right-click Mesh and select Update. The swept mesh that you have defined is now generated for your fluid bodies. 7. Select File > Save Project, and then File > Close Meshing to close the Meshing application.
Tutorial: Oscillating Plate with Two-Way Fluid-Structure Interaction Set up the dynamic mesh: 1. 2. 3. On the left, select Solution Setup > Dynamic Mesh. Check the Dynamic Mesh option in the panel. The settings for Dynamic Mesh are now available. Under Mesh Methods, Smoothing is checked by default. Click the Settings button to specify the settings for the smoothing used. The Mesh Method Settings dialog box appears. a. b. 4. On the Smoothing tab, set Method to Diffusion. For the Diffusion Parameter, type 2. Click OK to close the Mesh Method Settings dialog box.
Under Dynamic Mesh Zones, click Create/Edit to specify which zones in your geometry will have dynamic meshing. The Dynamic Mesh Zones dialog box appears.
5.
Define the dynamic mesh settings needed for the surface symmetry1 , which is the wall in the x-y plane that goes through the origin. This surface will be affected by the solid bodys displacement, and its mesh needs to be able to deform. a. b. c. d. e. f. g. In the Dynamic Mesh Zones dialog box, under the Zone Names drop down list, select the zone symmetry1 . Set its Type as Deforming. Select the Geometry Definition tab. Specify the Definition as plane . Specify Point on Plane as 0,0,0 Specify Plane Normal as 0,0,1 Click Create at bottom of dialog box to create this dynamic mesh zone. The list of Dynamic Mesh Zones on the right side of the dialog box now includes the symmetry1 .
6.
Define the dynamic mesh settings needed for the surface symmetry2 , which is the second wall in the x-y plane. This surface will be affected by the solid bodys displacement, and its mesh needs to be able to deform. a. b. c. d. e. Under the Zone Names drop down list, select the zone symmetry2 . Set its Type as Deforming. Select the Geometry Definition tab. Specify the Definition as plane . Specify Point on Plane as 0,0,0.4
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
94
Setting up your Fluid Analysis f. g. Specify Plane Normal as 0,0,1 Click Create at bottom of dialog box to create this dynamic mesh zone. The list of Dynamic Mesh Zones now includes the symmetry2 . 7. Define the dynamic mesh settings needed for the surface wall_bottom , which is the two surfaces on the bottom of the fluid zones (the two surfaces are interrupted by the solid body in the middle of the geometry). This surface is not affected by the solid bodys displacement, and so its mesh should remain stationary. a. b. Under the Zone Names drop down list, select the zone wall_bottom . Set its Type as Stationary, then click Create at bottom of dialog box to create this dynamic mesh zone. The list of Dynamic Mesh Zones now includes the wall_bottom . 8. Repeat the previous step's instructions to create stationary dynamic mesh zones for the three surfaces below. These three surface complete the enclosed cavity, and they are not affected by the solid bodys displacement. Their mesh should remain stationary. wall_top wall_inlet wall_outlet 9. Define the dynamic mesh settings needed for the surfaces in the zone wall_deforming , which are the surfaces surrounding the solid body. These surface will deform throughout the simulation. a. b. Under the Zone Names drop down list, select the zone wall_deforming . Set its Type as System Coupling, then click Create at bottom of dialog box to create this dynamic mesh zone. The list of Dynamic Mesh Zones now includes the wall_deforming . 10. You now have seven dynamic mesh zones defined and listed on the right of the dialog box. Click Close.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
95
Tutorial: Oscillating Plate with Two-Way Fluid-Structure Interaction 2. 3. On the left side of the Fluent application, select Solution > Calculation Activities, then specify Autosave Every (Time Steps) to be 2. On the left side of the Fluent application, select Solution > Run Calculation, then: a. b. c. Specify Number of Time Steps to be 10. Note that the system couplings number of time steps will override this value. Specify the Max Iterations/Time Step to be 5. This value is the maximum amount of times that Fluent can iterate within a coupling iteration. Leave the default Time Step Size (s) as 1, but note that the system couplings time step size will override this value.
4. 5. 6. 7. 8.
On the left side of the Fluent application, select Solution > Solution Initialization. Under Initialization Methods, click the Standard Initialization option. In Solution > Solution Initialization, click Initialize. Save the project. If you intend to execute a command line run using the setup from the Fluent system, go to Preparing for a Command-Line Run of the Fluent System (p. 96). If you do not intend to execute a command line run using the setup from the Fluent system, Select File > Close Fluent to close Fluent and to return to the Project Schematic. The setup for the Fluid system is complete. Remember that you will not solve the fluid analysis from the Fluent application because you are using the System Coupling system to solve both structural and fluid systems at the same time. In the next section, you will set up the System Coupling system. Proceed to the section Defining and Running the Coupling in the System Coupling Application (p. 97).
Important
You should perform this step before updating the coupled solution within the Workbench environment for the following reasons: Editing the Fluent systems Setup cell after a solution is executed will clear all existing solution files. Editing the Fluent systems Solution cell after a solution is executed will load the most recent (rather than the original) case and data files.
96
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Defining and Running the Coupling in the System Coupling Application You may now close Fluent.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
97
Tutorial: Oscillating Plate with Two-Way Fluid-Structure Interaction 2. Ctrl-select the "wall_deforming" (from the Fluid system) and "Fluid Solid Interface" regions (from the Structural system). With both selected, right-click on one of those regions and select Create Data Transfer. Under System Coupling > Setup > Data Transfers, Data Transfer and Data Transfer 2 are created: a. b. Data Transfer: here, the surface of the Fluid system around the plate transfers force to the surface of the Structural system around the plate. Data Transfer 2: here, the surface of the Structural system around the plate transfers displacement to the surface of the Fluid system around the plate.
Click on System Coupling > Setup>Data Transfers > Data Transfer. In the Properties of DataTransfer on the bottom left, notice that the source, target and variable transferred are already defined for each of these data transfers. These settings are also already defined for Data Transfer 2.
Note
Recall that earlier, the Fluent auto-save frequency was set to 2 so that Fluent will output result files (case and data files) every two time steps (that is, 2, 4, 6, 8, 10, etc.). Fluent will also output additional result files at 5, 10, 15, 20 etc. based on the Step Interval frequency specified for the Intermediate Restart Data Output. In CFD-Post, both sets of files will be available for post-processing.
Defining and Running the Coupling in the System Coupling Application 100 coupling steps because you specified an end time of 10 s in System Coupling (time duration in Mechanical), and each coupling step represents 0.1 s (step size in System Coupling, and time step in Mechanical). Note that you can alternatively start solving the coupled analysis from Workbenchs Project Schematic: a. To return to the Project Schematic, click on the Project tab in Workbench. To start the solution process from the Project Schematic view, right-click the System Coupling systems Solution cell (C3) and choose Update. Notice that the Structural and Fluid systems Solution cells (A6 and B5) update operations are disabled because the coupled solution process must be run through the System Coupling system. b. Click on the System Coupling tab to return to the System Coupling system and observe the coupled solution progress. If you closed the System Coupling application and so there is no System Coupling tab, you can re-open the System Coupling user interface by double-clicking on its Solution cell (C3). 2. 3. On the bottom right of the screen, click on Show Progress to see the progress of your solution. As your analysis is solved, in the Solution Information view, information from the System Coupling Log file is displayed. Useful information includes: a. b. Each coupling step and coupling iteration is recorded with information about convergence of the data transfer. At the beginning of the file (scroll up in your Solution Information view), there is an overview of the participants (the Fluid and Structural system), the data transfers, the System Coupling settings, and a mapping summary. The Mapping Summary has information about the percentage of nodes on your fluid-structure interface that are mapped. This information is used to determine the quality of the mapping in your system.
c.
4.
Restart data will be output during the solution process. An additional note will be seen in the System Coupling log output under Solution Information indicating the name and frequency of the system coupling result file. For example, the intermediate result file is written: scResult_01_000005.scr. The restart data for Fluent will also be output at the same frequency during the coupled solution. When the coupled solution completes, Mechanical restart files (that is, file.r001, file.r002 etc.) will be visible in the Workbench project files (that is, they are automatically transferred from the solver temporary/scratch folder). The file naming convention is such that file.r001 refers to a Mechanical restart file at step 5, file.r002 refers to a Mechanical restart file at step 10, and so on. The System Coupling solution is complete when the System Information view reads System coupling run completed successfully. Select File > Save to save the project, and then click on the Project tab to return to the Project Schematic.
5. 6.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
99
Creating an Animation
An animation is a good way to view results in a transient analysis. In this animation, you will show: The pressure and velocity of the fluid on the symmetry plane The deformation of the plate geometry, with stress visible Set up your animation: 1. From the task bar at the top of the CFD-Post application, select Tools > Timestep Selector to open the Timestep Selector dialog box. The Timestep Selector dialog box shows the results time history for both Fluent and MAPDL system coupling. 2. In the Timestep Selector dialog box, on the Fluid tab, select a Time of 0.2 s for the Fluid case, then click Apply.
100
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Viewing Results in CFD-Post Close the Timestep Selector dialog box. 3. Under Cases > Fluid at 0.2s > Part Fluid, check the symmetry1 zone under the Fluid case to display that zone, then double-click to edit it. a. b. c. In Details of symmetry1, on the Color tab set the Mode to Variable and set Variable to Pressure. On the Render tab, clear the Lighting check box and check Show Mesh Lines. Click Apply to save your changes. The pressure at 0.2 s is now visible on the one side of the fluid geometry.
4.
Under Cases > Structural at 0.2s > Default Domain, check the Default Boundary zone, then doubleclick to edit it. a. b. c. In the Details of Default Boundary, on the Color tab, set the Mode to Variable and set Variable to Von Mises Stress. On the Render tab enable Show Mesh Lines. Click Apply. Stress is now visible on the structural body.
5.
From the task bar at the top of the CFD-Post application, select Insert > Vector to create a vector plot. Accept the default name and click OK. a. b. c. In the Details view on the Geometry tab, set the Locations to symmetry1, set Sampling to Face Center, and ensure that Variable is set to Velocity. On the Symbol tab, set Symbol to Arrowhead3D. Click Apply. A vector plot of the velocity is now visible on the one side of the fluid geometry.
6. 7.
In the Outline under User Locations and Plots, clear the Default Legend View 1 check box. From the task bar at the top of the CFD-Post application, select Insert > Text and click OK to accept the default name. a. b. c. In the Details of Text 1 view, for Text String, type Time = . Check the Embed Auto Annotation, and from the Expression drop-down list select Time Value. On the Location tab, set X Justification and Y Justification to None, and set the Position text as 0.1 in the first field, and 0.2 in the second field. Click Apply.
The corresponding transient results are loaded into the Animation in CFD-Post, and when you run the animation, you can see the mesh move in both the Fluent and Mechanical regions. 1. 2. Zoom in so that you can see the oscillating plate clearly. At the top of the CFD-Post application, click Animation .
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
101
Tutorial: Oscillating Plate with Two-Way Fluid-Structure Interaction The Animation dialog box appears. 3. 4. Select Keyframe Animation. In the Animation dialog box: a. b. c. Click New to create KeyframeNo1.
Highlight KeyframeNo1, then change # of Frames to 48. Load the last timestep (100) using the Timestep Selector terface). Back in the Animation dialog box, click New (found at the top of the CFD-Post In-
d.
to create KeyframeNo2.
The # of Frames parameter has no effect for the last keyframe, so leave it at the default value. e. f. Click the More Animation Options button Click Browse , then check the Save Movie check box.
next to Save Movie to set a path and file name for the movie file.
If the file path is not given, the file will be saved in the directory from which CFD-Post was launched. g. Click Save. The movie file name (including path) will be set, but the movie will not be created yet. h. If frame 1 is not loaded (shown in the F: text box in the middle of the Animation dialog box), click To Beginning to load it. Wait for CFD-Post to finish loading the objects for this frame before proceeding. i. Click Play the animation .
The movie will be created as the animation proceeds. This process will be slow, since a timestep must be loaded and objects must be created for each frame. j. k. Save the results by selecting File > Save Project from the main menu. Close the animation dialog box. Your animation is now saved in the file path you specified. You can play the video in any media player.
102
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Viewing Results in CFD-Post a. b. c. From the task bar at the top of the CFD-Post application, select Insert > Location > Point. Click OK to accept the default name. In the Details view, on the Geometry tab, set Domains to Default Domain, set Method to Node Number, and set Node Number to 77. Click Apply. On your model, cross hairs appear on node number 77, so you can see where this point is on your solid body.
2.
To view the deformation using the point you just created, insert an XY Transient Chart for the data at this node (Point 1). In the chart you create, the x-axis is time, and the y-axis is the total mesh displacement. a. b. c. d. e. From the task bar at the top of the CFD-Post application, select Insert > Chart; click OK to accept the default name. In the Details view, on the General tab, set Type to XY - Transient or Sequence On the Data Series tab, for Name type System Coupling, and set Location to Point 1. On the X Axis tab, ensure that the Expression is Time. On the Y Axis tab, set the Variable to Total Mesh Displacement X.
3.
Click Apply to generate the chart of mesh displacement over time. After the chart is generated, note the damping that is visible in the plates motion. The plate does not return to equilibrium in this chart because of the length of time we chose for the simulation of this case. To see the full damping of the system, you would need to simulate the case for a longer time duration.
4.
Save the project and then select File > Close CFD-Post.
Post-Processing in Mechanical
You can also see the structural results of your FSI analysis in the Mechanical application. Note that the Mechanical system does not have any information about results on the fluid bodies. 1. From the Project Schematic, double-click the Results cell (A7) to relaunch ANSYS Mechanical. The Mechanical application opens in a new window. 2. 3. 4. In the Outline view, right-click Solution A6 and select Insert > Stress > Equivalent (von Mises) results. Right-click Solution A6 again and select Insert > Deformation > Directional results. Right-click Solution A6 again and select Evaluate All Results. The equivalent stress and directional deformation of the place are now visible on your model. 5. 6. Under Solution A6 click Equivalent Stress to view the stress on the structural body. Under Solution A6 click Directional Deformation to view the deformation of the structural body.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
103
Tutorial: Oscillating Plate with Two-Way Fluid-Structure Interaction 7. From your Project Schematic, save the project.
All systems are now complete and the Project Schematic is up-to-date.
104
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Note
In order to be able to execute runs from the command line, all executables and dynamic library dependencies must be properly resolved. For more information, see Executing System Couplings Using the Command Line.
2.
3.
An additional input file is required to execute the Fluent solver in batch mode. In the SystemCouplingOscillatingPlate_CmdLine directory, create a journal file named fluidFlow.jou that contains the following:
file/start-transcript "Solution 1.trn" file set-batch-options , yes , file/read-case/fluidFlow.cas s i i (sc-solve) wcd FLUENTRestart.cas.gz exit ok
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
105
Tip
You may prefer to add the previous command to a batch file. Now when you run the System Coupling service command, the coupling service starts and creates the System Coupling Server File (SystemCouplingOscillatingPlate_CmdLine\Coupling_CmdLine\scServer.scs). For details, see Files Generated by Coupling Service (p. 56). 2. Open scServer.scs and review its contents, which will be similar to the following:
12345@yourmachine 2 Solution Structural Solution 1 Fluid
where: 12345 is the server port yourmachine is the host's name 2 indicates that two participant connections are expected The unique names to be used when starting the structural and fluid flow solvers are, respectively: "Solution" and "Solution 1". The unique names from the solver(s) are encoded in the coupling service input file and are reported here along with the names of the systems in the Workbench schematic. Note this correlation, since the unique names are needed when starting the respective solvers. Note, as well, that the unique names are determined by Workbench and can vary depending upon the order in which systems were introduced into the schematic. 3. Copy the fluidFlow.cas file into the FluidFlow_CmdLine subdirectory. This step ensures that Fluent treats that subdirectory as the run directory, and generates all subsequent case and data files there. By keeping the basic input files separate from the run directories, you can easily clear or delete the run directories for retries. 4. From a new command window, change to the FluidFlow_CmdLine subdirectory, then run the Fluent solver by entering the following command:
"C:\Program Files\ANSYS Inc\v150\fluent\ntbin\win64\fluent.exe" 3ddp -hidden -driver null -scport=12345 -schost=yourmachine -scname="Solution 1" -i ..\fluidFlow.jou>FLUENT.out
5.
From a new command window, change to the Structural_CmdLine subdirectory, then run the Mechanical APDL solver by entering the following command:
106
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Note
In steps 4 and 5 above, you may need to adjust the coupling service port and host (12345 and yourmachine, respectively) and solvers' unique names ("Solution" and "Solution 1" for the Mechanical APDL and Fluent solvers, respectively) based upon information extracted from the system coupling server file. The input file name, structural.dat, will need to be replaced with the name of the manually-created input file (e.g. mapdl.dat) if such a file was created to enable a resume from a Mechanical APDL database file.
Note
The "-1-" in the file name fluidFlow-1-00050.cas represents the run number and may be different in your system, depending upon how many runs were completed before writing the .cas file.
2.
Create a restart input file for the Mechanical APDL solver. Name this file structuralRestart.dat, and have it contain the following:
/batch /solu /gst,on,on antype,4,rest,50,1,continue solve save finish /exit
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
107
2.
Open the system coupling server file (scServer.scs) and note the coupling servers port and host. Note that the solvers unique names have not changed because they are encoded in the coupling services input file. Change to the FluidFlow_CmdLine subdirectory, and run the Fluent solver by entering the following command:
"C:\Program Files\ANSYS Inc\v150\fluent\ntbin\win64\fluent.exe" 3ddp -hidden -driver null -scport=12345 -schost=yourmachine -scname="Solution 1" -i ..\fluidFlowRestart.jou>FLUENTRestart.out
3.
4.
Change to the Structural_CmdLine subdirectory, and run the Mechanical APDL solver by entering the following command:
"C:\Program Files\ANSYS Inc\v150\ansys\bin\winx64\ANSYS150.exe" -b -scport 12345 -schost yourmachine -scname "Solution" -i ..\structuralRestart.dat -o ANSYSRestart.out
Note
In steps 3 and 4 listed above, you may need to adjust the coupling service port and host (12345 and yourmachine, respectively) and solvers' unique names ("Solution" and "Solution 1" for the Mechanical APDL and Fluent solvers, respectively) based upon information extracted from the system coupling server file.
108
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Executing the Coupled Analysis from the Command Line 7. Proceed to Viewing Results in CFD-Post (p. 100) for instructions on how to post-process the results. When following these instructions, remember that your command line structural results will appear under the name file , and not Structural .
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
109
110
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
111
The tutorial is divided into two parts. In the first part, the convective heat transfer experienced by the heating coil is estimated and the steady-state thermal analysis is executed for the solid model. The resulting temperature from the coil surface is then used to execute the fluid analysis. In the second part of the tutorial, the thermal analysis for the solid model is also executed, however the convective heat transfer obtained from the fluid analysis is used instead of the original estimate. In a case such as the one described here, there are advantages to using one-way data transfer instead of conjugate heat transfer or two-way analysis. One-way data transfer works well when separate groups are performing the computational fluid dynamics analysis and the thermal finite element analysis. The individual solutions are simpler with a one-way analysis than they would be with a two-way coupled analysis. Another advantage of one-way data transfer is that it provides a more flexible workflow; any thermal variable of interest can be transferred. Coordinate transformations can also be applied when using one-way data transfer.
Part 1: Transferring Data from the Steady-State Thermal Analysis to the Fluid Flow Analysis
This part of the analysis has the following steps: Creating the Project Adding Analysis and Component Systems Adding New Materials for the Project Adding Geometry to the Project Preparing the Steady-State Thermal Source Data Using External Data to Access the Steady-State Thermal Source Data Preparing the Fluid Flow Analysis Preparing and Executing the Coupled Thermal Analysis Reviewing Results in CFD-Post
112
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Part 1: Transferring Data from the Steady-State Thermal Analysis to the Fluid Flow Analysis To launch ANSYS Workbench on Linux, open a command line interface and enter the path to runwb2. For example: ~/ansys_inc/v150/Framework/bin/Linux64/runwb2 The Project Schematic appears with an Unsaved Project. By default, ANSYS Workbench is configured to show the Getting Started dialog box that describes basic operations in ANSYS Workbench. To control the display of this dialog box, select Tools>Options from the main menu and go to Project Management>Startup and select or clear the Show Getting Started Dialog check box. 2. 3. Create a directory where you will store your project (this is your working directory). For example, under My Documents, create a directory named SystemCouplingHeatingCoilTutorial. Select File>Save. A Save As dialog box appears. 4. 5. Select the path to your working directory to store files created during this tutorial. Under File name, type SystemCouplingHeatingCoil and click Save. The project files and their associated directory locations appear under the Files view. To make the Files view visible, select View>Files from the main menu of ANSYS Workbench. 6. This tutorial uses the geometry file, HeatingCoil.agdb, and a Fluent mesh file, HeatingCoilFLUENTMesh.msh, for setting up the project. To access tutorials and their input files on the ANSYS Customer Portal, go to http://support.ansys.com/training. Copy the supplied geometry file, HeatingCoil.agdb, and the mesh file, HeatingCoilFLUENTMesh.msh, to the user_files directory that is in the SystemCouplingHeatingCoil_files directory. By working with copies of the geometry and mesh files in your working directory, you prevent accidental changes to the original files.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
113
Tutorial: Heat Transfer from a Heating Coil 4. Drag the Setup cell from the Fluid Flow (Fluent) system (B4) and drop it onto the Setup cell in the System Coupling system (C2). That establishes the relationship between the fluid flow and the external data that is coming in through system coupling. From the Component Systems toolbox, drag an External Data system onto the Project Schematic and drop it between the Steady-State Thermal system and the Fluid Flow (Fluent) system. Note that this changes the lettering of the Fluid Flow (Fluent) system from (B) to (C) and the System Coupling system from (C) to (D). 6. Drag the Setup cell from the External Data system (B2) and drop it onto the Setup cell in the System Coupling system (D2). Save the project: click Save .
5.
7.
The Project Schematic should appear as shown in Figure 14: Project Schematic of a Fluid Solid Interface, System Coupling Problem (p. 114). Figure 14: Project Schematic of a Fluid Solid Interface, System Coupling Problem
The Structural and Fluid systems contain various cells. ANSYS Workbench provides visual indications of the state of a cell at any given time via icons on the right side of each cell. In Figure 14: Project Schematic of a Fluid Solid Interface, System Coupling Problem (p. 114), most cells appear with a blue question mark , indicating that cells need to be set up before continuing the analysis. As these cells are set up, the data transfer occurs from top to bottom. See Understanding Cell States for a description of various cell states. Now the project is ready for further processing. A project schematic such as this with interconnected systems enables you to perform a multiphysics analysis by adding a new geometry, setting up the physics of the individual systems (Steady-State Thermal, and Fluid Flow systems in this example), and also viewing the results.
114
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
3. 4. 5. 6. 7.
Part 1: Transferring Data from the Steady-State Thermal Analysis to the Fluid Flow Analysis Select Engineering Data Sources. Click General Materials in the Data Source column of the Engineering Data Sources tab. In the Outline of General Materials section, click the plus sign beside the Copper Alloy option to add copper alloy material to the project. You now have all the material properties that you need for the project. At the top of your Workbench window, close the Engineering Data tab to return to the Project Schematic. From the main menu, select File>Save to save material settings to the project.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
115
Tutorial: Heat Transfer from a Heating Coil 6. 7. Click Project>Model (A4)>Mesh to open the Details of Mesh view. In the Details of Mesh view, select Sizing>Element Size and enter 0.05. This creates triangular elements on the source face. These triangular elements then get swept through the coil body during the Sweep. Quad elements are not used for this case because the coarse mesh that is used would result in a poor quality mesh on the source face. 8. Right-click Project>Model (A4)>Mesh and select Generate Mesh.
10. Change Definition>Film Coefficient to 1000 W/m2C. 11. Change Definition>Ambient Temperature to 30C. The heat transfer (film) coefficient value should be approximately 1000 W/m2C. This will be the estimate that you use for this part of the tutorial. In a later part of this tutorial, you will run the CFD analysis and compare the estimated number to the calculated number for the heat transfer coefficient value. At that time, you will replace the estimated heat transfer coefficient value with the full set of heat transfer coefficient values that are calculated from the fluid dynamics side. 12. To define the fluid solid interface, in the Mechanical application Outline view, right-click Project>Model (A4)>Steady-State Thermal (A5) and select Insert>Fluid Solid Interface.
116 Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Part 1: Transferring Data from the Steady-State Thermal Analysis to the Fluid Flow Analysis 13. In the Details of Fluid Solid Interface view, change Scope>Scoping Method to Named Selection. 14. In the Named Selection drop-down box, select CoilSurface. 15. In the Export Results drop-down box, select Yes. This setting will make Mechanical export the static results to an ANSYS External Data file (the .axdt file). The .axdt files are generated from the results on defined fluid solid interfaces. These files will be used to transfer thermal data from ANSYS Mechanical to ANSYS Fluent when you are using External Data and System Coupling (this is the method used in this tutorial). 16. In the Mechanical application Outline view, right-click Project>Model (A4)>Steady-State Thermal (A5)>Solution (A6) and select Insert>Thermal>Temperature. 17. In the Mechanical application Outline view, right-click Project>Model (A4)>Steady-State Thermal (A5)>Solution (A6) and select Insert>Thermal>Total Heat Flux. 18. Click File>Save Project.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
117
Tutorial: Heat Transfer from a Heating Coil Figure 15: Temperature of the Coil
2.
To look at the total heat flux distribution, in the Mechanical application Outline view, click Project>Model (A4)>Steady-State Thermal (A5)>Solution (A6)>Total Heat Flux.
118
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Part 1: Transferring Data from the Steady-State Thermal Analysis to the Fluid Flow Analysis Figure 16: Total Heat Flux Distribution on the Coil
In the Messages view, just under the viewer window, there will be an Info message that states, "The thermal results at the Fluid Solid Interface(s) have been written to the solver files directory." This tells you that the .axdt file has been created. You now have an ANSYS External Data file (.axdt file) that can be brought into External Data. This file contains the Temperature and Heat Flow values exported from the Fluid Solid Interface region that you defined. This file will be imported into External Data to provide thermal boundary conditions for Fluent via the System Coupling component. 3. Click File>Save Project and File>Close Mechanical.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
119
Tutorial: Heat Transfer from a Heating Coil 4. Under Location in the Outline of Schematic section, click the button and select Browse. Use Ctrl-v to paste the location of the fsin_1.axdt file into the File Name field. Press the Enter key on your keyboard to open the directory that contains the fsin_1.axdt file. Select the fsin_1.axdt file and click Open. All the information about the external data for this project has been automatically entered into the appropriate data sections. In the Properties of File section, the Value of the Format Type is AXDT. The Table of File section summarizes the x, y and z coordinate data that appear in the Preview of File section. There are also temperature values in Celsius and heat rate in Watts that have been imported from the fsin_1.axdt file. You can scan this data to ensure that it seems reasonable for this project. 7. 8. Close the External Data tab to return to the Project Schematic. On the Project Schematic, right-click the Setup cell in the External Data system (B2) and select Update.
5. 6.
Select Solution Setup>Models>Energy>Edit. Check the Energy Equation check box and click OK. In the Models setting, click Viscous Laminar>Edit. Select k-epsilon (2 eqn) for the Model and Scalable Wall Functions for the Near-Wall Treatment. Click OK. Select Solution Setup>Materials>Fluid. Click the Create/Edit button. Click the Fluent Database button.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
8. 9.
Part 1: Transferring Data from the Steady-State Thermal Analysis to the Fluid Flow Analysis In the Fluent Fluid Materials section, select water-liquid (h2o<l>). Click the Copy button to add water to this problem and click Close.
10. In the Create/Edit Materials panel, click Change/Create and Close. 11. Select Solution Setup>Cell Zone Conditions>Edit. 12. In the Fluid panel, change Material Name to water-liquid. Click OK. 13. Select Solution Setup>Boundary Conditions. 14. Before you select a zone, select the Highlight Zone check box in order to display only the selected zone in the viewer. 15. Select coilsurface>Edit. 16. In the Wall panel, in the Thermal tab, set the Thermal Conditions to via System Coupling. Click OK. This boundary is now marked as one that will participate in couplings. It will be able to accept either temperature or heat flow data. 17. Select inflow. 18. Change the Type to velocity-inlet and click Yes to accept this change. 19. In the Velocity Inlet panel, set the Velocity Magnitude to 0.4 and click OK. 20. Select outflow. 21. Change the Type to pressure-outlet and click Yes to accept this change. 22. In the Pressure Outlet panel, verify that the Gauge Pressure is 0. Click OK. 23. Select Solution>Solution Methods and set the Scheme to Coupled. 24. Select Solution>Monitors>Residuals, Statistics and Force Monitors>Residuals - Print, Plot and click Edit. 25. In the Residuals Monitors panel, under Equations, change Absolute Criteria for energy residual from 1e-06 to 1e-05. 26. Click OK. In this problem, energy residuals level off around 8e-06. This step ensures that Fluent terminates once this level of convergence is reached during the coupled analysis. 27. Select Solution>Run Calculation and set the Number of Iterations to 200. 28. Click File>Save Project to pass the changes to Workbench. 29. Now that the physics is defined, close Fluent. The next step is to set up the coupled thermal analysis.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
121
Note
For one-way steady thermal coupled analyses, it is good practice to use one coupling iteration per run. This can be done by selecting Analysis Settings in the tree view and changing Maximum Iterations to 1 in the details view. However, in this tutorial, default settings will be used.
10. Click on the Project tab in Workbench to return to the Project Schematic, keeping the System Coupling tab open. 11. From the Project Schematic, right-click the Fluid Flow (Fluent) systems Solution cell (C4) and select Properties. In the Properties view that appears in Workbench, check Solution Monitoring. This setting will allow you to monitor Fluents solution from Workbench. Right-click the Fluid Flow (Fluent) systems Solution cell (C4) and select Show Solution Monitoring. A new tab opens with the solution monitor. When you solve your analysis using System Coupling, use this tab to watch Fluent solve the fluid part of this analysis. 12. Click on the System Coupling tab in Workbench to return to the system coupling interface. 13. In Outline of Schematic D1: System Coupling, right-click System Coupling>Solution and select Update. This starts the coupled analysis. Fluent connects up to the coupling service and will run end-toend. Fluent will accept external data and will run through its full convergence. Solution progress
122
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Part 1: Transferring Data from the Steady-State Thermal Analysis to the Fluid Flow Analysis is summarized in the Scene Chart Monitor : Chart and Solution Information : System Coupling views. 14. In Outline of Schematic D1: System Coupling, right-click System Coupling>Solution>Chart Monitors and select Create Convergence Chart to create a new convergence chart. 15. Right-click the new Chart 2 that appears and select Add Variable>External Data>Data Transfer>Value>Average. 16. Right-click the same chart again and select Add Variable>Fluid Flow (Fluent)>Data Transfer>Value>Average. The chart shows the difference between the average nodal temperature values in Kelvin, transferred from the source region to the target region. Notice that the source and target values differ by approximately 11 degrees. This difference is due to mismatching of the nodes on the source and target sides. 17. Close the System Coupling tab to return to the Project Schematic.
2. 3. 4. 5. 6. 7. 8.
Click OK to accept the default name of Plane 1. In the Details of Plane 1 section, in the Geometry tab, set the Method to ZX Plane. In the Color tab, set the Mode to Variable and the Variable to Temperature. Set the Range to User Specified, the Min to 300 K, and the Max to 305 K. Click Apply. Click the y axis on the Viewer triad. Figure 17: Advection of Heated Water Out of the Heat Exchanger (p. 124) shows the thermal boundary layer around the coil surface and illustrates how the warmed-up fluid is being advected out of the heat exchanger. The full temperature range is much larger due to temperature extremes on a small fraction of the surface. By neglecting those extreme temperatures, more colors are used over the range of interest.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
123
Tutorial: Heat Transfer from a Heating Coil Figure 17: Advection of Heated Water Out of the Heat Exchanger
9.
For the next view, disable the plane view by deselecting the Outline>User Locations and Plots>Plane1 check box.
10. Select the Outline>Cases>FFF>part container>coilsurface check box. 11. Right-click the coil surface in the Viewer and select Color>Wall Heat Transfer Coefficient. Earlier in the tutorial, the heat transfer (film) coefficient value was estimated at approximately 1000 W/m2C. This is slightly lower than with the average calculated value on the coil surface in Figure 18: Wall Heat Transfer Coefficient on the Coil Surface (p. 125). Note that there is variability in the distribution of the heat transfer coefficient on the coil surface. This distribution will be explored in the second part of this tutorial where you will replace the estimated heat transfer coefficient value with the full set of heat transfer coefficient values that are calculated from the fluid dynamics side. The data from the first part of the tutorial will be exported from CFD-Post and brought into a system coupling analysis of a steady state thermal system.
124
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Part 1: Transferring Data from the Steady-State Thermal Analysis to the Fluid Flow Analysis Figure 18: Wall Heat Transfer Coefficient on the Coil Surface
12. For the next view, right-click the coil surface in the Viewer and select Color>Wall Adjacent Temperature. In the Defining the Steady-State Thermal Analysis (p. 116) section, we estimated that the ambient temperature of the coil surface would be approximately 30C. Figure 19: Wall Adjacent Temperature on the Coil Surface (p. 126) shows that the calculated wall adjacent temperature is close to this value with some variation. In the second part of this tutorial, we will transfer the data of the temperature distribution over to the structural side.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
125
Tutorial: Heat Transfer from a Heating Coil Figure 19: Wall Adjacent Temperature on the Coil Surface
Part 2:Transferring Data from the Fluid Flow Analysis to the Steady-State Thermal Analysis
This part of the analysis has the following steps: Exporting the Data Adding Additional Analysis and Component Systems Using External Data to Access the Fluid Flow Source Data Preparing the Steady-State Thermal Analysis Preparing and Executing the Coupled Thermal Analysis Reviewing Results in the Mechanical Application
126
2. 3. 4. 5. 6.
Part 2: Transferring Data from the Fluid Flow Analysis to the Steady-State Thermal Analysis Click File>Export>Export External Data File. In the Export External Data File panel, confirm that the File path is pointing to user_files/ex port.axdt. Select coilsurface for the Location. In the Select Recommended Variables box, select HTC and Wall Adjacent Temperature. Click Save and close CFD-Post.
2. 3. 4.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
127
Tutorial: Heat Transfer from a Heating Coil Figure 20: Project Schematic of a Fluid Solid Interface, System Coupling Problem Part 2
6. 7.
128
Part 2: Transferring Data from the Fluid Flow Analysis to the Steady-State Thermal Analysis In the first part of this tutorial, the Fluid Solid Interface was used to flag a region so that an .axdt file was created and temperature values and heat rates were output. In the second part of this tutorial, the Fluid Solid Interface will be used to receive data from system coupling as well as to create an .axdt file. 3. 4. Close the Mechanical application. Right-click the Setup cell in the Copy of Steady-State Thermal system (F5) and select Update.
3. 4.
Click in the left viewport and then in the Outline view, click Steady-State Thermal (A5)>Solution (A6)>Temperature. Click in the right viewport and then in the Outline view, click Steady-State Thermal 2 (F5)>Solution (F6)>Temperature.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates. 129
Tutorial: Heat Transfer from a Heating Coil The left view now shows the original, uncoupled case and the right view is the coupled result. 5. To synchronize the two views, click the Manage Views icon in the top menu bar.
6.
The Manage Views window appears in the lower left part of the Mechanical application window. Click in the left viewport and click the Create a View icon, . Click in the right viewport, select View 1 and click the Apply a View icon, .
7. 8.
To allow a better comparison of the two sets of results, both the scales should be changed to the same values. Double-click the second-lowest value in the colored legend and change it to 200 and change the second-highest value in the colored legend to 1600. Do this in both the left and right viewports. Figure 21: Comparison of Coil Temperature Contours from the First and Second Parts of the Tutorial
As noted at the end of the first part of the tutorial, the constant heat transfer coefficient value applied in the thermal analysis of the coil under-predicts the spatially-varying values generated by the fluid analysis. Qualitative and quantitative differences are consequently observed between thermal analyses of the coil in the first and second parts of the tutorial. When the larger, spatially-varying heat transfer
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
130
Part 2: Transferring Data from the Fluid Flow Analysis to the Steady-State Thermal Analysis coefficient values are applied, the resulting temperature values decrease appropriately and temperature variations occur over the coil surface. For example, the lowest temperatures are observed on the lower, side portions of the coil cross-section due to increased convective cooling in those regions. Convective cooling decreases on the lower and upper portions due to flow stagnation and recirculation, respectively. The effect of the larger, spatially-varying heat transfer coefficient values on the heat flux solution values from the thermal analyses corroborate these observations. 1. 2. To compare the total heat flux, select the left viewport and click Steady-State Thermal (A5)>Solution (A6)>Total Heat Flux. Select the right viewport and select Steady-State Thermal 2 (F5)>Solution (F6)>Total Heat Flux. Figure 22: Comparison of Coil Total Heat Flux Contours from the First and Second Parts of the Tutorial
3.
When you are finished viewing your results, select File>Save Project from the main menu, and then File>Close Mechanical. Select File>Exit to close your Workbench project.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
131
132
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
Index
A
analysis settings, 9 best practices, 12 Analysis Settings field, 9 Analysis Type property, 9
using graphical monitor output, 75 using text based monitor output, 74 duration controls, 10 Duration Defined By property, 10
E
End Time, 10 examples CHT, 111 conjugate heat transfer, 111 heat exchanger, 111 solid region, 111 steady state simulation, 111 transient mechanical analysis, 87
B
best practices, 73
C
chart monitors, 29 CHT (Conjugate Heat Transfer) example, 111 co-simulation participant controlled by the system coupling service, 1 co-simulation participant sequencing, 76 co-simulation participant stability, 76 ramping, 76 solution stabilization, 76 command line options, 34 command line usage, 33 conjugate heat transfer example, 111 coupled analyses debugging using graphical monitor output, 75 debugging using text based monitor output, 74 restarting, 35 coupled solution execution time using sequencing to reduce, 77 coupling initialization, 10 coupling service files used by, 55
F
fluid-solid interactions, 79
G
general analysis type, 12
H
heat exchanger example, 111
I
initialization controls, 10 input file, 58
L
log file, 20 scLog.scl, 65
M
maximum iteration, 11 minimum iteration, 11
D
Data Transfers creating, 14 data transfers, 16, 44 algorithms, 46 profile preserving, 47 conservative profile preserving, 47 interpolation algorithms, 53 mapping algorithms, 46 bucket surface, 48 General Grid Interface (GGI), 51 postprocessing interpolated data, 53 ramping, 53 under-relaxation, 54 pre-processing algorithms, 45 Debug Output control, 20 debugging two-way coupled analyses, 73
O
Outline view, 8 output intermediate, 22 output frequency all steps, 23 at step interval, 23 none, 22
P
participant exchanges data in a coupled analysis, 1 summary, 13 performance improving in system coupling, 77
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.
133
Index Properties view, 8 system coupling states Setup cell, 23 Solution cell, 32
R
ramping, 53 region part of the topology of a coupling participant, 13 restart data intermediate, 22 restart points, 10 results file scResults_##_######.scr, 58
T
transient analysis type, 13 transient mechanical analysis example, 87
U
under-relaxation, 54
S
Scene view, 9 sequencing of solution steps, 20 sequential solutions, 20 server file scServer.scs, 56 service input file scInput.sci, 55 service log file scLog.scl_, 57 service overview, 41 service shutdown file scStop.stop, 56 simulation example steady state, 111 simultaneous solutions, 20 solid region example, 111 Solution Information view, 9 solvers coupling two-model interactions, 80 steady state simulation example, 111 Step Controls property, 11 step size, 11 structural deformations modeling, 79 structural properties assigning the material to geometry, 87 system coupling analyze decoupled systems first, 73 context menus Setup cell, 23 Solution cell, 32 overview, 1 workspace, 7 system coupling management, 41 convergence management, 43 evaluating convergence, 43 inter-process communication, 41 process synchronization, 41
V
view convergence plots, 9 outline, 8 properties, 8 scene, 9 solution information, 9
134
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.