ansys-systemcoupling-core 0.4.1__py3-none-any.whl → 0.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ansys-systemcoupling-core might be problematic. Click here for more details.
- ansys/systemcoupling/core/adaptor/api_23_1/_clear_state.py +13 -0
- ansys/systemcoupling/core/adaptor/api_23_1/case_root.py +7 -1
- ansys/systemcoupling/core/adaptor/api_23_1/clear_state.py +4 -2
- ansys/systemcoupling/core/adaptor/api_23_2/_clear_state.py +13 -0
- ansys/systemcoupling/core/adaptor/api_23_2/case_root.py +7 -1
- ansys/systemcoupling/core/adaptor/api_23_2/clear_state.py +4 -2
- ansys/systemcoupling/core/adaptor/api_24_1/_clear_state.py +13 -0
- ansys/systemcoupling/core/adaptor/api_24_1/case_root.py +7 -1
- ansys/systemcoupling/core/adaptor/api_24_1/clear_state.py +4 -2
- ansys/systemcoupling/core/adaptor/api_24_2/_add_participant.py +80 -0
- ansys/systemcoupling/core/adaptor/api_24_2/_clear_state.py +13 -0
- ansys/systemcoupling/core/adaptor/api_24_2/_solve.py +13 -0
- ansys/systemcoupling/core/adaptor/api_24_2/abort.py +39 -0
- ansys/systemcoupling/core/adaptor/api_24_2/activate_hidden.py +46 -0
- ansys/systemcoupling/core/adaptor/api_24_2/add_aerodamping_data_transfers.py +43 -0
- ansys/systemcoupling/core/adaptor/api_24_2/add_data_transfer.py +190 -0
- ansys/systemcoupling/core/adaptor/api_24_2/add_data_transfer_by_display_names.py +191 -0
- ansys/systemcoupling/core/adaptor/api_24_2/add_expression_function.py +61 -0
- ansys/systemcoupling/core/adaptor/api_24_2/add_fsi_data_transfers.py +43 -0
- ansys/systemcoupling/core/adaptor/api_24_2/add_interface.py +77 -0
- ansys/systemcoupling/core/adaptor/api_24_2/add_interface_by_display_names.py +78 -0
- ansys/systemcoupling/core/adaptor/api_24_2/add_named_expression.py +42 -0
- ansys/systemcoupling/core/adaptor/api_24_2/add_ordered_data_transfers.py +32 -0
- ansys/systemcoupling/core/adaptor/api_24_2/add_participant.py +162 -0
- ansys/systemcoupling/core/adaptor/api_24_2/add_reference_frame.py +40 -0
- ansys/systemcoupling/core/adaptor/api_24_2/add_thermal_data_transfers.py +43 -0
- ansys/systemcoupling/core/adaptor/api_24_2/add_transformation.py +102 -0
- ansys/systemcoupling/core/adaptor/api_24_2/analysis_control.py +283 -0
- ansys/systemcoupling/core/adaptor/api_24_2/apip.py +33 -0
- ansys/systemcoupling/core/adaptor/api_24_2/ascii_output.py +44 -0
- ansys/systemcoupling/core/adaptor/api_24_2/attribute.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_2/attribute_child.py +54 -0
- ansys/systemcoupling/core/adaptor/api_24_2/automatic_alignment_options.py +46 -0
- ansys/systemcoupling/core/adaptor/api_24_2/available_ports.py +40 -0
- ansys/systemcoupling/core/adaptor/api_24_2/avoid_data_reconstruction.py +46 -0
- ansys/systemcoupling/core/adaptor/api_24_2/case_root.py +62 -0
- ansys/systemcoupling/core/adaptor/api_24_2/clear_state.py +18 -0
- ansys/systemcoupling/core/adaptor/api_24_2/connect_ensight_dvs.py +41 -0
- ansys/systemcoupling/core/adaptor/api_24_2/coupling_interface.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_2/coupling_interface_child.py +42 -0
- ansys/systemcoupling/core/adaptor/api_24_2/coupling_participant.py +23 -0
- ansys/systemcoupling/core/adaptor/api_24_2/coupling_participant_child.py +265 -0
- ansys/systemcoupling/core/adaptor/api_24_2/create_restart_point.py +29 -0
- ansys/systemcoupling/core/adaptor/api_24_2/data_transfer.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_2/data_transfer_child.py +187 -0
- ansys/systemcoupling/core/adaptor/api_24_2/delete_snapshot.py +28 -0
- ansys/systemcoupling/core/adaptor/api_24_2/delete_transformation.py +42 -0
- ansys/systemcoupling/core/adaptor/api_24_2/dimensionality.py +96 -0
- ansys/systemcoupling/core/adaptor/api_24_2/execution_control.py +246 -0
- ansys/systemcoupling/core/adaptor/api_24_2/execution_control_1.py +24 -0
- ansys/systemcoupling/core/adaptor/api_24_2/expression.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_2/expression_child.py +36 -0
- ansys/systemcoupling/core/adaptor/api_24_2/expression_function.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_2/expression_function_child.py +46 -0
- ansys/systemcoupling/core/adaptor/api_24_2/external_data_file.py +24 -0
- ansys/systemcoupling/core/adaptor/api_24_2/fluent_input.py +77 -0
- ansys/systemcoupling/core/adaptor/api_24_2/fmu_parameter.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_2/fmu_parameter_child.py +156 -0
- ansys/systemcoupling/core/adaptor/api_24_2/generate_input_file.py +41 -0
- ansys/systemcoupling/core/adaptor/api_24_2/get_add_data_transfer_group_commands.py +29 -0
- ansys/systemcoupling/core/adaptor/api_24_2/get_execution_command.py +30 -0
- ansys/systemcoupling/core/adaptor/api_24_2/get_machines.py +13 -0
- ansys/systemcoupling/core/adaptor/api_24_2/get_mode_shape_variables.py +29 -0
- ansys/systemcoupling/core/adaptor/api_24_2/get_region_names_for_participant.py +31 -0
- ansys/systemcoupling/core/adaptor/api_24_2/get_setup_summary.py +25 -0
- ansys/systemcoupling/core/adaptor/api_24_2/get_status_messages.py +52 -0
- ansys/systemcoupling/core/adaptor/api_24_2/get_supported_participant_types.py +13 -0
- ansys/systemcoupling/core/adaptor/api_24_2/get_thermal_data_transfer_options.py +32 -0
- ansys/systemcoupling/core/adaptor/api_24_2/get_transformation.py +43 -0
- ansys/systemcoupling/core/adaptor/api_24_2/global_stabilization.py +143 -0
- ansys/systemcoupling/core/adaptor/api_24_2/has_input_file_changed.py +36 -0
- ansys/systemcoupling/core/adaptor/api_24_2/import_system_coupling_input_file.py +36 -0
- ansys/systemcoupling/core/adaptor/api_24_2/initialize.py +27 -0
- ansys/systemcoupling/core/adaptor/api_24_2/instancing.py +23 -0
- ansys/systemcoupling/core/adaptor/api_24_2/instancing_child.py +62 -0
- ansys/systemcoupling/core/adaptor/api_24_2/interrupt.py +39 -0
- ansys/systemcoupling/core/adaptor/api_24_2/library.py +37 -0
- ansys/systemcoupling/core/adaptor/api_24_2/live_visualization.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_2/live_visualization_child.py +100 -0
- ansys/systemcoupling/core/adaptor/api_24_2/mapping_control.py +239 -0
- ansys/systemcoupling/core/adaptor/api_24_2/open.py +102 -0
- ansys/systemcoupling/core/adaptor/api_24_2/open_results_in_ensight.py +56 -0
- ansys/systemcoupling/core/adaptor/api_24_2/open_snapshot.py +37 -0
- ansys/systemcoupling/core/adaptor/api_24_2/output_control.py +134 -0
- ansys/systemcoupling/core/adaptor/api_24_2/parameter.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_2/parameter_child.py +56 -0
- ansys/systemcoupling/core/adaptor/api_24_2/partition_participants.py +138 -0
- ansys/systemcoupling/core/adaptor/api_24_2/properties.py +36 -0
- ansys/systemcoupling/core/adaptor/api_24_2/record_interactions.py +46 -0
- ansys/systemcoupling/core/adaptor/api_24_2/reference_frame.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_2/reference_frame_child.py +71 -0
- ansys/systemcoupling/core/adaptor/api_24_2/region.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_2/region_child.py +71 -0
- ansys/systemcoupling/core/adaptor/api_24_2/reload_expression_function_modules.py +14 -0
- ansys/systemcoupling/core/adaptor/api_24_2/results.py +89 -0
- ansys/systemcoupling/core/adaptor/api_24_2/save.py +51 -0
- ansys/systemcoupling/core/adaptor/api_24_2/save_snapshot.py +54 -0
- ansys/systemcoupling/core/adaptor/api_24_2/setup_root.py +251 -0
- ansys/systemcoupling/core/adaptor/api_24_2/shutdown.py +25 -0
- ansys/systemcoupling/core/adaptor/api_24_2/side.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_2/side_child.py +56 -0
- ansys/systemcoupling/core/adaptor/api_24_2/solution_control.py +115 -0
- ansys/systemcoupling/core/adaptor/api_24_2/solution_root.py +116 -0
- ansys/systemcoupling/core/adaptor/api_24_2/solve.py +30 -0
- ansys/systemcoupling/core/adaptor/api_24_2/stabilization.py +157 -0
- ansys/systemcoupling/core/adaptor/api_24_2/start_participants.py +47 -0
- ansys/systemcoupling/core/adaptor/api_24_2/step.py +57 -0
- ansys/systemcoupling/core/adaptor/api_24_2/transformation.py +21 -0
- ansys/systemcoupling/core/adaptor/api_24_2/transformation_child.py +62 -0
- ansys/systemcoupling/core/adaptor/api_24_2/type.py +38 -0
- ansys/systemcoupling/core/adaptor/api_24_2/unmapped_value_options.py +158 -0
- ansys/systemcoupling/core/adaptor/api_24_2/update_control.py +43 -0
- ansys/systemcoupling/core/adaptor/api_24_2/update_participant.py +61 -0
- ansys/systemcoupling/core/adaptor/api_24_2/variable.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_2/variable_child.py +231 -0
- ansys/systemcoupling/core/adaptor/api_24_2/write_csv_chart_files.py +21 -0
- ansys/systemcoupling/core/adaptor/api_24_2/write_ensight.py +46 -0
- ansys/systemcoupling/core/adaptor/impl/injected_commands.py +18 -0
- ansys/systemcoupling/core/util/logging.py +1 -1
- {ansys_systemcoupling_core-0.4.1.dist-info → ansys_systemcoupling_core-0.5.0.dist-info}/METADATA +10 -10
- {ansys_systemcoupling_core-0.4.1.dist-info → ansys_systemcoupling_core-0.5.0.dist-info}/RECORD +123 -12
- {ansys_systemcoupling_core-0.4.1.dist-info → ansys_systemcoupling_core-0.5.0.dist-info}/LICENSE +0 -0
- {ansys_systemcoupling_core-0.4.1.dist-info → ansys_systemcoupling_core-0.5.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This is an auto-generated file. DO NOT EDIT!
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
from ansys.systemcoupling.core.adaptor.impl.types import *
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class add_data_transfer_by_display_names(Command):
|
|
9
|
+
"""
|
|
10
|
+
Important: This command is deprecated. To add an interface, use the
|
|
11
|
+
``add_data_transfer`` command instead.
|
|
12
|
+
|
|
13
|
+
Adds data transfer based on arguments that specify the interface, target
|
|
14
|
+
side, and variables to be associated with each side of the interface.
|
|
15
|
+
The command requires that you specify variables using their display names
|
|
16
|
+
(see parameter descriptions for details). Either a variable-based
|
|
17
|
+
or expression-based data transfer may be created with this command based on
|
|
18
|
+
the arguments provided. If a variable-based data transfer argument
|
|
19
|
+
is given, then no expression-based data transfer arguments can be used. If
|
|
20
|
+
an expression-based data transfer argument is given, then no variable-based
|
|
21
|
+
data transfer arguments can be used.
|
|
22
|
+
|
|
23
|
+
Cannot be run after participants have been started.
|
|
24
|
+
|
|
25
|
+
Returns the name of the Data Transfer created.
|
|
26
|
+
|
|
27
|
+
Parameters
|
|
28
|
+
----------
|
|
29
|
+
interface : str
|
|
30
|
+
String indicating the display name of the interface on which the
|
|
31
|
+
data transfer is to be created.
|
|
32
|
+
target_side : str
|
|
33
|
+
String indicating the side of the interface to receive the data
|
|
34
|
+
transfer variable. Possible values are \"One\" or \"Two\".
|
|
35
|
+
source_variable : str, optional
|
|
36
|
+
String specifying the display name of the variable on the source side of
|
|
37
|
+
the data transfer. Used when creating a variable-based data transfer.
|
|
38
|
+
Must be combined with ``target_variable``.
|
|
39
|
+
target_variable : str, optional
|
|
40
|
+
String specifying the display name of the variable on the target side of
|
|
41
|
+
the data transfer. Must be combined with either ``source_variable`` (when
|
|
42
|
+
creating a variable-based data transfer) or with ``value_{x|y|z}``
|
|
43
|
+
(when creating an expression-based data transfer).
|
|
44
|
+
value : str, optional
|
|
45
|
+
String specifying the expression to use on the source side of the data
|
|
46
|
+
transfer. Used when creating an expression-based data transfer if the
|
|
47
|
+
``target_variable`` is a scalar. (If the ``target_variable`` is a vector,
|
|
48
|
+
``value_x``, ``value_y``, ``value_z`` must be used instead.)
|
|
49
|
+
value_x : str, optional
|
|
50
|
+
String specifying the X component of the expression to use on the
|
|
51
|
+
source side of the data transfer. Used when crating an expression-based
|
|
52
|
+
data transfer if the ``target_variable`` is a vector. (If the ``target_variable``
|
|
53
|
+
is scalar, ``value`` must be used instead.) ``value_y`` and ``value_z`` are also
|
|
54
|
+
required if ``value_x`` is used.
|
|
55
|
+
value_y : str, optional
|
|
56
|
+
String specifying the Y component of the expression to use on the
|
|
57
|
+
source side of the data transfer. Used when crating an expression-based
|
|
58
|
+
data transfer if the ``target_variable`` is a vector. (If the ``target_variable``
|
|
59
|
+
is scalar, ``value`` must be used instead.) ``value_x`` and ``value_z`` are also
|
|
60
|
+
required if ``value_y`` is used.
|
|
61
|
+
value_z : str, optional
|
|
62
|
+
String specifying the Z component of the expression to use on the
|
|
63
|
+
source side of the data transfer. Used when crating an expression-based
|
|
64
|
+
data transfer if the ``target_variable`` is a vector. (If the ``target_variable``
|
|
65
|
+
is scalar, ``value`` must be used instead.) ``value_x`` and ``value_y`` are also
|
|
66
|
+
required if ``value_z`` is used.
|
|
67
|
+
side_one_variable : str, optional
|
|
68
|
+
String specifying the display name of the variable associated with side one
|
|
69
|
+
of the interface. Must be combined with ``side_two_variable``. Used only
|
|
70
|
+
when creating variable-based data transfers. Consider using
|
|
71
|
+
``source_variable``/``target_variable`` parameters instead.
|
|
72
|
+
side_two_variable : str, optional
|
|
73
|
+
String specifying the display name of the variable associated with side two
|
|
74
|
+
of the interface. Must be combined with ``side_two_variable``. Used only
|
|
75
|
+
when creating variable-based data transfers. Consider using
|
|
76
|
+
``source_variable``/``target_variable`` parameters instead.
|
|
77
|
+
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
syc_name = "AddDataTransferByDisplayNames"
|
|
81
|
+
|
|
82
|
+
argument_names = [
|
|
83
|
+
"interface",
|
|
84
|
+
"target_side",
|
|
85
|
+
"source_variable",
|
|
86
|
+
"target_variable",
|
|
87
|
+
"value",
|
|
88
|
+
"value_x",
|
|
89
|
+
"value_y",
|
|
90
|
+
"value_z",
|
|
91
|
+
"side_one_variable",
|
|
92
|
+
"side_two_variable",
|
|
93
|
+
]
|
|
94
|
+
|
|
95
|
+
class interface(String):
|
|
96
|
+
"""
|
|
97
|
+
String indicating the display name of the interface on which the
|
|
98
|
+
data transfer is to be created.
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
syc_name = "Interface"
|
|
102
|
+
|
|
103
|
+
class target_side(String):
|
|
104
|
+
"""
|
|
105
|
+
String indicating the side of the interface to receive the data
|
|
106
|
+
transfer variable. Possible values are \"One\" or \"Two\".
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
syc_name = "TargetSide"
|
|
110
|
+
|
|
111
|
+
class source_variable(String):
|
|
112
|
+
"""
|
|
113
|
+
String specifying the display name of the variable on the source side of
|
|
114
|
+
the data transfer. Used when creating a variable-based data transfer.
|
|
115
|
+
Must be combined with ``target_variable``.
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
syc_name = "SourceVariable"
|
|
119
|
+
|
|
120
|
+
class target_variable(String):
|
|
121
|
+
"""
|
|
122
|
+
String specifying the display name of the variable on the target side of
|
|
123
|
+
the data transfer. Must be combined with either ``source_variable`` (when
|
|
124
|
+
creating a variable-based data transfer) or with ``value_{x|y|z}``
|
|
125
|
+
(when creating an expression-based data transfer).
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
syc_name = "TargetVariable"
|
|
129
|
+
|
|
130
|
+
class value(String):
|
|
131
|
+
"""
|
|
132
|
+
String specifying the expression to use on the source side of the data
|
|
133
|
+
transfer. Used when creating an expression-based data transfer if the
|
|
134
|
+
``target_variable`` is a scalar. (If the ``target_variable`` is a vector,
|
|
135
|
+
``value_x``, ``value_y``, ``value_z`` must be used instead.)
|
|
136
|
+
"""
|
|
137
|
+
|
|
138
|
+
syc_name = "Value"
|
|
139
|
+
|
|
140
|
+
class value_x(String):
|
|
141
|
+
"""
|
|
142
|
+
String specifying the X component of the expression to use on the
|
|
143
|
+
source side of the data transfer. Used when crating an expression-based
|
|
144
|
+
data transfer if the ``target_variable`` is a vector. (If the ``target_variable``
|
|
145
|
+
is scalar, ``value`` must be used instead.) ``value_y`` and ``value_z`` are also
|
|
146
|
+
required if ``value_x`` is used.
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
syc_name = "ValueX"
|
|
150
|
+
|
|
151
|
+
class value_y(String):
|
|
152
|
+
"""
|
|
153
|
+
String specifying the Y component of the expression to use on the
|
|
154
|
+
source side of the data transfer. Used when crating an expression-based
|
|
155
|
+
data transfer if the ``target_variable`` is a vector. (If the ``target_variable``
|
|
156
|
+
is scalar, ``value`` must be used instead.) ``value_x`` and ``value_z`` are also
|
|
157
|
+
required if ``value_y`` is used.
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
syc_name = "ValueY"
|
|
161
|
+
|
|
162
|
+
class value_z(String):
|
|
163
|
+
"""
|
|
164
|
+
String specifying the Z component of the expression to use on the
|
|
165
|
+
source side of the data transfer. Used when crating an expression-based
|
|
166
|
+
data transfer if the ``target_variable`` is a vector. (If the ``target_variable``
|
|
167
|
+
is scalar, ``value`` must be used instead.) ``value_x`` and ``value_y`` are also
|
|
168
|
+
required if ``value_z`` is used.
|
|
169
|
+
"""
|
|
170
|
+
|
|
171
|
+
syc_name = "ValueZ"
|
|
172
|
+
|
|
173
|
+
class side_one_variable(String):
|
|
174
|
+
"""
|
|
175
|
+
String specifying the display name of the variable associated with side one
|
|
176
|
+
of the interface. Must be combined with ``side_two_variable``. Used only
|
|
177
|
+
when creating variable-based data transfers. Consider using
|
|
178
|
+
``source_variable``/``target_variable`` parameters instead.
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
syc_name = "SideOneVariable"
|
|
182
|
+
|
|
183
|
+
class side_two_variable(String):
|
|
184
|
+
"""
|
|
185
|
+
String specifying the display name of the variable associated with side two
|
|
186
|
+
of the interface. Must be combined with ``side_two_variable``. Used only
|
|
187
|
+
when creating variable-based data transfers. Consider using
|
|
188
|
+
``source_variable``/``target_variable`` parameters instead.
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
syc_name = "SideTwoVariable"
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This is an auto-generated file. DO NOT EDIT!
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
from ansys.systemcoupling.core.adaptor.impl.types import *
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class add_expression_function(Command):
|
|
9
|
+
"""
|
|
10
|
+
Creates an expression function object in the data model that makes
|
|
11
|
+
available an external Python function for use in expressions.
|
|
12
|
+
|
|
13
|
+
The parameters specified should correspond to a module and function
|
|
14
|
+
that exists and can successfully be loaded when the application
|
|
15
|
+
starts. Otherwise, the data model object will be created but there
|
|
16
|
+
will be validation errors and the function will not be available for
|
|
17
|
+
use.
|
|
18
|
+
|
|
19
|
+
Parameters
|
|
20
|
+
----------
|
|
21
|
+
module : str
|
|
22
|
+
The name of the Python module (in the 'Modules' sub-directory of
|
|
23
|
+
the working directory) from which the function is to be obtained.
|
|
24
|
+
function : str
|
|
25
|
+
The name of the function in the module. If no ``function_name`` is
|
|
26
|
+
specified, this will also be the name by which the function should
|
|
27
|
+
be referenced when used in an expression.
|
|
28
|
+
function_name : str, optional
|
|
29
|
+
Optionally specify a different name from ``function`` which should be
|
|
30
|
+
the name used to reference the function in an expression.
|
|
31
|
+
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
syc_name = "AddExpressionFunction"
|
|
35
|
+
|
|
36
|
+
argument_names = ["module", "function", "function_name"]
|
|
37
|
+
|
|
38
|
+
class module(String):
|
|
39
|
+
"""
|
|
40
|
+
The name of the Python module (in the 'Modules' sub-directory of
|
|
41
|
+
the working directory) from which the function is to be obtained.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
syc_name = "Module"
|
|
45
|
+
|
|
46
|
+
class function(String):
|
|
47
|
+
"""
|
|
48
|
+
The name of the function in the module. If no ``function_name`` is
|
|
49
|
+
specified, this will also be the name by which the function should
|
|
50
|
+
be referenced when used in an expression.
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
syc_name = "Function"
|
|
54
|
+
|
|
55
|
+
class function_name(String):
|
|
56
|
+
"""
|
|
57
|
+
Optionally specify a different name from ``function`` which should be
|
|
58
|
+
the name used to reference the function in an expression.
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
syc_name = "FunctionName"
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This is an auto-generated file. DO NOT EDIT!
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
from ansys.systemcoupling.core.adaptor.impl.types import *
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class add_fsi_data_transfers(Command):
|
|
9
|
+
"""
|
|
10
|
+
Adds group of data transfers for FSI physics.
|
|
11
|
+
|
|
12
|
+
Returns the list of the data transfers created.
|
|
13
|
+
|
|
14
|
+
Parameters
|
|
15
|
+
----------
|
|
16
|
+
interface : str
|
|
17
|
+
String indicating the name of the interface on which the data transfer
|
|
18
|
+
is to be created.
|
|
19
|
+
use_force_density : bool, optional
|
|
20
|
+
Boolean indicating whether to prefer force density variable over force.
|
|
21
|
+
Default value is False.
|
|
22
|
+
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
syc_name = "AddFSIDataTransfers"
|
|
26
|
+
|
|
27
|
+
argument_names = ["interface", "use_force_density"]
|
|
28
|
+
|
|
29
|
+
class interface(String):
|
|
30
|
+
"""
|
|
31
|
+
String indicating the name of the interface on which the data transfer
|
|
32
|
+
is to be created.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
syc_name = "Interface"
|
|
36
|
+
|
|
37
|
+
class use_force_density(Boolean):
|
|
38
|
+
"""
|
|
39
|
+
Boolean indicating whether to prefer force density variable over force.
|
|
40
|
+
Default value is False.
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
syc_name = "UseForceDensity"
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This is an auto-generated file. DO NOT EDIT!
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
from ansys.systemcoupling.core.adaptor.impl.types import *
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class add_interface(Command):
|
|
9
|
+
"""
|
|
10
|
+
Adds an interface based on the participant and region names specified
|
|
11
|
+
as arguments for each side of the interface. This command requires that
|
|
12
|
+
you specify participants using their names as described below in
|
|
13
|
+
Essential Keyword Arguments. Non-FMU participants must provide a list
|
|
14
|
+
of regions as described below in Optional Keyword Arguments. For FMU
|
|
15
|
+
interfaces, specifying the regions are not allowed.
|
|
16
|
+
|
|
17
|
+
Cannot be run after participants have been started.
|
|
18
|
+
|
|
19
|
+
Returns the name of the Interface created.
|
|
20
|
+
|
|
21
|
+
Parameters
|
|
22
|
+
----------
|
|
23
|
+
side_one_participant : str
|
|
24
|
+
String indicating the name of the participant to be associated with
|
|
25
|
+
side \"One\" of the interface.
|
|
26
|
+
side_two_participant : str
|
|
27
|
+
String indicating the name of the participant to be associated with
|
|
28
|
+
side \"Two"\ of the interface.
|
|
29
|
+
side_one_regions : typing.List[str], optional
|
|
30
|
+
List specifying the name(s) of region(s) to be added to side One of
|
|
31
|
+
the interface. Must be provided if ``side_one_participant`` is not an FMU.
|
|
32
|
+
side_two_regions : typing.List[str], optional
|
|
33
|
+
List specifying the name(s) of region(s) to be added to side Two of
|
|
34
|
+
the interface. Must be provided if ``side_one_participant`` is not an FMU.
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
syc_name = "AddInterface"
|
|
39
|
+
|
|
40
|
+
argument_names = [
|
|
41
|
+
"side_one_participant",
|
|
42
|
+
"side_two_participant",
|
|
43
|
+
"side_one_regions",
|
|
44
|
+
"side_two_regions",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
class side_one_participant(String):
|
|
48
|
+
"""
|
|
49
|
+
String indicating the name of the participant to be associated with
|
|
50
|
+
side \"One\" of the interface.
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
syc_name = "SideOneParticipant"
|
|
54
|
+
|
|
55
|
+
class side_two_participant(String):
|
|
56
|
+
"""
|
|
57
|
+
String indicating the name of the participant to be associated with
|
|
58
|
+
side \"Two"\ of the interface.
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
syc_name = "SideTwoParticipant"
|
|
62
|
+
|
|
63
|
+
class side_one_regions(StringList):
|
|
64
|
+
"""
|
|
65
|
+
List specifying the name(s) of region(s) to be added to side One of
|
|
66
|
+
the interface. Must be provided if ``side_one_participant`` is not an FMU.
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
syc_name = "SideOneRegions"
|
|
70
|
+
|
|
71
|
+
class side_two_regions(StringList):
|
|
72
|
+
"""
|
|
73
|
+
List specifying the name(s) of region(s) to be added to side Two of
|
|
74
|
+
the interface. Must be provided if ``side_one_participant`` is not an FMU.
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
syc_name = "SideTwoRegions"
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This is an auto-generated file. DO NOT EDIT!
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
from ansys.systemcoupling.core.adaptor.impl.types import *
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class add_interface_by_display_names(Command):
|
|
9
|
+
"""
|
|
10
|
+
Important: This command is deprecated. To add an interface, use the
|
|
11
|
+
``add_interface`` command instead.
|
|
12
|
+
|
|
13
|
+
Adds an interface based on the participant and region display names specified
|
|
14
|
+
as arguments for each side of the interface. This command requires that you
|
|
15
|
+
specify participants and regions using their *display* names (see parameter
|
|
16
|
+
descriptions for details).
|
|
17
|
+
|
|
18
|
+
Cannot be run after participants have been started.
|
|
19
|
+
|
|
20
|
+
Returns the name of the Interface created.
|
|
21
|
+
|
|
22
|
+
Parameters
|
|
23
|
+
----------
|
|
24
|
+
side_one_participant : str
|
|
25
|
+
String indicating the name of the participant to be associated with
|
|
26
|
+
side \"One\" of the interface.
|
|
27
|
+
side_one_regions : typing.List[str]
|
|
28
|
+
List specifying the name(s) of region(s) to be added to side \"One\" of
|
|
29
|
+
the interface.
|
|
30
|
+
side_two_participant : str
|
|
31
|
+
String indicating the name of the participant to be associated with
|
|
32
|
+
side \"Two\" of the interface.
|
|
33
|
+
side_two_regions : typing.List[str]
|
|
34
|
+
List specifying the name(s) of region(s) to be added to side \"Two\"
|
|
35
|
+
of the interface.
|
|
36
|
+
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
syc_name = "AddInterfaceByDisplayNames"
|
|
40
|
+
|
|
41
|
+
argument_names = [
|
|
42
|
+
"side_one_participant",
|
|
43
|
+
"side_one_regions",
|
|
44
|
+
"side_two_participant",
|
|
45
|
+
"side_two_regions",
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
class side_one_participant(String):
|
|
49
|
+
"""
|
|
50
|
+
String indicating the name of the participant to be associated with
|
|
51
|
+
side \"One\" of the interface.
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
syc_name = "SideOneParticipant"
|
|
55
|
+
|
|
56
|
+
class side_one_regions(StringList):
|
|
57
|
+
"""
|
|
58
|
+
List specifying the name(s) of region(s) to be added to side \"One\" of
|
|
59
|
+
the interface.
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
syc_name = "SideOneRegions"
|
|
63
|
+
|
|
64
|
+
class side_two_participant(String):
|
|
65
|
+
"""
|
|
66
|
+
String indicating the name of the participant to be associated with
|
|
67
|
+
side \"Two\" of the interface.
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
syc_name = "SideTwoParticipant"
|
|
71
|
+
|
|
72
|
+
class side_two_regions(StringList):
|
|
73
|
+
"""
|
|
74
|
+
List specifying the name(s) of region(s) to be added to side \"Two\"
|
|
75
|
+
of the interface.
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
syc_name = "SideTwoRegions"
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This is an auto-generated file. DO NOT EDIT!
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
from ansys.systemcoupling.core.adaptor.impl.types import *
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class add_named_expression(Command):
|
|
9
|
+
"""
|
|
10
|
+
Creates a named expression object in the data model.
|
|
11
|
+
If there is already an object in the data model whose ``expression_name``
|
|
12
|
+
matches the provided ``expression_name``, its ``expression_string`` will be
|
|
13
|
+
overwritten with the provided ``expression_string``
|
|
14
|
+
|
|
15
|
+
Parameters
|
|
16
|
+
----------
|
|
17
|
+
expression_name : str
|
|
18
|
+
The name by which this expression should be referenced when used in
|
|
19
|
+
another expression.
|
|
20
|
+
expression_string : str
|
|
21
|
+
String containing the definition of the expression.
|
|
22
|
+
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
syc_name = "AddNamedExpression"
|
|
26
|
+
|
|
27
|
+
argument_names = ["expression_name", "expression_string"]
|
|
28
|
+
|
|
29
|
+
class expression_name(String):
|
|
30
|
+
"""
|
|
31
|
+
The name by which this expression should be referenced when used in
|
|
32
|
+
another expression.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
syc_name = "ExpressionName"
|
|
36
|
+
|
|
37
|
+
class expression_string(String):
|
|
38
|
+
"""
|
|
39
|
+
String containing the definition of the expression.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
syc_name = "ExpressionString"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This is an auto-generated file. DO NOT EDIT!
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
from ansys.systemcoupling.core.adaptor.impl.types import *
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class add_ordered_data_transfers(Command):
|
|
9
|
+
"""
|
|
10
|
+
Adds data transfer for each ordered pair of variables in an FMU-FMU interface.
|
|
11
|
+
|
|
12
|
+
Returns the name of the Data Transfers created.
|
|
13
|
+
|
|
14
|
+
Parameters
|
|
15
|
+
----------
|
|
16
|
+
interface : str
|
|
17
|
+
String indicating the name of the interface on which the data transfer
|
|
18
|
+
is to be created.
|
|
19
|
+
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
syc_name = "AddOrderedDataTransfers"
|
|
23
|
+
|
|
24
|
+
argument_names = ["interface"]
|
|
25
|
+
|
|
26
|
+
class interface(String):
|
|
27
|
+
"""
|
|
28
|
+
String indicating the name of the interface on which the data transfer
|
|
29
|
+
is to be created.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
syc_name = "Interface"
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This is an auto-generated file. DO NOT EDIT!
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
from ansys.systemcoupling.core.adaptor.impl.types import *
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class add_participant(InjectedCommand):
|
|
9
|
+
"""
|
|
10
|
+
This command operates in one of two modes, depending on how it is called.
|
|
11
|
+
*Either* a single argument, ``participant_session``, should be provided, *or* some
|
|
12
|
+
combination of the other optional arguments not including ``participant_session``
|
|
13
|
+
should be provided.
|
|
14
|
+
|
|
15
|
+
In the ``participant_session`` mode, the session object is queried to
|
|
16
|
+
extract the information needed to define a new ``coupling_participant``
|
|
17
|
+
object in the setup datamodel. A reference to the session is also retained,
|
|
18
|
+
and this will play a further role if ``solve`` is called later. In that case,
|
|
19
|
+
the participant solver will be driven from the Python environment in which the
|
|
20
|
+
participant and PySystemCoupling sessions are active and System Coupling will
|
|
21
|
+
regard the participant solver as "externally managed" (see the `execution_control`
|
|
22
|
+
settings in `coupling_participant` for details of this mode).
|
|
23
|
+
|
|
24
|
+
.. note::
|
|
25
|
+
The ``participant_session`` mode currently has limited support in the
|
|
26
|
+
broader Ansys Python ecosystem - at present, only PyFluent supports
|
|
27
|
+
the API required of the session object and product versions of Fluent and
|
|
28
|
+
System Coupling need to be at least 24.1. This capability should be
|
|
29
|
+
regarded as *Beta* as it may be subject to revision when extended to other
|
|
30
|
+
products.
|
|
31
|
+
|
|
32
|
+
The remainder of the documentation describes the more usual non-session mode.
|
|
33
|
+
|
|
34
|
+
Adds a coupling participant to the data model.
|
|
35
|
+
|
|
36
|
+
When executed, this command adds the new participant to the analysis
|
|
37
|
+
without removing any interfaces or data transfers created previously.
|
|
38
|
+
|
|
39
|
+
Cannot be called after participants have been started.
|
|
40
|
+
|
|
41
|
+
Returns the name of the participant.
|
|
42
|
+
|
|
43
|
+
There are several options that can be selected to add the
|
|
44
|
+
participant - via a file, via a participant executable, or via a
|
|
45
|
+
Python script. Some of these options may be combined. For example,
|
|
46
|
+
sometimes it is useful to use an input file while at the same time
|
|
47
|
+
providing a custom participant executable or Python script.
|
|
48
|
+
|
|
49
|
+
Option 1: Using an input file
|
|
50
|
+
|
|
51
|
+
Given an input file containing participant coupling information, reads the
|
|
52
|
+
specified file, pushes the participant's information to the data model.
|
|
53
|
+
|
|
54
|
+
Option 2: Using a participant executable
|
|
55
|
+
|
|
56
|
+
Given the path to the executable for this participant (and optionally,
|
|
57
|
+
additional arguments and/or working directory), start the participant
|
|
58
|
+
executable, connect to the participant using the socket connection,
|
|
59
|
+
and get the participant's information and add it to the data model.
|
|
60
|
+
|
|
61
|
+
Option 3: Using a Python script
|
|
62
|
+
|
|
63
|
+
This can be seen as a special case of Option 2 (using an executable),
|
|
64
|
+
but instead of an executable, a Python script is used. System Coupling
|
|
65
|
+
will invoke a specialized script to set up the environment so
|
|
66
|
+
that the Python script can more easily interact with System Coupling.
|
|
67
|
+
|
|
68
|
+
Parameters
|
|
69
|
+
----------
|
|
70
|
+
participant_session : ParticipantProtocol, optional
|
|
71
|
+
Participant session object conforming to the ``ParticipantProtocol`` protocol class.
|
|
72
|
+
participant_type : str, optional
|
|
73
|
+
Participant type. To get a list of supported participant types, use
|
|
74
|
+
the get_supported_participant_types() query. If unspecified,
|
|
75
|
+
add_participant will attempt to deduce the type from input_file.
|
|
76
|
+
input_file : str, optional
|
|
77
|
+
Name of the input file for the participant to be added.
|
|
78
|
+
Currently supported formats are SCP files, Forte input (FTSIM)
|
|
79
|
+
files, mechanical server (*.rst) files, cfd server (*.csv) files,
|
|
80
|
+
FMU (.fmu) files, and System Coupling data server (*.scdt/axdt/csv) files.
|
|
81
|
+
executable : str, optional
|
|
82
|
+
Path to the executable file for the participant to be added.
|
|
83
|
+
additional_arguments : str, optional
|
|
84
|
+
Any additional arguments to be passed to the participant's executable.
|
|
85
|
+
working_directory : str, optional
|
|
86
|
+
Path to the working directory for this participant.
|
|
87
|
+
python_script : str, optional
|
|
88
|
+
Instead of the executable, use a Python script and wrap it with
|
|
89
|
+
System Coupling-provided .bat/.sh scripts to set up the environment
|
|
90
|
+
correctly before calling this Python script.
|
|
91
|
+
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
syc_name = "add_participant"
|
|
95
|
+
|
|
96
|
+
cmd_name = "add_participant"
|
|
97
|
+
|
|
98
|
+
argument_names = [
|
|
99
|
+
"participant_session",
|
|
100
|
+
"participant_type",
|
|
101
|
+
"input_file",
|
|
102
|
+
"executable",
|
|
103
|
+
"additional_arguments",
|
|
104
|
+
"working_directory",
|
|
105
|
+
"python_script",
|
|
106
|
+
]
|
|
107
|
+
|
|
108
|
+
class participant_session(ParticipantSession):
|
|
109
|
+
"""
|
|
110
|
+
Participant session object conforming to the ``ParticipantProtocol`` protocol class.
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
syc_name = "participant_session"
|
|
114
|
+
|
|
115
|
+
class participant_type(String):
|
|
116
|
+
"""
|
|
117
|
+
Participant type. To get a list of supported participant types, use
|
|
118
|
+
the get_supported_participant_types() query. If unspecified,
|
|
119
|
+
add_participant will attempt to deduce the type from input_file.
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
syc_name = "ParticipantType"
|
|
123
|
+
|
|
124
|
+
class input_file(String):
|
|
125
|
+
"""
|
|
126
|
+
Name of the input file for the participant to be added.
|
|
127
|
+
Currently supported formats are SCP files, Forte input (FTSIM)
|
|
128
|
+
files, mechanical server (*.rst) files, cfd server (*.csv) files,
|
|
129
|
+
FMU (.fmu) files, and System Coupling data server (*.scdt/axdt/csv) files.
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
syc_name = "InputFile"
|
|
133
|
+
|
|
134
|
+
class executable(String):
|
|
135
|
+
"""
|
|
136
|
+
Path to the executable file for the participant to be added.
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
syc_name = "Executable"
|
|
140
|
+
|
|
141
|
+
class additional_arguments(String):
|
|
142
|
+
"""
|
|
143
|
+
Any additional arguments to be passed to the participant's executable.
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
syc_name = "AdditionalArguments"
|
|
147
|
+
|
|
148
|
+
class working_directory(String):
|
|
149
|
+
"""
|
|
150
|
+
Path to the working directory for this participant.
|
|
151
|
+
"""
|
|
152
|
+
|
|
153
|
+
syc_name = "WorkingDirectory"
|
|
154
|
+
|
|
155
|
+
class python_script(String):
|
|
156
|
+
"""
|
|
157
|
+
Instead of the executable, use a Python script and wrap it with
|
|
158
|
+
System Coupling-provided .bat/.sh scripts to set up the environment
|
|
159
|
+
correctly before calling this Python script.
|
|
160
|
+
"""
|
|
161
|
+
|
|
162
|
+
syc_name = "PythonScript"
|