ansys-systemcoupling-core 0.9.1__py3-none-any.whl → 0.10.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.

Files changed (129) hide show
  1. ansys/systemcoupling/core/__init__.py +1 -1
  2. ansys/systemcoupling/core/adaptor/api_25_2/_add_participant.py +80 -0
  3. ansys/systemcoupling/core/adaptor/api_25_2/_clear_state.py +13 -0
  4. ansys/systemcoupling/core/adaptor/api_25_2/_solve.py +13 -0
  5. ansys/systemcoupling/core/adaptor/api_25_2/abort.py +39 -0
  6. ansys/systemcoupling/core/adaptor/api_25_2/activate_hidden.py +46 -0
  7. ansys/systemcoupling/core/adaptor/api_25_2/add_aerodamping_data_transfers.py +43 -0
  8. ansys/systemcoupling/core/adaptor/api_25_2/add_data_transfer.py +190 -0
  9. ansys/systemcoupling/core/adaptor/api_25_2/add_expression_function.py +61 -0
  10. ansys/systemcoupling/core/adaptor/api_25_2/add_flow_boundary_data_transfers.py +32 -0
  11. ansys/systemcoupling/core/adaptor/api_25_2/add_fsi_data_transfers.py +43 -0
  12. ansys/systemcoupling/core/adaptor/api_25_2/add_interface.py +77 -0
  13. ansys/systemcoupling/core/adaptor/api_25_2/add_named_expression.py +42 -0
  14. ansys/systemcoupling/core/adaptor/api_25_2/add_ordered_data_transfers.py +41 -0
  15. ansys/systemcoupling/core/adaptor/api_25_2/add_participant.py +177 -0
  16. ansys/systemcoupling/core/adaptor/api_25_2/add_reference_frame.py +40 -0
  17. ansys/systemcoupling/core/adaptor/api_25_2/add_thermal_data_transfers.py +43 -0
  18. ansys/systemcoupling/core/adaptor/api_25_2/add_transformation.py +102 -0
  19. ansys/systemcoupling/core/adaptor/api_25_2/analysis_control.py +333 -0
  20. ansys/systemcoupling/core/adaptor/api_25_2/apip.py +33 -0
  21. ansys/systemcoupling/core/adaptor/api_25_2/ascii_output.py +44 -0
  22. ansys/systemcoupling/core/adaptor/api_25_2/attribute.py +20 -0
  23. ansys/systemcoupling/core/adaptor/api_25_2/attribute_child.py +74 -0
  24. ansys/systemcoupling/core/adaptor/api_25_2/automatic_alignment_options.py +46 -0
  25. ansys/systemcoupling/core/adaptor/api_25_2/available_ports.py +40 -0
  26. ansys/systemcoupling/core/adaptor/api_25_2/avoid_data_reconstruction.py +56 -0
  27. ansys/systemcoupling/core/adaptor/api_25_2/case_root.py +62 -0
  28. ansys/systemcoupling/core/adaptor/api_25_2/clear_state.py +18 -0
  29. ansys/systemcoupling/core/adaptor/api_25_2/connect_ensight_dvs.py +41 -0
  30. ansys/systemcoupling/core/adaptor/api_25_2/coupling_interface.py +20 -0
  31. ansys/systemcoupling/core/adaptor/api_25_2/coupling_interface_child.py +42 -0
  32. ansys/systemcoupling/core/adaptor/api_25_2/coupling_participant.py +23 -0
  33. ansys/systemcoupling/core/adaptor/api_25_2/coupling_participant_child.py +272 -0
  34. ansys/systemcoupling/core/adaptor/api_25_2/create_restart_point.py +28 -0
  35. ansys/systemcoupling/core/adaptor/api_25_2/data_transfer.py +20 -0
  36. ansys/systemcoupling/core/adaptor/api_25_2/data_transfer_child.py +195 -0
  37. ansys/systemcoupling/core/adaptor/api_25_2/delete_snapshot.py +30 -0
  38. ansys/systemcoupling/core/adaptor/api_25_2/delete_transformation.py +42 -0
  39. ansys/systemcoupling/core/adaptor/api_25_2/dimensionality.py +96 -0
  40. ansys/systemcoupling/core/adaptor/api_25_2/execution_control.py +266 -0
  41. ansys/systemcoupling/core/adaptor/api_25_2/execution_control_1.py +24 -0
  42. ansys/systemcoupling/core/adaptor/api_25_2/expression.py +20 -0
  43. ansys/systemcoupling/core/adaptor/api_25_2/expression_child.py +36 -0
  44. ansys/systemcoupling/core/adaptor/api_25_2/expression_function.py +20 -0
  45. ansys/systemcoupling/core/adaptor/api_25_2/expression_function_child.py +46 -0
  46. ansys/systemcoupling/core/adaptor/api_25_2/external_data_file.py +24 -0
  47. ansys/systemcoupling/core/adaptor/api_25_2/fluent_input.py +77 -0
  48. ansys/systemcoupling/core/adaptor/api_25_2/fmu_parameter.py +20 -0
  49. ansys/systemcoupling/core/adaptor/api_25_2/fmu_parameter_child.py +164 -0
  50. ansys/systemcoupling/core/adaptor/api_25_2/generate_input_file.py +53 -0
  51. ansys/systemcoupling/core/adaptor/api_25_2/get_add_data_transfer_group_commands.py +29 -0
  52. ansys/systemcoupling/core/adaptor/api_25_2/get_execution_command.py +30 -0
  53. ansys/systemcoupling/core/adaptor/api_25_2/get_machines.py +34 -0
  54. ansys/systemcoupling/core/adaptor/api_25_2/get_mode_shape_variables.py +29 -0
  55. ansys/systemcoupling/core/adaptor/api_25_2/get_region_names_for_participant.py +32 -0
  56. ansys/systemcoupling/core/adaptor/api_25_2/get_setup_summary.py +25 -0
  57. ansys/systemcoupling/core/adaptor/api_25_2/get_status_messages.py +52 -0
  58. ansys/systemcoupling/core/adaptor/api_25_2/get_supported_participant_types.py +13 -0
  59. ansys/systemcoupling/core/adaptor/api_25_2/get_thermal_data_transfer_options.py +32 -0
  60. ansys/systemcoupling/core/adaptor/api_25_2/get_transformation.py +43 -0
  61. ansys/systemcoupling/core/adaptor/api_25_2/global_stabilization.py +155 -0
  62. ansys/systemcoupling/core/adaptor/api_25_2/has_input_file_changed.py +36 -0
  63. ansys/systemcoupling/core/adaptor/api_25_2/import_system_coupling_input_file.py +36 -0
  64. ansys/systemcoupling/core/adaptor/api_25_2/initialize.py +27 -0
  65. ansys/systemcoupling/core/adaptor/api_25_2/instancing.py +25 -0
  66. ansys/systemcoupling/core/adaptor/api_25_2/instancing_child.py +114 -0
  67. ansys/systemcoupling/core/adaptor/api_25_2/interrupt.py +39 -0
  68. ansys/systemcoupling/core/adaptor/api_25_2/library.py +37 -0
  69. ansys/systemcoupling/core/adaptor/api_25_2/live_visualization.py +20 -0
  70. ansys/systemcoupling/core/adaptor/api_25_2/live_visualization_child.py +100 -0
  71. ansys/systemcoupling/core/adaptor/api_25_2/map.py +19 -0
  72. ansys/systemcoupling/core/adaptor/api_25_2/mapping_control.py +273 -0
  73. ansys/systemcoupling/core/adaptor/api_25_2/open.py +107 -0
  74. ansys/systemcoupling/core/adaptor/api_25_2/open_results_in_ensight.py +56 -0
  75. ansys/systemcoupling/core/adaptor/api_25_2/open_snapshot.py +37 -0
  76. ansys/systemcoupling/core/adaptor/api_25_2/output_control.py +134 -0
  77. ansys/systemcoupling/core/adaptor/api_25_2/parameter.py +20 -0
  78. ansys/systemcoupling/core/adaptor/api_25_2/parameter_child.py +60 -0
  79. ansys/systemcoupling/core/adaptor/api_25_2/partition_participants.py +148 -0
  80. ansys/systemcoupling/core/adaptor/api_25_2/properties.py +36 -0
  81. ansys/systemcoupling/core/adaptor/api_25_2/record_interactions.py +46 -0
  82. ansys/systemcoupling/core/adaptor/api_25_2/reference_frame.py +20 -0
  83. ansys/systemcoupling/core/adaptor/api_25_2/reference_frame_child.py +71 -0
  84. ansys/systemcoupling/core/adaptor/api_25_2/region.py +20 -0
  85. ansys/systemcoupling/core/adaptor/api_25_2/region_child.py +71 -0
  86. ansys/systemcoupling/core/adaptor/api_25_2/reload_expression_function_modules.py +14 -0
  87. ansys/systemcoupling/core/adaptor/api_25_2/results.py +89 -0
  88. ansys/systemcoupling/core/adaptor/api_25_2/save.py +53 -0
  89. ansys/systemcoupling/core/adaptor/api_25_2/save_snapshot.py +54 -0
  90. ansys/systemcoupling/core/adaptor/api_25_2/setup_root.py +243 -0
  91. ansys/systemcoupling/core/adaptor/api_25_2/show_plot.py +75 -0
  92. ansys/systemcoupling/core/adaptor/api_25_2/shutdown.py +25 -0
  93. ansys/systemcoupling/core/adaptor/api_25_2/side.py +20 -0
  94. ansys/systemcoupling/core/adaptor/api_25_2/side_child.py +56 -0
  95. ansys/systemcoupling/core/adaptor/api_25_2/solution_control.py +127 -0
  96. ansys/systemcoupling/core/adaptor/api_25_2/solution_root.py +134 -0
  97. ansys/systemcoupling/core/adaptor/api_25_2/solve.py +30 -0
  98. ansys/systemcoupling/core/adaptor/api_25_2/stabilization.py +157 -0
  99. ansys/systemcoupling/core/adaptor/api_25_2/step.py +57 -0
  100. ansys/systemcoupling/core/adaptor/api_25_2/transformation.py +21 -0
  101. ansys/systemcoupling/core/adaptor/api_25_2/transformation_child.py +62 -0
  102. ansys/systemcoupling/core/adaptor/api_25_2/type.py +39 -0
  103. ansys/systemcoupling/core/adaptor/api_25_2/unmapped_value_options.py +158 -0
  104. ansys/systemcoupling/core/adaptor/api_25_2/update_control.py +43 -0
  105. ansys/systemcoupling/core/adaptor/api_25_2/update_interfaces.py +19 -0
  106. ansys/systemcoupling/core/adaptor/api_25_2/update_participant.py +61 -0
  107. ansys/systemcoupling/core/adaptor/api_25_2/variable.py +20 -0
  108. ansys/systemcoupling/core/adaptor/api_25_2/variable_child.py +231 -0
  109. ansys/systemcoupling/core/adaptor/api_25_2/write_csv_chart_files.py +21 -0
  110. ansys/systemcoupling/core/adaptor/api_25_2/write_ensight.py +46 -0
  111. ansys/systemcoupling/core/adaptor/api_25_2/write_target_data.py +32 -0
  112. ansys/systemcoupling/core/adaptor/impl/get_syc_version.py +4 -1
  113. ansys/systemcoupling/core/adaptor/impl/injected_commands.py +3 -1
  114. ansys/systemcoupling/core/charts/csv_chartdata.py +4 -3
  115. ansys/systemcoupling/core/charts/plot_functions.py +12 -4
  116. ansys/systemcoupling/core/charts/plotter.py +3 -2
  117. ansys/systemcoupling/core/client/grpc_client.py +11 -2
  118. ansys/systemcoupling/core/client/syc_container.py +40 -35
  119. ansys/systemcoupling/core/client/syc_process.py +5 -2
  120. ansys/systemcoupling/core/native_api/datamodel_metadata.py +3 -2
  121. ansys/systemcoupling/core/native_api/object_path.py +2 -1
  122. ansys/systemcoupling/core/syc_version.py +1 -1
  123. ansys/systemcoupling/core/util/assertion.py +38 -0
  124. ansys/systemcoupling/core/util/file_transfer.py +2 -1
  125. ansys/systemcoupling/core/util/yaml_helper.py +5 -5
  126. {ansys_systemcoupling_core-0.9.1.dist-info → ansys_systemcoupling_core-0.10.0.dist-info}/METADATA +14 -8
  127. {ansys_systemcoupling_core-0.9.1.dist-info → ansys_systemcoupling_core-0.10.0.dist-info}/RECORD +129 -18
  128. {ansys_systemcoupling_core-0.9.1.dist-info → ansys_systemcoupling_core-0.10.0.dist-info}/WHEEL +0 -0
  129. {ansys_systemcoupling_core-0.9.1.dist-info → ansys_systemcoupling_core-0.10.0.dist-info}/licenses/LICENSE +0 -0
