ansys-systemcoupling-core 0.2.0__py3-none-any.whl → 0.3.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.
- ansys/systemcoupling/core/__init__.py +2 -4
- ansys/systemcoupling/core/adaptor/api_23_2/_add_participant.py +70 -0
- ansys/systemcoupling/core/adaptor/api_23_2/_solve.py +13 -0
- ansys/systemcoupling/core/adaptor/api_23_2/add_participant.py +38 -2
- ansys/systemcoupling/core/adaptor/api_23_2/case_root.py +13 -13
- ansys/systemcoupling/core/adaptor/api_23_2/setup_root.py +55 -49
- ansys/systemcoupling/core/adaptor/api_23_2/solution_root.py +42 -36
- ansys/systemcoupling/core/adaptor/api_23_2/solve.py +1 -1
- ansys/systemcoupling/core/adaptor/api_24_1/_add_participant.py +70 -0
- ansys/systemcoupling/core/adaptor/api_24_1/_solve.py +13 -0
- ansys/systemcoupling/core/adaptor/api_24_1/abort.py +39 -0
- ansys/systemcoupling/core/adaptor/api_24_1/activate_hidden.py +46 -0
- ansys/systemcoupling/core/adaptor/api_24_1/add_data_transfer.py +190 -0
- ansys/systemcoupling/core/adaptor/api_24_1/add_data_transfer_by_display_names.py +191 -0
- ansys/systemcoupling/core/adaptor/api_24_1/add_expression_function.py +61 -0
- ansys/systemcoupling/core/adaptor/api_24_1/add_interface.py +77 -0
- ansys/systemcoupling/core/adaptor/api_24_1/add_interface_by_display_names.py +78 -0
- ansys/systemcoupling/core/adaptor/api_24_1/add_named_expression.py +42 -0
- ansys/systemcoupling/core/adaptor/api_24_1/add_participant.py +140 -0
- ansys/systemcoupling/core/adaptor/api_24_1/add_reference_frame.py +40 -0
- ansys/systemcoupling/core/adaptor/api_24_1/add_transformation.py +102 -0
- ansys/systemcoupling/core/adaptor/api_24_1/analysis_control.py +249 -0
- ansys/systemcoupling/core/adaptor/api_24_1/apip.py +33 -0
- ansys/systemcoupling/core/adaptor/api_24_1/ascii_output.py +44 -0
- ansys/systemcoupling/core/adaptor/api_24_1/attribute.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_1/attribute_child.py +54 -0
- ansys/systemcoupling/core/adaptor/api_24_1/automatic_alignment_options.py +46 -0
- ansys/systemcoupling/core/adaptor/api_24_1/available_ports.py +40 -0
- ansys/systemcoupling/core/adaptor/api_24_1/avoid_data_reconstruction.py +46 -0
- ansys/systemcoupling/core/adaptor/api_24_1/case_root.py +62 -0
- ansys/systemcoupling/core/adaptor/api_24_1/clear_state.py +16 -0
- ansys/systemcoupling/core/adaptor/api_24_1/coupling_interface.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_1/coupling_interface_child.py +42 -0
- ansys/systemcoupling/core/adaptor/api_24_1/coupling_participant.py +23 -0
- ansys/systemcoupling/core/adaptor/api_24_1/coupling_participant_child.py +230 -0
- ansys/systemcoupling/core/adaptor/api_24_1/create_restart_point.py +29 -0
- ansys/systemcoupling/core/adaptor/api_24_1/data_transfer.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_1/data_transfer_child.py +187 -0
- ansys/systemcoupling/core/adaptor/api_24_1/delete_snapshot.py +28 -0
- ansys/systemcoupling/core/adaptor/api_24_1/delete_transformation.py +42 -0
- ansys/systemcoupling/core/adaptor/api_24_1/dimensionality.py +96 -0
- ansys/systemcoupling/core/adaptor/api_24_1/execution_control.py +186 -0
- ansys/systemcoupling/core/adaptor/api_24_1/expression.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_1/expression_child.py +36 -0
- ansys/systemcoupling/core/adaptor/api_24_1/expression_function.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_1/expression_function_child.py +46 -0
- ansys/systemcoupling/core/adaptor/api_24_1/external_data_file.py +24 -0
- ansys/systemcoupling/core/adaptor/api_24_1/fluent_input.py +67 -0
- ansys/systemcoupling/core/adaptor/api_24_1/fmu_parameter.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_1/fmu_parameter_child.py +156 -0
- ansys/systemcoupling/core/adaptor/api_24_1/generate_input_file.py +41 -0
- ansys/systemcoupling/core/adaptor/api_24_1/get_execution_command.py +30 -0
- ansys/systemcoupling/core/adaptor/api_24_1/get_machines.py +13 -0
- ansys/systemcoupling/core/adaptor/api_24_1/get_region_names_for_participant.py +31 -0
- ansys/systemcoupling/core/adaptor/api_24_1/get_setup_summary.py +25 -0
- ansys/systemcoupling/core/adaptor/api_24_1/get_snapshots.py +14 -0
- ansys/systemcoupling/core/adaptor/api_24_1/get_status_messages.py +52 -0
- ansys/systemcoupling/core/adaptor/api_24_1/get_transformation.py +43 -0
- ansys/systemcoupling/core/adaptor/api_24_1/global_stabilization.py +143 -0
- ansys/systemcoupling/core/adaptor/api_24_1/has_input_file_changed.py +36 -0
- ansys/systemcoupling/core/adaptor/api_24_1/import_system_coupling_input_file.py +36 -0
- ansys/systemcoupling/core/adaptor/api_24_1/initialize.py +27 -0
- ansys/systemcoupling/core/adaptor/api_24_1/instancing.py +23 -0
- ansys/systemcoupling/core/adaptor/api_24_1/instancing_child.py +62 -0
- ansys/systemcoupling/core/adaptor/api_24_1/interrupt.py +39 -0
- ansys/systemcoupling/core/adaptor/api_24_1/library.py +37 -0
- ansys/systemcoupling/core/adaptor/api_24_1/live_visualization.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_1/live_visualization_child.py +72 -0
- ansys/systemcoupling/core/adaptor/api_24_1/mapping_control.py +229 -0
- ansys/systemcoupling/core/adaptor/api_24_1/open.py +102 -0
- ansys/systemcoupling/core/adaptor/api_24_1/open_results_in_en_sight.py +56 -0
- ansys/systemcoupling/core/adaptor/api_24_1/open_snapshot.py +37 -0
- ansys/systemcoupling/core/adaptor/api_24_1/output_control.py +134 -0
- ansys/systemcoupling/core/adaptor/api_24_1/parameter.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_1/parameter_child.py +64 -0
- ansys/systemcoupling/core/adaptor/api_24_1/partition_participants.py +138 -0
- ansys/systemcoupling/core/adaptor/api_24_1/reference_frame.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_1/reference_frame_child.py +71 -0
- ansys/systemcoupling/core/adaptor/api_24_1/region.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_1/region_child.py +72 -0
- ansys/systemcoupling/core/adaptor/api_24_1/reload_expression_function_modules.py +14 -0
- ansys/systemcoupling/core/adaptor/api_24_1/results.py +89 -0
- ansys/systemcoupling/core/adaptor/api_24_1/save.py +51 -0
- ansys/systemcoupling/core/adaptor/api_24_1/save_snapshot.py +54 -0
- ansys/systemcoupling/core/adaptor/api_24_1/setup_root.py +195 -0
- ansys/systemcoupling/core/adaptor/api_24_1/shutdown.py +25 -0
- ansys/systemcoupling/core/adaptor/api_24_1/side.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_1/side_child.py +56 -0
- ansys/systemcoupling/core/adaptor/api_24_1/solution_control.py +103 -0
- ansys/systemcoupling/core/adaptor/api_24_1/solution_root.py +110 -0
- ansys/systemcoupling/core/adaptor/api_24_1/solve.py +30 -0
- ansys/systemcoupling/core/adaptor/api_24_1/stabilization.py +157 -0
- ansys/systemcoupling/core/adaptor/api_24_1/start_participants.py +47 -0
- ansys/systemcoupling/core/adaptor/api_24_1/step.py +57 -0
- ansys/systemcoupling/core/adaptor/api_24_1/transformation.py +21 -0
- ansys/systemcoupling/core/adaptor/api_24_1/transformation_child.py +62 -0
- ansys/systemcoupling/core/adaptor/api_24_1/type.py +38 -0
- ansys/systemcoupling/core/adaptor/api_24_1/unmapped_value_options.py +158 -0
- ansys/systemcoupling/core/adaptor/api_24_1/update_control.py +44 -0
- ansys/systemcoupling/core/adaptor/api_24_1/update_participant.py +61 -0
- ansys/systemcoupling/core/adaptor/api_24_1/variable.py +20 -0
- ansys/systemcoupling/core/adaptor/api_24_1/variable_child.py +232 -0
- ansys/systemcoupling/core/adaptor/api_24_1/write_csv_chart_files.py +21 -0
- ansys/systemcoupling/core/adaptor/api_24_1/write_ensight.py +46 -0
- ansys/systemcoupling/core/adaptor/impl/get_syc_version.py +35 -0
- ansys/systemcoupling/core/adaptor/impl/injected_commands.py +97 -5
- ansys/systemcoupling/core/adaptor/impl/root_source.py +2 -0
- ansys/systemcoupling/core/adaptor/impl/static_info.py +69 -41
- ansys/systemcoupling/core/adaptor/impl/syc_proxy.py +1 -1
- ansys/systemcoupling/core/adaptor/impl/types.py +12 -0
- ansys/systemcoupling/core/client/syc_container.py +2 -0
- ansys/systemcoupling/core/participant/manager.py +198 -0
- ansys/systemcoupling/core/participant/protocol.py +51 -0
- ansys/systemcoupling/core/session.py +7 -1
- ansys/systemcoupling/core/syc_version.py +26 -2
- {ansys_systemcoupling_core-0.2.0.dist-info → ansys_systemcoupling_core-0.3.0.dist-info}/METADATA +9 -9
- ansys_systemcoupling_core-0.3.0.dist-info/RECORD +230 -0
- ansys_systemcoupling_core-0.2.0.dist-info/RECORD +0 -129
- /ansys/systemcoupling/core/adaptor/{api_23_2 → api_24_1}/open_results_in_ensight.py +0 -0
- {ansys_systemcoupling_core-0.2.0.dist-info → ansys_systemcoupling_core-0.3.0.dist-info}/LICENSE +0 -0
- {ansys_systemcoupling_core-0.2.0.dist-info → ansys_systemcoupling_core-0.3.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
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_results_in_en_sight(Command):
|
|
9
|
+
"""
|
|
10
|
+
Allows for System Coupling results to be postprocessed in EnSight.
|
|
11
|
+
|
|
12
|
+
When this command is issued, System Coupling looks for the ``results.enc``
|
|
13
|
+
file in the ``SyC/results`` subdirectory of the current working directory.
|
|
14
|
+
|
|
15
|
+
When System Coupling finds the file, it loads the file into EnSight and
|
|
16
|
+
generates a confirmation message indicating that results are being opened.
|
|
17
|
+
|
|
18
|
+
If System Coupling is unable to find the ``results.enc`` file and/or the
|
|
19
|
+
EnSight executable, then it raises an error.
|
|
20
|
+
|
|
21
|
+
The ``open_results_in_ensight`` command may be issued multiple times from the same
|
|
22
|
+
instance of System Coupling. Each time the command is issued, a new
|
|
23
|
+
instance of the EnSight application is opened. Any existing instances of
|
|
24
|
+
EnSight remain open, both when additional instances are created and when
|
|
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
|
+
"""
|
|
37
|
+
|
|
38
|
+
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,134 @@
|
|
|
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 .live_visualization import live_visualization
|
|
9
|
+
from .results import results
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class output_control(Container):
|
|
13
|
+
"""
|
|
14
|
+
Configure output controls.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
syc_name = "OutputControl"
|
|
18
|
+
|
|
19
|
+
child_names = ["results", "ascii_output", "live_visualization"]
|
|
20
|
+
|
|
21
|
+
results: results = results
|
|
22
|
+
"""
|
|
23
|
+
results child of output_control.
|
|
24
|
+
"""
|
|
25
|
+
ascii_output: ascii_output = ascii_output
|
|
26
|
+
"""
|
|
27
|
+
ascii_output child of output_control.
|
|
28
|
+
"""
|
|
29
|
+
live_visualization: live_visualization = live_visualization
|
|
30
|
+
"""
|
|
31
|
+
live_visualization child of output_control.
|
|
32
|
+
"""
|
|
33
|
+
property_names_types = [
|
|
34
|
+
("option", "Option", "str"),
|
|
35
|
+
("generate_csv_chart_output", "GenerateCSVChartOutput", "bool"),
|
|
36
|
+
("write_initial_snapshot", "WriteInitialSnapshot", "bool"),
|
|
37
|
+
("transcript_precision", "TranscriptPrecision", "int"),
|
|
38
|
+
("write_diagnostics", "WriteDiagnostics", "bool"),
|
|
39
|
+
("write_weights_matrix", "WriteWeightsMatrix", "bool"),
|
|
40
|
+
("write_residuals", "WriteResiduals", "bool"),
|
|
41
|
+
("output_frequency", "OutputFrequency", "int"),
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def option(self) -> str:
|
|
46
|
+
"""Specifies when restart points are generated.
|
|
47
|
+
|
|
48
|
+
Allowed values (step-based analyses only):
|
|
49
|
+
|
|
50
|
+
- \"LastStep\" - Generates a restart point only for the last
|
|
51
|
+
coupling step completed.
|
|
52
|
+
- \"EveryStep\" -
|
|
53
|
+
Generate a restart point at the end of every coupling step.
|
|
54
|
+
- \"StepInterval\" - Generates a restart point at the end of
|
|
55
|
+
coupling steps at the interval specified by the output
|
|
56
|
+
frequency setting.
|
|
57
|
+
|
|
58
|
+
Allowed values (iteration-based analyses only):
|
|
59
|
+
|
|
60
|
+
- \"LastIteration\" - Generates a restart point only for the
|
|
61
|
+
last coupling iteration completed.
|
|
62
|
+
- \"EveryIteration\" - Generate a restart point at the end
|
|
63
|
+
of every coupling iteration.
|
|
64
|
+
- \"IterationInterval\" - Generates a restart point at the
|
|
65
|
+
end of coupling iterations at the interval specified by
|
|
66
|
+
the output frequency setting."""
|
|
67
|
+
return self.get_property_state("option")
|
|
68
|
+
|
|
69
|
+
@option.setter
|
|
70
|
+
def option(self, value: str):
|
|
71
|
+
self.set_property_state("option", value)
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def generate_csv_chart_output(self) -> bool:
|
|
75
|
+
"""Write chart data in CSV format during solve."""
|
|
76
|
+
return self.get_property_state("generate_csv_chart_output")
|
|
77
|
+
|
|
78
|
+
@generate_csv_chart_output.setter
|
|
79
|
+
def generate_csv_chart_output(self, value: bool):
|
|
80
|
+
self.set_property_state("generate_csv_chart_output", value)
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def write_initial_snapshot(self) -> bool:
|
|
84
|
+
"""Write initial snapshot."""
|
|
85
|
+
return self.get_property_state("write_initial_snapshot")
|
|
86
|
+
|
|
87
|
+
@write_initial_snapshot.setter
|
|
88
|
+
def write_initial_snapshot(self, value: bool):
|
|
89
|
+
self.set_property_state("write_initial_snapshot", value)
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def transcript_precision(self) -> int:
|
|
93
|
+
"""Number of digits after decimal point in transcript."""
|
|
94
|
+
return self.get_property_state("transcript_precision")
|
|
95
|
+
|
|
96
|
+
@transcript_precision.setter
|
|
97
|
+
def transcript_precision(self, value: int):
|
|
98
|
+
self.set_property_state("transcript_precision", value)
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def write_diagnostics(self) -> bool:
|
|
102
|
+
"""Write transfer diagnostics dictionary to file."""
|
|
103
|
+
return self.get_property_state("write_diagnostics")
|
|
104
|
+
|
|
105
|
+
@write_diagnostics.setter
|
|
106
|
+
def write_diagnostics(self, value: bool):
|
|
107
|
+
self.set_property_state("write_diagnostics", value)
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def write_weights_matrix(self) -> bool:
|
|
111
|
+
"""Write mapping weights to file after calculation."""
|
|
112
|
+
return self.get_property_state("write_weights_matrix")
|
|
113
|
+
|
|
114
|
+
@write_weights_matrix.setter
|
|
115
|
+
def write_weights_matrix(self, value: bool):
|
|
116
|
+
self.set_property_state("write_weights_matrix", value)
|
|
117
|
+
|
|
118
|
+
@property
|
|
119
|
+
def write_residuals(self) -> bool:
|
|
120
|
+
"""Write residuals to results files."""
|
|
121
|
+
return self.get_property_state("write_residuals")
|
|
122
|
+
|
|
123
|
+
@write_residuals.setter
|
|
124
|
+
def write_residuals(self, value: bool):
|
|
125
|
+
self.set_property_state("write_residuals", value)
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def output_frequency(self) -> int:
|
|
129
|
+
"""Specify output frequency."""
|
|
130
|
+
return self.get_property_state("output_frequency")
|
|
131
|
+
|
|
132
|
+
@output_frequency.setter
|
|
133
|
+
def output_frequency(self, value: int):
|
|
134
|
+
self.set_property_state("output_frequency", value)
|
|
@@ -0,0 +1,20 @@
|
|
|
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 .parameter_child import parameter_child
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class parameter(NamedContainer[parameter_child]):
|
|
11
|
+
"""
|
|
12
|
+
Configure a parameter for the coupling participant.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
syc_name = "Parameter"
|
|
16
|
+
|
|
17
|
+
child_object_type: parameter_child = parameter_child
|
|
18
|
+
"""
|
|
19
|
+
child_object_type of parameter.
|
|
20
|
+
"""
|
|
@@ -0,0 +1,64 @@
|
|
|
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 .dimensionality import dimensionality
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class parameter_child(Container):
|
|
11
|
+
"""
|
|
12
|
+
Configure a parameter for the coupling participant.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
syc_name = "child_object_type"
|
|
16
|
+
|
|
17
|
+
child_names = ["dimensionality"]
|
|
18
|
+
|
|
19
|
+
dimensionality: dimensionality = dimensionality
|
|
20
|
+
"""
|
|
21
|
+
dimensionality child of parameter_child.
|
|
22
|
+
"""
|
|
23
|
+
property_names_types = [
|
|
24
|
+
("participant_display_name", "ParticipantDisplayName", "str"),
|
|
25
|
+
("display_name", "DisplayName", "str"),
|
|
26
|
+
("data_type", "DataType", "str"),
|
|
27
|
+
("tensor_type", "TensorType", "str"),
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def participant_display_name(self) -> str:
|
|
32
|
+
"""Parameter's display name as defined by the participant solver."""
|
|
33
|
+
return self.get_property_state("participant_display_name")
|
|
34
|
+
|
|
35
|
+
@participant_display_name.setter
|
|
36
|
+
def participant_display_name(self, value: str):
|
|
37
|
+
self.set_property_state("participant_display_name", value)
|
|
38
|
+
|
|
39
|
+
@property
|
|
40
|
+
def display_name(self) -> str:
|
|
41
|
+
"""Parameter's display name as defined in System Coupling."""
|
|
42
|
+
return self.get_property_state("display_name")
|
|
43
|
+
|
|
44
|
+
@display_name.setter
|
|
45
|
+
def display_name(self, value: str):
|
|
46
|
+
self.set_property_state("display_name", value)
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def data_type(self) -> str:
|
|
50
|
+
"""UNDOCUMENTED"""
|
|
51
|
+
return self.get_property_state("data_type")
|
|
52
|
+
|
|
53
|
+
@data_type.setter
|
|
54
|
+
def data_type(self, value: str):
|
|
55
|
+
self.set_property_state("data_type", value)
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def tensor_type(self) -> str:
|
|
59
|
+
"""Indicates the parameter tensor type (\"Scalar\" only)."""
|
|
60
|
+
return self.get_property_state("tensor_type")
|
|
61
|
+
|
|
62
|
+
@tensor_type.setter
|
|
63
|
+
def tensor_type(self, value: str):
|
|
64
|
+
self.set_property_state("tensor_type", 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"
|
|
@@ -0,0 +1,20 @@
|
|
|
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 .reference_frame_child import reference_frame_child
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class reference_frame(NamedContainer[reference_frame_child]):
|
|
11
|
+
"""
|
|
12
|
+
Provide a transformation relative to a ParentReferenceFrame.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
syc_name = "ReferenceFrame"
|
|
16
|
+
|
|
17
|
+
child_object_type: reference_frame_child = reference_frame_child
|
|
18
|
+
"""
|
|
19
|
+
child_object_type of reference_frame.
|
|
20
|
+
"""
|
|
@@ -0,0 +1,71 @@
|
|
|
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 .transformation import transformation
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class reference_frame_child(Container):
|
|
11
|
+
"""
|
|
12
|
+
Provide a transformation relative to a ParentReferenceFrame.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
syc_name = "child_object_type"
|
|
16
|
+
|
|
17
|
+
child_names = ["transformation"]
|
|
18
|
+
|
|
19
|
+
transformation: transformation = transformation
|
|
20
|
+
"""
|
|
21
|
+
transformation child of reference_frame_child.
|
|
22
|
+
"""
|
|
23
|
+
property_names_types = [
|
|
24
|
+
("option", "Option", "str"),
|
|
25
|
+
("parent_reference_frame", "ParentReferenceFrame", "str"),
|
|
26
|
+
("transformation_order", "TransformationOrder", "StringListType"),
|
|
27
|
+
("transformation_matrix", "TransformationMatrix", "RealListType"),
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def option(self) -> str:
|
|
32
|
+
"""Method used to define the transformation from the parent reference frame.
|
|
33
|
+
|
|
34
|
+
- \"ByTransformation\" - Define the reference frame by one or more
|
|
35
|
+
transformation operations.
|
|
36
|
+
- \"Automatic\" - Align source and target automatically.
|
|
37
|
+
- \"ByMatrix\" - Only available if Alpha features are activated."""
|
|
38
|
+
return self.get_property_state("option")
|
|
39
|
+
|
|
40
|
+
@option.setter
|
|
41
|
+
def option(self, value: str):
|
|
42
|
+
self.set_property_state("option", value)
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def parent_reference_frame(self) -> str:
|
|
46
|
+
"""Set the parent reference frame."""
|
|
47
|
+
return self.get_property_state("parent_reference_frame")
|
|
48
|
+
|
|
49
|
+
@parent_reference_frame.setter
|
|
50
|
+
def parent_reference_frame(self, value: str):
|
|
51
|
+
self.set_property_state("parent_reference_frame", value)
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def transformation_order(self) -> StringListType:
|
|
55
|
+
"""List names of transformations in the order in which they apply.
|
|
56
|
+
|
|
57
|
+
Available for the ``ByTransformation`` option."""
|
|
58
|
+
return self.get_property_state("transformation_order")
|
|
59
|
+
|
|
60
|
+
@transformation_order.setter
|
|
61
|
+
def transformation_order(self, value: StringListType):
|
|
62
|
+
self.set_property_state("transformation_order", value)
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def transformation_matrix(self) -> RealListType:
|
|
66
|
+
"""Define the transformation matrix when ``ByTransformation`` option is active."""
|
|
67
|
+
return self.get_property_state("transformation_matrix")
|
|
68
|
+
|
|
69
|
+
@transformation_matrix.setter
|
|
70
|
+
def transformation_matrix(self, value: RealListType):
|
|
71
|
+
self.set_property_state("transformation_matrix", value)
|
|
@@ -0,0 +1,20 @@
|
|
|
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 .region_child import region_child
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class region(NamedContainer[region_child]):
|
|
11
|
+
"""
|
|
12
|
+
Configure a region for the coupling participant.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
syc_name = "Region"
|
|
16
|
+
|
|
17
|
+
child_object_type: region_child = region_child
|
|
18
|
+
"""
|
|
19
|
+
child_object_type of region.
|
|
20
|
+
"""
|
|
@@ -0,0 +1,72 @@
|
|
|
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 region_child(Container):
|
|
9
|
+
"""
|
|
10
|
+
Configure a region for the coupling participant.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
syc_name = "child_object_type"
|
|
14
|
+
|
|
15
|
+
property_names_types = [
|
|
16
|
+
("topology", "Topology", "str"),
|
|
17
|
+
("input_variables", "InputVariables", "StringListType"),
|
|
18
|
+
("output_variables", "OutputVariables", "StringListType"),
|
|
19
|
+
("display_name", "DisplayName", "str"),
|
|
20
|
+
("region_discretization_type", "RegionDiscretizationType", "str"),
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
@property
|
|
24
|
+
def topology(self) -> str:
|
|
25
|
+
"""Region topology type.
|
|
26
|
+
|
|
27
|
+
Allowed values:
|
|
28
|
+
|
|
29
|
+
- \"Undefined\" (FMU participants only)
|
|
30
|
+
- \"Surface\"
|
|
31
|
+
- \"Volume\" (3D participants only)"""
|
|
32
|
+
return self.get_property_state("topology")
|
|
33
|
+
|
|
34
|
+
@topology.setter
|
|
35
|
+
def topology(self, value: str):
|
|
36
|
+
self.set_property_state("topology", value)
|
|
37
|
+
|
|
38
|
+
@property
|
|
39
|
+
def input_variables(self) -> StringListType:
|
|
40
|
+
"""Input variables for the region or FMU."""
|
|
41
|
+
return self.get_property_state("input_variables")
|
|
42
|
+
|
|
43
|
+
@input_variables.setter
|
|
44
|
+
def input_variables(self, value: StringListType):
|
|
45
|
+
self.set_property_state("input_variables", value)
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
def output_variables(self) -> StringListType:
|
|
49
|
+
"""Output variables for the region or FMU."""
|
|
50
|
+
return self.get_property_state("output_variables")
|
|
51
|
+
|
|
52
|
+
@output_variables.setter
|
|
53
|
+
def output_variables(self, value: StringListType):
|
|
54
|
+
self.set_property_state("output_variables", value)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def display_name(self) -> str:
|
|
58
|
+
"""Display name of the region."""
|
|
59
|
+
return self.get_property_state("display_name")
|
|
60
|
+
|
|
61
|
+
@display_name.setter
|
|
62
|
+
def display_name(self, value: str):
|
|
63
|
+
self.set_property_state("display_name", value)
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def region_discretization_type(self) -> str:
|
|
67
|
+
"""Region discretization type (\"Mesh Region\" or \"Point Cloud Region\")."""
|
|
68
|
+
return self.get_property_state("region_discretization_type")
|
|
69
|
+
|
|
70
|
+
@region_discretization_type.setter
|
|
71
|
+
def region_discretization_type(self, value: str):
|
|
72
|
+
self.set_property_state("region_discretization_type", value)
|
|
@@ -0,0 +1,14 @@
|
|
|
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 reload_expression_function_modules(Command):
|
|
9
|
+
"""
|
|
10
|
+
This may be called to force a reload of expression function modules
|
|
11
|
+
if they have changed since they were last loaded.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
syc_name = "ReloadExpressionFunctionModules"
|