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.
- ansys/systemcoupling/core/__init__.py +23 -1
- ansys/systemcoupling/core/_version.py +22 -0
- ansys/systemcoupling/core/adaptor/api_23_1/_add_participant.py +70 -0
- ansys/systemcoupling/core/adaptor/api_23_1/_solve.py +13 -0
- ansys/systemcoupling/core/adaptor/api_23_1/abort.py +39 -0
- ansys/systemcoupling/core/adaptor/api_23_1/activate_hidden.py +46 -0
- ansys/systemcoupling/core/adaptor/api_23_1/add_data_transfer.py +190 -0
- ansys/systemcoupling/core/adaptor/api_23_1/add_data_transfer_by_display_names.py +188 -0
- ansys/systemcoupling/core/adaptor/api_23_1/add_expression_function.py +61 -0
- ansys/systemcoupling/core/adaptor/api_23_1/add_interface.py +75 -0
- ansys/systemcoupling/core/adaptor/api_23_1/add_interface_by_display_names.py +75 -0
- ansys/systemcoupling/core/adaptor/api_23_1/add_named_expression.py +42 -0
- ansys/systemcoupling/core/adaptor/api_23_1/add_participant.py +160 -0
- ansys/systemcoupling/core/adaptor/api_23_1/add_reference_frame.py +40 -0
- ansys/systemcoupling/core/adaptor/api_23_1/add_transformation.py +102 -0
- ansys/systemcoupling/core/adaptor/api_23_1/analysis_control.py +241 -0
- ansys/systemcoupling/core/adaptor/api_23_1/apip.py +33 -0
- ansys/systemcoupling/core/adaptor/api_23_1/ascii_output.py +44 -0
- ansys/systemcoupling/core/adaptor/api_23_1/attribute.py +20 -0
- ansys/systemcoupling/core/adaptor/api_23_1/attribute_child.py +54 -0
- ansys/systemcoupling/core/adaptor/api_23_1/available_ports.py +40 -0
- ansys/systemcoupling/core/adaptor/api_23_1/avoid_data_reconstruction.py +36 -0
- ansys/systemcoupling/core/adaptor/api_23_1/case_root.py +62 -0
- ansys/systemcoupling/core/adaptor/api_23_1/clear_state.py +16 -0
- ansys/systemcoupling/core/adaptor/api_23_1/coupling_interface.py +20 -0
- ansys/systemcoupling/core/adaptor/api_23_1/coupling_interface_child.py +42 -0
- ansys/systemcoupling/core/adaptor/api_23_1/coupling_participant.py +23 -0
- ansys/systemcoupling/core/adaptor/api_23_1/coupling_participant_child.py +173 -0
- ansys/systemcoupling/core/adaptor/api_23_1/create_restart_point.py +29 -0
- ansys/systemcoupling/core/adaptor/api_23_1/data_transfer.py +20 -0
- ansys/systemcoupling/core/adaptor/api_23_1/data_transfer_child.py +187 -0
- ansys/systemcoupling/core/adaptor/api_23_1/delete_snapshot.py +28 -0
- ansys/systemcoupling/core/adaptor/api_23_1/delete_transformation.py +42 -0
- ansys/systemcoupling/core/adaptor/api_23_1/dimensionality.py +96 -0
- ansys/systemcoupling/core/adaptor/api_23_1/execution_control.py +186 -0
- ansys/systemcoupling/core/adaptor/api_23_1/expression.py +20 -0
- ansys/systemcoupling/core/adaptor/api_23_1/expression_child.py +36 -0
- ansys/systemcoupling/core/adaptor/api_23_1/expression_function.py +20 -0
- ansys/systemcoupling/core/adaptor/api_23_1/expression_function_child.py +46 -0
- ansys/systemcoupling/core/adaptor/api_23_1/external_data_file.py +24 -0
- ansys/systemcoupling/core/adaptor/api_23_1/fluent_input.py +67 -0
- ansys/systemcoupling/core/adaptor/api_23_1/fmu_parameter.py +20 -0
- ansys/systemcoupling/core/adaptor/api_23_1/fmu_parameter_child.py +126 -0
- ansys/systemcoupling/core/adaptor/api_23_1/generate_input_file.py +41 -0
- ansys/systemcoupling/core/adaptor/api_23_1/get_execution_command.py +30 -0
- ansys/systemcoupling/core/adaptor/api_23_1/get_machines.py +13 -0
- ansys/systemcoupling/core/adaptor/api_23_1/get_region_names_for_participant.py +31 -0
- ansys/systemcoupling/core/adaptor/api_23_1/get_setup_summary.py +25 -0
- ansys/systemcoupling/core/adaptor/api_23_1/get_status_messages.py +52 -0
- ansys/systemcoupling/core/adaptor/api_23_1/global_stabilization.py +143 -0
- ansys/systemcoupling/core/adaptor/api_23_1/has_input_file_changed.py +36 -0
- ansys/systemcoupling/core/adaptor/api_23_1/import_system_coupling_input_file.py +36 -0
- ansys/systemcoupling/core/adaptor/api_23_1/initialize.py +27 -0
- ansys/systemcoupling/core/adaptor/api_23_1/instancing.py +23 -0
- ansys/systemcoupling/core/adaptor/api_23_1/instancing_child.py +62 -0
- ansys/systemcoupling/core/adaptor/api_23_1/interrupt.py +39 -0
- ansys/systemcoupling/core/adaptor/api_23_1/library.py +37 -0
- ansys/systemcoupling/core/adaptor/api_23_1/mapping_control.py +229 -0
- ansys/systemcoupling/core/adaptor/api_23_1/open.py +102 -0
- ansys/systemcoupling/core/adaptor/{api_24_1/open_results_in_en_sight.py → api_23_1/open_results_in_ensight.py} +1 -29
- ansys/systemcoupling/core/adaptor/api_23_1/open_snapshot.py +37 -0
- ansys/systemcoupling/core/adaptor/api_23_1/output_control.py +129 -0
- ansys/systemcoupling/core/adaptor/api_23_1/partition_participants.py +138 -0
- ansys/systemcoupling/core/adaptor/api_23_1/reference_frame.py +20 -0
- ansys/systemcoupling/core/adaptor/api_23_1/reference_frame_child.py +71 -0
- ansys/systemcoupling/core/adaptor/api_23_1/region.py +20 -0
- ansys/systemcoupling/core/adaptor/api_23_1/region_child.py +72 -0
- ansys/systemcoupling/core/adaptor/api_23_1/reload_expression_function_modules.py +14 -0
- ansys/systemcoupling/core/adaptor/api_23_1/results.py +89 -0
- ansys/systemcoupling/core/adaptor/api_23_1/save.py +51 -0
- ansys/systemcoupling/core/adaptor/api_23_1/save_snapshot.py +54 -0
- ansys/systemcoupling/core/adaptor/api_23_1/setup_root.py +195 -0
- ansys/systemcoupling/core/adaptor/api_23_1/shutdown.py +25 -0
- ansys/systemcoupling/core/adaptor/api_23_1/side.py +20 -0
- ansys/systemcoupling/core/adaptor/api_23_1/side_child.py +56 -0
- ansys/systemcoupling/core/adaptor/api_23_1/solution_control.py +91 -0
- ansys/systemcoupling/core/adaptor/api_23_1/solution_root.py +104 -0
- ansys/systemcoupling/core/adaptor/api_23_1/solve.py +30 -0
- ansys/systemcoupling/core/adaptor/api_23_1/stabilization.py +157 -0
- ansys/systemcoupling/core/adaptor/api_23_1/start_participants.py +47 -0
- ansys/systemcoupling/core/adaptor/api_23_1/step.py +57 -0
- ansys/systemcoupling/core/adaptor/api_23_1/transformation.py +21 -0
- ansys/systemcoupling/core/adaptor/api_23_1/transformation_child.py +62 -0
- ansys/systemcoupling/core/adaptor/api_23_1/type.py +38 -0
- ansys/systemcoupling/core/adaptor/api_23_1/unmapped_value_options.py +158 -0
- ansys/systemcoupling/core/adaptor/api_23_1/update_control.py +44 -0
- ansys/systemcoupling/core/adaptor/api_23_1/update_participant.py +61 -0
- ansys/systemcoupling/core/adaptor/api_23_1/variable.py +20 -0
- ansys/systemcoupling/core/adaptor/api_23_1/variable_child.py +201 -0
- ansys/systemcoupling/core/adaptor/api_23_1/write_csv_chart_files.py +21 -0
- ansys/systemcoupling/core/adaptor/api_23_1/write_ensight.py +46 -0
- ansys/systemcoupling/core/adaptor/api_24_1/add_aerodamping_data_transfers.py +43 -0
- ansys/systemcoupling/core/adaptor/api_24_1/add_fsi_data_transfers.py +32 -0
- ansys/systemcoupling/core/adaptor/api_24_1/add_ordered_data_transfers.py +32 -0
- ansys/systemcoupling/core/adaptor/api_24_1/add_thermal_data_transfers.py +43 -0
- ansys/systemcoupling/core/adaptor/api_24_1/analysis_control.py +34 -0
- ansys/systemcoupling/core/adaptor/api_24_1/case_root.py +1 -7
- ansys/systemcoupling/core/adaptor/api_24_1/coupling_participant_child.py +26 -0
- ansys/systemcoupling/core/adaptor/api_24_1/execution_control.py +11 -1
- ansys/systemcoupling/core/adaptor/api_24_1/get_add_data_transfer_group_commands.py +29 -0
- ansys/systemcoupling/core/adaptor/api_24_1/get_mode_shape_variables.py +29 -0
- ansys/systemcoupling/core/adaptor/api_24_1/get_thermal_data_transfer_options.py +32 -0
- ansys/systemcoupling/core/adaptor/api_24_1/mapping_control.py +10 -0
- ansys/systemcoupling/core/adaptor/api_24_1/open_results_in_ensight.py +28 -0
- ansys/systemcoupling/core/adaptor/api_24_1/parameter_child.py +0 -8
- ansys/systemcoupling/core/adaptor/api_24_1/record_interactions.py +36 -0
- ansys/systemcoupling/core/adaptor/api_24_1/setup_root.py +49 -1
- ansys/systemcoupling/core/adaptor/api_24_1/solution_control.py +12 -0
- ansys/systemcoupling/core/adaptor/api_24_1/solution_root.py +5 -5
- ansys/systemcoupling/core/adaptor/api_24_1/variable_child.py +1 -2
- ansys/systemcoupling/core/adaptor/impl/get_status_messages.py +22 -0
- ansys/systemcoupling/core/adaptor/impl/get_syc_version.py +26 -2
- ansys/systemcoupling/core/adaptor/impl/injected_commands.py +29 -0
- ansys/systemcoupling/core/adaptor/impl/root_source.py +22 -1
- ansys/systemcoupling/core/adaptor/impl/static_info.py +22 -0
- ansys/systemcoupling/core/adaptor/impl/syc_proxy.py +22 -0
- ansys/systemcoupling/core/adaptor/impl/syc_proxy_interface.py +22 -0
- ansys/systemcoupling/core/adaptor/impl/types.py +23 -0
- ansys/systemcoupling/core/client/grpc_client.py +22 -0
- ansys/systemcoupling/core/client/services/command_query.py +22 -0
- ansys/systemcoupling/core/client/services/output_stream.py +22 -0
- ansys/systemcoupling/core/client/services/process.py +22 -0
- ansys/systemcoupling/core/client/services/solution.py +22 -0
- ansys/systemcoupling/core/client/syc_container.py +22 -0
- ansys/systemcoupling/core/client/syc_process.py +22 -0
- ansys/systemcoupling/core/client/variant.py +22 -0
- ansys/systemcoupling/core/examples/__init__.py +22 -0
- ansys/systemcoupling/core/examples/downloads.py +23 -0
- ansys/systemcoupling/core/native_api/__init__.py +22 -0
- ansys/systemcoupling/core/native_api/command_metadata.py +23 -0
- ansys/systemcoupling/core/native_api/datamodel_metadata.py +22 -0
- ansys/systemcoupling/core/native_api/meta_wrapper.py +23 -0
- ansys/systemcoupling/core/native_api/native_api.py +22 -0
- ansys/systemcoupling/core/native_api/object_path.py +22 -0
- ansys/systemcoupling/core/participant/manager.py +22 -0
- ansys/systemcoupling/core/participant/mapdl.py +298 -0
- ansys/systemcoupling/core/participant/protocol.py +22 -0
- ansys/systemcoupling/core/session.py +22 -0
- ansys/systemcoupling/core/syc_version.py +22 -0
- ansys/systemcoupling/core/util/logging.py +22 -0
- ansys/systemcoupling/core/util/name_util.py +22 -0
- ansys/systemcoupling/core/util/pathstr.py +23 -1
- ansys/systemcoupling/core/util/state_keys.py +22 -0
- ansys/systemcoupling/core/util/yaml_helper.py +22 -0
- {ansys_systemcoupling_core-0.3.0.dist-info → ansys_systemcoupling_core-0.4.dev0.dist-info}/METADATA +19 -18
- {ansys_systemcoupling_core-0.3.0.dist-info → ansys_systemcoupling_core-0.4.dev0.dist-info}/RECORD +149 -52
- /ansys/systemcoupling/core/adaptor/{api_24_1 → api_23_1}/get_snapshots.py +0 -0
- {ansys_systemcoupling_core-0.3.0.dist-info → ansys_systemcoupling_core-0.4.dev0.dist-info}/LICENSE +0 -0
- {ansys_systemcoupling_core-0.3.0.dist-info → ansys_systemcoupling_core-0.4.dev0.dist-info}/WHEEL +0 -0
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
"""Local implementation of the System Coupling ``GetErrors`` command, to be injected
|
|
2
24
|
into the ``setup`` hierarchy.
|
|
3
25
|
"""
|
|
@@ -1,4 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
23
|
+
# This is the version we assume if no GetVersion query is available from
|
|
24
|
+
# the SyC server.
|
|
25
|
+
_FALLBACK_VERSION = "23.1"
|
|
2
26
|
|
|
3
27
|
|
|
4
28
|
def get_syc_version(api) -> str:
|
|
@@ -32,4 +56,4 @@ def get_syc_version(api) -> str:
|
|
|
32
56
|
|
|
33
57
|
cmds = api.GetCommandAndQueryMetadata()
|
|
34
58
|
exists = any(cmd["name"] == "GetVersion" for cmd in cmds)
|
|
35
|
-
return clean_version_string(api.GetVersion()) if exists else
|
|
59
|
+
return clean_version_string(api.GetVersion()) if exists else _FALLBACK_VERSION
|
|
@@ -1,7 +1,30 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from copy import deepcopy
|
|
2
24
|
from typing import Callable, Dict
|
|
3
25
|
|
|
4
26
|
from ansys.systemcoupling.core.participant.manager import ParticipantManager
|
|
27
|
+
from ansys.systemcoupling.core.participant.mapdl import MapdlSystemCouplingInterface
|
|
5
28
|
from ansys.systemcoupling.core.syc_version import compare_versions
|
|
6
29
|
from ansys.systemcoupling.core.util.yaml_helper import yaml_load_from_string
|
|
7
30
|
|
|
@@ -61,6 +84,12 @@ def _wrap_add_participant(
|
|
|
61
84
|
"support this form of 'add_participant'. Minimum version is '24.1'."
|
|
62
85
|
)
|
|
63
86
|
|
|
87
|
+
# special handling for mapdl session
|
|
88
|
+
if "ansys.mapdl.core.mapdl_grpc.MapdlGrpc" in str(type(session)):
|
|
89
|
+
return part_mgr.add_participant(
|
|
90
|
+
participant_session=MapdlSystemCouplingInterface(session)
|
|
91
|
+
)
|
|
92
|
+
|
|
64
93
|
if not hasattr(session, "system_coupling"):
|
|
65
94
|
raise RuntimeError(
|
|
66
95
|
"The 'participant_session' parameter does not provide a "
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
"""Source of adaptor API "root" classes and related functionality.
|
|
2
24
|
|
|
3
25
|
At runtime, the key function provided here is ``get_root``. This
|
|
@@ -21,7 +43,6 @@ pre-generated classes, runtime classes that are consistent with the System Coupl
|
|
|
21
43
|
server are constructed and returned.
|
|
22
44
|
"""
|
|
23
45
|
|
|
24
|
-
|
|
25
46
|
import hashlib
|
|
26
47
|
import importlib
|
|
27
48
|
import json
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from copy import deepcopy
|
|
2
24
|
from typing import Dict, List, Tuple
|
|
3
25
|
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from ansys.systemcoupling.core.adaptor.impl.get_syc_version import get_syc_version
|
|
2
24
|
from ansys.systemcoupling.core.adaptor.impl.static_info import (
|
|
3
25
|
get_dm_metadata,
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from abc import ABC, abstractmethod
|
|
2
24
|
|
|
3
25
|
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
"""
|
|
2
24
|
Implementation types for the System Coupling adaptor API.
|
|
3
25
|
|
|
@@ -23,6 +45,7 @@ setup.solution_control.time_step_size = "0.1 [s]"
|
|
|
23
45
|
setup.solution_control.print_state()
|
|
24
46
|
assert setup.solution_control.time_step_size == "0.1 [s]"
|
|
25
47
|
"""
|
|
48
|
+
|
|
26
49
|
import collections
|
|
27
50
|
import keyword
|
|
28
51
|
import sys
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
import atexit
|
|
2
24
|
import itertools
|
|
3
25
|
import json
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
import ansys.api.systemcoupling.v0.command_pb2_grpc as command_pb2_grpc
|
|
2
24
|
import ansys.api.systemcoupling.v0.error_pb2 as syc_error_pb2
|
|
3
25
|
import grpc
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
import ansys.api.systemcoupling.v0.output_stream_pb2 as output_stream_pb2
|
|
2
24
|
import ansys.api.systemcoupling.v0.output_stream_pb2_grpc as output_stream_pb2_grpc
|
|
3
25
|
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
import ansys.api.systemcoupling.v0.process_pb2 as sycprocess_pb2
|
|
2
24
|
import ansys.api.systemcoupling.v0.process_pb2_grpc as sycprocess_pb2_grpc
|
|
3
25
|
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
import ansys.api.systemcoupling.v0.error_pb2 as syc_error_pb2
|
|
2
24
|
import ansys.api.systemcoupling.v0.solution_pb2 as solution_pb2
|
|
3
25
|
import ansys.api.systemcoupling.v0.solution_pb2_grpc as solution_pb2_grpc
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
import os
|
|
2
24
|
from pathlib import Path
|
|
3
25
|
import subprocess
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from copy import deepcopy
|
|
2
24
|
import os
|
|
3
25
|
import platform
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from ansys.api.systemcoupling.v0 import variant_pb2
|
|
2
24
|
|
|
3
25
|
# See to_variant() for use of this
|
|
@@ -1 +1,23 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from .downloads import delete_downloads, download_file # noqa: F401
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
"""Functions to download sample datasets from the PyAnsys data repository.
|
|
2
24
|
|
|
3
25
|
Examples
|
|
@@ -8,6 +30,7 @@ Examples
|
|
|
8
30
|
>>> filename
|
|
9
31
|
'/home/user/.local/share/ansys_systemcoupling_core/examples/mapdl.scp'
|
|
10
32
|
"""
|
|
33
|
+
|
|
11
34
|
import os
|
|
12
35
|
import shutil
|
|
13
36
|
from typing import Optional
|
|
@@ -1 +1,23 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from .native_api import NativeApi
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
23
|
+
|
|
1
24
|
def _is_objpath_cmd(info):
|
|
2
25
|
return any(arg == "ObjectPath" for arg, _ in info["args"])
|
|
3
26
|
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from ansys.systemcoupling.core.util.pathstr import to_typelist
|
|
2
24
|
|
|
3
25
|
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
23
|
+
|
|
1
24
|
class MetaWrapper:
|
|
2
25
|
def __init__(self, dm_meta, cmd_meta):
|
|
3
26
|
self.__dm_meta = dm_meta
|