ansys-systemcoupling-core 0.5.0__py3-none-any.whl → 0.6__py3-none-any.whl

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

Potentially problematic release.


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

Files changed (33) hide show
  1. ansys/systemcoupling/core/__init__.py +11 -5
  2. ansys/systemcoupling/core/adaptor/api_23_1/show_plot.py +75 -0
  3. ansys/systemcoupling/core/adaptor/api_23_1/solution_root.py +7 -1
  4. ansys/systemcoupling/core/adaptor/api_23_2/show_plot.py +75 -0
  5. ansys/systemcoupling/core/adaptor/api_23_2/solution_root.py +7 -1
  6. ansys/systemcoupling/core/adaptor/api_24_1/show_plot.py +75 -0
  7. ansys/systemcoupling/core/adaptor/api_24_1/solution_root.py +7 -1
  8. ansys/systemcoupling/core/adaptor/api_24_2/add_participant.py +4 -4
  9. ansys/systemcoupling/core/adaptor/api_24_2/setup_root.py +1 -1
  10. ansys/systemcoupling/core/adaptor/api_24_2/show_plot.py +75 -0
  11. ansys/systemcoupling/core/adaptor/api_24_2/solution_root.py +7 -1
  12. ansys/systemcoupling/core/adaptor/impl/injected_commands.py +215 -32
  13. ansys/systemcoupling/core/adaptor/impl/static_info.py +17 -0
  14. ansys/systemcoupling/core/adaptor/impl/syc_proxy.py +3 -0
  15. ansys/systemcoupling/core/adaptor/impl/syc_proxy_interface.py +4 -0
  16. ansys/systemcoupling/core/adaptor/impl/types.py +1 -1
  17. ansys/systemcoupling/core/charts/chart_datatypes.py +169 -0
  18. ansys/systemcoupling/core/charts/csv_chartdata.py +299 -0
  19. ansys/systemcoupling/core/charts/live_csv_datasource.py +87 -0
  20. ansys/systemcoupling/core/charts/message_dispatcher.py +84 -0
  21. ansys/systemcoupling/core/charts/plot_functions.py +92 -0
  22. ansys/systemcoupling/core/charts/plotdefinition_manager.py +303 -0
  23. ansys/systemcoupling/core/charts/plotter.py +343 -0
  24. ansys/systemcoupling/core/client/grpc_client.py +6 -1
  25. ansys/systemcoupling/core/participant/manager.py +25 -9
  26. ansys/systemcoupling/core/participant/protocol.py +1 -0
  27. ansys/systemcoupling/core/session.py +4 -4
  28. ansys/systemcoupling/core/syc_version.py +1 -1
  29. ansys/systemcoupling/core/util/file_transfer.py +4 -0
  30. {ansys_systemcoupling_core-0.5.0.dist-info → ansys_systemcoupling_core-0.6.dist-info}/METADATA +11 -10
  31. {ansys_systemcoupling_core-0.5.0.dist-info → ansys_systemcoupling_core-0.6.dist-info}/RECORD +33 -22
  32. {ansys_systemcoupling_core-0.5.0.dist-info → ansys_systemcoupling_core-0.6.dist-info}/LICENSE +0 -0
  33. {ansys_systemcoupling_core-0.5.0.dist-info → ansys_systemcoupling_core-0.6.dist-info}/WHEEL +0 -0
@@ -46,6 +46,7 @@ def launch(
46
46
  nprocs: int = None,
47
47
  sycnprocs: int = None,
48
48
  version: str = None,
49
+ start_output: bool = False,
49
50
  extra_args: List[str] = [],
50
51
  ) -> Session:
