ansys-systemcoupling-core 0.8.0__py3-none-any.whl → 0.9.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 (166) hide show
  1. ansys/systemcoupling/core/__init__.py +2 -2
  2. ansys/systemcoupling/core/_version.py +1 -1
  3. ansys/systemcoupling/core/adaptor/api_25_1/instancing.py +2 -0
  4. ansys/systemcoupling/core/adaptor/api_25_1/instancing_child.py +62 -10
  5. ansys/systemcoupling/core/adaptor/api_25_1/mapping_control.py +20 -0
  6. ansys/systemcoupling/core/adaptor/api_25_1/setup_root.py +1 -1
  7. ansys/systemcoupling/core/adaptor/api_25_1/update_participant.py +15 -15
  8. ansys/systemcoupling/core/adaptor/api_25_2/_add_participant.py +80 -0
  9. ansys/systemcoupling/core/adaptor/api_25_2/_clear_state.py +13 -0
  10. ansys/systemcoupling/core/adaptor/api_25_2/_solve.py +13 -0
  11. ansys/systemcoupling/core/adaptor/api_25_2/abort.py +39 -0
  12. ansys/systemcoupling/core/adaptor/api_25_2/activate_hidden.py +46 -0
  13. ansys/systemcoupling/core/adaptor/api_25_2/add_aerodamping_data_transfers.py +43 -0
  14. ansys/systemcoupling/core/adaptor/api_25_2/add_data_transfer.py +190 -0
  15. ansys/systemcoupling/core/adaptor/api_25_2/add_data_transfer_by_display_names.py +191 -0
  16. ansys/systemcoupling/core/adaptor/api_25_2/add_expression_function.py +61 -0
  17. ansys/systemcoupling/core/adaptor/api_25_2/add_flow_boundary_data_transfers.py +32 -0
  18. ansys/systemcoupling/core/adaptor/api_25_2/add_fsi_data_transfers.py +43 -0
  19. ansys/systemcoupling/core/adaptor/api_25_2/add_interface.py +77 -0
  20. ansys/systemcoupling/core/adaptor/api_25_2/add_interface_by_display_names.py +78 -0
  21. ansys/systemcoupling/core/adaptor/api_25_2/add_named_expression.py +42 -0
  22. ansys/systemcoupling/core/adaptor/api_25_2/add_ordered_data_transfers.py +32 -0
  23. ansys/systemcoupling/core/adaptor/api_25_2/add_participant.py +162 -0
  24. ansys/systemcoupling/core/adaptor/api_25_2/add_reference_frame.py +40 -0
  25. ansys/systemcoupling/core/adaptor/api_25_2/add_thermal_data_transfers.py +43 -0
  26. ansys/systemcoupling/core/adaptor/api_25_2/add_transformation.py +102 -0
  27. ansys/systemcoupling/core/adaptor/api_25_2/analysis_control.py +303 -0
  28. ansys/systemcoupling/core/adaptor/api_25_2/apip.py +33 -0
  29. ansys/systemcoupling/core/adaptor/api_25_2/ascii_output.py +44 -0
  30. ansys/systemcoupling/core/adaptor/api_25_2/attribute.py +20 -0
  31. ansys/systemcoupling/core/adaptor/api_25_2/attribute_child.py +64 -0
  32. ansys/systemcoupling/core/adaptor/api_25_2/automatic_alignment_options.py +46 -0
  33. ansys/systemcoupling/core/adaptor/api_25_2/available_ports.py +40 -0
  34. ansys/systemcoupling/core/adaptor/api_25_2/avoid_data_reconstruction.py +56 -0
  35. ansys/systemcoupling/core/adaptor/api_25_2/case_root.py +62 -0
  36. ansys/systemcoupling/core/adaptor/api_25_2/clear_state.py +18 -0
  37. ansys/systemcoupling/core/adaptor/api_25_2/connect_ensight_dvs.py +41 -0
  38. ansys/systemcoupling/core/adaptor/api_25_2/coupling_interface.py +20 -0
  39. ansys/systemcoupling/core/adaptor/api_25_2/coupling_interface_child.py +42 -0
  40. ansys/systemcoupling/core/adaptor/api_25_2/coupling_participant.py +23 -0
  41. ansys/systemcoupling/core/adaptor/api_25_2/coupling_participant_child.py +272 -0
  42. ansys/systemcoupling/core/adaptor/api_25_2/create_restart_point.py +29 -0
  43. ansys/systemcoupling/core/adaptor/api_25_2/data_transfer.py +20 -0
  44. ansys/systemcoupling/core/adaptor/api_25_2/data_transfer_child.py +187 -0
  45. ansys/systemcoupling/core/adaptor/api_25_2/delete_snapshot.py +28 -0
  46. ansys/systemcoupling/core/adaptor/api_25_2/delete_transformation.py +42 -0
  47. ansys/systemcoupling/core/adaptor/api_25_2/dimensionality.py +96 -0
  48. ansys/systemcoupling/core/adaptor/api_25_2/execution_control.py +256 -0
  49. ansys/systemcoupling/core/adaptor/api_25_2/execution_control_1.py +24 -0
  50. ansys/systemcoupling/core/adaptor/api_25_2/expression.py +20 -0
  51. ansys/systemcoupling/core/adaptor/api_25_2/expression_child.py +36 -0
  52. ansys/systemcoupling/core/adaptor/api_25_2/expression_function.py +20 -0
  53. ansys/systemcoupling/core/adaptor/api_25_2/expression_function_child.py +46 -0
  54. ansys/systemcoupling/core/adaptor/api_25_2/external_data_file.py +24 -0
  55. ansys/systemcoupling/core/adaptor/api_25_2/fluent_input.py +77 -0
  56. ansys/systemcoupling/core/adaptor/api_25_2/fmu_parameter.py +20 -0
  57. ansys/systemcoupling/core/adaptor/api_25_2/fmu_parameter_child.py +164 -0
  58. ansys/systemcoupling/core/adaptor/api_25_2/generate_input_file.py +41 -0
  59. ansys/systemcoupling/core/adaptor/api_25_2/get_add_data_transfer_group_commands.py +29 -0
  60. ansys/systemcoupling/core/adaptor/api_25_2/get_execution_command.py +30 -0
  61. ansys/systemcoupling/core/adaptor/api_25_2/get_machines.py +13 -0
  62. ansys/systemcoupling/core/adaptor/api_25_2/get_mode_shape_variables.py +29 -0
  63. ansys/systemcoupling/core/adaptor/api_25_2/get_region_names_for_participant.py +31 -0
  64. ansys/systemcoupling/core/adaptor/api_25_2/get_setup_summary.py +25 -0
  65. ansys/systemcoupling/core/adaptor/api_25_2/get_status_messages.py +52 -0
  66. ansys/systemcoupling/core/adaptor/api_25_2/get_supported_participant_types.py +13 -0
  67. ansys/systemcoupling/core/adaptor/api_25_2/get_thermal_data_transfer_options.py +32 -0
  68. ansys/systemcoupling/core/adaptor/api_25_2/get_transformation.py +43 -0
  69. ansys/systemcoupling/core/adaptor/api_25_2/global_stabilization.py +155 -0
  70. ansys/systemcoupling/core/adaptor/api_25_2/has_input_file_changed.py +36 -0
  71. ansys/systemcoupling/core/adaptor/api_25_2/import_system_coupling_input_file.py +36 -0
  72. ansys/systemcoupling/core/adaptor/api_25_2/initialize.py +27 -0
  73. ansys/systemcoupling/core/adaptor/api_25_2/instancing.py +25 -0
  74. ansys/systemcoupling/core/adaptor/api_25_2/instancing_child.py +114 -0
  75. ansys/systemcoupling/core/adaptor/api_25_2/interrupt.py +39 -0
  76. ansys/systemcoupling/core/adaptor/api_25_2/library.py +37 -0
  77. ansys/systemcoupling/core/adaptor/api_25_2/live_visualization.py +20 -0
  78. ansys/systemcoupling/core/adaptor/api_25_2/live_visualization_child.py +100 -0
  79. ansys/systemcoupling/core/adaptor/api_25_2/map.py +19 -0
  80. ansys/systemcoupling/core/adaptor/api_25_2/mapping_control.py +249 -0
  81. ansys/systemcoupling/core/adaptor/api_25_2/open.py +102 -0
  82. ansys/systemcoupling/core/adaptor/api_25_2/open_results_in_ensight.py +56 -0
  83. ansys/systemcoupling/core/adaptor/api_25_2/open_snapshot.py +37 -0
  84. ansys/systemcoupling/core/adaptor/api_25_2/output_control.py +134 -0
  85. ansys/systemcoupling/core/adaptor/api_25_2/parameter.py +20 -0
  86. ansys/systemcoupling/core/adaptor/api_25_2/parameter_child.py +60 -0
  87. ansys/systemcoupling/core/adaptor/api_25_2/partition_participants.py +138 -0
  88. ansys/systemcoupling/core/adaptor/api_25_2/properties.py +36 -0
  89. ansys/systemcoupling/core/adaptor/api_25_2/record_interactions.py +46 -0
  90. ansys/systemcoupling/core/adaptor/api_25_2/reference_frame.py +20 -0
  91. ansys/systemcoupling/core/adaptor/api_25_2/reference_frame_child.py +71 -0
  92. ansys/systemcoupling/core/adaptor/api_25_2/region.py +20 -0
  93. ansys/systemcoupling/core/adaptor/api_25_2/region_child.py +71 -0
  94. ansys/systemcoupling/core/adaptor/api_25_2/reload_expression_function_modules.py +14 -0
  95. ansys/systemcoupling/core/adaptor/api_25_2/results.py +89 -0
  96. ansys/systemcoupling/core/adaptor/api_25_2/save.py +51 -0
  97. ansys/systemcoupling/core/adaptor/api_25_2/save_snapshot.py +54 -0
  98. ansys/systemcoupling/core/adaptor/api_25_2/setup_root.py +259 -0
  99. ansys/systemcoupling/core/adaptor/api_25_2/show_plot.py +75 -0
  100. ansys/systemcoupling/core/adaptor/api_25_2/shutdown.py +25 -0
  101. ansys/systemcoupling/core/adaptor/api_25_2/side.py +20 -0
  102. ansys/systemcoupling/core/adaptor/api_25_2/side_child.py +56 -0
  103. ansys/systemcoupling/core/adaptor/api_25_2/solution_control.py +117 -0
  104. ansys/systemcoupling/core/adaptor/api_25_2/solution_root.py +134 -0
  105. ansys/systemcoupling/core/adaptor/api_25_2/solve.py +30 -0
  106. ansys/systemcoupling/core/adaptor/api_25_2/stabilization.py +157 -0
  107. ansys/systemcoupling/core/adaptor/api_25_2/step.py +57 -0
  108. ansys/systemcoupling/core/adaptor/api_25_2/transformation.py +21 -0
  109. ansys/systemcoupling/core/adaptor/api_25_2/transformation_child.py +62 -0
  110. ansys/systemcoupling/core/adaptor/api_25_2/type.py +39 -0
  111. ansys/systemcoupling/core/adaptor/api_25_2/unmapped_value_options.py +158 -0
  112. ansys/systemcoupling/core/adaptor/api_25_2/update_control.py +43 -0
  113. ansys/systemcoupling/core/adaptor/api_25_2/update_interfaces.py +19 -0
  114. ansys/systemcoupling/core/adaptor/api_25_2/update_participant.py +61 -0
  115. ansys/systemcoupling/core/adaptor/api_25_2/variable.py +20 -0
  116. ansys/systemcoupling/core/adaptor/api_25_2/variable_child.py +231 -0
  117. ansys/systemcoupling/core/adaptor/api_25_2/write_csv_chart_files.py +21 -0
  118. ansys/systemcoupling/core/adaptor/api_25_2/write_ensight.py +46 -0
  119. ansys/systemcoupling/core/adaptor/api_25_2/write_target_data.py +32 -0
  120. ansys/systemcoupling/core/adaptor/impl/get_status_messages.py +1 -1
  121. ansys/systemcoupling/core/adaptor/impl/get_syc_version.py +1 -1
  122. ansys/systemcoupling/core/adaptor/impl/injected_commands.py +1 -1
  123. ansys/systemcoupling/core/adaptor/impl/root_source.py +1 -1
  124. ansys/systemcoupling/core/adaptor/impl/static_info.py +13 -6
  125. ansys/systemcoupling/core/adaptor/impl/syc_proxy.py +1 -1
  126. ansys/systemcoupling/core/adaptor/impl/syc_proxy_interface.py +1 -1
  127. ansys/systemcoupling/core/adaptor/impl/types.py +1 -1
  128. ansys/systemcoupling/core/charts/chart_datatypes.py +1 -1
  129. ansys/systemcoupling/core/charts/csv_chartdata.py +18 -4
  130. ansys/systemcoupling/core/charts/live_csv_datasource.py +1 -1
  131. ansys/systemcoupling/core/charts/message_dispatcher.py +1 -1
  132. ansys/systemcoupling/core/charts/plot_functions.py +1 -1
  133. ansys/systemcoupling/core/charts/plotdefinition_manager.py +1 -1
  134. ansys/systemcoupling/core/charts/plotter.py +1 -1
  135. ansys/systemcoupling/core/client/grpc_client.py +11 -2
  136. ansys/systemcoupling/core/client/services/command_query.py +4 -13
  137. ansys/systemcoupling/core/client/services/handle_rpc_error.py +64 -0
  138. ansys/systemcoupling/core/client/services/output_stream.py +1 -1
  139. ansys/systemcoupling/core/client/services/process.py +1 -1
  140. ansys/systemcoupling/core/client/services/solution.py +4 -13
  141. ansys/systemcoupling/core/client/syc_container.py +4 -1
  142. ansys/systemcoupling/core/client/syc_process.py +5 -1
  143. ansys/systemcoupling/core/client/variant.py +1 -1
  144. ansys/systemcoupling/core/examples/__init__.py +1 -1
  145. ansys/systemcoupling/core/examples/downloads.py +1 -1
  146. ansys/systemcoupling/core/native_api/__init__.py +1 -1
  147. ansys/systemcoupling/core/native_api/command_metadata.py +1 -1
  148. ansys/systemcoupling/core/native_api/datamodel_metadata.py +1 -1
  149. ansys/systemcoupling/core/native_api/meta_wrapper.py +1 -1
  150. ansys/systemcoupling/core/native_api/native_api.py +1 -1
  151. ansys/systemcoupling/core/native_api/object_path.py +1 -1
  152. ansys/systemcoupling/core/participant/manager.py +1 -1
  153. ansys/systemcoupling/core/participant/mapdl.py +1 -1
  154. ansys/systemcoupling/core/participant/protocol.py +1 -1
  155. ansys/systemcoupling/core/session.py +1 -1
  156. ansys/systemcoupling/core/syc_version.py +3 -3
  157. ansys/systemcoupling/core/util/file_transfer.py +1 -1
  158. ansys/systemcoupling/core/util/logging.py +1 -1
  159. ansys/systemcoupling/core/util/name_util.py +1 -1
  160. ansys/systemcoupling/core/util/pathstr.py +1 -1
  161. ansys/systemcoupling/core/util/state_keys.py +1 -1
  162. ansys/systemcoupling/core/util/yaml_helper.py +1 -1
  163. {ansys_systemcoupling_core-0.8.0.dist-info → ansys_systemcoupling_core-0.9.0.dist-info}/METADATA +35 -21
  164. {ansys_systemcoupling_core-0.8.0.dist-info → ansys_systemcoupling_core-0.9.0.dist-info}/RECORD +166 -53
  165. {ansys_systemcoupling_core-0.8.0.dist-info → ansys_systemcoupling_core-0.9.0.dist-info}/WHEEL +1 -1
  166. {ansys_systemcoupling_core-0.8.0.dist-info → ansys_systemcoupling_core-0.9.0.dist-info/licenses}/LICENSE +1 -1
