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

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

Potentially problematic release.


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

Files changed (149) hide show
  1. ansys/systemcoupling/core/__init__.py +23 -1
  2. ansys/systemcoupling/core/_version.py +22 -0
  3. ansys/systemcoupling/core/adaptor/api_23_1/_add_participant.py +70 -0
  4. ansys/systemcoupling/core/adaptor/api_23_1/_solve.py +13 -0
  5. ansys/systemcoupling/core/adaptor/api_23_1/abort.py +39 -0
  6. ansys/systemcoupling/core/adaptor/api_23_1/activate_hidden.py +46 -0
  7. ansys/systemcoupling/core/adaptor/api_23_1/add_data_transfer.py +190 -0
  8. ansys/systemcoupling/core/adaptor/api_23_1/add_data_transfer_by_display_names.py +188 -0
  9. ansys/systemcoupling/core/adaptor/api_23_1/add_expression_function.py +61 -0
  10. ansys/systemcoupling/core/adaptor/api_23_1/add_interface.py +75 -0
  11. ansys/systemcoupling/core/adaptor/api_23_1/add_interface_by_display_names.py +75 -0
  12. ansys/systemcoupling/core/adaptor/api_23_1/add_named_expression.py +42 -0
  13. ansys/systemcoupling/core/adaptor/api_23_1/add_participant.py +160 -0
  14. ansys/systemcoupling/core/adaptor/api_23_1/add_reference_frame.py +40 -0
  15. ansys/systemcoupling/core/adaptor/api_23_1/add_transformation.py +102 -0
  16. ansys/systemcoupling/core/adaptor/api_23_1/analysis_control.py +241 -0
  17. ansys/systemcoupling/core/adaptor/api_23_1/apip.py +33 -0
  18. ansys/systemcoupling/core/adaptor/api_23_1/ascii_output.py +44 -0
  19. ansys/systemcoupling/core/adaptor/api_23_1/attribute.py +20 -0
  20. ansys/systemcoupling/core/adaptor/api_23_1/attribute_child.py +54 -0
  21. ansys/systemcoupling/core/adaptor/api_23_1/available_ports.py +40 -0
  22. ansys/systemcoupling/core/adaptor/api_23_1/avoid_data_reconstruction.py +36 -0
  23. ansys/systemcoupling/core/adaptor/api_23_1/case_root.py +62 -0
  24. ansys/systemcoupling/core/adaptor/api_23_1/clear_state.py +16 -0
  25. ansys/systemcoupling/core/adaptor/api_23_1/coupling_interface.py +20 -0
  26. ansys/systemcoupling/core/adaptor/api_23_1/coupling_interface_child.py +42 -0
  27. ansys/systemcoupling/core/adaptor/api_23_1/coupling_participant.py +23 -0
  28. ansys/systemcoupling/core/adaptor/api_23_1/coupling_participant_child.py +173 -0
  29. ansys/systemcoupling/core/adaptor/api_23_1/create_restart_point.py +29 -0
  30. ansys/systemcoupling/core/adaptor/api_23_1/data_transfer.py +20 -0
  31. ansys/systemcoupling/core/adaptor/api_23_1/data_transfer_child.py +187 -0
  32. ansys/systemcoupling/core/adaptor/api_23_1/delete_snapshot.py +28 -0
  33. ansys/systemcoupling/core/adaptor/api_23_1/delete_transformation.py +42 -0
  34. ansys/systemcoupling/core/adaptor/api_23_1/dimensionality.py +96 -0
  35. ansys/systemcoupling/core/adaptor/api_23_1/execution_control.py +186 -0
  36. ansys/systemcoupling/core/adaptor/api_23_1/expression.py +20 -0
  37. ansys/systemcoupling/core/adaptor/api_23_1/expression_child.py +36 -0
  38. ansys/systemcoupling/core/adaptor/api_23_1/expression_function.py +20 -0
  39. ansys/systemcoupling/core/adaptor/api_23_1/expression_function_child.py +46 -0
  40. ansys/systemcoupling/core/adaptor/api_23_1/external_data_file.py +24 -0
  41. ansys/systemcoupling/core/adaptor/api_23_1/fluent_input.py +67 -0
  42. ansys/systemcoupling/core/adaptor/api_23_1/fmu_parameter.py +20 -0
  43. ansys/systemcoupling/core/adaptor/api_23_1/fmu_parameter_child.py +126 -0
  44. ansys/systemcoupling/core/adaptor/api_23_1/generate_input_file.py +41 -0
  45. ansys/systemcoupling/core/adaptor/api_23_1/get_execution_command.py +30 -0
  46. ansys/systemcoupling/core/adaptor/api_23_1/get_machines.py +13 -0
  47. ansys/systemcoupling/core/adaptor/api_23_1/get_region_names_for_participant.py +31 -0
  48. ansys/systemcoupling/core/adaptor/api_23_1/get_setup_summary.py +25 -0
  49. ansys/systemcoupling/core/adaptor/api_23_1/get_status_messages.py +52 -0
  50. ansys/systemcoupling/core/adaptor/api_23_1/global_stabilization.py +143 -0
  51. ansys/systemcoupling/core/adaptor/api_23_1/has_input_file_changed.py +36 -0
  52. ansys/systemcoupling/core/adaptor/api_23_1/import_system_coupling_input_file.py +36 -0
  53. ansys/systemcoupling/core/adaptor/api_23_1/initialize.py +27 -0
  54. ansys/systemcoupling/core/adaptor/api_23_1/instancing.py +23 -0
  55. ansys/systemcoupling/core/adaptor/api_23_1/instancing_child.py +62 -0
  56. ansys/systemcoupling/core/adaptor/api_23_1/interrupt.py +39 -0
  57. ansys/systemcoupling/core/adaptor/api_23_1/library.py +37 -0
  58. ansys/systemcoupling/core/adaptor/api_23_1/mapping_control.py +229 -0
  59. ansys/systemcoupling/core/adaptor/api_23_1/open.py +102 -0
  60. ansys/systemcoupling/core/adaptor/{api_24_1/open_results_in_en_sight.py → api_23_1/open_results_in_ensight.py} +1 -29
  61. ansys/systemcoupling/core/adaptor/api_23_1/open_snapshot.py +37 -0
  62. ansys/systemcoupling/core/adaptor/api_23_1/output_control.py +129 -0
  63. ansys/systemcoupling/core/adaptor/api_23_1/partition_participants.py +138 -0
  64. ansys/systemcoupling/core/adaptor/api_23_1/reference_frame.py +20 -0
  65. ansys/systemcoupling/core/adaptor/api_23_1/reference_frame_child.py +71 -0
  66. ansys/systemcoupling/core/adaptor/api_23_1/region.py +20 -0
  67. ansys/systemcoupling/core/adaptor/api_23_1/region_child.py +72 -0
  68. ansys/systemcoupling/core/adaptor/api_23_1/reload_expression_function_modules.py +14 -0
  69. ansys/systemcoupling/core/adaptor/api_23_1/results.py +89 -0
  70. ansys/systemcoupling/core/adaptor/api_23_1/save.py +51 -0
  71. ansys/systemcoupling/core/adaptor/api_23_1/save_snapshot.py +54 -0
  72. ansys/systemcoupling/core/adaptor/api_23_1/setup_root.py +195 -0
  73. ansys/systemcoupling/core/adaptor/api_23_1/shutdown.py +25 -0
  74. ansys/systemcoupling/core/adaptor/api_23_1/side.py +20 -0
  75. ansys/systemcoupling/core/adaptor/api_23_1/side_child.py +56 -0
  76. ansys/systemcoupling/core/adaptor/api_23_1/solution_control.py +91 -0
  77. ansys/systemcoupling/core/adaptor/api_23_1/solution_root.py +104 -0
  78. ansys/systemcoupling/core/adaptor/api_23_1/solve.py +30 -0
  79. ansys/systemcoupling/core/adaptor/api_23_1/stabilization.py +157 -0
  80. ansys/systemcoupling/core/adaptor/api_23_1/start_participants.py +47 -0
  81. ansys/systemcoupling/core/adaptor/api_23_1/step.py +57 -0
  82. ansys/systemcoupling/core/adaptor/api_23_1/transformation.py +21 -0
  83. ansys/systemcoupling/core/adaptor/api_23_1/transformation_child.py +62 -0
  84. ansys/systemcoupling/core/adaptor/api_23_1/type.py +38 -0
  85. ansys/systemcoupling/core/adaptor/api_23_1/unmapped_value_options.py +158 -0
  86. ansys/systemcoupling/core/adaptor/api_23_1/update_control.py +44 -0
  87. ansys/systemcoupling/core/adaptor/api_23_1/update_participant.py +61 -0
  88. ansys/systemcoupling/core/adaptor/api_23_1/variable.py +20 -0
  89. ansys/systemcoupling/core/adaptor/api_23_1/variable_child.py +201 -0
  90. ansys/systemcoupling/core/adaptor/api_23_1/write_csv_chart_files.py +21 -0
  91. ansys/systemcoupling/core/adaptor/api_23_1/write_ensight.py +46 -0
  92. ansys/systemcoupling/core/adaptor/api_24_1/add_aerodamping_data_transfers.py +43 -0
  93. ansys/systemcoupling/core/adaptor/api_24_1/add_fsi_data_transfers.py +32 -0
  94. ansys/systemcoupling/core/adaptor/api_24_1/add_ordered_data_transfers.py +32 -0
  95. ansys/systemcoupling/core/adaptor/api_24_1/add_thermal_data_transfers.py +43 -0
  96. ansys/systemcoupling/core/adaptor/api_24_1/analysis_control.py +34 -0
  97. ansys/systemcoupling/core/adaptor/api_24_1/case_root.py +1 -7
  98. ansys/systemcoupling/core/adaptor/api_24_1/coupling_participant_child.py +26 -0
  99. ansys/systemcoupling/core/adaptor/api_24_1/execution_control.py +11 -1
  100. ansys/systemcoupling/core/adaptor/api_24_1/get_add_data_transfer_group_commands.py +29 -0
  101. ansys/systemcoupling/core/adaptor/api_24_1/get_mode_shape_variables.py +29 -0
  102. ansys/systemcoupling/core/adaptor/api_24_1/get_thermal_data_transfer_options.py +32 -0
  103. ansys/systemcoupling/core/adaptor/api_24_1/mapping_control.py +10 -0
  104. ansys/systemcoupling/core/adaptor/api_24_1/open_results_in_ensight.py +28 -0
  105. ansys/systemcoupling/core/adaptor/api_24_1/parameter_child.py +0 -8
  106. ansys/systemcoupling/core/adaptor/api_24_1/record_interactions.py +36 -0
  107. ansys/systemcoupling/core/adaptor/api_24_1/setup_root.py +49 -1
  108. ansys/systemcoupling/core/adaptor/api_24_1/solution_control.py +12 -0
  109. ansys/systemcoupling/core/adaptor/api_24_1/solution_root.py +5 -5
  110. ansys/systemcoupling/core/adaptor/api_24_1/variable_child.py +1 -2
  111. ansys/systemcoupling/core/adaptor/impl/get_status_messages.py +22 -0
  112. ansys/systemcoupling/core/adaptor/impl/get_syc_version.py +26 -2
  113. ansys/systemcoupling/core/adaptor/impl/injected_commands.py +29 -0
  114. ansys/systemcoupling/core/adaptor/impl/root_source.py +22 -1
  115. ansys/systemcoupling/core/adaptor/impl/static_info.py +22 -0
  116. ansys/systemcoupling/core/adaptor/impl/syc_proxy.py +22 -0
  117. ansys/systemcoupling/core/adaptor/impl/syc_proxy_interface.py +22 -0
  118. ansys/systemcoupling/core/adaptor/impl/types.py +23 -0
  119. ansys/systemcoupling/core/client/grpc_client.py +22 -0
  120. ansys/systemcoupling/core/client/services/command_query.py +22 -0
  121. ansys/systemcoupling/core/client/services/output_stream.py +22 -0
  122. ansys/systemcoupling/core/client/services/process.py +22 -0
  123. ansys/systemcoupling/core/client/services/solution.py +22 -0
  124. ansys/systemcoupling/core/client/syc_container.py +22 -0
  125. ansys/systemcoupling/core/client/syc_process.py +22 -0
  126. ansys/systemcoupling/core/client/variant.py +22 -0
  127. ansys/systemcoupling/core/examples/__init__.py +22 -0
  128. ansys/systemcoupling/core/examples/downloads.py +23 -0
  129. ansys/systemcoupling/core/native_api/__init__.py +22 -0
  130. ansys/systemcoupling/core/native_api/command_metadata.py +23 -0
  131. ansys/systemcoupling/core/native_api/datamodel_metadata.py +22 -0
  132. ansys/systemcoupling/core/native_api/meta_wrapper.py +23 -0
  133. ansys/systemcoupling/core/native_api/native_api.py +22 -0
  134. ansys/systemcoupling/core/native_api/object_path.py +22 -0
  135. ansys/systemcoupling/core/participant/manager.py +22 -0
  136. ansys/systemcoupling/core/participant/mapdl.py +298 -0
  137. ansys/systemcoupling/core/participant/protocol.py +22 -0
  138. ansys/systemcoupling/core/session.py +22 -0
  139. ansys/systemcoupling/core/syc_version.py +22 -0
  140. ansys/systemcoupling/core/util/logging.py +22 -0
  141. ansys/systemcoupling/core/util/name_util.py +22 -0
  142. ansys/systemcoupling/core/util/pathstr.py +23 -1
  143. ansys/systemcoupling/core/util/state_keys.py +22 -0
  144. ansys/systemcoupling/core/util/yaml_helper.py +22 -0
  145. {ansys_systemcoupling_core-0.3.0.dist-info → ansys_systemcoupling_core-0.4.dev0.dist-info}/METADATA +19 -18
  146. {ansys_systemcoupling_core-0.3.0.dist-info → ansys_systemcoupling_core-0.4.dev0.dist-info}/RECORD +149 -52
  147. /ansys/systemcoupling/core/adaptor/{api_24_1 → api_23_1}/get_snapshots.py +0 -0
  148. {ansys_systemcoupling_core-0.3.0.dist-info → ansys_systemcoupling_core-0.4.dev0.dist-info}/LICENSE +0 -0
  149. {ansys_systemcoupling_core-0.3.0.dist-info → ansys_systemcoupling_core-0.4.dev0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,229 @@
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 mapping_control(Container):
9
+ """
10
+ Configure controls for mapping.
11
+ """
12
+
13
+ syc_name = "MappingControl"
14
+
15
+ property_names_types = [
16
+ ("stop_if_poor_intersection", "StopIfPoorIntersection", "bool"),
17
+ ("poor_intersection_threshold", "PoorIntersectionThreshold", "RealType"),
18
+ ("face_alignment", "FaceAlignment", "str"),
19
+ ("absolute_gap_tolerance", "AbsoluteGapTolerance", "RealType"),
20
+ ("relative_gap_tolerance", "RelativeGapTolerance", "RealType"),
21
+ ("small_weight_tolerance", "SmallWeightTolerance", "RealType"),
22
+ ("corner_tolerance", "CornerTolerance", "RealType"),
23
+ ("halo_tolerance", "HaloTolerance", "RealType"),
24
+ (
25
+ "conservative_reciprocity_factor",
26
+ "ConservativeReciprocityFactor",
27
+ "RealType",
28
+ ),
29
+ (
30
+ "profile_preserving_reciprocity_factor",
31
+ "ProfilePreservingReciprocityFactor",
32
+ "RealType",
33
+ ),
34
+ ("conservative_intensive", "ConservativeIntensive", "str"),
35
+ ("preserve_normal", "PreserveNormal", "str"),
36
+ (
37
+ "conservation_fix_tolerance_volume",
38
+ "ConservationFixToleranceVolume",
39
+ "RealType",
40
+ ),
41
+ ("rbf_option", "RBFOption", "str"),
42
+ ("rbf_shape_parameter", "RBFShapeParameter", "RealType"),
43
+ ("rbf_linear_correction", "RBFLinearCorrection", "bool"),
44
+ ("rbf_clipping_scale", "RBFClippingScale", "RealType"),
45
+ ]
46
+
47
+ @property
48
+ def stop_if_poor_intersection(self) -> bool:
49
+ """Controls whether to stop if the intersection is poor"""
50
+ return self.get_property_state("stop_if_poor_intersection")
51
+
52
+ @stop_if_poor_intersection.setter
53
+ def stop_if_poor_intersection(self, value: bool):
54
+ self.set_property_state("stop_if_poor_intersection", value)
55
+
56
+ @property
57
+ def poor_intersection_threshold(self) -> RealType:
58
+ """System Coupling terminates with an error if the intersected fractions are below this threshold (in both directions)"""
59
+ return self.get_property_state("poor_intersection_threshold")
60
+
61
+ @poor_intersection_threshold.setter
62
+ def poor_intersection_threshold(self, value: RealType):
63
+ self.set_property_state("poor_intersection_threshold", value)
64
+
65
+ @property
66
+ def face_alignment(self) -> str:
67
+ """Controls how face alignment is used during mapping.
68
+
69
+ Allowed values:
70
+
71
+ - \"ProgramControlled\" (default)
72
+ - \"OppositeOrientation\"
73
+ - \"SameOrientation\"
74
+ - \"AnyOrientation\" """
75
+ return self.get_property_state("face_alignment")
76
+
77
+ @face_alignment.setter
78
+ def face_alignment(self, value: str):
79
+ self.set_property_state("face_alignment", value)
80
+
81
+ @property
82
+ def absolute_gap_tolerance(self) -> RealType:
83
+ """Absolute gap tolerance value."""
84
+ return self.get_property_state("absolute_gap_tolerance")
85
+
86
+ @absolute_gap_tolerance.setter
87
+ def absolute_gap_tolerance(self, value: RealType):
88
+ self.set_property_state("absolute_gap_tolerance", value)
89
+
90
+ @property
91
+ def relative_gap_tolerance(self) -> RealType:
92
+ """Maximum gap size relative to face size."""
93
+ return self.get_property_state("relative_gap_tolerance")
94
+
95
+ @relative_gap_tolerance.setter
96
+ def relative_gap_tolerance(self, value: RealType):
97
+ self.set_property_state("relative_gap_tolerance", value)
98
+
99
+ @property
100
+ def small_weight_tolerance(self) -> RealType:
101
+ """Relative tolerance used to control when weights are dropped."""
102
+ return self.get_property_state("small_weight_tolerance")
103
+
104
+ @small_weight_tolerance.setter
105
+ def small_weight_tolerance(self, value: RealType):
106
+ self.set_property_state("small_weight_tolerance", value)
107
+
108
+ @property
109
+ def corner_tolerance(self) -> RealType:
110
+ """Angle [degrees] between adjacent source mesh faces above which the
111
+ mapping algorithm will stop searching for mapping candidates."""
112
+ return self.get_property_state("corner_tolerance")
113
+
114
+ @corner_tolerance.setter
115
+ def corner_tolerance(self, value: RealType):
116
+ self.set_property_state("corner_tolerance", value)
117
+
118
+ @property
119
+ def halo_tolerance(self) -> RealType:
120
+ """If a face intersects but a target node lies outside of the source face, then
121
+ map the node if the projected distance to the face / sqrt(srcArea) is less
122
+ than this tolerance, otherwise leave as unmapped."""
123
+ return self.get_property_state("halo_tolerance")
124
+
125
+ @halo_tolerance.setter
126
+ def halo_tolerance(self, value: RealType):
127
+ self.set_property_state("halo_tolerance", value)
128
+
129
+ @property
130
+ def conservative_reciprocity_factor(self) -> RealType:
131
+ """Reciprocity blend factor for conservative mapping."""
132
+ return self.get_property_state("conservative_reciprocity_factor")
133
+
134
+ @conservative_reciprocity_factor.setter
135
+ def conservative_reciprocity_factor(self, value: RealType):
136
+ self.set_property_state("conservative_reciprocity_factor", value)
137
+
138
+ @property
139
+ def profile_preserving_reciprocity_factor(self) -> RealType:
140
+ """Reciprocity blend factor for profile-preserving mapping."""
141
+ return self.get_property_state("profile_preserving_reciprocity_factor")
142
+
143
+ @profile_preserving_reciprocity_factor.setter
144
+ def profile_preserving_reciprocity_factor(self, value: RealType):
145
+ self.set_property_state("profile_preserving_reciprocity_factor", value)
146
+
147
+ @property
148
+ def conservative_intensive(self) -> str:
149
+ """Determines when the Intensive option is used for conservative mapping.
150
+
151
+ Allowed values:
152
+
153
+ - \"ProgramControlled\" (default)
154
+ - \"Off\"
155
+ - \"On\" """
156
+ return self.get_property_state("conservative_intensive")
157
+
158
+ @conservative_intensive.setter
159
+ def conservative_intensive(self, value: str):
160
+ self.set_property_state("conservative_intensive", value)
161
+
162
+ @property
163
+ def preserve_normal(self) -> str:
164
+ """Determines if the normal component of a vector is preserved.
165
+
166
+ Allowed values:
167
+
168
+ - \"ProgramControlled\" (default)
169
+ - \"Off\"
170
+ - \"On\" """
171
+ return self.get_property_state("preserve_normal")
172
+
173
+ @preserve_normal.setter
174
+ def preserve_normal(self, value: str):
175
+ self.set_property_state("preserve_normal", value)
176
+
177
+ @property
178
+ def conservation_fix_tolerance_volume(self) -> RealType:
179
+ """Source element overlap fraction to trigger volume mapping conservation fix.
180
+
181
+ 0.0 is default. 1.0 effectively disables it."""
182
+ return self.get_property_state("conservation_fix_tolerance_volume")
183
+
184
+ @conservation_fix_tolerance_volume.setter
185
+ def conservation_fix_tolerance_volume(self, value: RealType):
186
+ self.set_property_state("conservation_fix_tolerance_volume", value)
187
+
188
+ @property
189
+ def rbf_option(self) -> str:
190
+ """Controls radial basis function formulation.
191
+
192
+ Allowed values:
193
+
194
+ - \"Gaussian\" (default)
195
+ - \"ThinPlateSpline\" """
196
+ return self.get_property_state("rbf_option")
197
+
198
+ @rbf_option.setter
199
+ def rbf_option(self, value: str):
200
+ self.set_property_state("rbf_option", value)
201
+
202
+ @property
203
+ def rbf_shape_parameter(self) -> RealType:
204
+ """Sets the shape parameter beta when using Gaussian radial basis functions."""
205
+ return self.get_property_state("rbf_shape_parameter")
206
+
207
+ @rbf_shape_parameter.setter
208
+ def rbf_shape_parameter(self, value: RealType):
209
+ self.set_property_state("rbf_shape_parameter", value)
210
+
211
+ @property
212
+ def rbf_linear_correction(self) -> bool:
213
+ """Controls whether linear polynomial augmentation is added to the RBF stencil for
214
+ low order regular element types (tet, hex, pyramid, wedge)."""
215
+ return self.get_property_state("rbf_linear_correction")
216
+
217
+ @rbf_linear_correction.setter
218
+ def rbf_linear_correction(self, value: bool):
219
+ self.set_property_state("rbf_linear_correction", value)
220
+
221
+ @property
222
+ def rbf_clipping_scale(self) -> RealType:
223
+ """Length scale factor used to determine if source nodes are removed from RBF
224
+ stencil when too close."""
225
+ return self.get_property_state("rbf_clipping_scale")
226
+
227
+ @rbf_clipping_scale.setter
228
+ def rbf_clipping_scale(self, value: RealType):
229
+ self.set_property_state("rbf_clipping_scale", value)
@@ -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 open(Command):
9
+ """
10
+ Reads the state of a coupled analysis. The state consists of settings to
11
+ populate the datamodel and results to restart the analysis at the end of
12
+ a specified coupling step.
13
+
14
+ Settings are stored in a file named Settings.h5. Results files may
15
+ correspond either to coupling iterations or coupling steps, depending on
16
+ the analysis type and the types of participants involved.
17
+
18
+ By default (no arguments provided), this command looks for the ``SyC``
19
+ directory in the current working directory. By default, if multiple
20
+ results files exist, the most recent one is opened.
21
+
22
+ If given optional arguments, behavior is modified as described below.
23
+
24
+ Cannot be run after the participants have been started.
25
+
26
+ Parameters
27
+ ----------
28
+ file_path : str, optional
29
+ Working directory containing the ``SyC`` subdirectory (and its .h5
30
+ file(s)) to be read.
31
+ coupling_step : int, optional
32
+ Integer specifying the coupling step at which the coupled analysis is
33
+ restarted. When used, System Coupling reads the corresponding
34
+ ``Results_step<#>.h5`` file in the specified directory and restarts the
35
+ analysis at the end of the specified coupling step. When this argument
36
+ is used, System Coupling automatically removes the output files related
37
+ to all later coupling steps. If the files cannot be removed, then
38
+ System Coupling generates an exception message instructing you to free
39
+ up the files and reissue the ``open`` command with the ``coupling_step``
40
+ argument. If the simulation's results files are associated with
41
+ coupling iterations, then System Coupling prints an error message
42
+ indicating this.
43
+ coupling_iteration : int, optional
44
+ Integer specifying the coupling iteration at which the coupled analysis
45
+ is restarted. When used, System Coupling reads the corresponding
46
+ ``Results_iter<#>.h5`` file in the specified directory and restarts the
47
+ analysis at the end of the specified coupling iteration. When this
48
+ argument is used, System Coupling automatically removes the output
49
+ files related to all later coupling iterations. If the files cannot be
50
+ removed, then System Coupling generates an exception message
51
+ instructing you to free up the files and reissue the ``open`` command with
52
+ the ``coupling_iteration`` argument. If the simulation's results files are
53
+ associated with coupling steps, then System Coupling prints an error
54
+ message indicating this.
55
+
56
+ """
57
+
58
+ syc_name = "Open"
59
+
60
+ argument_names = ["file_path", "coupling_step", "coupling_iteration"]
61
+
62
+ class file_path(String):
63
+ """
64
+ Working directory containing the ``SyC`` subdirectory (and its .h5
65
+ file(s)) to be read.
66
+ """
67
+
68
+ syc_name = "FilePath"
69
+
70
+ class coupling_step(Integer):
71
+ """
72
+ Integer specifying the coupling step at which the coupled analysis is
73
+ restarted. When used, System Coupling reads the corresponding
74
+ ``Results_step<#>.h5`` file in the specified directory and restarts the
75
+ analysis at the end of the specified coupling step. When this argument
76
+ is used, System Coupling automatically removes the output files related
77
+ to all later coupling steps. If the files cannot be removed, then
78
+ System Coupling generates an exception message instructing you to free
79
+ up the files and reissue the ``open`` command with the ``coupling_step``
80
+ argument. If the simulation's results files are associated with
81
+ coupling iterations, then System Coupling prints an error message
82
+ indicating this.
83
+ """
84
+
85
+ syc_name = "CouplingStep"
86
+
87
+ class coupling_iteration(Integer):
88
+ """
89
+ Integer specifying the coupling iteration at which the coupled analysis
90
+ is restarted. When used, System Coupling reads the corresponding
91
+ ``Results_iter<#>.h5`` file in the specified directory and restarts the
92
+ analysis at the end of the specified coupling iteration. When this
93
+ argument is used, System Coupling automatically removes the output
94
+ files related to all later coupling iterations. If the files cannot be
95
+ removed, then System Coupling generates an exception message
96
+ instructing you to free up the files and reissue the ``open`` command with
97
+ the ``coupling_iteration`` argument. If the simulation's results files are
98
+ associated with coupling steps, then System Coupling prints an error
99
+ message indicating this.
100
+ """
101
+
102
+ syc_name = "CouplingIteration"
@@ -5,7 +5,7 @@
5
5
  from ansys.systemcoupling.core.adaptor.impl.types import *
6
6
 
7
7
 
8
- class open_results_in_en_sight(Command):
8
+ class open_results_in_ensight(Command):
9
9
  """
10
10
  Allows for System Coupling results to be postprocessed in EnSight.
11
11
 
@@ -23,34 +23,6 @@ class open_results_in_en_sight(Command):
23
23
  instance of the EnSight application is opened. Any existing instances of
24
24
  EnSight remain open, both when additional instances are created and when
25
25
  System Coupling exits.
26
-
27
- Parameters
28
- ----------
29
- file_name : str, optional
30
- The basename of the EnSight case file if using a non-standard file
31
- name. Overrides the default file name ``results.enc``.
32
- file_path : str, optional
33
- The path to the EnSight case if using a non-standard location.
34
- Overrides the default path of ``SyC/results``.
35
-
36
26
  """
37
27
 
38
28
  syc_name = "OpenResultsInEnSight"
39
-
40
- argument_names = ["file_name", "file_path"]
41
-
42
- class file_name(String):
43
- """
44
- The basename of the EnSight case file if using a non-standard file
45
- name. Overrides the default file name ``results.enc``.
46
- """
47
-
48
- syc_name = "FileName"
49
-
50
- class file_path(String):
51
- """
52
- The path to the EnSight case if using a non-standard location.
53
- Overrides the default path of ``SyC/results``.
54
- """
55
-
56
- syc_name = "FilePath"
@@ -0,0 +1,37 @@
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 open_snapshot(Command):
9
+ """
10
+ Opens a snapshot containing a previously saved state of the simulation.
11
+ All state (files and directories) stored in the snapshot will be restored.
12
+ If other state exists in the working directory, then it will not be
13
+ modified by this command.
14
+
15
+ Note: Snapshot cannot be opened if participants have been started.
16
+
17
+ Parameters
18
+ ----------
19
+ snapshot_name : str, optional
20
+ The name of the snapshot to be opened. This is optional if and only if
21
+ there is only one snapshot available to be loaded. If multiple
22
+ snapshots exist, then the snapshot name must be specified.
23
+
24
+ """
25
+
26
+ syc_name = "OpenSnapshot"
27
+
28
+ argument_names = ["snapshot_name"]
29
+
30
+ class snapshot_name(String):
31
+ """
32
+ The name of the snapshot to be opened. This is optional if and only if
33
+ there is only one snapshot available to be loaded. If multiple
34
+ snapshots exist, then the snapshot name must be specified.
35
+ """
36
+
37
+ syc_name = "SnapshotName"
@@ -0,0 +1,129 @@
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 .ascii_output import ascii_output
8
+ from .results import results
9
+
10
+
11
+ class output_control(Container):
12
+ """
13
+ Configure output controls.
14
+ """
15
+
16
+ syc_name = "OutputControl"
17
+
18
+ child_names = ["results", "ascii_output"]
19
+
20
+ results: results = results
21
+ """
22
+ results child of output_control.
23
+ """
24
+ ascii_output: ascii_output = ascii_output
25
+ """
26
+ ascii_output child of output_control.
27
+ """
28
+ property_names_types = [
29
+ ("option", "Option", "str"),
30
+ ("generate_csv_chart_output", "GenerateCSVChartOutput", "bool"),
31
+ ("write_initial_snapshot", "WriteInitialSnapshot", "bool"),
32
+ ("transcript_precision", "TranscriptPrecision", "int"),
33
+ ("write_diagnostics", "WriteDiagnostics", "bool"),
34
+ ("write_weights_matrix", "WriteWeightsMatrix", "bool"),
35
+ ("write_residuals", "WriteResiduals", "bool"),
36
+ ("output_frequency", "OutputFrequency", "int"),
37
+ ]
38
+
39
+ @property
40
+ def option(self) -> str:
41
+ """Specifies when restart points are generated.
42
+
43
+ Allowed values (step-based analyses only):
44
+
45
+ - \"LastStep\" - Generates a restart point only for the last
46
+ coupling step completed.
47
+ - \"EveryStep\" -
48
+ Generate a restart point at the end of every coupling step.
49
+ - \"StepInterval\" - Generates a restart point at the end of
50
+ coupling steps at the interval specified by the output
51
+ frequency setting.
52
+
53
+ Allowed values (iteration-based analyses only):
54
+
55
+ - \"LastIteration\" - Generates a restart point only for the
56
+ last coupling iteration completed.
57
+ - \"EveryIteration\" - Generate a restart point at the end
58
+ of every coupling iteration.
59
+ - \"IterationInterval\" - Generates a restart point at the
60
+ end of coupling iterations at the interval specified by
61
+ the output frequency setting."""
62
+ return self.get_property_state("option")
63
+
64
+ @option.setter
65
+ def option(self, value: str):
66
+ self.set_property_state("option", value)
67
+
68
+ @property
69
+ def generate_csv_chart_output(self) -> bool:
70
+ """Write chart data in CSV format during solve."""
71
+ return self.get_property_state("generate_csv_chart_output")
72
+
73
+ @generate_csv_chart_output.setter
74
+ def generate_csv_chart_output(self, value: bool):
75
+ self.set_property_state("generate_csv_chart_output", value)
76
+
77
+ @property
78
+ def write_initial_snapshot(self) -> bool:
79
+ """Write initial snapshot."""
80
+ return self.get_property_state("write_initial_snapshot")
81
+
82
+ @write_initial_snapshot.setter
83
+ def write_initial_snapshot(self, value: bool):
84
+ self.set_property_state("write_initial_snapshot", value)
85
+
86
+ @property
87
+ def transcript_precision(self) -> int:
88
+ """Number of digits after decimal point in transcript."""
89
+ return self.get_property_state("transcript_precision")
90
+
91
+ @transcript_precision.setter
92
+ def transcript_precision(self, value: int):
93
+ self.set_property_state("transcript_precision", value)
94
+
95
+ @property
96
+ def write_diagnostics(self) -> bool:
97
+ """Write transfer diagnostics dictionary to file."""
98
+ return self.get_property_state("write_diagnostics")
99
+
100
+ @write_diagnostics.setter
101
+ def write_diagnostics(self, value: bool):
102
+ self.set_property_state("write_diagnostics", value)
103
+
104
+ @property
105
+ def write_weights_matrix(self) -> bool:
106
+ """Write mapping weights to file after calculation."""
107
+ return self.get_property_state("write_weights_matrix")
108
+
109
+ @write_weights_matrix.setter
110
+ def write_weights_matrix(self, value: bool):
111
+ self.set_property_state("write_weights_matrix", value)
112
+
113
+ @property
114
+ def write_residuals(self) -> bool:
115
+ """Write residuals to results files."""
116
+ return self.get_property_state("write_residuals")
117
+
118
+ @write_residuals.setter
119
+ def write_residuals(self, value: bool):
120
+ self.set_property_state("write_residuals", value)
121
+
122
+ @property
123
+ def output_frequency(self) -> int:
124
+ """Specify output frequency."""
125
+ return self.get_property_state("output_frequency")
126
+
127
+ @output_frequency.setter
128
+ def output_frequency(self, value: int):
129
+ self.set_property_state("output_frequency", value)
@@ -0,0 +1,138 @@
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 partition_participants(Command):
9
+ """
10
+ Provide a utility for setting the parallel algorithm, parallel partitioning
11
+ fractions for each participant, and machine list information.
12
+
13
+ At least one participant must be defined for this command to be used. Use
14
+ of this command is not recommended if participants are already running.
15
+
16
+ Parameters
17
+ ----------
18
+ algorithm_name : str, optional
19
+ Name of the partitioning algorithm. Available algorithms are:
20
+
21
+ - \"SharedAllocateMachines\" (default)
22
+ - \"SharedAllocateCores\"
23
+ - \"DistributedAllocateMachines\"
24
+ - \"DistributedAllocateCores\"
25
+ - \"Custom\" (see ``partitioning_info`` for more details)
26
+
27
+ The algorithms allow for both shared and distributed execution and for
28
+ the allocation of machines or cores. The default value is generally the
29
+ best choice, as it allows for each participant to take advantage of all
30
+ the allocated resources. The other partitioning methods are provided to
31
+ handle situations where not enough resources are available to run the
32
+ same machines.
33
+
34
+ See the System Coupling documentation for more details of the
35
+ partitioning algorithms.
36
+ names_and_fractions : typing.List[typing.Tuple[str, float]], optional
37
+ List of tuples specifying the fractions of core count applied for
38
+ each participant
39
+
40
+ Each tuple must have the participant name as its first item and the
41
+ associated fraction as its second item. If this parameter is omitted,
42
+ then cores will be allocated for all participants set in the
43
+ data model.
44
+ machine_list : typing.List[typing.Dict[str, typing.Union[str, int]]], optional
45
+ List of dictionaries specifying machines available for distributed run.
46
+ Each dictionary must have a key \"machine-name\" with machine name as its
47
+ value, and key \"core-count\" with number of cores for that machine as
48
+ its value. Providing this argument will override any machine list
49
+ information detected from the scheduler environment and any information
50
+ provided by the ``--cnf`` command-line argument.
51
+ partitioning_info : typing.Dict[str, typing.List[typing.Dict[str, typing.Union[str, int]]]], optional
52
+ Dictionary specifying machines resources assigned to each participant by user.
53
+ Dictionary must have participant names as keys and machine lists containing
54
+ machine resources as values. The value of a ``partitioning_info`` machine list is
55
+ a list of dictionaries specifying machines assigned to corresponding participants.
56
+ Each dictionary of the machine list must have a key \"machine-name\" with the
57
+ machine name as its value, and key \"core-count\" with number of cores for that
58
+ machine as its value.
59
+
60
+ Providing this argument will disallow other arguments except ``algorithm_name``,
61
+ which must set as \"Custom\" if provided. Otherwise, ``algorithm_name`` will be
62
+ set as \"Custom\" internally if ``partitioning_info`` is provided.
63
+
64
+ """
65
+
66
+ syc_name = "PartitionParticipants"
67
+
68
+ argument_names = [
69
+ "algorithm_name",
70
+ "names_and_fractions",
71
+ "machine_list",
72
+ "partitioning_info",
73
+ ]
74
+
75
+ class algorithm_name(String):
76
+ """
77
+ Name of the partitioning algorithm. Available algorithms are:
78
+
79
+ - \"SharedAllocateMachines\" (default)
80
+ - \"SharedAllocateCores\"
81
+ - \"DistributedAllocateMachines\"
82
+ - \"DistributedAllocateCores\"
83
+ - \"Custom\" (see ``partitioning_info`` for more details)
84
+
85
+ The algorithms allow for both shared and distributed execution and for
86
+ the allocation of machines or cores. The default value is generally the
87
+ best choice, as it allows for each participant to take advantage of all
88
+ the allocated resources. The other partitioning methods are provided to
89
+ handle situations where not enough resources are available to run the
90
+ same machines.
91
+
92
+ See the System Coupling documentation for more details of the
93
+ partitioning algorithms.
94
+ """
95
+
96
+ syc_name = "AlgorithmName"
97
+
98
+ class names_and_fractions(StrFloatPairList):
99
+ """
100
+ List of tuples specifying the fractions of core count applied for
101
+ each participant
102
+
103
+ Each tuple must have the participant name as its first item and the
104
+ associated fraction as its second item. If this parameter is omitted,
105
+ then cores will be allocated for all participants set in the
106
+ data model.
107
+ """
108
+
109
+ syc_name = "NamesAndFractions"
110
+
111
+ class machine_list(StrOrIntDictList):
112
+ """
113
+ List of dictionaries specifying machines available for distributed run.
114
+ Each dictionary must have a key \"machine-name\" with machine name as its
115
+ value, and key \"core-count\" with number of cores for that machine as
116
+ its value. Providing this argument will override any machine list
117
+ information detected from the scheduler environment and any information
118
+ provided by the ``--cnf`` command-line argument.
119
+ """
120
+
121
+ syc_name = "MachineList"
122
+
123
+ class partitioning_info(StrOrIntDictListDict):
124
+ """
125
+ Dictionary specifying machines resources assigned to each participant by user.
126
+ Dictionary must have participant names as keys and machine lists containing
127
+ machine resources as values. The value of a ``partitioning_info`` machine list is
128
+ a list of dictionaries specifying machines assigned to corresponding participants.
129
+ Each dictionary of the machine list must have a key \"machine-name\" with the
130
+ machine name as its value, and key \"core-count\" with number of cores for that
131
+ machine as its value.
132
+
133
+ Providing this argument will disallow other arguments except ``algorithm_name``,
134
+ which must set as \"Custom\" if provided. Otherwise, ``algorithm_name`` will be
135
+ set as \"Custom\" internally if ``partitioning_info`` is provided.
136
+ """
137
+
138
+ syc_name = "PartitioningInfo"