51
52
  """Start a local instance of System Coupling and connect to it.
@@ -67,13 +68,17 @@ def launch(
67
68
  ``None``, in which case the System Coupling server uses its own default.
68
69
  version : str, optional
69
70
  String specifying the version of System Coupling to use. For example,
70
- to use System Coupling from the Ansys "2023 R1" release, specify ``"231"``.
71
- (The forms ``"23.1"`` and ``"23_1"`` are also acceptable.)
71
+ to use System Coupling from the Ansys "2024 R1" release, specify ``"241"``.
72
+ (The forms ``"24.1"`` and ``"24_1"`` are also acceptable.)
72
73
  The version will be sought in the standard installation location. The
73
74
  default is ``None``, which is equivalent to specifying
74
- ``"241"`` ("2024 R1" release), unless either of the environment
75
+ ``"242"`` ("2024 R2" release), unless either of the environment
75
76
  variables ``SYSC_ROOT`` or ``AWP_ROOT`` has been set. It is considered
76
77
  to be an error if either these is set *and* ``version`` is provided.
78
+ start_output: bool, optional
79
+ Boolean to specify if the user wants to stream system coupling output.
80
+ The default is ``False``, in which case the output stream is kept hidden.
81
+ If ``True``, the output information is printed to standard output.
77
82
  extra_args : List[str]
78
83
  List of any additional arguments to specify when the server
79
84
  process is launched. The default is ``[]``. If a list of additional
@@ -92,9 +97,9 @@ def launch(
92
97
  if pypim.is_configured():
93
98
  LOG.info(
94
99
  "Starting System Coupling remotely. Any launch arguments other "
95
- "than 'version' are ignored."
100
+ "than 'version' and 'start_output' are ignored."
96
101
  )
97
- rpc.start_pim_and_connect(version)
102
+ rpc.start_pim_and_connect(version, start_output)
98
103
  else:
99
104
  rpc.start_and_connect(
100
105
  port=port,
@@ -102,6 +107,7 @@ def launch(
102
107
  nprocs=nprocs,
103
108
  sycnprocs=sycnprocs,
104
109
  version=version,
110
+ start_output=start_output,
105
111
  extra_args=extra_args,
106
112
  )
107
113
  return Session(rpc)
@@ -0,0 +1,75 @@
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 show_plot(InjectedCommand):
9
+ """
10
+ Shows plots of transfer values and convergence for data transfers
11
+ of a coupling interface.
12
+
13
+ Parameters
14
+ ----------
15
+ interface_name : str
16
+ Specification of which interface to plot.
17
+ transfer_names : typing.List[str], optional
18
+ Specification of which data transfers to plot. Defaults
19
+ to ``None``, which means plot all data transfers.
20
+ working_dir : str, optional
21
+ Working directory (defaults = ".").
22
+ show_convergence : bool, optional
23
+ Whether to show convergence plots (defaults to ``True``).
24
+ show_transfer_values : bool, optional
25
+ Whether to show transfer value plots (defaults to ``True``).
26
+
27
+ """
28
+
29
+ syc_name = "show_plot"
30
+
31
+ cmd_name = "show_plot"
32
+
33
+ argument_names = [
34
+ "interface_name",
35
+ "transfer_names",
36
+ "working_dir",
37
+ "show_convergence",
38
+ "show_transfer_values",
39
+ ]
40
+
41
+ class interface_name(String):
42
+ """
43
+ Specification of which interface to plot.
44
+ """
45
+
46
+ syc_name = "interface_name"
47
+
48
+ class transfer_names(StringList):
49
+ """
50
+ Specification of which data transfers to plot. Defaults
51
+ to ``None``, which means plot all data transfers.
52
+ """
53
+
54
+ syc_name = "transfer_names"
55
+
56
+ class working_dir(String):
57
+ """
58
+ Working directory (defaults = ".").
59
+ """
60
+
61
+ syc_name = "working_dir"
62
+
63
+ class show_convergence(Boolean):
64
+ """
65
+ Whether to show convergence plots (defaults to ``True``).
66
+ """
67
+
68
+ syc_name = "show_convergence"
69
+
70
+ class show_transfer_values(Boolean):
71
+ """
72
+ Whether to show transfer value plots (defaults to ``True``).
73
+ """
74
+
75
+ syc_name = "show_transfer_values"
@@ -2,7 +2,7 @@
2
2
  # This is an auto-generated file. DO NOT EDIT!
3
3
  #
4
4
 
5
- SHASH = "54b4aa678f0aea8cebeca86bcd71b2877e846e53079c2bf52974d5e039ed3719"
5
+ SHASH = "2774672445bd1c461a14acd1d3f26dcc93710777fea4556f16e3a79c35e271c9"
6
6
 
7
7
  from ansys.systemcoupling.core.adaptor.impl.types import *
8
8
 
@@ -14,6 +14,7 @@ from .initialize import initialize
14
14
  from .interrupt import interrupt
15
15
  from .open_results_in_ensight import open_results_in_ensight
16
16
  from .partition_participants import partition_participants
17
+ from .show_plot import show_plot
17
18
  from .shutdown import shutdown
18
19
  from .solve import solve
19
20
  from .start_participants import start_participants
@@ -38,6 +39,7 @@ class solution_root(Container):
38
39
  "interrupt",
39
40
  "open_results_in_ensight",
40
41
  "partition_participants",
42
+ "show_plot",
41
43
  "shutdown",
42
44
  "solve",
43
45
  "start_participants",
@@ -78,6 +80,10 @@ class solution_root(Container):
78
80
  """