@@ -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"
@@ -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"
@@ -0,0 +1,303 @@
1
+ #
2
+ # This is an auto-generated file. DO NOT EDIT!
3
+ #
4
+
5
+ from ansys.systemcoupling.core.adaptor.impl.types import *
6
+
7
+ from .apip import apip
8
+ from .automatic_alignment_options import automatic_alignment_options
9
+ from .avoid_data_reconstruction import avoid_data_reconstruction
10
+ from .global_stabilization import global_stabilization
11
+ from .unmapped_value_options import unmapped_value_options
12
+
13
+
14
+ class analysis_control(Container):
15
+ """
16
+ Configure coupling controls.
17
+ """
18
+
19
+ syc_name = "AnalysisControl"
20
+
21
+ child_names = [
22
+ "global_stabilization",
23
+ "apip",
24
+ "avoid_data_reconstruction",
25
+ "unmapped_value_options",
26
+ "automatic_alignment_options",
27
+ ]
28
+
29
+ global_stabilization: global_stabilization = global_stabilization
30
+ """
31
+ global_stabilization child of analysis_control.
32
+ """
33
+ apip: apip = apip
34
+ """
35
+ apip child of analysis_control.
36
+ """
37
+ avoid_data_reconstruction: avoid_data_reconstruction = avoid_data_reconstruction
38
+ """
39
+ avoid_data_reconstruction child of analysis_control.
40
+ """
41
+ unmapped_value_options: unmapped_value_options = unmapped_value_options
42
+ """
43
+ unmapped_value_options child of analysis_control.
44
+ """
45
+ automatic_alignment_options: automatic_alignment_options = (
46
+ automatic_alignment_options
47
+ )
48
+ """
49
+ automatic_alignment_options child of analysis_control.
50
+ """
51
+ property_names_types = [
52
+ ("analysis_type", "AnalysisType", "str"),
53
+ ("optimize_if_one_way", "OptimizeIfOneWay", "bool"),
54
+ ("warped_face_tolerance", "WarpedFaceTolerance", "RealType"),
55
+ ("allow_simultaneous_update", "AllowSimultaneousUpdate", "bool"),
56
+ ("simultaneous_participants", "SimultaneousParticipants", "str"),
57
+ (
58
+ "allow_simultaneous_initialization",
59
+ "AllowSimultaneousInitialization",
60
+ "bool",
61
+ ),
62
+ ("mpi_pause_timeout", "MpiPauseTimeout", "RealType"),
63
+ ("partitioning_algorithm", "PartitioningAlgorithm", "str"),
64
+ ("cleanup_inflated_fm_us", "CleanupInflatedFMUs", "bool"),
65
+ ("allow_iterations_only_mode", "AllowIterationsOnlyMode", "bool"),
66
+ ("target_initialization_option", "TargetInitializationOption", "str"),
67
+ ("fluent_region_update_at_step", "FluentRegionUpdateAtStep", "bool"),
68
+ ("mesh_import_on_initialization", "MeshImportOnInitialization", "bool"),
69
+ ("import_all_regions", "ImportAllRegions", "bool"),
70
+ ("bypass_fluent_adapter", "BypassFluentAdapter", "bool"),
71
+ ("variable_to_expression_transfer", "VariableToExpressionTransfer", "bool"),
72
+ ("update_mapping_weights", "UpdateMappingWeights", "str"),
73
+ (
74
+ "solve_incremental_displacement_first",
75
+ "SolveIncrementalDisplacementFirst",
76
+ "bool",
77
+ ),
78
+ ("write_scs_file", "WriteScsFile", "bool"),
79
+ ("check_for_input_files_changes", "CheckForInputFilesChanges", "str"),
80
+ ("is_user_friendly_mapping", "IsUserFriendlyMapping", "bool"),
81
+ ("reduce_informational_output", "ReduceInformationalOutput", "bool"),
82
+ ]
83
+
84
+ @property
85
+ def analysis_type(self) -> str:
86
+ """Analysis type.
87
+
88
+ Allowed values:
89
+ - \"Steady\"
90
+ - \"Transient\" """
91
+ return self.get_property_state("analysis_type")
92
+
93
+ @analysis_type.setter
94
+ def analysis_type(self, value: str):
95
+ self.set_property_state("analysis_type", value)
96
+
97
+ @property
98
+ def optimize_if_one_way(self) -> bool:
99
+ """Optimizes various controls for a one-way workflow, if the
100
+ data transfers form a unidirectional graph."""
101
+ return self.get_property_state("optimize_if_one_way")
102
+
103
+ @optimize_if_one_way.setter
104
+ def optimize_if_one_way(self, value: bool):
105
+ self.set_property_state("optimize_if_one_way", value)
106
+
107
+ @property
108
+ def warped_face_tolerance(self) -> RealType:
109
+ """Set warped face detection tolerance (1e-6 is default value, 1.0 means disabled)."""
110
+ return self.get_property_state("warped_face_tolerance")
111
+
112
+ @warped_face_tolerance.setter
113
+ def warped_face_tolerance(self, value: RealType):
114
+ self.set_property_state("warped_face_tolerance", value)
115
+
116
+ @property
117
+ def allow_simultaneous_update(self) -> bool:
118
+ """Allow simultaneous update of independent participants."""
119
+ return self.get_property_state("allow_simultaneous_update")
120
+
121
+ @allow_simultaneous_update.setter
122
+ def allow_simultaneous_update(self, value: bool):
123
+ self.set_property_state("allow_simultaneous_update", value)
124
+
125
+ @property
126
+ def simultaneous_participants(self) -> str:
127
+ """Controls which participants are updated simultaneously."""
128
+ return self.get_property_state("simultaneous_participants")
129
+
130
+ @simultaneous_participants.setter
131
+ def simultaneous_participants(self, value: str):
132
+ self.set_property_state("simultaneous_participants", value)
133
+
134
+ @property
135
+ def allow_simultaneous_initialization(self) -> bool:
136
+ """Allow simultaneous initialization of participants."""
137
+ return self.get_property_state("allow_simultaneous_initialization")
138
+
139
+ @allow_simultaneous_initialization.setter
140
+ def allow_simultaneous_initialization(self, value: bool):
141
+ self.set_property_state("allow_simultaneous_initialization", value)
142
+
143
+ @property
144
+ def mpi_pause_timeout(self) -> RealType:
145
+ """Specify MPI pause time (in seconds) to wait for other participants to finish solving"""
146
+ return self.get_property_state("mpi_pause_timeout")
147
+
148
+ @mpi_pause_timeout.setter
149
+ def mpi_pause_timeout(self, value: RealType):
150
+ self.set_property_state("mpi_pause_timeout", value)
151
+
152
+ @property
153
+ def partitioning_algorithm(self) -> str:
154
+ """Partitioning algorithm used when participants are running in parallel.
155
+
156
+ Allowed values:
157
+
158
+ - \"SharedAllocateMachines\" - Participants share both machines and cores.
159
+
160
+ - \"SharedAllocateCores\" - Participants share machines but not cores.
161
+
162
+ - \"DistributedAllocateCores\" - Participants minimally share cores and machines. (Linux only)
163
+
164
+ - \"DistributedAllocateMachines\" - Participants never share cores or machines. (Linux only)
165
+
166
+ - \"Custom\" - Custom algorithm."""
167
+ return self.get_property_state("partitioning_algorithm")
168
+
169
+ @partitioning_algorithm.setter
170
+ def partitioning_algorithm(self, value: str):
171
+ self.set_property_state("partitioning_algorithm", value)
172
+
173
+ @property
174
+ def cleanup_inflated_fm_us(self) -> bool:
175
+ """Controls whether System Coupling will cleanup inflated FMUs at end of analysis."""
176
+ return self.get_property_state("cleanup_inflated_fm_us")
177
+
178
+ @cleanup_inflated_fm_us.setter
179
+ def cleanup_inflated_fm_us(self, value: bool):
180
+ self.set_property_state("cleanup_inflated_fm_us", value)
181
+
182
+ @property
183
+ def allow_iterations_only_mode(self) -> bool:
184
+ """Explicitly set whether iterations-only mode is allowed."""
185
+ return self.get_property_state("allow_iterations_only_mode")
186
+
187
+ @allow_iterations_only_mode.setter
188
+ def allow_iterations_only_mode(self, value: bool):
189
+ self.set_property_state("allow_iterations_only_mode", value)
190
+
191
+ @property
192
+ def target_initialization_option(self) -> str:
193
+ """Select option for target initialization."""
194
+ return self.get_property_state("target_initialization_option")
195
+
196
+ @target_initialization_option.setter
197
+ def target_initialization_option(self, value: str):
198
+ self.set_property_state("target_initialization_option", value)
199
+
200
+ @property
201
+ def fluent_region_update_at_step(self) -> bool:
202
+ """Allow update of Fluent regions at the beginning of a step."""
203
+ return self.get_property_state("fluent_region_update_at_step")
204
+
205
+ @fluent_region_update_at_step.setter
206
+ def fluent_region_update_at_step(self, value: bool):
207
+ self.set_property_state("fluent_region_update_at_step", value)
208
+
209
+ @property
210
+ def mesh_import_on_initialization(self) -> bool:
211
+ """Select whether to import the mesh during the analysis initialization."""
212
+ return self.get_property_state("mesh_import_on_initialization")
213
+
214
+ @mesh_import_on_initialization.setter
215
+ def mesh_import_on_initialization(self, value: bool):
216
+ self.set_property_state("mesh_import_on_initialization", value)
217
+
218
+ @property
219
+ def import_all_regions(self) -> bool:
220
+ """Select whether to import mesh for all defined regions."""
221
+ return self.get_property_state("import_all_regions")
222
+
223
+ @import_all_regions.setter
224
+ def import_all_regions(self, value: bool):
225
+ self.set_property_state("import_all_regions", value)
226
+
227
+ @property
228
+ def bypass_fluent_adapter(self) -> bool:
229
+ """Switch to bypass Fluent adapter."""
230
+ return self.get_property_state("bypass_fluent_adapter")
231
+
232
+ @bypass_fluent_adapter.setter
233
+ def bypass_fluent_adapter(self, value: bool):
234
+ self.set_property_state("bypass_fluent_adapter", value)
235
+
236
+ @property
237
+ def variable_to_expression_transfer(self) -> bool:
238
+ """Convert variable-based data transfers to expression transfers."""
239
+ return self.get_property_state("variable_to_expression_transfer")
240
+
241
+ @variable_to_expression_transfer.setter
242
+ def variable_to_expression_transfer(self, value: bool):
243
+ self.set_property_state("variable_to_expression_transfer", value)
244
+
245
+ @property
246
+ def update_mapping_weights(self) -> str:
247
+ """Weight factor when multiple transfers are stabilized.
248
+
249
+ Allowed values:
250
+
251
+ - \"Off\" (default)
252
+ - \"EveryStep\"
253
+ - \"EveryIteration\" """
254
+ return self.get_property_state("update_mapping_weights")
255
+
256
+ @update_mapping_weights.setter
257
+ def update_mapping_weights(self, value: str):
258
+ self.set_property_state("update_mapping_weights", value)
259
+
260
+ @property
261
+ def solve_incremental_displacement_first(self) -> bool:
262
+ """Force participants serving incremental displacement to solve first."""
263
+ return self.get_property_state("solve_incremental_displacement_first")
264
+
265
+ @solve_incremental_displacement_first.setter
266
+ def solve_incremental_displacement_first(self, value: bool):
267
+ self.set_property_state("solve_incremental_displacement_first", value)
268
+
269
+ @property
270
+ def write_scs_file(self) -> bool:
271
+ """Force writing of scs file even if participants are auto-started."""
272
+ return self.get_property_state("write_scs_file")
273
+
274
+ @write_scs_file.setter
275
+ def write_scs_file(self, value: bool):
276
+ self.set_property_state("write_scs_file", value)
277
+
278
+ @property
279
+ def check_for_input_files_changes(self) -> str:
280
+ """Controls whether System Coupling will check for changes in participant input files."""
281
+ return self.get_property_state("check_for_input_files_changes")
282
+
283
+ @check_for_input_files_changes.setter
284
+ def check_for_input_files_changes(self, value: str):
285
+ self.set_property_state("check_for_input_files_changes", value)
286
+
287
+ @property
288
+ def is_user_friendly_mapping(self) -> bool:
289
+ """Controls whether is System Coupling user friendly mapping workflow."""
290
+ return self.get_property_state("is_user_friendly_mapping")
291
+
292
+ @is_user_friendly_mapping.setter
293
+ def is_user_friendly_mapping(self, value: bool):
294
+ self.set_property_state("is_user_friendly_mapping", value)
295
+
296
+ @property
297
+ def reduce_informational_output(self) -> bool:
298
+ """Reduce the information written to the transcript and stdout"""
299
+ return self.get_property_state("reduce_informational_output")
300
+
301
+ @reduce_informational_output.setter
302
+ def reduce_informational_output(self, value: bool):
303
+ self.set_property_state("reduce_informational_output", value)
@@ -0,0 +1,33 @@
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 apip(Container):
9
+ """
10
+ Apip-related expert settings.
11
+ """
12
+
13
+ syc_name = "Apip"
14
+
15
+ property_names_types = [("debug", "Debug", "bool"), ("disable", "Disable", "bool")]
16
+
17
+ @property
18
+ def debug(self) -> bool:
19
+ """Debug apip data (sends to debug server, saves data locally)."""
20
+ return self.get_property_state("debug")
21
+
22
+ @debug.setter
23
+ def debug(self, value: bool):
24
+ self.set_property_state("debug", value)
25
+
26
+ @property
27
+ def disable(self) -> bool:
28
+ """Disable apip collection (regardless of user settings)."""
29
+ return self.get_property_state("disable")
30
+
31
+ @disable.setter
32
+ def disable(self, value: bool):
33
+ self.set_property_state("disable", value)