ansys-systemcoupling-core 0.9.1__py3-none-any.whl → 0.10.1__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 +1 -1
- ansys/systemcoupling/core/adaptor/api_25_2/_add_participant.py +80 -0
- ansys/systemcoupling/core/adaptor/api_25_2/_clear_state.py +13 -0
- ansys/systemcoupling/core/adaptor/api_25_2/_solve.py +13 -0
- ansys/systemcoupling/core/adaptor/api_25_2/abort.py +39 -0
- ansys/systemcoupling/core/adaptor/api_25_2/activate_hidden.py +46 -0
- ansys/systemcoupling/core/adaptor/api_25_2/add_aerodamping_data_transfers.py +43 -0
- ansys/systemcoupling/core/adaptor/api_25_2/add_data_transfer.py +190 -0
- ansys/systemcoupling/core/adaptor/api_25_2/add_expression_function.py +61 -0
- ansys/systemcoupling/core/adaptor/api_25_2/add_flow_boundary_data_transfers.py +32 -0
- ansys/systemcoupling/core/adaptor/api_25_2/add_fsi_data_transfers.py +43 -0
- ansys/systemcoupling/core/adaptor/api_25_2/add_interface.py +77 -0
- ansys/systemcoupling/core/adaptor/api_25_2/add_named_expression.py +42 -0
- ansys/systemcoupling/core/adaptor/api_25_2/add_ordered_data_transfers.py +41 -0
- ansys/systemcoupling/core/adaptor/api_25_2/add_participant.py +177 -0
- ansys/systemcoupling/core/adaptor/api_25_2/add_reference_frame.py +40 -0
- ansys/systemcoupling/core/adaptor/api_25_2/add_thermal_data_transfers.py +43 -0
- ansys/systemcoupling/core/adaptor/api_25_2/add_transformation.py +102 -0
- ansys/systemcoupling/core/adaptor/api_25_2/analysis_control.py +333 -0
- ansys/systemcoupling/core/adaptor/api_25_2/apip.py +33 -0
- ansys/systemcoupling/core/adaptor/api_25_2/ascii_output.py +44 -0
- ansys/systemcoupling/core/adaptor/api_25_2/attribute.py +20 -0
- ansys/systemcoupling/core/adaptor/api_25_2/attribute_child.py +74 -0
- ansys/systemcoupling/core/adaptor/api_25_2/automatic_alignment_options.py +46 -0
- ansys/systemcoupling/core/adaptor/api_25_2/available_ports.py +40 -0
- ansys/systemcoupling/core/adaptor/api_25_2/avoid_data_reconstruction.py +56 -0
- ansys/systemcoupling/core/adaptor/api_25_2/case_root.py +62 -0
- ansys/systemcoupling/core/adaptor/api_25_2/clear_state.py +18 -0
- ansys/systemcoupling/core/adaptor/api_25_2/connect_ensight_dvs.py +41 -0
- ansys/systemcoupling/core/adaptor/api_25_2/coupling_interface.py +20 -0
- ansys/systemcoupling/core/adaptor/api_25_2/coupling_interface_child.py +42 -0
- ansys/systemcoupling/core/adaptor/api_25_2/coupling_participant.py +23 -0
- ansys/systemcoupling/core/adaptor/api_25_2/coupling_participant_child.py +272 -0
- ansys/systemcoupling/core/adaptor/api_25_2/create_restart_point.py +28 -0
- ansys/systemcoupling/core/adaptor/api_25_2/data_transfer.py +20 -0
- ansys/systemcoupling/core/adaptor/api_25_2/data_transfer_child.py +195 -0
- ansys/systemcoupling/core/adaptor/api_25_2/delete_snapshot.py +30 -0
- ansys/systemcoupling/core/adaptor/api_25_2/delete_transformation.py +42 -0
- ansys/systemcoupling/core/adaptor/api_25_2/dimensionality.py +96 -0
- ansys/systemcoupling/core/adaptor/api_25_2/execution_control.py +266 -0
- ansys/systemcoupling/core/adaptor/api_25_2/execution_control_1.py +24 -0
- ansys/systemcoupling/core/adaptor/api_25_2/expression.py +20 -0
- ansys/systemcoupling/core/adaptor/api_25_2/expression_child.py +36 -0
- ansys/systemcoupling/core/adaptor/api_25_2/expression_function.py +20 -0
- ansys/systemcoupling/core/adaptor/api_25_2/expression_function_child.py +46 -0
- ansys/systemcoupling/core/adaptor/api_25_2/external_data_file.py +24 -0
- ansys/systemcoupling/core/adaptor/api_25_2/fluent_input.py +77 -0
- ansys/systemcoupling/core/adaptor/api_25_2/fmu_parameter.py +20 -0
- ansys/systemcoupling/core/adaptor/api_25_2/fmu_parameter_child.py +164 -0
- ansys/systemcoupling/core/adaptor/api_25_2/generate_input_file.py +53 -0
- ansys/systemcoupling/core/adaptor/api_25_2/get_add_data_transfer_group_commands.py +29 -0
- ansys/systemcoupling/core/adaptor/api_25_2/get_execution_command.py +30 -0
- ansys/systemcoupling/core/adaptor/api_25_2/get_machines.py +34 -0
- ansys/systemcoupling/core/adaptor/api_25_2/get_mode_shape_variables.py +29 -0
- ansys/systemcoupling/core/adaptor/api_25_2/get_region_names_for_participant.py +32 -0
- ansys/systemcoupling/core/adaptor/api_25_2/get_setup_summary.py +25 -0
- ansys/systemcoupling/core/adaptor/api_25_2/get_status_messages.py +52 -0
- ansys/systemcoupling/core/adaptor/api_25_2/get_supported_participant_types.py +13 -0
- ansys/systemcoupling/core/adaptor/api_25_2/get_thermal_data_transfer_options.py +32 -0
- ansys/systemcoupling/core/adaptor/api_25_2/get_transformation.py +43 -0
- ansys/systemcoupling/core/adaptor/api_25_2/global_stabilization.py +155 -0
- ansys/systemcoupling/core/adaptor/api_25_2/has_input_file_changed.py +36 -0
- ansys/systemcoupling/core/adaptor/api_25_2/import_system_coupling_input_file.py +36 -0
- ansys/systemcoupling/core/adaptor/api_25_2/initialize.py +27 -0
- ansys/systemcoupling/core/adaptor/api_25_2/instancing.py +25 -0
- ansys/systemcoupling/core/adaptor/api_25_2/instancing_child.py +114 -0
- ansys/systemcoupling/core/adaptor/api_25_2/interrupt.py +39 -0
- ansys/systemcoupling/core/adaptor/api_25_2/library.py +37 -0
- ansys/systemcoupling/core/adaptor/api_25_2/live_visualization.py +20 -0
- ansys/systemcoupling/core/adaptor/api_25_2/live_visualization_child.py +100 -0
- ansys/systemcoupling/core/adaptor/api_25_2/map.py +19 -0
- ansys/systemcoupling/core/adaptor/api_25_2/mapping_control.py +273 -0
- ansys/systemcoupling/core/adaptor/api_25_2/open.py +107 -0
- ansys/systemcoupling/core/adaptor/api_25_2/open_results_in_ensight.py +56 -0
- ansys/systemcoupling/core/adaptor/api_25_2/open_snapshot.py +37 -0
- ansys/systemcoupling/core/adaptor/api_25_2/output_control.py +134 -0
- ansys/systemcoupling/core/adaptor/api_25_2/parameter.py +20 -0
- ansys/systemcoupling/core/adaptor/api_25_2/parameter_child.py +60 -0
- ansys/systemcoupling/core/adaptor/api_25_2/partition_participants.py +148 -0
- ansys/systemcoupling/core/adaptor/api_25_2/properties.py +36 -0
- ansys/systemcoupling/core/adaptor/api_25_2/record_interactions.py +46 -0
- ansys/systemcoupling/core/adaptor/api_25_2/reference_frame.py +20 -0
- ansys/systemcoupling/core/adaptor/api_25_2/reference_frame_child.py +71 -0
- ansys/systemcoupling/core/adaptor/api_25_2/region.py +20 -0
- ansys/systemcoupling/core/adaptor/api_25_2/region_child.py +71 -0
- ansys/systemcoupling/core/adaptor/api_25_2/reload_expression_function_modules.py +14 -0
- ansys/systemcoupling/core/adaptor/api_25_2/results.py +89 -0
- ansys/systemcoupling/core/adaptor/api_25_2/save.py +53 -0
- ansys/systemcoupling/core/adaptor/api_25_2/save_snapshot.py +54 -0
- ansys/systemcoupling/core/adaptor/api_25_2/setup_root.py +243 -0
- ansys/systemcoupling/core/adaptor/api_25_2/show_plot.py +75 -0
- ansys/systemcoupling/core/adaptor/api_25_2/shutdown.py +25 -0
- ansys/systemcoupling/core/adaptor/api_25_2/side.py +20 -0
- ansys/systemcoupling/core/adaptor/api_25_2/side_child.py +56 -0
- ansys/systemcoupling/core/adaptor/api_25_2/solution_control.py +127 -0
- ansys/systemcoupling/core/adaptor/api_25_2/solution_root.py +134 -0
- ansys/systemcoupling/core/adaptor/api_25_2/solve.py +30 -0
- ansys/systemcoupling/core/adaptor/api_25_2/stabilization.py +157 -0
- ansys/systemcoupling/core/adaptor/api_25_2/step.py +57 -0
- ansys/systemcoupling/core/adaptor/api_25_2/transformation.py +21 -0
- ansys/systemcoupling/core/adaptor/api_25_2/transformation_child.py +62 -0
- ansys/systemcoupling/core/adaptor/api_25_2/type.py +39 -0
- ansys/systemcoupling/core/adaptor/api_25_2/unmapped_value_options.py +158 -0
- ansys/systemcoupling/core/adaptor/api_25_2/update_control.py +43 -0
- ansys/systemcoupling/core/adaptor/api_25_2/update_interfaces.py +19 -0
- ansys/systemcoupling/core/adaptor/api_25_2/update_participant.py +61 -0
- ansys/systemcoupling/core/adaptor/api_25_2/variable.py +20 -0
- ansys/systemcoupling/core/adaptor/api_25_2/variable_child.py +231 -0
- ansys/systemcoupling/core/adaptor/api_25_2/write_csv_chart_files.py +21 -0
- ansys/systemcoupling/core/adaptor/api_25_2/write_ensight.py +46 -0
- ansys/systemcoupling/core/adaptor/api_25_2/write_target_data.py +32 -0
- ansys/systemcoupling/core/adaptor/impl/get_syc_version.py +4 -1
- ansys/systemcoupling/core/adaptor/impl/injected_commands.py +3 -1
- ansys/systemcoupling/core/charts/csv_chartdata.py +4 -3
- ansys/systemcoupling/core/charts/plot_functions.py +12 -4
- ansys/systemcoupling/core/charts/plotter.py +3 -2
- ansys/systemcoupling/core/client/grpc_client.py +11 -2
- ansys/systemcoupling/core/client/syc_container.py +40 -35
- ansys/systemcoupling/core/client/syc_process.py +5 -2
- ansys/systemcoupling/core/native_api/datamodel_metadata.py +3 -2
- ansys/systemcoupling/core/native_api/object_path.py +2 -1
- ansys/systemcoupling/core/syc_version.py +1 -1
- ansys/systemcoupling/core/util/assertion.py +38 -0
- ansys/systemcoupling/core/util/file_transfer.py +2 -1
- ansys/systemcoupling/core/util/yaml_helper.py +5 -5
- {ansys_systemcoupling_core-0.9.1.dist-info → ansys_systemcoupling_core-0.10.1.dist-info}/METADATA +16 -10
- {ansys_systemcoupling_core-0.9.1.dist-info → ansys_systemcoupling_core-0.10.1.dist-info}/RECORD +129 -18
- {ansys_systemcoupling_core-0.9.1.dist-info → ansys_systemcoupling_core-0.10.1.dist-info}/WHEEL +0 -0
- {ansys_systemcoupling_core-0.9.1.dist-info → ansys_systemcoupling_core-0.10.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
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 parameter_child(Container):
|
|
9
|
+
"""
|
|
10
|
+
Configure a parameter for the coupling participant.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
syc_name = "child_object_type"
|
|
14
|
+
|
|
15
|
+
property_names_types = [
|
|
16
|
+
("participant_display_name", "ParticipantDisplayName", "str"),
|
|
17
|
+
("display_name", "DisplayName", "str"),
|
|
18
|
+
("data_type", "DataType", "str"),
|
|
19
|
+
("tensor_type", "TensorType", "str"),
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
@property
|
|
23
|
+
def participant_display_name(self) -> str:
|
|
24
|
+
"""Parameter's display name as defined by the participant solver."""
|
|
25
|
+
return self.get_property_state("participant_display_name")
|
|
26
|
+
|
|
27
|
+
@participant_display_name.setter
|
|
28
|
+
def participant_display_name(self, value: str):
|
|
29
|
+
self.set_property_state("participant_display_name", value)
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def display_name(self) -> str:
|
|
33
|
+
"""Parameter's display name as defined in System Coupling."""
|
|
34
|
+
return self.get_property_state("display_name")
|
|
35
|
+
|
|
36
|
+
@display_name.setter
|
|
37
|
+
def display_name(self, value: str):
|
|
38
|
+
self.set_property_state("display_name", value)
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
def data_type(self) -> str:
|
|
42
|
+
"""Parameter's data type as reported by the participant.
|
|
43
|
+
|
|
44
|
+
Allowed values:
|
|
45
|
+
|
|
46
|
+
- Real"""
|
|
47
|
+
return self.get_property_state("data_type")
|
|
48
|
+
|
|
49
|
+
@data_type.setter
|
|
50
|
+
def data_type(self, value: str):
|
|
51
|
+
self.set_property_state("data_type", value)
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def tensor_type(self) -> str:
|
|
55
|
+
"""Indicates the parameter tensor type (\"Scalar\" only)."""
|
|
56
|
+
return self.get_property_state("tensor_type")
|
|
57
|
+
|
|
58
|
+
@tensor_type.setter
|
|
59
|
+
def tensor_type(self, value: str):
|
|
60
|
+
self.set_property_state("tensor_type", value)
|
|
@@ -0,0 +1,148 @@
|
|
|
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
|
+
Note:
|
|
17
|
+
Ansys recommends only using this command for the Custom partitioning algorithm.
|
|
18
|
+
|
|
19
|
+
When other algorithms are used (SharedAllocateMachines,
|
|
20
|
+
DistributedAllocateCores, etc.) the algorithm should be specified directly,
|
|
21
|
+
for example:
|
|
22
|
+
|
|
23
|
+
``setup.analysis_control.partitioning_algorithm = "SharedAllocateMachines"``
|
|
24
|
+
|
|
25
|
+
The participant parallel fractions can also be specified directly, for example:
|
|
26
|
+
|
|
27
|
+
``setup.coupling_participant["FLUENT-1"].execution_control.parallel_fraction = 0.5``
|
|
28
|
+
|
|
29
|
+
The machine list should be specified via System Coupling command line arguments,
|
|
30
|
+
for example:
|
|
31
|
+
|
|
32
|
+
``<v252>/SystemCoupling/binsystemcoupling --cnf="hostA:4,hostB:4"``
|
|
33
|
+
|
|
34
|
+
Parameters
|
|
35
|
+
----------
|
|
36
|
+
algorithm_name : str, optional
|
|
37
|
+
Name of the partitioning algorithm. Available algorithms are:
|
|
38
|
+
'SharedAllocateMachines'(default), 'SharedAllocateCores',
|
|
39
|
+
'DistributedAllocateMachines', 'DistributedAllocateCores',
|
|
40
|
+
and 'Custom' (please see ``partitioning_info`` section below for more details
|
|
41
|
+
for this algorithm)
|
|
42
|
+
|
|
43
|
+
The algorithms allow for both shared and distributed execution and for
|
|
44
|
+
the allocation of machines or cores. The default value is generally the
|
|
45
|
+
best choice, as it allows for each participant to take advantage of all
|
|
46
|
+
the allocated resources. The other partitioning methods are provided to
|
|
47
|
+
handle situations where not enough resources are available to run the
|
|
48
|
+
same machines.
|
|
49
|
+
|
|
50
|
+
See the System Coupling documentation for more details of the
|
|
51
|
+
partitioning algorithms.
|
|
52
|
+
names_and_fractions : List, optional
|
|
53
|
+
List of tuples specifying the fractions of core count applied for
|
|
54
|
+
each participant
|
|
55
|
+
|
|
56
|
+
Each tuple must have the ParticipantName as its first item and the
|
|
57
|
+
associated fraction as its second item. If this parameter is omitted,
|
|
58
|
+
then cores will be allocated for all participants set in the
|
|
59
|
+
data model.
|
|
60
|
+
machine_list : List, optional
|
|
61
|
+
List of dictionaries specifying machines available for distributed run.
|
|
62
|
+
Each dictionary must have a key 'machine-name' with machine name as its
|
|
63
|
+
value, and key 'core-count' with number of cores for that machine as
|
|
64
|
+
its value. Providing this argument will over-ride any machine-list
|
|
65
|
+
information detected from the scheduler environment and any information
|
|
66
|
+
provided by the --cnf command-line argument.
|
|
67
|
+
partitioning_info : Dict, optional
|
|
68
|
+
Dictionary specifying machines resources assigned to each participant by user.
|
|
69
|
+
Dictionary must have participant names as keys and machineLists containing
|
|
70
|
+
machine resources as values. The value of ``partitioning_info`` machineList is
|
|
71
|
+
a list of dictionaries specifying machines assigned to corresponding participants.
|
|
72
|
+
Each dictionary of machine mist must have a key 'machine-name' with machine name
|
|
73
|
+
as its value, and key 'core-count' with number of cores for that machine as its value.
|
|
74
|
+
Providing this argument will disallow other arguments except ``algorithm_name``,
|
|
75
|
+
which must set as 'Custom' if provided. Otherwise, ``algorithm_name`` will be set as
|
|
76
|
+
'Custom' internally if ``partitioning_info`` is provided.
|
|
77
|
+
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
syc_name = "PartitionParticipants"
|
|
81
|
+
|
|
82
|
+
argument_names = [
|
|
83
|
+
"algorithm_name",
|
|
84
|
+
"names_and_fractions",
|
|
85
|
+
"machine_list",
|
|
86
|
+
"partitioning_info",
|
|
87
|
+
]
|
|
88
|
+
|
|
89
|
+
class algorithm_name(String):
|
|
90
|
+
"""
|
|
91
|
+
Name of the partitioning algorithm. Available algorithms are:
|
|
92
|
+
'SharedAllocateMachines'(default), 'SharedAllocateCores',
|
|
93
|
+
'DistributedAllocateMachines', 'DistributedAllocateCores',
|
|
94
|
+
and 'Custom' (please see ``partitioning_info`` section below for more details
|
|
95
|
+
for this algorithm)
|
|
96
|
+
|
|
97
|
+
The algorithms allow for both shared and distributed execution and for
|
|
98
|
+
the allocation of machines or cores. The default value is generally the
|
|
99
|
+
best choice, as it allows for each participant to take advantage of all
|
|
100
|
+
the allocated resources. The other partitioning methods are provided to
|
|
101
|
+
handle situations where not enough resources are available to run the
|
|
102
|
+
same machines.
|
|
103
|
+
|
|
104
|
+
See the System Coupling documentation for more details of the
|
|
105
|
+
partitioning algorithms.
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
syc_name = "AlgorithmName"
|
|
109
|
+
|
|
110
|
+
class names_and_fractions(StrFloatPairList):
|
|
111
|
+
"""
|
|
112
|
+
List of tuples specifying the fractions of core count applied for
|
|
113
|
+
each participant
|
|
114
|
+
|
|
115
|
+
Each tuple must have the ParticipantName as its first item and the
|
|
116
|
+
associated fraction as its second item. If this parameter is omitted,
|
|
117
|
+
then cores will be allocated for all participants set in the
|
|
118
|
+
data model.
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
syc_name = "NamesAndFractions"
|
|
122
|
+
|
|
123
|
+
class machine_list(StrOrIntDictList):
|
|
124
|
+
"""
|
|
125
|
+
List of dictionaries specifying machines available for distributed run.
|
|
126
|
+
Each dictionary must have a key 'machine-name' with machine name as its
|
|
127
|
+
value, and key 'core-count' with number of cores for that machine as
|
|
128
|
+
its value. Providing this argument will over-ride any machine-list
|
|
129
|
+
information detected from the scheduler environment and any information
|
|
130
|
+
provided by the --cnf command-line argument.
|
|
131
|
+
"""
|
|
132
|
+
|
|
133
|
+
syc_name = "MachineList"
|
|
134
|
+
|
|
135
|
+
class partitioning_info(StrOrIntDictListDict):
|
|
136
|
+
"""
|
|
137
|
+
Dictionary specifying machines resources assigned to each participant by user.
|
|
138
|
+
Dictionary must have participant names as keys and machineLists containing
|
|
139
|
+
machine resources as values. The value of ``partitioning_info`` machineList is
|
|
140
|
+
a list of dictionaries specifying machines assigned to corresponding participants.
|
|
141
|
+
Each dictionary of machine mist must have a key 'machine-name' with machine name
|
|
142
|
+
as its value, and key 'core-count' with number of cores for that machine as its value.
|
|
143
|
+
Providing this argument will disallow other arguments except ``algorithm_name``,
|
|
144
|
+
which must set as 'Custom' if provided. Otherwise, ``algorithm_name`` will be set as
|
|
145
|
+
'Custom' internally if ``partitioning_info`` is provided.
|
|
146
|
+
"""
|
|
147
|
+
|
|
148
|
+
syc_name = "PartitioningInfo"
|
|
@@ -0,0 +1,36 @@
|
|
|
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 properties(Container):
|
|
9
|
+
"""
|
|
10
|
+
UNDOCUMENTED
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
syc_name = "Properties"
|
|
14
|
+
|
|
15
|
+
property_names_types = [
|
|
16
|
+
("accepts_new_inputs", "AcceptsNewInputs", "bool"),
|
|
17
|
+
("time_integration", "TimeIntegration", "str"),
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
@property
|
|
21
|
+
def accepts_new_inputs(self) -> bool:
|
|
22
|
+
"""Controls whether participant accept new input variables or parameters."""
|
|
23
|
+
return self.get_property_state("accepts_new_inputs")
|
|
24
|
+
|
|
25
|
+
@accepts_new_inputs.setter
|
|
26
|
+
def accepts_new_inputs(self, value: bool):
|
|
27
|
+
self.set_property_state("accepts_new_inputs", value)
|
|
28
|
+
|
|
29
|
+
@property
|
|
30
|
+
def time_integration(self) -> str:
|
|
31
|
+
"""Coupling participant time integration method (\"Implicit\" or \"Explicit\")"""
|
|
32
|
+
return self.get_property_state("time_integration")
|
|
33
|
+
|
|
34
|
+
@time_integration.setter
|
|
35
|
+
def time_integration(self, value: str):
|
|
36
|
+
self.set_property_state("time_integration", value)
|
|
@@ -0,0 +1,46 @@
|
|
|
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 record_interactions(Container):
|
|
9
|
+
"""
|
|
10
|
+
"Controls whether the System Coupling Participant library will record the setup and solution data files for testing and debugging.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
syc_name = "RecordInteractions"
|
|
14
|
+
|
|
15
|
+
property_names_types = [
|
|
16
|
+
("record_setup", "RecordSetup", "bool"),
|
|
17
|
+
("record_solution", "RecordSolution", "bool"),
|
|
18
|
+
("record_precision", "RecordPrecision", "int"),
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def record_setup(self) -> bool:
|
|
23
|
+
"""Flag indicating whether participant record scp file."""
|
|
24
|
+
return self.get_property_state("record_setup")
|
|
25
|
+
|
|
26
|
+
@record_setup.setter
|
|
27
|
+
def record_setup(self, value: bool):
|
|
28
|
+
self.set_property_state("record_setup", value)
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def record_solution(self) -> bool:
|
|
32
|
+
"""Flag indicating whether participant record solution files."""
|
|
33
|
+
return self.get_property_state("record_solution")
|
|
34
|
+
|
|
35
|
+
@record_solution.setter
|
|
36
|
+
def record_solution(self, value: bool):
|
|
37
|
+
self.set_property_state("record_solution", value)
|
|
38
|
+
|
|
39
|
+
@property
|
|
40
|
+
def record_precision(self) -> int:
|
|
41
|
+
"""Set the digital precision of solution variable,1 <= N <= 16.."""
|
|
42
|
+
return self.get_property_state("record_precision")
|
|
43
|
+
|
|
44
|
+
@record_precision.setter
|
|
45
|
+
def record_precision(self, value: int):
|
|
46
|
+
self.set_property_state("record_precision", 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 .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,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
|
+
|
|
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
|
+
- \"Surface\"
|
|
30
|
+
- \"Volume\" (3D participants only)"""
|
|
31
|
+
return self.get_property_state("topology")
|
|
32
|
+
|
|
33
|
+
@topology.setter
|
|
34
|
+
def topology(self, value: str):
|
|
35
|
+
self.set_property_state("topology", value)
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def input_variables(self) -> StringListType:
|
|
39
|
+
"""Input variables for the region or FMU."""
|
|
40
|
+
return self.get_property_state("input_variables")
|
|
41
|
+
|
|
42
|
+
@input_variables.setter
|
|
43
|
+
def input_variables(self, value: StringListType):
|
|
44
|
+
self.set_property_state("input_variables", value)
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
def output_variables(self) -> StringListType:
|
|
48
|
+
"""Output variables for the region or FMU."""
|
|
49
|
+
return self.get_property_state("output_variables")
|
|
50
|
+
|
|
51
|
+
@output_variables.setter
|
|
52
|
+
def output_variables(self, value: StringListType):
|
|
53
|
+
self.set_property_state("output_variables", value)
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def display_name(self) -> str:
|
|
57
|
+
"""Display name of the region."""
|
|
58
|
+
return self.get_property_state("display_name")
|
|
59
|
+
|
|
60
|
+
@display_name.setter
|
|
61
|
+
def display_name(self, value: str):
|
|
62
|
+
self.set_property_state("display_name", value)
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def region_discretization_type(self) -> str:
|
|
66
|
+
"""Region discretization type (\"Mesh Region\" or \"Point Cloud Region\")."""
|
|
67
|
+
return self.get_property_state("region_discretization_type")
|
|
68
|
+
|
|
69
|
+
@region_discretization_type.setter
|
|
70
|
+
def region_discretization_type(self, value: str):
|
|
71
|
+
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"
|
|
@@ -0,0 +1,89 @@
|
|
|
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 .type import type
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class results(Container):
|
|
11
|
+
"""
|
|
12
|
+
Configures output of postprocessing results data.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
syc_name = "Results"
|
|
16
|
+
|
|
17
|
+
child_names = ["type"]
|
|
18
|
+
|
|
19
|
+
type: type = type
|
|
20
|
+
"""
|
|
21
|
+
type child of results.
|
|
22
|
+
"""
|
|
23
|
+
property_names_types = [
|
|
24
|
+
("option", "Option", "str"),
|
|
25
|
+
("include_instances", "IncludeInstances", "str"),
|
|
26
|
+
("output_frequency", "OutputFrequency", "int"),
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
@property
|
|
30
|
+
def option(self) -> str:
|
|
31
|
+
"""Specifies whether and when results files are generated.
|
|
32
|
+
|
|
33
|
+
Allowed values:
|
|
34
|
+
|
|
35
|
+
- \"ProgramControlled\" - Generate postprocessing results at the same
|
|
36
|
+
frequency as restart points, as defined by the output control option
|
|
37
|
+
setting. If no restart frequency is defined, then results are
|
|
38
|
+
generated at the end of the last coupling step.
|
|
39
|
+
|
|
40
|
+
- \"Off\" - Generation of postprocessing results is disabled.
|
|
41
|
+
|
|
42
|
+
Allowed values for step-based analyses:
|
|
43
|
+
|
|
44
|
+
- \"LastStep\" - Generate results only for the last coupling step completed.
|
|
45
|
+
|
|
46
|
+
- \"EveryStep\" - Generate results at the end of every coupling step.
|
|
47
|
+
|
|
48
|
+
- \"StepInterval\" - Generate results at the end of coupling steps at
|
|
49
|
+
the interval specified by the output frequency setting.
|
|
50
|
+
|
|
51
|
+
Allowed values for iteration-based analyses:
|
|
52
|
+
|
|
53
|
+
- \"LastIteration\" - Generate results only for the last coupling
|
|
54
|
+
iteration completed.
|
|
55
|
+
|
|
56
|
+
- \"EveryIteration\" - Generate results at the end of every coupling
|
|
57
|
+
iteration.
|
|
58
|
+
|
|
59
|
+
- \"IterationInterval\" - Generate results at the end of coupling
|
|
60
|
+
iterations at the interval specified by the output frequency setting."""
|
|
61
|
+
return self.get_property_state("option")
|
|
62
|
+
|
|
63
|
+
@option.setter
|
|
64
|
+
def option(self, value: str):
|
|
65
|
+
self.set_property_state("option", value)
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
def include_instances(self) -> str:
|
|
69
|
+
"""Control whether instances are output.
|
|
70
|
+
|
|
71
|
+
Allowed values:
|
|
72
|
+
|
|
73
|
+
- \"ProgramControlled\"
|
|
74
|
+
- \"ReferenceOnly\"
|
|
75
|
+
- \"All\" """
|
|
76
|
+
return self.get_property_state("include_instances")
|
|
77
|
+
|
|
78
|
+
@include_instances.setter
|
|
79
|
+
def include_instances(self, value: str):
|
|
80
|
+
self.set_property_state("include_instances", value)
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def output_frequency(self) -> int:
|
|
84
|
+
"""Specify output frequency."""
|
|
85
|
+
return self.get_property_state("output_frequency")
|
|
86
|
+
|
|
87
|
+
@output_frequency.setter
|
|
88
|
+
def output_frequency(self, value: int):
|
|
89
|
+
self.set_property_state("output_frequency", value)
|
|
@@ -0,0 +1,53 @@
|
|
|
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 save(Command):
|
|
9
|
+
"""
|
|
10
|
+
Saves the state of the coupled analysis data model.
|
|
11
|
+
|
|
12
|
+
-- Analysis settings are written to a single Settings.h5 file which
|
|
13
|
+
can be used to reload analysis settings.
|
|
14
|
+
|
|
15
|
+
-- Restart files for all restart points in the current co-simulation will
|
|
16
|
+
be written when this command is called. Existing restart files from
|
|
17
|
+
previous System Coupling versions will be renamed to conform to the new
|
|
18
|
+
naming scheme.
|
|
19
|
+
|
|
20
|
+
-- Restart files are named according to the convention
|
|
21
|
+
Restart_step#.h5 or Restart_iter#.h5, where "#" is the index of
|
|
22
|
+
the corresponding coupling step or iteration.
|
|
23
|
+
|
|
24
|
+
Returns a Boolean value of 'True' if the files were saved successfully;
|
|
25
|
+
otherwise, returns a value of 'False'.
|
|
26
|
+
|
|
27
|
+
Note that this command will raise an exception if another instance of
|
|
28
|
+
System Coupling is solving in the current working directory.
|
|
29
|
+
|
|
30
|
+
If given optional arguments, then behaves as described below in "Optional
|
|
31
|
+
Keyword Arguments."
|
|
32
|
+
|
|
33
|
+
Parameters
|
|
34
|
+
----------
|
|
35
|
+
file_path : str, optional
|
|
36
|
+
Writeable directory to which the SyC directory is added. (Settings and
|
|
37
|
+
Results.h5 files will be written to the SyC directory.). Ansys does
|
|
38
|
+
not recommend changing the default value of this argument.
|
|
39
|
+
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
syc_name = "Save"
|
|
43
|
+
|
|
44
|
+
argument_names = ["file_path"]
|
|
45
|
+
|
|
46
|
+
class file_path(String):
|
|
47
|
+
"""
|
|
48
|
+
Writeable directory to which the SyC directory is added. (Settings and
|
|
49
|
+
Results.h5 files will be written to the SyC directory.). Ansys does
|
|
50
|
+
not recommend changing the default value of this argument.
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
syc_name = "FilePath"
|