79
81
  partition_participants command of solution_root.
80
82
  """
83
+ show_plot: show_plot = show_plot
84
+ """
85
+ show_plot command of solution_root.
86
+ """
81
87
  shutdown: shutdown = shutdown
82
88
  """
83
89
  shutdown command of solution_root.
@@ -0,0 +1,75 @@
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 show_plot(InjectedCommand):
9
+ """
10
+ Shows plots of transfer values and convergence for data transfers
11
+ of a coupling interface.
12
+
13
+ Parameters
14
+ ----------
15
+ interface_name : str
16
+ Specification of which interface to plot.
17
+ transfer_names : typing.List[str], optional
18
+ Specification of which data transfers to plot. Defaults
19
+ to ``None``, which means plot all data transfers.
20
+ working_dir : str, optional
21
+ Working directory (defaults = ".").
22
+ show_convergence : bool, optional
23
+ Whether to show convergence plots (defaults to ``True``).
24
+ show_transfer_values : bool, optional
25
+ Whether to show transfer value plots (defaults to ``True``).
26
+
27
+ """
28
+
29
+ syc_name = "show_plot"
30
+
31
+ cmd_name = "show_plot"
32
+
33
+ argument_names = [
34
+ "interface_name",
35
+ "transfer_names",
36
+ "working_dir",
37
+ "show_convergence",
38
+ "show_transfer_values",
39
+ ]
40
+
41
+ class interface_name(String):
42
+ """
43
+ Specification of which interface to plot.
44
+ """
45
+
46
+ syc_name = "interface_name"
47
+
48
+ class transfer_names(StringList):
49
+ """
50
+ Specification of which data transfers to plot. Defaults
51
+ to ``None``, which means plot all data transfers.
52
+ """
53
+
54
+ syc_name = "transfer_names"
55
+
56
+ class working_dir(String):
57
+ """
58
+ Working directory (defaults = ".").
59
+ """
60
+
61
+ syc_name = "working_dir"
62
+
63
+ class show_convergence(Boolean):
64
+ """
65
+ Whether to show convergence plots (defaults to ``True``).
66
+ """
67
+
68
+ syc_name = "show_convergence"
69
+
70
+ class show_transfer_values(Boolean):
71
+ """
72
+ Whether to show transfer value plots (defaults to ``True``).
73
+ """
74
+
75
+ syc_name = "show_transfer_values"
@@ -2,7 +2,7 @@
2
2
  # This is an auto-generated file. DO NOT EDIT!
3
3
  #
4
4
 
5
- SHASH = "9d14945e18aa7dc6f7ad86397c62f0ceb910440e6ac3753ce8a1d0d2f91b84f5"
5
+ SHASH = "a713a451f17d724fabb76832c57ba91cb2d9a7426f9cd3be60bb1a03197d351a"
6
6
 
7
7
  from ansys.systemcoupling.core.adaptor.impl.types import *
8
8
 
@@ -15,6 +15,7 @@ from .initialize import initialize
15
15
  from .interrupt import interrupt
16
16
  from .open_results_in_en_sight import open_results_in_en_sight
17
17
  from .partition_participants import partition_participants
18
+ from .show_plot import show_plot
18
19
  from .shutdown import shutdown
19
20
  from .solve import solve
20
21
  from .start_participants import start_participants
@@ -40,6 +41,7 @@ class solution_root(Container):
40
41
  "interrupt",
41
42
  "open_results_in_en_sight",
42
43
  "partition_participants",
44
+ "show_plot",
43
45
  "shutdown",
44
46
  "solve",
45
47
  "start_participants",
@@ -84,6 +86,10 @@ class solution_root(Container):
84
86
  """
85
87
  partition_participants command of solution_root.
86
88
  """
89
+ show_plot: show_plot = show_plot
90
+ """
91
+ show_plot command of solution_root.
92
+ """
87
93
  shutdown: shutdown = shutdown
