ansys-systemcoupling-core 0.3.0__py3-none-any.whl → 0.4.dev0__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.

Files changed (149) hide show
  1. ansys/systemcoupling/core/__init__.py +23 -1
  2. ansys/systemcoupling/core/_version.py +22 -0
  3. ansys/systemcoupling/core/adaptor/api_23_1/_add_participant.py +70 -0
  4. ansys/systemcoupling/core/adaptor/api_23_1/_solve.py +13 -0
  5. ansys/systemcoupling/core/adaptor/api_23_1/abort.py +39 -0
  6. ansys/systemcoupling/core/adaptor/api_23_1/activate_hidden.py +46 -0
  7. ansys/systemcoupling/core/adaptor/api_23_1/add_data_transfer.py +190 -0
  8. ansys/systemcoupling/core/adaptor/api_23_1/add_data_transfer_by_display_names.py +188 -0
  9. ansys/systemcoupling/core/adaptor/api_23_1/add_expression_function.py +61 -0
  10. ansys/systemcoupling/core/adaptor/api_23_1/add_interface.py +75 -0
  11. ansys/systemcoupling/core/adaptor/api_23_1/add_interface_by_display_names.py +75 -0
  12. ansys/systemcoupling/core/adaptor/api_23_1/add_named_expression.py +42 -0
  13. ansys/systemcoupling/core/adaptor/api_23_1/add_participant.py +160 -0
  14. ansys/systemcoupling/core/adaptor/api_23_1/add_reference_frame.py +40 -0
  15. ansys/systemcoupling/core/adaptor/api_23_1/add_transformation.py +102 -0
  16. ansys/systemcoupling/core/adaptor/api_23_1/analysis_control.py +241 -0
  17. ansys/systemcoupling/core/adaptor/api_23_1/apip.py +33 -0
  18. ansys/systemcoupling/core/adaptor/api_23_1/ascii_output.py +44 -0
  19. ansys/systemcoupling/core/adaptor/api_23_1/attribute.py +20 -0
  20. ansys/systemcoupling/core/adaptor/api_23_1/attribute_child.py +54 -0
  21. ansys/systemcoupling/core/adaptor/api_23_1/available_ports.py +40 -0
  22. ansys/systemcoupling/core/adaptor/api_23_1/avoid_data_reconstruction.py +36 -0
  23. ansys/systemcoupling/core/adaptor/api_23_1/case_root.py +62 -0
  24. ansys/systemcoupling/core/adaptor/api_23_1/clear_state.py +16 -0
  25. ansys/systemcoupling/core/adaptor/api_23_1/coupling_interface.py +20 -0
  26. ansys/systemcoupling/core/adaptor/api_23_1/coupling_interface_child.py +42 -0
  27. ansys/systemcoupling/core/adaptor/api_23_1/coupling_participant.py +23 -0
  28. ansys/systemcoupling/core/adaptor/api_23_1/coupling_participant_child.py +173 -0
  29. ansys/systemcoupling/core/adaptor/api_23_1/create_restart_point.py +29 -0
  30. ansys/systemcoupling/core/adaptor/api_23_1/data_transfer.py +20 -0
  31. ansys/systemcoupling/core/adaptor/api_23_1/data_transfer_child.py +187 -0
  32. ansys/systemcoupling/core/adaptor/api_23_1/delete_snapshot.py +28 -0
  33. ansys/systemcoupling/core/adaptor/api_23_1/delete_transformation.py +42 -0
  34. ansys/systemcoupling/core/adaptor/api_23_1/dimensionality.py +96 -0
  35. ansys/systemcoupling/core/adaptor/api_23_1/execution_control.py +186 -0
  36. ansys/systemcoupling/core/adaptor/api_23_1/expression.py +20 -0
  37. ansys/systemcoupling/core/adaptor/api_23_1/expression_child.py +36 -0
  38. ansys/systemcoupling/core/adaptor/api_23_1/expression_function.py +20 -0
  39. ansys/systemcoupling/core/adaptor/api_23_1/expression_function_child.py +46 -0
  40. ansys/systemcoupling/core/adaptor/api_23_1/external_data_file.py +24 -0
  41. ansys/systemcoupling/core/adaptor/api_23_1/fluent_input.py +67 -0
  42. ansys/systemcoupling/core/adaptor/api_23_1/fmu_parameter.py +20 -0
  43. ansys/systemcoupling/core/adaptor/api_23_1/fmu_parameter_child.py +126 -0
  44. ansys/systemcoupling/core/adaptor/api_23_1/generate_input_file.py +41 -0
  45. ansys/systemcoupling/core/adaptor/api_23_1/get_execution_command.py +30 -0
  46. ansys/systemcoupling/core/adaptor/api_23_1/get_machines.py +13 -0
  47. ansys/systemcoupling/core/adaptor/api_23_1/get_region_names_for_participant.py +31 -0
  48. ansys/systemcoupling/core/adaptor/api_23_1/get_setup_summary.py +25 -0
  49. ansys/systemcoupling/core/adaptor/api_23_1/get_status_messages.py +52 -0
  50. ansys/systemcoupling/core/adaptor/api_23_1/global_stabilization.py +143 -0
  51. ansys/systemcoupling/core/adaptor/api_23_1/has_input_file_changed.py +36 -0
  52. ansys/systemcoupling/core/adaptor/api_23_1/import_system_coupling_input_file.py +36 -0
  53. ansys/systemcoupling/core/adaptor/api_23_1/initialize.py +27 -0
  54. ansys/systemcoupling/core/adaptor/api_23_1/instancing.py +23 -0
  55. ansys/systemcoupling/core/adaptor/api_23_1/instancing_child.py +62 -0
  56. ansys/systemcoupling/core/adaptor/api_23_1/interrupt.py +39 -0
  57. ansys/systemcoupling/core/adaptor/api_23_1/library.py +37 -0
  58. ansys/systemcoupling/core/adaptor/api_23_1/mapping_control.py +229 -0
  59. ansys/systemcoupling/core/adaptor/api_23_1/open.py +102 -0
  60. ansys/systemcoupling/core/adaptor/{api_24_1/open_results_in_en_sight.py → api_23_1/open_results_in_ensight.py} +1 -29
  61. ansys/systemcoupling/core/adaptor/api_23_1/open_snapshot.py +37 -0
  62. ansys/systemcoupling/core/adaptor/api_23_1/output_control.py +129 -0
  63. ansys/systemcoupling/core/adaptor/api_23_1/partition_participants.py +138 -0
  64. ansys/systemcoupling/core/adaptor/api_23_1/reference_frame.py +20 -0
  65. ansys/systemcoupling/core/adaptor/api_23_1/reference_frame_child.py +71 -0
  66. ansys/systemcoupling/core/adaptor/api_23_1/region.py +20 -0
  67. ansys/systemcoupling/core/adaptor/api_23_1/region_child.py +72 -0
  68. ansys/systemcoupling/core/adaptor/api_23_1/reload_expression_function_modules.py +14 -0
  69. ansys/systemcoupling/core/adaptor/api_23_1/results.py +89 -0
  70. ansys/systemcoupling/core/adaptor/api_23_1/save.py +51 -0
  71. ansys/systemcoupling/core/adaptor/api_23_1/save_snapshot.py +54 -0
  72. ansys/systemcoupling/core/adaptor/api_23_1/setup_root.py +195 -0
  73. ansys/systemcoupling/core/adaptor/api_23_1/shutdown.py +25 -0
  74. ansys/systemcoupling/core/adaptor/api_23_1/side.py +20 -0
  75. ansys/systemcoupling/core/adaptor/api_23_1/side_child.py +56 -0
  76. ansys/systemcoupling/core/adaptor/api_23_1/solution_control.py +91 -0
  77. ansys/systemcoupling/core/adaptor/api_23_1/solution_root.py +104 -0
  78. ansys/systemcoupling/core/adaptor/api_23_1/solve.py +30 -0
  79. ansys/systemcoupling/core/adaptor/api_23_1/stabilization.py +157 -0
  80. ansys/systemcoupling/core/adaptor/api_23_1/start_participants.py +47 -0
  81. ansys/systemcoupling/core/adaptor/api_23_1/step.py +57 -0
  82. ansys/systemcoupling/core/adaptor/api_23_1/transformation.py +21 -0
  83. ansys/systemcoupling/core/adaptor/api_23_1/transformation_child.py +62 -0
  84. ansys/systemcoupling/core/adaptor/api_23_1/type.py +38 -0
  85. ansys/systemcoupling/core/adaptor/api_23_1/unmapped_value_options.py +158 -0
  86. ansys/systemcoupling/core/adaptor/api_23_1/update_control.py +44 -0
  87. ansys/systemcoupling/core/adaptor/api_23_1/update_participant.py +61 -0
  88. ansys/systemcoupling/core/adaptor/api_23_1/variable.py +20 -0
  89. ansys/systemcoupling/core/adaptor/api_23_1/variable_child.py +201 -0
  90. ansys/systemcoupling/core/adaptor/api_23_1/write_csv_chart_files.py +21 -0
  91. ansys/systemcoupling/core/adaptor/api_23_1/write_ensight.py +46 -0
  92. ansys/systemcoupling/core/adaptor/api_24_1/add_aerodamping_data_transfers.py +43 -0
  93. ansys/systemcoupling/core/adaptor/api_24_1/add_fsi_data_transfers.py +32 -0
  94. ansys/systemcoupling/core/adaptor/api_24_1/add_ordered_data_transfers.py +32 -0
  95. ansys/systemcoupling/core/adaptor/api_24_1/add_thermal_data_transfers.py +43 -0
  96. ansys/systemcoupling/core/adaptor/api_24_1/analysis_control.py +34 -0
  97. ansys/systemcoupling/core/adaptor/api_24_1/case_root.py +1 -7
  98. ansys/systemcoupling/core/adaptor/api_24_1/coupling_participant_child.py +26 -0
  99. ansys/systemcoupling/core/adaptor/api_24_1/execution_control.py +11 -1
  100. ansys/systemcoupling/core/adaptor/api_24_1/get_add_data_transfer_group_commands.py +29 -0
  101. ansys/systemcoupling/core/adaptor/api_24_1/get_mode_shape_variables.py +29 -0
  102. ansys/systemcoupling/core/adaptor/api_24_1/get_thermal_data_transfer_options.py +32 -0
  103. ansys/systemcoupling/core/adaptor/api_24_1/mapping_control.py +10 -0
  104. ansys/systemcoupling/core/adaptor/api_24_1/open_results_in_ensight.py +28 -0
  105. ansys/systemcoupling/core/adaptor/api_24_1/parameter_child.py +0 -8
  106. ansys/systemcoupling/core/adaptor/api_24_1/record_interactions.py +36 -0
  107. ansys/systemcoupling/core/adaptor/api_24_1/setup_root.py +49 -1
  108. ansys/systemcoupling/core/adaptor/api_24_1/solution_control.py +12 -0
  109. ansys/systemcoupling/core/adaptor/api_24_1/solution_root.py +5 -5
  110. ansys/systemcoupling/core/adaptor/api_24_1/variable_child.py +1 -2
  111. ansys/systemcoupling/core/adaptor/impl/get_status_messages.py +22 -0
  112. ansys/systemcoupling/core/adaptor/impl/get_syc_version.py +26 -2
  113. ansys/systemcoupling/core/adaptor/impl/injected_commands.py +29 -0
  114. ansys/systemcoupling/core/adaptor/impl/root_source.py +22 -1
  115. ansys/systemcoupling/core/adaptor/impl/static_info.py +22 -0
  116. ansys/systemcoupling/core/adaptor/impl/syc_proxy.py +22 -0
  117. ansys/systemcoupling/core/adaptor/impl/syc_proxy_interface.py +22 -0
  118. ansys/systemcoupling/core/adaptor/impl/types.py +23 -0
  119. ansys/systemcoupling/core/client/grpc_client.py +22 -0
  120. ansys/systemcoupling/core/client/services/command_query.py +22 -0
  121. ansys/systemcoupling/core/client/services/output_stream.py +22 -0
  122. ansys/systemcoupling/core/client/services/process.py +22 -0
  123. ansys/systemcoupling/core/client/services/solution.py +22 -0
  124. ansys/systemcoupling/core/client/syc_container.py +22 -0
  125. ansys/systemcoupling/core/client/syc_process.py +22 -0
  126. ansys/systemcoupling/core/client/variant.py +22 -0
  127. ansys/systemcoupling/core/examples/__init__.py +22 -0
  128. ansys/systemcoupling/core/examples/downloads.py +23 -0
  129. ansys/systemcoupling/core/native_api/__init__.py +22 -0
  130. ansys/systemcoupling/core/native_api/command_metadata.py +23 -0
  131. ansys/systemcoupling/core/native_api/datamodel_metadata.py +22 -0
  132. ansys/systemcoupling/core/native_api/meta_wrapper.py +23 -0
  133. ansys/systemcoupling/core/native_api/native_api.py +22 -0
  134. ansys/systemcoupling/core/native_api/object_path.py +22 -0
  135. ansys/systemcoupling/core/participant/manager.py +22 -0
  136. ansys/systemcoupling/core/participant/mapdl.py +298 -0
  137. ansys/systemcoupling/core/participant/protocol.py +22 -0
  138. ansys/systemcoupling/core/session.py +22 -0
  139. ansys/systemcoupling/core/syc_version.py +22 -0
  140. ansys/systemcoupling/core/util/logging.py +22 -0
  141. ansys/systemcoupling/core/util/name_util.py +22 -0
  142. ansys/systemcoupling/core/util/pathstr.py +23 -1
  143. ansys/systemcoupling/core/util/state_keys.py +22 -0
  144. ansys/systemcoupling/core/util/yaml_helper.py +22 -0
  145. {ansys_systemcoupling_core-0.3.0.dist-info → ansys_systemcoupling_core-0.4.dev0.dist-info}/METADATA +19 -18
  146. {ansys_systemcoupling_core-0.3.0.dist-info → ansys_systemcoupling_core-0.4.dev0.dist-info}/RECORD +149 -52
  147. /ansys/systemcoupling/core/adaptor/{api_24_1 → api_23_1}/get_snapshots.py +0 -0
  148. {ansys_systemcoupling_core-0.3.0.dist-info → ansys_systemcoupling_core-0.4.dev0.dist-info}/LICENSE +0 -0
  149. {ansys_systemcoupling_core-0.3.0.dist-info → ansys_systemcoupling_core-0.4.dev0.dist-info}/WHEEL +0 -0
