ansys-systemcoupling-core 0.4.dev0__py3-none-any.whl → 0.5.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ansys-systemcoupling-core might be problematic. Click here for more details.

Files changed (127) hide show
  1. ansys/systemcoupling/core/__init__.py +44 -8
  2. ansys/systemcoupling/core/adaptor/api_23_1/_clear_state.py +13 -0
  3. ansys/systemcoupling/core/adaptor/api_23_1/case_root.py +7 -1
  4. ansys/systemcoupling/core/adaptor/api_23_1/clear_state.py +4 -2
  5. ansys/systemcoupling/core/adaptor/api_23_2/_clear_state.py +13 -0
  6. ansys/systemcoupling/core/adaptor/api_23_2/case_root.py +7 -1
  7. ansys/systemcoupling/core/adaptor/api_23_2/clear_state.py +4 -2
  8. ansys/systemcoupling/core/adaptor/api_24_1/_clear_state.py +13 -0
  9. ansys/systemcoupling/core/adaptor/api_24_1/case_root.py +7 -1
  10. ansys/systemcoupling/core/adaptor/api_24_1/clear_state.py +4 -2
  11. ansys/systemcoupling/core/adaptor/api_24_2/_add_participant.py +80 -0
  12. ansys/systemcoupling/core/adaptor/api_24_2/_clear_state.py +13 -0
  13. ansys/systemcoupling/core/adaptor/api_24_2/_solve.py +13 -0
  14. ansys/systemcoupling/core/adaptor/api_24_2/abort.py +39 -0
  15. ansys/systemcoupling/core/adaptor/api_24_2/activate_hidden.py +46 -0
  16. ansys/systemcoupling/core/adaptor/api_24_2/add_aerodamping_data_transfers.py +43 -0
  17. ansys/systemcoupling/core/adaptor/api_24_2/add_data_transfer.py +190 -0
  18. ansys/systemcoupling/core/adaptor/api_24_2/add_data_transfer_by_display_names.py +191 -0
  19. ansys/systemcoupling/core/adaptor/api_24_2/add_expression_function.py +61 -0
  20. ansys/systemcoupling/core/adaptor/api_24_2/add_fsi_data_transfers.py +43 -0
  21. ansys/systemcoupling/core/adaptor/api_24_2/add_interface.py +77 -0
  22. ansys/systemcoupling/core/adaptor/api_24_2/add_interface_by_display_names.py +78 -0
  23. ansys/systemcoupling/core/adaptor/api_24_2/add_named_expression.py +42 -0
  24. ansys/systemcoupling/core/adaptor/api_24_2/add_ordered_data_transfers.py +32 -0
  25. ansys/systemcoupling/core/adaptor/api_24_2/add_participant.py +162 -0
  26. ansys/systemcoupling/core/adaptor/api_24_2/add_reference_frame.py +40 -0
  27. ansys/systemcoupling/core/adaptor/api_24_2/add_thermal_data_transfers.py +43 -0
  28. ansys/systemcoupling/core/adaptor/api_24_2/add_transformation.py +102 -0
  29. ansys/systemcoupling/core/adaptor/api_24_2/analysis_control.py +283 -0
  30. ansys/systemcoupling/core/adaptor/api_24_2/apip.py +33 -0
  31. ansys/systemcoupling/core/adaptor/api_24_2/ascii_output.py +44 -0
  32. ansys/systemcoupling/core/adaptor/api_24_2/attribute.py +20 -0
  33. ansys/systemcoupling/core/adaptor/api_24_2/attribute_child.py +54 -0
  34. ansys/systemcoupling/core/adaptor/api_24_2/automatic_alignment_options.py +46 -0
  35. ansys/systemcoupling/core/adaptor/api_24_2/available_ports.py +40 -0
  36. ansys/systemcoupling/core/adaptor/api_24_2/avoid_data_reconstruction.py +46 -0
  37. ansys/systemcoupling/core/adaptor/api_24_2/case_root.py +62 -0
  38. ansys/systemcoupling/core/adaptor/api_24_2/clear_state.py +18 -0
  39. ansys/systemcoupling/core/adaptor/api_24_2/connect_ensight_dvs.py +41 -0
  40. ansys/systemcoupling/core/adaptor/api_24_2/coupling_interface.py +20 -0
  41. ansys/systemcoupling/core/adaptor/api_24_2/coupling_interface_child.py +42 -0
  42. ansys/systemcoupling/core/adaptor/api_24_2/coupling_participant.py +23 -0
  43. ansys/systemcoupling/core/adaptor/api_24_2/coupling_participant_child.py +265 -0
  44. ansys/systemcoupling/core/adaptor/api_24_2/create_restart_point.py +29 -0
  45. ansys/systemcoupling/core/adaptor/api_24_2/data_transfer.py +20 -0
  46. ansys/systemcoupling/core/adaptor/api_24_2/data_transfer_child.py +187 -0
  47. ansys/systemcoupling/core/adaptor/api_24_2/delete_snapshot.py +28 -0
  48. ansys/systemcoupling/core/adaptor/api_24_2/delete_transformation.py +42 -0
  49. ansys/systemcoupling/core/adaptor/api_24_2/dimensionality.py +96 -0
  50. ansys/systemcoupling/core/adaptor/api_24_2/execution_control.py +246 -0
  51. ansys/systemcoupling/core/adaptor/api_24_2/execution_control_1.py +24 -0
  52. ansys/systemcoupling/core/adaptor/api_24_2/expression.py +20 -0
  53. ansys/systemcoupling/core/adaptor/api_24_2/expression_child.py +36 -0
  54. ansys/systemcoupling/core/adaptor/api_24_2/expression_function.py +20 -0
  55. ansys/systemcoupling/core/adaptor/api_24_2/expression_function_child.py +46 -0
  56. ansys/systemcoupling/core/adaptor/api_24_2/external_data_file.py +24 -0
  57. ansys/systemcoupling/core/adaptor/api_24_2/fluent_input.py +77 -0
  58. ansys/systemcoupling/core/adaptor/api_24_2/fmu_parameter.py +20 -0
  59. ansys/systemcoupling/core/adaptor/api_24_2/fmu_parameter_child.py +156 -0
  60. ansys/systemcoupling/core/adaptor/api_24_2/generate_input_file.py +41 -0
  61. ansys/systemcoupling/core/adaptor/api_24_2/get_add_data_transfer_group_commands.py +29 -0
  62. ansys/systemcoupling/core/adaptor/api_24_2/get_execution_command.py +30 -0
  63. ansys/systemcoupling/core/adaptor/api_24_2/get_machines.py +13 -0
  64. ansys/systemcoupling/core/adaptor/api_24_2/get_mode_shape_variables.py +29 -0
  65. ansys/systemcoupling/core/adaptor/api_24_2/get_region_names_for_participant.py +31 -0
  66. ansys/systemcoupling/core/adaptor/api_24_2/get_setup_summary.py +25 -0
  67. ansys/systemcoupling/core/adaptor/api_24_2/get_status_messages.py +52 -0
  68. ansys/systemcoupling/core/adaptor/api_24_2/get_supported_participant_types.py +13 -0
  69. ansys/systemcoupling/core/adaptor/api_24_2/get_thermal_data_transfer_options.py +32 -0
  70. ansys/systemcoupling/core/adaptor/api_24_2/get_transformation.py +43 -0
  71. ansys/systemcoupling/core/adaptor/api_24_2/global_stabilization.py +143 -0
  72. ansys/systemcoupling/core/adaptor/api_24_2/has_input_file_changed.py +36 -0
  73. ansys/systemcoupling/core/adaptor/api_24_2/import_system_coupling_input_file.py +36 -0
  74. ansys/systemcoupling/core/adaptor/api_24_2/initialize.py +27 -0
  75. ansys/systemcoupling/core/adaptor/api_24_2/instancing.py +23 -0
  76. ansys/systemcoupling/core/adaptor/api_24_2/instancing_child.py +62 -0
  77. ansys/systemcoupling/core/adaptor/api_24_2/interrupt.py +39 -0
  78. ansys/systemcoupling/core/adaptor/api_24_2/library.py +37 -0
  79. ansys/systemcoupling/core/adaptor/api_24_2/live_visualization.py +20 -0
  80. ansys/systemcoupling/core/adaptor/api_24_2/live_visualization_child.py +100 -0
  81. ansys/systemcoupling/core/adaptor/api_24_2/mapping_control.py +239 -0
  82. ansys/systemcoupling/core/adaptor/api_24_2/open.py +102 -0
  83. ansys/systemcoupling/core/adaptor/api_24_2/open_results_in_ensight.py +56 -0
  84. ansys/systemcoupling/core/adaptor/api_24_2/open_snapshot.py +37 -0
  85. ansys/systemcoupling/core/adaptor/api_24_2/output_control.py +134 -0
  86. ansys/systemcoupling/core/adaptor/api_24_2/parameter.py +20 -0
  87. ansys/systemcoupling/core/adaptor/api_24_2/parameter_child.py +56 -0
  88. ansys/systemcoupling/core/adaptor/api_24_2/partition_participants.py +138 -0
  89. ansys/systemcoupling/core/adaptor/api_24_2/properties.py +36 -0
  90. ansys/systemcoupling/core/adaptor/api_24_2/record_interactions.py +46 -0
  91. ansys/systemcoupling/core/adaptor/api_24_2/reference_frame.py +20 -0
  92. ansys/systemcoupling/core/adaptor/api_24_2/reference_frame_child.py +71 -0
  93. ansys/systemcoupling/core/adaptor/api_24_2/region.py +20 -0
  94. ansys/systemcoupling/core/adaptor/api_24_2/region_child.py +71 -0
  95. ansys/systemcoupling/core/adaptor/api_24_2/reload_expression_function_modules.py +14 -0
  96. ansys/systemcoupling/core/adaptor/api_24_2/results.py +89 -0
  97. ansys/systemcoupling/core/adaptor/api_24_2/save.py +51 -0
  98. ansys/systemcoupling/core/adaptor/api_24_2/save_snapshot.py +54 -0
  99. ansys/systemcoupling/core/adaptor/api_24_2/setup_root.py +251 -0
  100. ansys/systemcoupling/core/adaptor/api_24_2/shutdown.py +25 -0
  101. ansys/systemcoupling/core/adaptor/api_24_2/side.py +20 -0
  102. ansys/systemcoupling/core/adaptor/api_24_2/side_child.py +56 -0
  103. ansys/systemcoupling/core/adaptor/api_24_2/solution_control.py +115 -0
  104. ansys/systemcoupling/core/adaptor/api_24_2/solution_root.py +116 -0
  105. ansys/systemcoupling/core/adaptor/api_24_2/solve.py +30 -0
  106. ansys/systemcoupling/core/adaptor/api_24_2/stabilization.py +157 -0
  107. ansys/systemcoupling/core/adaptor/api_24_2/start_participants.py +47 -0
  108. ansys/systemcoupling/core/adaptor/api_24_2/step.py +57 -0
  109. ansys/systemcoupling/core/adaptor/api_24_2/transformation.py +21 -0
  110. ansys/systemcoupling/core/adaptor/api_24_2/transformation_child.py +62 -0
  111. ansys/systemcoupling/core/adaptor/api_24_2/type.py +38 -0
  112. ansys/systemcoupling/core/adaptor/api_24_2/unmapped_value_options.py +158 -0
  113. ansys/systemcoupling/core/adaptor/api_24_2/update_control.py +43 -0
  114. ansys/systemcoupling/core/adaptor/api_24_2/update_participant.py +61 -0
  115. ansys/systemcoupling/core/adaptor/api_24_2/variable.py +20 -0
  116. ansys/systemcoupling/core/adaptor/api_24_2/variable_child.py +231 -0
  117. ansys/systemcoupling/core/adaptor/api_24_2/write_csv_chart_files.py +21 -0
  118. ansys/systemcoupling/core/adaptor/api_24_2/write_ensight.py +46 -0
  119. ansys/systemcoupling/core/adaptor/impl/injected_commands.py +18 -0
  120. ansys/systemcoupling/core/client/grpc_client.py +113 -14
  121. ansys/systemcoupling/core/session.py +50 -0
  122. ansys/systemcoupling/core/util/file_transfer.py +133 -0
  123. ansys/systemcoupling/core/util/logging.py +1 -1
  124. {ansys_systemcoupling_core-0.4.dev0.dist-info → ansys_systemcoupling_core-0.5.0.dist-info}/METADATA +14 -13
  125. {ansys_systemcoupling_core-0.4.dev0.dist-info → ansys_systemcoupling_core-0.5.0.dist-info}/RECORD +127 -15
  126. {ansys_systemcoupling_core-0.4.dev0.dist-info → ansys_systemcoupling_core-0.5.0.dist-info}/LICENSE +0 -0
  127. {ansys_systemcoupling_core-0.4.dev0.dist-info → ansys_systemcoupling_core-0.5.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,32 @@
1
+ #
2
+ # This is an auto-generated file. DO NOT EDIT!
3
+ #
4
+
5
+ from ansys.systemcoupling.core.adaptor.impl.types import *
6
+
7
+
8
+ class add_ordered_data_transfers(Command):
9
+ """
10
+ Adds data transfer for each ordered pair of variables in an FMU-FMU interface.
11
+
12
+ Returns the name of the Data Transfers created.
13
+
14
+ Parameters
15
+ ----------
16
+ interface : str
17
+ String indicating the name of the interface on which the data transfer
18
+ is to be created.
19
+
20
+ """
21
+
22
+ syc_name = "AddOrderedDataTransfers"
23
+
24
+ argument_names = ["interface"]
25
+
26
+ class interface(String):
27
+ """
28
+ String indicating the name of the interface on which the data transfer
29
+ is to be created.
30
+ """
31
+
32
+ syc_name = "Interface"
@@ -0,0 +1,162 @@
1
+ #
2
+ # This is an auto-generated file. DO NOT EDIT!
3
+ #
4
+
5
+ from ansys.systemcoupling.core.adaptor.impl.types import *
6
+
7
+
8
+ class add_participant(InjectedCommand):
9
+ """
10
+ This command operates in one of two modes, depending on how it is called.
11
+ *Either* a single argument, ``participant_session``, should be provided, *or* some
12
+ combination of the other optional arguments not including ``participant_session``
13
+ should be provided.
14
+
15
+ In the ``participant_session`` mode, the session object is queried to
16
+ extract the information needed to define a new ``coupling_participant``
17
+ object in the setup datamodel. A reference to the session is also retained,
18
+ and this will play a further role if ``solve`` is called later. In that case,
19
+ the participant solver will be driven from the Python environment in which the
20
+ participant and PySystemCoupling sessions are active and System Coupling will
21
+ regard the participant solver as "externally managed" (see the `execution_control`
22
+ settings in `coupling_participant` for details of this mode).
23
+
24
+ .. note::
25
+ The ``participant_session`` mode currently has limited support in the
26
+ broader Ansys Python ecosystem - at present, only PyFluent supports
27
+ the API required of the session object and product versions of Fluent and
28
+ System Coupling need to be at least 24.1. This capability should be
29
+ regarded as *Beta* as it may be subject to revision when extended to other
30
+ products.
31
+
32
+ The remainder of the documentation describes the more usual non-session mode.
33
+
34
+ Adds a coupling participant to the data model.
35
+
36
+ When executed, this command adds the new participant to the analysis
37
+ without removing any interfaces or data transfers created previously.
38
+
39
+ Cannot be called after participants have been started.
40
+
41
+ Returns the name of the participant.
42
+
43
+ There are several options that can be selected to add the
44
+ participant - via a file, via a participant executable, or via a
45
+ Python script. Some of these options may be combined. For example,
46
+ sometimes it is useful to use an input file while at the same time
47
+ providing a custom participant executable or Python script.
48
+
49
+ Option 1: Using an input file
50
+
51
+ Given an input file containing participant coupling information, reads the
52
+ specified file, pushes the participant's information to the data model.
53
+
54
+ Option 2: Using a participant executable
55
+
56
+ Given the path to the executable for this participant (and optionally,
57
+ additional arguments and/or working directory), start the participant
58
+ executable, connect to the participant using the socket connection,
59
+ and get the participant's information and add it to the data model.
60
+
61
+ Option 3: Using a Python script
62
+
63
+ This can be seen as a special case of Option 2 (using an executable),
64
+ but instead of an executable, a Python script is used. System Coupling
65
+ will invoke a specialized script to set up the environment so
66
+ that the Python script can more easily interact with System Coupling.
67
+
68
+ Parameters
69
+ ----------
70
+ participant_session : ParticipantProtocol, optional
71
+ Participant session object conforming to the ``ParticipantProtocol`` protocol class.
72
+ participant_type : str, optional
73
+ Participant type. To get a list of supported participant types, use
74
+ the get_supported_participant_types() query. If unspecified,
75
+ add_participant will attempt to deduce the type from input_file.
76
+ input_file : str, optional
77
+ Name of the input file for the participant to be added.
78
+ Currently supported formats are SCP files, Forte input (FTSIM)
79
+ files, mechanical server (*.rst) files, cfd server (*.csv) files,
80
+ FMU (.fmu) files, and System Coupling data server (*.scdt/axdt/csv) files.
81
+ executable : str, optional
82
+ Path to the executable file for the participant to be added.
83
+ additional_arguments : str, optional
84
+ Any additional arguments to be passed to the participant's executable.
85
+ working_directory : str, optional
86
+ Path to the working directory for this participant.
87
+ python_script : str, optional
88
+ Instead of the executable, use a Python script and wrap it with
89
+ System Coupling-provided .bat/.sh scripts to set up the environment
90
+ correctly before calling this Python script.
91
+
92
+ """
93
+
94
+ syc_name = "add_participant"
95
+
96
+ cmd_name = "add_participant"
97
+
98
+ argument_names = [
99
+ "participant_session",
100
+ "participant_type",
101
+ "input_file",
102
+ "executable",
103
+ "additional_arguments",
104
+ "working_directory",
105
+ "python_script",
106
+ ]
107
+
108
+ class participant_session(ParticipantSession):
109
+ """
110
+ Participant session object conforming to the ``ParticipantProtocol`` protocol class.
111
+ """
112
+
113
+ syc_name = "participant_session"
114
+
115
+ class participant_type(String):
116
+ """
117
+ Participant type. To get a list of supported participant types, use
118
+ the get_supported_participant_types() query. If unspecified,
119
+ add_participant will attempt to deduce the type from input_file.
120
+ """
121
+
122
+ syc_name = "ParticipantType"
123
+
124
+ class input_file(String):
125
+ """
126
+ Name of the input file for the participant to be added.
127
+ Currently supported formats are SCP files, Forte input (FTSIM)
128
+ files, mechanical server (*.rst) files, cfd server (*.csv) files,
129
+ FMU (.fmu) files, and System Coupling data server (*.scdt/axdt/csv) files.
130
+ """
131
+
132
+ syc_name = "InputFile"
133
+
134
+ class executable(String):
135
+ """
136
+ Path to the executable file for the participant to be added.
137
+ """
138
+
139
+ syc_name = "Executable"
140
+
141
+ class additional_arguments(String):
142
+ """
143
+ Any additional arguments to be passed to the participant's executable.
144
+ """
145
+
146
+ syc_name = "AdditionalArguments"
147
+
148
+ class working_directory(String):
149
+ """
150
+ Path to the working directory for this participant.
151
+ """
152
+
153
+ syc_name = "WorkingDirectory"
154
+
155
+ class python_script(String):
156
+ """
157
+ Instead of the executable, use a Python script and wrap it with
158
+ System Coupling-provided .bat/.sh scripts to set up the environment
159
+ correctly before calling this Python script.
160
+ """
161
+
162
+ syc_name = "PythonScript"
@@ -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 : typing.Tuple[real, real, real], 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,283 @@
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
+ ]
81
+
82
+ @property
83
+ def analysis_type(self) -> str:
84
+ """Analysis type.
85
+
86
+ Allowed values:
87
+ - \"Steady\"
88
+ - \"Transient\" """
89
+ return self.get_property_state("analysis_type")
90
+
91
+ @analysis_type.setter
92
+ def analysis_type(self, value: str):
93
+ self.set_property_state("analysis_type", value)
94
+
95
+ @property
96
+ def optimize_if_one_way(self) -> bool:
97
+ """Optimizes various controls for a one-way workflow, if the
98
+ data transfers form a unidirectional graph."""
99
+ return self.get_property_state("optimize_if_one_way")
100
+
101
+ @optimize_if_one_way.setter
102
+ def optimize_if_one_way(self, value: bool):
103
+ self.set_property_state("optimize_if_one_way", value)
104
+
105
+ @property
106
+ def warped_face_tolerance(self) -> RealType:
107
+ """Set warped face detection tolerance (1e-6 is default value, 1.0 means disabled)."""
108
+ return self.get_property_state("warped_face_tolerance")
109
+
110
+ @warped_face_tolerance.setter
111
+ def warped_face_tolerance(self, value: RealType):
112
+ self.set_property_state("warped_face_tolerance", value)
113
+
114
+ @property
115
+ def allow_simultaneous_update(self) -> bool:
116
+ """Allow simultaneous update of independent participants."""
117
+ return self.get_property_state("allow_simultaneous_update")
118
+
119
+ @allow_simultaneous_update.setter
120
+ def allow_simultaneous_update(self, value: bool):
121
+ self.set_property_state("allow_simultaneous_update", value)
122
+
123
+ @property
124
+ def simultaneous_participants(self) -> str:
125
+ """Controls which participants are updated simultaneously."""
126
+ return self.get_property_state("simultaneous_participants")
127
+
128
+ @simultaneous_participants.setter
129
+ def simultaneous_participants(self, value: str):
130
+ self.set_property_state("simultaneous_participants", value)
131
+
132
+ @property
133
+ def allow_simultaneous_initialization(self) -> bool:
134
+ """Allow simultaneous initialization of participants."""
135
+ return self.get_property_state("allow_simultaneous_initialization")
136
+
137
+ @allow_simultaneous_initialization.setter
138
+ def allow_simultaneous_initialization(self, value: bool):
139
+ self.set_property_state("allow_simultaneous_initialization", value)
140
+
141
+ @property
142
+ def mpi_pause_timeout(self) -> RealType:
143
+ """Specify MPI pause time (in seconds) to wait for other participants to finish solving"""
144
+ return self.get_property_state("mpi_pause_timeout")
145
+
146
+ @mpi_pause_timeout.setter
147
+ def mpi_pause_timeout(self, value: RealType):
148
+ self.set_property_state("mpi_pause_timeout", value)
149
+
150
+ @property
151
+ def partitioning_algorithm(self) -> str:
152
+ """Partitioning algorithm used when participants are running in parallel.
153
+
154
+ Allowed values:
155
+
156
+ - \"SharedAllocateMachines\" - Participants share both machines and cores.
157
+
158
+ - \"SharedAllocateCores\" - Participants share machines but not cores.
159
+
160
+ - \"DistributedAllocateCores\" - Participants minimally share cores and machines. (Linux only)
161
+
162
+ - \"DistributedAllocateMachines\" - Participants never share cores or machines. (Linux only)
163
+
164
+ - \"Custom\" - Custom algorithm."""
165
+ return self.get_property_state("partitioning_algorithm")
166
+
167
+ @partitioning_algorithm.setter
168
+ def partitioning_algorithm(self, value: str):
169
+ self.set_property_state("partitioning_algorithm", value)
170
+
171
+ @property
172
+ def cleanup_inflated_fm_us(self) -> bool:
173
+ """Controls whether System Coupling will cleanup inflated FMUs at end of analysis."""
174
+ return self.get_property_state("cleanup_inflated_fm_us")
175
+
176
+ @cleanup_inflated_fm_us.setter
177
+ def cleanup_inflated_fm_us(self, value: bool):
178
+ self.set_property_state("cleanup_inflated_fm_us", value)
179
+
180
+ @property
181
+ def allow_iterations_only_mode(self) -> bool:
182
+ """Explicitly set whether iterations-only mode is allowed."""
183
+ return self.get_property_state("allow_iterations_only_mode")
184
+
185
+ @allow_iterations_only_mode.setter
186
+ def allow_iterations_only_mode(self, value: bool):
187
+ self.set_property_state("allow_iterations_only_mode", value)
188
+
189
+ @property
190
+ def target_initialization_option(self) -> str:
191
+ """Select option for target initialization."""
192
+ return self.get_property_state("target_initialization_option")
193
+
194
+ @target_initialization_option.setter
195
+ def target_initialization_option(self, value: str):
196
+ self.set_property_state("target_initialization_option", value)
197
+
198
+ @property
199
+ def fluent_region_update_at_step(self) -> bool:
200
+ """Allow update of Fluent regions at the beginning of a step."""
201
+ return self.get_property_state("fluent_region_update_at_step")
202
+
203
+ @fluent_region_update_at_step.setter
204
+ def fluent_region_update_at_step(self, value: bool):
205
+ self.set_property_state("fluent_region_update_at_step", value)
206
+
207
+ @property
208
+ def mesh_import_on_initialization(self) -> bool:
209
+ """Select whether to import the mesh during the analysis initialization."""
210
+ return self.get_property_state("mesh_import_on_initialization")
211
+
212
+ @mesh_import_on_initialization.setter
213
+ def mesh_import_on_initialization(self, value: bool):
214
+ self.set_property_state("mesh_import_on_initialization", value)
215
+
216
+ @property
217
+ def import_all_regions(self) -> bool:
218
+ """Select whether to import mesh for all defined regions."""
219
+ return self.get_property_state("import_all_regions")
220
+
221
+ @import_all_regions.setter
222
+ def import_all_regions(self, value: bool):
223
+ self.set_property_state("import_all_regions", value)
224
+
225
+ @property
226
+ def bypass_fluent_adapter(self) -> bool:
227
+ """Switch to bypass Fluent adapter."""
228
+ return self.get_property_state("bypass_fluent_adapter")
229
+
230
+ @bypass_fluent_adapter.setter
231
+ def bypass_fluent_adapter(self, value: bool):
232
+ self.set_property_state("bypass_fluent_adapter", value)
233
+
234
+ @property
235
+ def variable_to_expression_transfer(self) -> bool:
236
+ """Convert variable-based data transfers to expression transfers."""
237
+ return self.get_property_state("variable_to_expression_transfer")
238
+
239
+ @variable_to_expression_transfer.setter
240
+ def variable_to_expression_transfer(self, value: bool):
241
+ self.set_property_state("variable_to_expression_transfer", value)
242
+
243
+ @property
244
+ def update_mapping_weights(self) -> str:
245
+ """Weight factor when multiple transfers are stabilized.
246
+
247
+ Allowed values:
248
+
249
+ - \"Off\" (default)
250
+ - \"EveryStep\"
251
+ - \"EveryIteration\" """
252
+ return self.get_property_state("update_mapping_weights")
253
+
254
+ @update_mapping_weights.setter
255
+ def update_mapping_weights(self, value: str):
256
+ self.set_property_state("update_mapping_weights", value)
257
+
258
+ @property
259
+ def solve_incremental_displacement_first(self) -> bool:
260
+ """Force participants serving incremental displacement to solve first."""
261
+ return self.get_property_state("solve_incremental_displacement_first")
262
+
263
+ @solve_incremental_displacement_first.setter
264
+ def solve_incremental_displacement_first(self, value: bool):
265
+ self.set_property_state("solve_incremental_displacement_first", value)
266
+
267
+ @property
268
+ def write_scs_file(self) -> bool:
269
+ """Force writing of scs file even if participants are auto-started."""
270
+ return self.get_property_state("write_scs_file")
271
+
272
+ @write_scs_file.setter
273
+ def write_scs_file(self, value: bool):
274
+ self.set_property_state("write_scs_file", value)
275
+
276
+ @property
277
+ def check_for_input_files_changes(self) -> str:
278
+ """Controls whether System Coupling will check for changes in participant input files."""
279
+ return self.get_property_state("check_for_input_files_changes")
280
+
281
+ @check_for_input_files_changes.setter
282
+ def check_for_input_files_changes(self, value: str):
283
+ self.set_property_state("check_for_input_files_changes", value)