88
94
  """
89
95
  shutdown command of solution_root.
@@ -0,0 +1,75 @@
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 show_plot(InjectedCommand):
9
+ """
10
+ Shows plots of transfer values and convergence for data transfers
11
+ of a coupling interface.
12
+
13
+ Parameters
14
+ ----------
15
+ interface_name : str
16
+ Specification of which interface to plot.
17
+ transfer_names : typing.List[str], optional
18
+ Specification of which data transfers to plot. Defaults
19
+ to ``None``, which means plot all data transfers.
20
+ working_dir : str, optional
21
+ Working directory (defaults = ".").
22
+ show_convergence : bool, optional
23
+ Whether to show convergence plots (defaults to ``True``).
24
+ show_transfer_values : bool, optional
25
+ Whether to show transfer value plots (defaults to ``True``).
26
+
27
+ """
28
+
29
+ syc_name = "show_plot"
30
+
31
+ cmd_name = "show_plot"
32
+
33
+ argument_names = [
34
+ "interface_name",
35
+ "transfer_names",
36
+ "working_dir",
37
+ "show_convergence",
38
+ "show_transfer_values",
39
+ ]
40
+
41
+ class interface_name(String):
42
+ """
43
+ Specification of which interface to plot.
44
+ """
45
+
46
+ syc_name = "interface_name"
47
+
48
+ class transfer_names(StringList):
49
+ """
50
+ Specification of which data transfers to plot. Defaults
51
+ to ``None``, which means plot all data transfers.
52
+ """
53
+
54
+ syc_name = "transfer_names"
55
+
56
+ class working_dir(String):
57
+ """
58
+ Working directory (defaults = ".").
59
+ """
60
+
61
+ syc_name = "working_dir"
62
+
63
+ class show_convergence(Boolean):
64
+ """
65
+ Whether to show convergence plots (defaults to ``True``).
66
+ """
67
+
68
+ syc_name = "show_convergence"
69
+
70
+ class show_transfer_values(Boolean):
71
+ """
72
+ Whether to show transfer value plots (defaults to ``True``).
73
+ """
74
+
75
+ syc_name = "show_transfer_values"
@@ -2,7 +2,7 @@
2
2
  # This is an auto-generated file. DO NOT EDIT!
3
3
  #
4
4
 
5
- SHASH = "92304eda8d03ebade30fb915bf1f0ab24f3d545b0d394f9d2ab9674b4bfd27fd"
5
+ SHASH = "88f74a7fd899f469e2b44e28e2840af9f018c6891645f7974ecf900003b1c542"
6
6
 
7
7
  from ansys.systemcoupling.core.adaptor.impl.types import *
8
8
 
@@ -15,6 +15,7 @@ from .initialize import initialize
15
15
  from .interrupt import interrupt
16
16
  from .open_results_in_ensight import open_results_in_ensight
17
17
  from .partition_participants import partition_participants
18
+ from .show_plot import show_plot
18
19
  from .shutdown import shutdown
19
20
  from .solve import solve
20
21
  from .start_participants import start_participants
@@ -40,6 +41,7 @@ class solution_root(Container):
40
41
  "interrupt",
41
42
  "open_results_in_ensight",
42
43
  "partition_participants",
44
+ "show_plot",
43
45
  "shutdown",
44
46
  "solve",
45
47
  "start_participants",
@@ -84,6 +86,10 @@ class solution_root(Container):
84
86
  """
85
87
  partition_participants command of solution_root.
86
88
  """
89
+ show_plot: show_plot = show_plot
90
+ """
91
+ show_plot command of solution_root.
92
+ """
87
93
  shutdown: shutdown = shutdown
88
94
  """
89
95
  shutdown command of solution_root.
@@ -76,8 +76,8 @@ class add_participant(InjectedCommand):
76
76
  input_file : str, optional
77
77
  Name of the input file for the participant to be added.
78
78
  Currently supported formats are SCP files, Forte input (FTSIM)
79
- files, mechanical server (*.rst) files, cfd server (*.csv) files,
80
- FMU (.fmu) files, and System Coupling data server (*.scdt/axdt/csv) files.
79
+ files, mechanical server (\*.rst) files, cfd server (\*.csv) files,
80
+ FMU (.fmu) files, and System Coupling data server (\*.scdt/axdt/csv) files.
81
81
  executable : str, optional
82
82
  Path to the executable file for the participant to be added.
83
83
  additional_arguments : str, optional
@@ -125,8 +125,8 @@ class add_participant(InjectedCommand):
125
125
  """
126
126
  Name of the input file for the participant to be added.
127
127
  Currently supported formats are SCP files, Forte input (FTSIM)
128
- files, mechanical server (*.rst) files, cfd server (*.csv) files,
129
- FMU (.fmu) files, and System Coupling data server (*.scdt/axdt/csv) files.
128
+ files, mechanical server (\*.rst) files, cfd server (\*.csv) files,
129
+ FMU (.fmu) files, and System Coupling data server (\*.scdt/axdt/csv) files.
130
130
  """