@@ -1,3 +1,25 @@
1
+ # Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
2
+ # SPDX-License-Identifier: MIT
3
+ #
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in all
13
+ # copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ # SOFTWARE.
22
+
1
23
  import os
2
24
  from typing import List
3
25
 
@@ -47,7 +69,7 @@ def launch(
47
69
  (The forms ``"23.1"`` and ``"23_1"`` are also acceptable.)
48
70
  The version will be sought in the standard installation location. The
49
71
  default is ``None``, which is equivalent to specifying
50
- ``"232"`` ("2023 R2" release), unless either of the environment
72
+ ``"241"`` ("2024 R1" release), unless either of the environment
51
73
  variables ``SYSC_ROOT`` or ``AWP_ROOT`` has been set. It is considered
52
74
  to be an error if either these is set *and* ``version`` is provided.
53
75
  extra_args : List[str]
@@ -1,3 +1,25 @@
1
+ # Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
2
+ # SPDX-License-Identifier: MIT
3
+ #
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in all
13
+ # copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ # SOFTWARE.
22
+
1
23
  """Version of ansys-systemcoupling-core library.
2
24
 
3
25
  On the ``main`` branch, use 'dev0' to denote a development version.
@@ -0,0 +1,70 @@
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(Command):
9
+ """
10
+ For internal use only.
11
+
12
+ Parameters
13
+ ----------
14
+ participant_type : str, optional
15
+ ...
16
+ input_file : str, optional
17
+ ...
18
+ executable : str, optional
19
+ ...
20
+ additional_arguments : str, optional
21
+ ...
22
+ working_directory : str, optional
23
+ ...
24
+
25
+ """
26
+
27
+ syc_name = "AddParticipant"
28
+
29
+ argument_names = [
30
+ "participant_type",
31
+ "input_file",
32
+ "executable",
33
+ "additional_arguments",
34
+ "working_directory",
35
+ ]
36
+
37
+ class participant_type(String):
38
+ """
39
+ ...
40
+ """
41
+
42
+ syc_name = "ParticipantType"
43
+
44
+ class input_file(String):
45
+ """
46
+ ...
47
+ """
48
+
49
+ syc_name = "InputFile"
50
+
51
+ class executable(String):
52
+ """
53
+ ...
54
+ """
55
+
56
+ syc_name = "Executable"
57
+
58
+ class additional_arguments(String):
59
+ """
60
+ ...
61
+ """
62
+
63
+ syc_name = "AdditionalArguments"
64
+
65
+ class working_directory(String):
66
+ """
67
+ ...
68
+ """
69
+
70
+ syc_name = "WorkingDirectory"
@@ -0,0 +1,13 @@
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 _solve(Command):
9
+ """
10
+ For internal use only.
11
+ """
12
+
13
+ syc_name = "Solve"
@@ -0,0 +1,39 @@
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 abort(InjectedCommand):
9
+ """
10
+ Aborts a solve in progress.
11
+
12
+ See also ``interrupt``. In contrast to an interrupted solve,
13
+ an aborted solve cannot be resumed.
14
+
15
+ Parameters
16
+ ----------
17
+ reason_msg : str, optional
18
+ Text to describe the reason for the abort.
19
+
20
+ This might be used for such purposes as providing
21
+ additional annotation in transcript output.
22
+
23
+ """
24
+
25
+ syc_name = "abort"
26
+
27
+ cmd_name = "abort"
28
+
29
+ argument_names = ["reason_msg"]
30
+
31
+ class reason_msg(String):
32
+ """
33
+ Text to describe the reason for the abort.
34
+
35
+ This might be used for such purposes as providing
36
+ additional annotation in transcript output.
37
+ """
38
+
39
+ syc_name = "reason_msg"
@@ -0,0 +1,46 @@
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 activate_hidden(Container):
9
+ """
10
+ Contains settings to control exposure of hidden features.
11
+ """
12
+
13
+ syc_name = "ActivateHidden"
14
+
15
+ property_names_types = [
16
+ ("beta_features", "BetaFeatures", "bool"),
17
+ ("alpha_features", "AlphaFeatures", "bool"),
18
+ ("lenient_validation", "LenientValidation", "bool"),
19
+ ]
20
+
21
+ @property
22
+ def beta_features(self) -> bool:
23
+ """Turn on exposure of Beta features."""
24
+ return self.get_property_state("beta_features")
25
+
26
+ @beta_features.setter
27
+ def beta_features(self, value: bool):
28
+ self.set_property_state("beta_features", value)
29
+
30
+ @property
31
+ def alpha_features(self) -> bool:
32
+ """Turn on exposure of Alpha features. (Beta features must be turned on first)"""
33
+ return self.get_property_state("alpha_features")
34
+
35
+ @alpha_features.setter
36
+ def alpha_features(self, value: bool):
37
+ self.set_property_state("alpha_features", value)
38
+
39
+ @property
40
+ def lenient_validation(self) -> bool:
41
+ """Allow a case with zero participants and zero coupling interfaces to be set up."""
42
+ return self.get_property_state("lenient_validation")
43
+
44
+ @lenient_validation.setter
45
+ def lenient_validation(self, value: bool):
46
+ self.set_property_state("lenient_validation", value)
@@ -0,0 +1,190 @@
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(Command):
9
+ """
10
+ Adds data transfer based on arguments that specify the interface, target
11
+ side, and variables to be associated with each side of the interface.
12
+ The command requires that you specify variables using their names (see
13
+ parameter descriptions for details). Either a variable-based or
14
+ expression-based data transfer may be created with this command based on
15
+ the arguments provided. If a variable-based data transfer argument
16
+ is given, then no expression-based data transfer arguments can be used. If
17
+ an expression-based data transfer argument is given, then no variable-based
18
+ data transfer arguments can be used.
19
+
20
+ Cannot be run after participants have been started.
21
+
22
+ Returns the name of the Data Transfer created.
23
+
24
+ Parameters
25
+ ----------
26
+ interface : str
27
+ String indicating the name of the interface on which the data transfer
28
+ is to be created.
29
+ target_side : str
30
+ String indicating the side of the interface to receive the data
31
+ transfer variable. Possible values are \"One\" or \"Two\".
32
+ source_variable : str, optional
33
+ String specifying the name of the variable on the source side of
34
+ the data transfer. Used when creating a variable-based data transfer.
35
+ Must be combined with ``target_variable``.
36
+ target_variable : str, optional
37
+ String specifying the name of the variable on the target side of
38
+ the data transfer. Must be combined with either ``source_variable`` (when
39
+ creating a variable-based data transfer) or with ``value`` (or
40
+ ``value_{x|y|z}`` (when creating an expression-based data transfer).
41
+ value : str, optional
42
+ String specifying the expression to use on the source side of the data
43
+ transfer. Used when creating an expression-based data transfer. If the
44
+ ``target_variable`` is a vector, a vector-valued expression must be provided.
45
+ Alternatively, ``value_x``, ``value_y``, ``value_z`` may be used to specify the
46
+ individual components of the vector expression.
47
+ value_x : str, optional
48
+ String specifying the X component of the expression to use on the
49
+ source side of the data transfer. This may optionally be used when creating
50
+ an expression-based data transfer if the ``arget_variable`` is a vector as an
51
+ alternative to specifying a vector-valued expression in ``value`. ``value_y`` and
52
+ ``value_z`` are also required if ``value_x`` is used.
53
+ value_y : str, optional
54
+ String specifying the Y component of the expression to use on the
55
+ source side of the data transfer. This may optionally be used when creating
56
+ an expression-based data transfer if the ``target_variable`` is a vector as an
57
+ alternative to specifying a vector-valued expression in ``value``. ``value_x`` and
58
+ ``value_z`` are also required if ``value_y`` is used.
59
+ value_z : str, optional
60
+ String specifying the Z component of the expression to use on the
61
+ source side of the data transfer. This may optionally be used when creating
62
+ an expression-based data transfer if the ``target_variable`` is a vector as an
63
+ alternative to specifying a vector-valued expression in ``value``. ``value_x`` and
64
+ ``value_y`` are also required if ``value_z`` is used.
65
+ side_one_variable : str, optional
66
+ String specifying the name of the variable associated with side1
67
+ of the interface. Must be combined with ``side_two_variable``. Used only
68
+ when creating variable-based data transfers. Consider using
69
+ ``source_variable``/``target_variable`` parameters instead.
70
+ side_two_variable : str, optional
71
+ String specifying the name of the variable associated with side2
72
+ of the interface. Must be combined with ``side_two_variable``. Used only
73
+ when creating variable-based data transfers. Consider using
74
+ ``source_variable``/``target_variable`` parameters instead.
75
+
76
+ """
77
+
78
+ syc_name = "AddDataTransfer"
79
+
80
+ argument_names = [
81
+ "interface",
82
+ "target_side",
83
+ "source_variable",
84
+ "target_variable",
85
+ "value",
86
+ "value_x",
87
+ "value_y",
88
+ "value_z",
89
+ "side_one_variable",
90
+ "side_two_variable",
91
+ ]
92
+
93
+ class interface(String):
94
+ """
95
+ String indicating the name of the interface on which the data transfer
96
+ is to be created.
97
+ """
98
+
99
+ syc_name = "Interface"
100
+
101
+ class target_side(String):
102
+ """
103
+ String indicating the side of the interface to receive the data
104
+ transfer variable. Possible values are \"One\" or \"Two\".
105
+ """
106
+
107
+ syc_name = "TargetSide"
108
+
109
+ class source_variable(String):
110
+ """
111
+ String specifying the name of the variable on the source side of
112
+ the data transfer. Used when creating a variable-based data transfer.
113
+ Must be combined with ``target_variable``.
114
+ """
115
+
116
+ syc_name = "SourceVariable"
117
+
118
+ class target_variable(String):
119
+ """
120
+ String specifying the name of the variable on the target side of
121
+ the data transfer. Must be combined with either ``source_variable`` (when
122
+ creating a variable-based data transfer) or with ``value`` (or
123
+ ``value_{x|y|z}`` (when creating an expression-based data transfer).
124
+ """
125
+
126
+ syc_name = "TargetVariable"
127
+
128
+ class value(String):
129
+ """
130
+ String specifying the expression to use on the source side of the data
131
+ transfer. Used when creating an expression-based data transfer. If the
132
+ ``target_variable`` is a vector, a vector-valued expression must be provided.
133
+ Alternatively, ``value_x``, ``value_y``, ``value_z`` may be used to specify the
134
+ individual components of the vector expression.
135
+ """
136
+
137
+ syc_name = "Value"
138
+
139
+ class value_x(String):
140
+ """
141
+ String specifying the X component of the expression to use on the
142
+ source side of the data transfer. This may optionally be used when creating
143
+ an expression-based data transfer if the ``arget_variable`` is a vector as an
144
+ alternative to specifying a vector-valued expression in ``value`. ``value_y`` and
145
+ ``value_z`` are also required if ``value_x`` is used.
146
+ """
147
+
148
+ syc_name = "ValueX"
149
+
150
+ class value_y(String):
151
+ """
152
+ String specifying the Y component of the expression to use on the
153
+ source side of the data transfer. This may optionally be used when creating
154
+ an expression-based data transfer if the ``target_variable`` is a vector as an
155
+ alternative to specifying a vector-valued expression in ``value``. ``value_x`` and
156
+ ``value_z`` are also required if ``value_y`` is used.
157
+ """
158
+
159
+ syc_name = "ValueY"
160
+
161
+ class value_z(String):
162
+ """
163
+ String specifying the Z component of the expression to use on the
164
+ source side of the data transfer. This may optionally be used when creating
165
+ an expression-based data transfer if the ``target_variable`` is a vector as an
166
+ alternative to specifying a vector-valued expression in ``value``. ``value_x`` and
167
+ ``value_y`` are also required if ``value_z`` is used.
168
+ """
169
+
170
+ syc_name = "ValueZ"
171
+
172
+ class side_one_variable(String):
173
+ """
174
+ String specifying the name of the variable associated with side1
175
+ of the interface. Must be combined with ``side_two_variable``. Used only
176
+ when creating variable-based data transfers. Consider using
177
+ ``source_variable``/``target_variable`` parameters instead.
178
+ """
179
+
180
+ syc_name = "SideOneVariable"
181
+
182
+ class side_two_variable(String):
183
+ """
184
+ String specifying the name of the variable associated with side2
185
+ of the interface. Must be combined with ``side_two_variable``. Used only
186
+ when creating variable-based data transfers. Consider using
187
+ ``source_variable``/``target_variable`` parameters instead.
188
+ """
189
+
190
+ syc_name = "SideTwoVariable"
@@ -0,0 +1,188 @@
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
+ Adds data transfer based on arguments that specify the interface, target
11
+ side, and variables to be associated with each side of the interface.
12
+ The command requires that you specify variables using their display names
13
+ (see parameter descriptions for details). Either a variable-based
14
+ or expression-based data transfer may be created with this command based on
15
+ the arguments provided. If a variable-based data transfer argument
16
+ is given, then no expression-based data transfer arguments can be used. If
17
+ an expression-based data transfer argument is given, then no variable-based
18
+ data transfer arguments can be used.
19
+
20
+ Cannot be run after participants have been started.
21
+
22
+ Returns the name of the Data Transfer created.
23
+
24
+ Parameters
25
+ ----------
26
+ interface : str
27
+ String indicating the display name of the interface on which the
28
+ data transfer is to be created.
29
+ target_side : str
30
+ String indicating the side of the interface to receive the data
31
+ transfer variable. Possible values are \"One\" or \"Two\".
32
+ source_variable : str, optional
33
+ String specifying the display name of the variable on the source side of
34
+ the data transfer. Used when creating a variable-based data transfer.
35
+ Must be combined with ``target_variable``.
36
+ target_variable : str, optional
37
+ String specifying the display name of the variable on the target side of
38
+ the data transfer. Must be combined with either ``source_variable`` (when
39
+ creating a variable-based data transfer) or with ``value_{x|y|z}``
40
+ (when creating an expression-based data transfer).
41
+ value : str, optional
42
+ String specifying the expression to use on the source side of the data
43
+ transfer. Used when creating an expression-based data transfer if the
44
+ ``target_variable`` is a scalar. (If the ``target_variable`` is a vector,
45
+ ``value_x``, ``value_y``, ``value_z`` must be used instead.)
46
+ value_x : str, optional
47
+ String specifying the X component of the expression to use on the
48
+ source side of the data transfer. Used when crating an expression-based
49
+ data transfer if the ``target_variable`` is a vector. (If the ``target_variable``
50
+ is scalar, ``value`` must be used instead.) ``value_y`` and ``value_z`` are also
51
+ required if ``value_x`` is used.
52
+ value_y : str, optional
53
+ String specifying the Y component of the expression to use on the
54
+ source side of the data transfer. Used when crating an expression-based
55
+ data transfer if the ``target_variable`` is a vector. (If the ``target_variable``
56
+ is scalar, ``value`` must be used instead.) ``value_x`` and ``value_z`` are also
57
+ required if ``value_y`` is used.
58
+ value_z : str, optional
59
+ String specifying the Z component of the expression to use on the
60
+ source side of the data transfer. Used when crating an expression-based
61
+ data transfer if the ``target_variable`` is a vector. (If the ``target_variable``
62
+ is scalar, ``value`` must be used instead.) ``value_x`` and ``value_y`` are also
63
+ required if ``value_z`` is used.
64
+ side_one_variable : str, optional
65
+ String specifying the display name of the variable associated with side one
66
+ of the interface. Must be combined with ``side_two_variable``. Used only
67
+ when creating variable-based data transfers. Consider using
68
+ ``source_variable``/``target_variable`` parameters instead.
69
+ side_two_variable : str, optional
70
+ String specifying the display name of the variable associated with side two
71
+ of the interface. Must be combined with ``side_two_variable``. Used only
72
+ when creating variable-based data transfers. Consider using
73
+ ``source_variable``/``target_variable`` parameters instead.
74
+
75
+ """
76
+
77
+ syc_name = "AddDataTransferByDisplayNames"
78
+
79
+ argument_names = [
80
+ "interface",
81
+ "target_side",
82
+ "source_variable",
83
+ "target_variable",
84
+ "value",
85
+ "value_x",
86
+ "value_y",
87
+ "value_z",
88
+ "side_one_variable",
89
+ "side_two_variable",
90
+ ]
91
+
92
+ class interface(String):
93
+ """
94
+ String indicating the display name of the interface on which the
95
+ data transfer is to be created.
96
+ """
97
+
98
+ syc_name = "Interface"
99
+
100
+ class target_side(String):
101
+ """
102
+ String indicating the side of the interface to receive the data
103
+ transfer variable. Possible values are \"One\" or \"Two\".
104
+ """
105
+
106
+ syc_name = "TargetSide"
107
+
108
+ class source_variable(String):
109
+ """
110
+ String specifying the display name of the variable on the source side of
111
+ the data transfer. Used when creating a variable-based data transfer.
112
+ Must be combined with ``target_variable``.
113
+ """
114
+
115
+ syc_name = "SourceVariable"
116
+
117
+ class target_variable(String):
118
+ """
119
+ String specifying the display name of the variable on the target side of
120
+ the data transfer. Must be combined with either ``source_variable`` (when
121
+ creating a variable-based data transfer) or with ``value_{x|y|z}``
122
+ (when creating an expression-based data transfer).
123
+ """
124
+
125
+ syc_name = "TargetVariable"
126
+
127
+ class value(String):
128
+ """
129
+ String specifying the expression to use on the source side of the data
130
+ transfer. Used when creating an expression-based data transfer if the
131
+ ``target_variable`` is a scalar. (If the ``target_variable`` is a vector,
132
+ ``value_x``, ``value_y``, ``value_z`` must be used instead.)
133
+ """
134
+
135
+ syc_name = "Value"
136
+
137
+ class value_x(String):
138
+ """
139
+ String specifying the X component of the expression to use on the
140
+ source side of the data transfer. Used when crating an expression-based
141
+ data transfer if the ``target_variable`` is a vector. (If the ``target_variable``
142
+ is scalar, ``value`` must be used instead.) ``value_y`` and ``value_z`` are also
143
+ required if ``value_x`` is used.
144
+ """
145
+
146
+ syc_name = "ValueX"
147
+
148
+ class value_y(String):
149
+ """
150
+ String specifying the Y component of the expression to use on the
151
+ source side of the data transfer. Used when crating an expression-based
152
+ data transfer if the ``target_variable`` is a vector. (If the ``target_variable``
153
+ is scalar, ``value`` must be used instead.) ``value_x`` and ``value_z`` are also
154
+ required if ``value_y`` is used.
155
+ """
156
+
157
+ syc_name = "ValueY"
158
+
159
+ class value_z(String):
160
+ """
161
+ String specifying the Z component of the expression to use on the
162
+ source side of the data transfer. Used when crating an expression-based
163
+ data transfer if the ``target_variable`` is a vector. (If the ``target_variable``
164
+ is scalar, ``value`` must be used instead.) ``value_x`` and ``value_y`` are also
165
+ required if ``value_z`` is used.
166
+ """
167
+
168
+ syc_name = "ValueZ"
169
+
170
+ class side_one_variable(String):
171
+ """
172
+ String specifying the display name of the variable associated with side one
173
+ of the interface. Must be combined with ``side_two_variable``. Used only
174
+ when creating variable-based data transfers. Consider using
175
+ ``source_variable``/``target_variable`` parameters instead.
176
+ """
177
+
178
+ syc_name = "SideOneVariable"
179
+
180
+ class side_two_variable(String):
181
+ """
182
+ String specifying the display name of the variable associated with side two
183
+ of the interface. Must be combined with ``side_two_variable``. Used only
184
+ when creating variable-based data transfers. Consider using
185
+ ``source_variable``/``target_variable`` parameters instead.
186
+ """
187
+
188
+ 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"