download

MapdlGrpc.download(target_name, out_file_name=None, chunk_size=262144, progress_bar=True)

Download a file from the gRPC instance

Parameters
target_namestr

Target file on the server. File must be in the same directory as the mapdl instance. List current files with mapdl.list_files()

out_file_namestr, optional

Save the filename as a different name other than the target_name.

chunk_sizeint, optional

Chunk size in bytes. Must be less than 4MB. Defaults to 256 kB.

progress_barbool, optional Display a progress bar using

tqdm when True. Helpful for showing download progress.

Examples

Download the remote result file “file.rst” as “my_result.rst”

>>> mapdl.download('file.rst', 'my_result.rst')