@@ -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,41 @@
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
11
+ FMU-FMU interface. Requires the FMU-FMU interface. Requires
12
+ that the target FMU has the same number of input variables
13
+ as the source FMU has output variables.
14
+ The transfers are added in order. That is, the n-th output
15
+ variable for side one will be connected to the n-th input
16
+ variable for side two. This is only available for interfaces
17
+ with FMUs on both side one and side two.
18
+
19
+ Data transfers will be created in both directions, if possible.
20
+
21
+ Returns the name of the data transfers created.
22
+
23
+ Parameters
24
+ ----------
25
+ interface : str
26
+ String indicating the name of the interface on which the data transfer
27
+ is to be created.
28
+
29
+ """
30
+
31
+ syc_name = "AddOrderedDataTransfers"
32
+
33
+ argument_names = ["interface"]
34
+
35
+ class interface(String):
36
+ """
37
+ String indicating the name of the interface on which the data transfer
38
+ is to be created.
39
+ """
40
+
41
+ syc_name = "Interface"
@@ -0,0 +1,177 @@
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 setup.
35
+ Cannot be called after participants have been started.
36
+ Returns the name of the participant.
37
+
38
+ There are several options that can be selected to add the
39
+ participant - via a file, via a participant executable, or via a
40
+ Python script. Some of these options may be combined. For example,
41
+ sometimes it is useful to use an input file while at the same time
42
+ providing a custom participant executable or Python script.
43
+
44
+ Option 1: Using an input file
45
+
46
+ Given an input file containing participant coupling information, reads the
47
+ specified file, pushes the participant's information to the data model.
48
+
49
+ Option 2: Using a participant executable
50
+
51
+ Given the path to the executable for this participant (and optionally,
52
+ additional arguments and/or working directory), start the participant
53
+ executable, connect to the participant using the socket connection,
54
+ and get the participant's information and add it to the data model.
55
+
56
+ Option 3: Using a Python script
57
+
58
+ This can be seen as a special case of Option 2 (using an executable),
59
+ but instead of an executable, a Python script is used. System Coupling
60
+ will invoke a specialized script to set up the environment so
61
+ that the Python script can more easily interact with System Coupling.
62
+
63
+ Parameters
64
+ ----------
65
+ participant_session : ParticipantProtocol, optional
66
+ Participant session object conforming to the ``ParticipantProtocol`` protocol class.
67
+ participant_type : str, optional
68
+ Participant type. To get a list of supported participant types, use
69
+ the get_supported_participant_types() query. If unspecified,
70
+ add_participant will attempt to deduce the type from input_file.
71
+ input_file : str, optional
72
+ Name of the input file for the participant to be added.
73
+ Currently supported formats are SCP files, Forte input (FTSIM)
74
+ files, Mechanical Server (\*.rst) files, CFD Server (\*.csv) files,
75
+ FMU (\*.fmu) files, and System Coupling Data Server (\*.scdt/axdt/csv) files.
76
+ executable : str, optional
77
+ Path to the executable file for the participant to be added.
78
+ additional_arguments : str, optional
79
+ Any additional arguments to be passed to the participant's executable.
80
+ working_directory : str, optional
81
+ Path to the working directory for this participant.
82
+ python_script : str, optional
83
+ Instead of the executable, use a Python script and wrap it with
84
+ System Coupling-provided .bat/.sh scripts to set up the environment
85
+ correctly before calling this Python script. On Windows, a few
86
+ lines will need to be included near the top of the Python script to
87
+ add the required dll directories as follows:
88
+
89
+ .. code-block:: python
90
+
91
+ import os
92
+ import sys
93
+ if sys.platform.startswith("win"):
94
+ for p in os.environ["PYTHON_DLL_PATH"].split(os.pathsep):
95
+ os.add_dll_directory(p)
96
+
97
+ """
98
+
99
+ syc_name = "add_participant"
100
+
101
+ cmd_name = "add_participant"
102
+
103
+ argument_names = [
104
+ "participant_session",
105
+ "participant_type",
106
+ "input_file",
107
+ "executable",
108
+ "additional_arguments",
109
+ "working_directory",
110
+ "python_script",
111
+ ]
112
+
113
+ class participant_session(ParticipantSession):
114
+ """
115
+ Participant session object conforming to the ``ParticipantProtocol`` protocol class.
116
+ """
117
+
118
+ syc_name = "participant_session"
119
+
120
+ class participant_type(String):
121
+ """
122
+ Participant type. To get a list of supported participant types, use
123
+ the get_supported_participant_types() query. If unspecified,
124
+ add_participant will attempt to deduce the type from input_file.
125
+ """
126
+
127
+ syc_name = "ParticipantType"
128
+
129
+ class input_file(String):
130
+ """
131
+ Name of the input file for the participant to be added.
132
+ Currently supported formats are SCP files, Forte input (FTSIM)
133
+ files, Mechanical Server (\*.rst) files, CFD Server (\*.csv) files,
134
+ FMU (\*.fmu) files, and System Coupling Data Server (\*.scdt/axdt/csv) files.
135
+ """
136
+
137
+ syc_name = "InputFile"
138
+
139
+ class executable(String):
140
+ """
141
+ Path to the executable file for the participant to be added.
142
+ """
143
+
144
+ syc_name = "Executable"
145
+
146
+ class additional_arguments(String):
147
+ """
148
+ Any additional arguments to be passed to the participant's executable.
149
+ """
150
+
151
+ syc_name = "AdditionalArguments"
152
+
153
+ class working_directory(String):
154
+ """
155
+ Path to the working directory for this participant.
156
+ """
157
+
158
+ syc_name = "WorkingDirectory"
159
+
160
+ class python_script(String):
161
+ """
162
+ Instead of the executable, use a Python script and wrap it with
163
+ System Coupling-provided .bat/.sh scripts to set up the environment
164
+ correctly before calling this Python script. On Windows, a few
165
+ lines will need to be included near the top of the Python script to
166
+ add the required dll directories as follows:
167
+
168
+ .. code-block:: python
169
+
170
+ import os
171
+ import sys
172
+ if sys.platform.startswith("win"):
173
+ for p in os.environ["PYTHON_DLL_PATH"].split(os.pathsep):
174
+ os.add_dll_directory(p)
175
+ """
176
+
177
+ syc_name = "PythonScript"
@@ -0,0 +1,40 @@
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_reference_frame(Command):
9
+ """
10
+ Add a reference frame to the datamodel
11
+
12
+ The function will add a blank reference frame to the datamodel. Any
13
+ transformations must be added separately.
14
+
15
+ Reference frame name will be "Frame-#" where # is the first positive
16
+ integer which yields a unique frame name.
17
+
18
+ Returns the name of the reference frame.
19
+
20
+ Parameters
21
+ ----------
22
+ parent_reference_frame : str, optional
23
+ Name of a reference frame that the added frame should use as the
24
+ parent. If the argument is not provided, the default parent reference
25
+ frame "GlobalReferenceFrame" will be added.
26
+
27
+ """
28
+
29
+ syc_name = "AddReferenceFrame"
30
+
31
+ argument_names = ["parent_reference_frame"]
32
+
33
+ class parent_reference_frame(String):
34
+ """
35
+ Name of a reference frame that the added frame should use as the
36
+ parent. If the argument is not provided, the default parent reference
37
+ frame "GlobalReferenceFrame" will be added.
38
+ """
39
+
40
+ syc_name = "ParentReferenceFrame"
@@ -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_thermal_data_transfers(Command):
9
+ """
10
+ Adds group of data transfers for thermal 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
+ option : str, optional
20
+ Thermal data transfer option: 'Heat Rate' (default) or
21
+ 'Heat Transfer Coefficient' (possible for surface-surface transfers).
22
+
23
+ """
24
+
25
+ syc_name = "AddThermalDataTransfers"
26
+
27
+ argument_names = ["interface", "option"]
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 option(String):
38
+ """
39
+ Thermal data transfer option: 'Heat Rate' (default) or
40
+ 'Heat Transfer Coefficient' (possible for surface-surface transfers).
41
+ """
42
+
43
+ syc_name = "Option"
@@ -0,0 +1,102 @@
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_transformation(Command):
9
+ """
10
+ Add a transformation to a reference frame defined in the datamodel
11
+
12
+ Given the reference frame to add to the transform to, the type of transform
13
+ to be added, and any required information for the transformation, add the
14
+ transformation to the referenceFrame. Not all parameters are required for
15
+ every transformation.
16
+
17
+ The name of the transformation will be based on the type of transformation.
18
+ The name will be of the form ``<transformation_type>-#`` where ``#`` is the first
19
+ positive integer which yields a unique frame name.
20
+
21
+ The transformation will also be added to the end of the ``transformation_order``
22
+ list for the reference frame.
23
+
24
+ Returns the name of the transformation.
25
+
26
+ Parameters
27
+ ----------
28
+ reference_frame : str
29
+ Name of the reference frame to which the transformation will be added.
30
+ transformation_type : str
31
+ Type of transformation to be added. Available options are Rotation or
32
+ Translation
33
+
34
+ Required Parameters for Transformation Types:
35
+ Rotation: ``angle``, ``axis``, ``vector`` (if ``axis`` is \"UserDefined\")
36
+ Translation: ``vector``
37
+ angle : real, optional
38
+ Angle to rotate a reference frame. Used with Rotation
39
+ ``transformation_type``. Default unit is Radians.
40
+ axis : str, optional
41
+ Axis about which a rotation is applied. Used with
42
+ Rotation ``transformation_type``. Available options are: "XAxis", "YAxis",
43
+ "ZAxis", and "UserDefined".
44
+ vector : Tuple, optional
45
+ A vector for use with Translation ``transformation_type`` or Rotation
46
+ ``transformation_type`` if the ``axis`` is "UserDefined".
47
+
48
+ """
49
+
50
+ syc_name = "AddTransformation"
51
+
52
+ argument_names = [
53
+ "reference_frame",
54
+ "transformation_type",
55
+ "angle",
56
+ "axis",
57
+ "vector",
58
+ ]
59
+
60
+ class reference_frame(String):
61
+ """
62
+ Name of the reference frame to which the transformation will be added.
63
+ """
64
+
65
+ syc_name = "ReferenceFrame"
66
+
67
+ class transformation_type(String):
68
+ """
69
+ Type of transformation to be added. Available options are Rotation or
70
+ Translation
71
+
72
+ Required Parameters for Transformation Types:
73
+ Rotation: ``angle``, ``axis``, ``vector`` (if ``axis`` is \"UserDefined\")
74
+ Translation: ``vector``
75
+ """
76
+
77
+ syc_name = "TransformationType"
78
+
79
+ class angle(Real):
80
+ """
81
+ Angle to rotate a reference frame. Used with Rotation
82
+ ``transformation_type``. Default unit is Radians.
83
+ """
84
+
85
+ syc_name = "Angle"
86
+
87
+ class axis(String):
88
+ """
89
+ Axis about which a rotation is applied. Used with
90
+ Rotation ``transformation_type``. Available options are: "XAxis", "YAxis",
91
+ "ZAxis", and "UserDefined".
92
+ """
93
+
94
+ syc_name = "Axis"
95
+
96
+ class vector(RealVector):
97
+ """
98
+ A vector for use with Translation ``transformation_type`` or Rotation
99
+ ``transformation_type`` if the ``axis`` is "UserDefined".
100
+ """
101
+
102
+ syc_name = "Vector"