-
When running a simple MAPDL PyAnsys script in PyCharm, I am interested in redirecting the solver output to a directory (so that I can review it later on). I used the below two commands to set the current working directory and set the solver output file. Once I run the model, I see that the file myoutput.out was created in the working directory, but its blank.
Please let me know if its possible to have a solver output file (similar to a batch MAPDL run). This will be very useful. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Would this APDL code be of help?
|
Beta Was this translation helpful? Give feedback.
-
As @mikerife mentioned, the output when MAPDL is running using the gRPC API is quite spread over different files.
Therefore there is no way (currently) of obtaining a file similar to the output file given by a batch run. |
Beta Was this translation helpful? Give feedback.
As @mikerife mentioned, the output when MAPDL is running using the gRPC API is quite spread over different files.
When we issue a command in PyMAPDL, the MAPDL instance receives the equivalent MAPDL commands, which they are written to a temporary output file. This output file is read by MAPDL and send back to the PyMAPDL. This file later deleted. Not all the commands presents this behavior.
Therefore the output of commands (
file.out
) can be spread among:.__tmp__.out
which is used when MAPDL is launched.anstmp.out
which is the one generated by each MAPDL command._input_tmp_.out
which is the output from everytime issuemapdl.input
, or usingmapdl.non_interactive
.