@@ -1005,3 +1005,39 @@ def download_harmonic_clamped_pipe(
10051005
10061006 """
10071007 return _download_file ("harmonic" , "clamped_pipe.rst" , should_upload , server , return_local_path )
1008+
1009+
1010+ def download_modal_cyclic (should_upload : bool = True , server = None , return_local_path = False ) -> str :
1011+ """Download an example result file from a cyclic modal analysis and
1012+ return the download path.
1013+ If the server is remote (or doesn't share memory), the file is uploaded or made available
1014+ on the server side.
1015+
1016+ Examples files are downloaded to a persistent cache to avoid
1017+ re-downloading the same file twice.
1018+
1019+ Parameters
1020+ ----------
1021+ should_upload : bool, optional (default True)
1022+ Whether the file should be uploaded server side when the server is remote.
1023+ server : server.DPFServer, optional
1024+ Server with channel connected to the remote or local instance. When
1025+ ``None``, attempts to use the global server.
1026+ return_local_path: bool, optional
1027+ If ``True``, the local path is returned as is, without uploading, nor searching
1028+ for mounted volumes.
1029+
1030+ Returns
1031+ -------
1032+ str
1033+ Path to the example file.
1034+
1035+ Examples
1036+ --------
1037+ Download an example result file and return the path of the file
1038+
1039+ >>> from ansys.dpf.core import examples
1040+ >>> path = examples.download_modal_cyclic()
1041+
1042+ """
1043+ return _download_file ("cyclic" , "modal_cyclic.rst" , should_upload , server , return_local_path )
0 commit comments