131
131
 
132
132
  syc_name = "InputFile"
@@ -2,7 +2,7 @@
2
2
  # This is an auto-generated file. DO NOT EDIT!
3
3
  #
4
4
 
5
- SHASH = "a8ff788a5c0dda078abf7f1cdd77210d449dc6fa3d5725cab1c3c9067c5062bf"
5
+ SHASH = "7e0e773274d2f0764aec24ce6e3fd38325273307e69773b731adcd546ec36d63"
6
6
 
7
7
  from ansys.systemcoupling.core.adaptor.impl.types import *
8
8
 
@@ -0,0 +1,75 @@
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 show_plot(InjectedCommand):
9
+ """
10
+ Shows plots of transfer values and convergence for data transfers
11
+ of a coupling interface.
12
+
13
+ Parameters
14
+ ----------
15
+ interface_name : str
16
+ Specification of which interface to plot.
17
+ transfer_names : typing.List[str], optional
18
+ Specification of which data transfers to plot. Defaults
19
+ to ``None``, which means plot all data transfers.
20
+ working_dir : str, optional
21
+ Working directory (defaults = ".").
22
+ show_convergence : bool, optional
23
+ Whether to show convergence plots (defaults to ``True``).
24
+ show_transfer_values : bool, optional
25
+ Whether to show transfer value plots (defaults to ``True``).
26
+
27
+ """
28
+
29
+ syc_name = "show_plot"
30
+
31
+ cmd_name = "show_plot"
32
+
33
+ argument_names = [
34
+ "interface_name",
35
+ "transfer_names",
36
+ "working_dir",
37
+ "show_convergence",
38
+ "show_transfer_values",
39
+ ]
40
+
41
+ class interface_name(String):
42
+ """
43
+ Specification of which interface to plot.
44
+ """
45
+
46
+ syc_name = "interface_name"
47
+
48
+ class transfer_names(StringList):
49
+ """
50
+ Specification of which data transfers to plot. Defaults
51
+ to ``None``, which means plot all data transfers.
52
+ """
53
+
54
+ syc_name = "transfer_names"
55
+
56
+ class working_dir(String):
57
+ """
58
+ Working directory (defaults = ".").
59
+ """
60
+
61
+ syc_name = "working_dir"
62
+
63
+ class show_convergence(Boolean):
64
+ """
65
+ Whether to show convergence plots (defaults to ``True``).
66
+ """
67
+
68
+ syc_name = "show_convergence"
69
+
70
+ class show_transfer_values(Boolean):
71
+ """
72
+ Whether to show transfer value plots (defaults to ``True``).
73
+ """
74
+
75
+ syc_name = "show_transfer_values"
@@ -2,7 +2,7 @@
2
2
  # This is an auto-generated file. DO NOT EDIT!
3
3
  #
4
4
 
5
- SHASH = "b8e209ea9aecf13d907bdc4c075b64063c908fff4ef44ebaac826714ccff8547"
5
+ SHASH = "0987c9ed416b22e5d86458a81cba5c65a60eb6e6a32fb2f856bf7464f995ed36"
6
6
 
7
7
  from ansys.systemcoupling.core.adaptor.impl.types import *
8
8
 
@@ -16,6 +16,7 @@ from .initialize import initialize
16
16
  from .interrupt import interrupt
17
17
  from .open_results_in_ensight import open_results_in_ensight
18
18
  from .partition_participants import partition_participants
19
+ from .show_plot import show_plot
19
20
  from .shutdown import shutdown
20
21
  from .solve import solve
21
22
  from .start_participants import start_participants
@@ -42,6 +43,7 @@ class solution_root(Container):
42
43
  "interrupt",
43
44
  "open_results_in_ensight",
44
45
  "partition_participants",
46
+ "show_plot",
45
47
  "shutdown",
46
48
  "solve",
47
49
  "start_participants",
@@ -90,6 +92,10 @@ class solution_root(Container):
90
92
  """
91
93
  partition_participants command of solution_root.
92
94
  """
95
+ show_plot: show_plot = show_plot
96
+ """
97
+ show_plot command of solution_root.
98
+ """
93
99
  shutdown: shutdown = shutdown
94
100
  """
95
101
  shutdown command of solution_root.