add_data_transfer#
- class ansys.systemcoupling.core.adaptor.api_25_2.add_data_transfer.add_data_transfer(name=None, parent=None)#
Bases:
CommandAdds data transfer based on arguments that specify the interface, target side, and variables to be associated with each side of the interface. The command requires that you specify variables using their names, as described below in Essential Keyword Arguments. Either a variable-based or expression-based data transfer may be created with this command based on the Optional Keyword Arguments. If a variable-based data transfer argument is given, then no expression-based data transfer arguments can be used. If an expression-based data transfer argument is given, then no variable-based data transfer arguments can be used.
Cannot be run after participants have been started.
Returns the name of the Data Transfer created.
- Parameters:
- interface
str String indicating the name of the interface on which the data transfer is to be created.
- target_side
str String indicating the side of the interface to receive the data transfer variable. Possible values are “One” or “Two”.
- source_variable
str,optional String specifying the name of the variable on the source side of the data transfer. Used when creating a variable-based data transfer. Must be combined with
target_variable.- target_variable
str,optional String specifying the name of the variable on the target side of the data transfer. Must be combined with either
source_variable(when creating a variable-based data transfer) or withvalue_{x|y|z}(when creating an expression-based data transfer).- value
str,optional String specifying the expression to use on the source side of the data transfer. Used when creating an expression-based data transfer. If the
target_variableis a vector, a vector-valued expression must be provided. Alternatively,value_x,value_y,value_zmay be used to specify the individual components of the vector expression.- value_x
str,optional String specifying the X component of the expression to use on the source side of the data transfer. This may optionally be used when creating an expression-based data transfer if the
target_variableis a vector as an alternative to specifying a vector-valued expression invalue.value_yandvalue_zare also required ifvalue_xis used.- value_y
str,optional String specifying the Y component of the expression to use on the source side of the data transfer. This may optionally be used when creating an expression-based data transfer if the
target_variableis a vector as an alternative to specifying a vector-valued expression invalue.value_xandvalue_zare also required ifvalue_yis used.- value_z
str,optional String specifying the Z component of the expression to use on the source side of the data transfer. This may optionally be used when creating an expression-based data transfer if the
target_variableis a vector as an alternative to specifying a vector-valued expression invalue.value_xandvalue_yare also required ifvalue_zis used.- side_one_variable
str,optional String specifying the name of the variable associated with side1 of the interface. Must be combined with
side_two_variable. Used only when creating variable-based data transfers. Consider usingsource_variable/target_variableparameters instead.- side_two_variable
str,optional String specifying the name of the variable associated with side2 of the interface. Must be combined with
side_two_variable. Used only when creating variable-based data transfers. Consider usingsource_variable/target_variableparameters instead.
- interface
Included in:
Parent |
Summary |
|---|---|
‘root’ object |