upload¶
- MapdlGrpc.upload(file_name, progress_bar=True)¶
Upload a file to the grpc instance
- file_namestr
Local file to upload.
- progress_barbool, optional Display a progress bar using
tqdm
whenTrue
. Helpful for showing download progress.
- Returns
str
Base name of the file uploaded. File can be accessed relative to the mapdl instance with this file name.
Examples
Upload “local_file.inp” while disabling the progress bar
>>> mapdl.upload('local_file.inp', progress_bar=False)