To perform a co-simulation, you must add a coupling interface to the analysis. For details, see:
To transfer the mode shapes from Mechanical Server to CFD server, you must define a coupling interface. You may add coupling interfaces using either System Coupling's GUI or CLI.
- Add a coupling interface in the GUI
Right-click the Setup branch and select Add Coupling Interface.
The coupling interface object is added to the data model under the Coupling Interface branch.
Verify that the two sides of the interface are defined correctly and adjust as needed.
- Add a coupling interface in the CLI
Run the AddInterface() command, as in the following example:
AddInterface( SideOneParticipant = 'MECH-SRV-1', SideOneRegions = ['BLADESURF'], SideTwoParticipant = 'CFD-SRV-2', SideTwoRegions = ['R1 Blade'])
Data transfers define which variables are transferred from one side of the coupling interface to the other side. For aerodamping, these are the mode shape variables. You may add data transfers using either System Coupling's GUI or CLI.
- Add a data transfer in the GUI
In the GUI, you may add multiple data transfers at the same time.
Right-click the coupling interface object and select Add Aerodamping Data Transfers.
The Select Mode Shapes dialog opens.
Select the mode shape variables to be transferred (press Shift + Ctrl keys to multiselect).
Click
.
A data transfer is added for each of the mode shape variables selected.
- Add a data transfer in the CLI
In the CLI, you must add each data transfer individually.
Run the AddDataTransfer() command, as in the following example:
AddDataTransfer( Interface = interfaceName, TargetSide = 'Two', SourceVariable = 'ModeShape_Mode1', TargetVariable = 'ModeShape_Mode1')
Expressions are supported for transfers of real-valued mode shapes. You may apply expressions using either System Coupling's GUI or CLI.
- Apply an expression in the GUI
Verify that Data Transfer | Option is set to
Using Expression
.Enter the expression for the Value setting.
- Apply an expression in the CLI
Verify that DataTransfer.Option is set to
UsingExpression
.DatamodelRoot().CouplingInterface['Interface-1'].DataTransfer['ModeShape_Mode_1_Index_0'].Option UsingExpression
Set Value to the expression value.
DatamodelRoot().CouplingInterface['Interface-1'].DataTransfer['ModeShape_Mode_1_Index_0'].Value='temperature1*10'
For more information, see Expressions in System Coupling.