Closed germa89 closed 2 years ago
Pinging @dts12263 I believe this is probably due to the docker image lacking some file?
Pinging @FredAns @mikerife for visibility.
Hi @germa89 @FredAns that should return a blank - that Inquire function is returning the result file name used in the last File command; which has not yet been issued. Mike
I would expect that after the solve it should return the newly created RST file name.
Ok. Then I will update the unit test and check again. Thank you Mike!
Mmmhh...
It does not work... I ran this again and with the debugger I did:
(Pdb) mapdl.post1()
*** MAPDL - ENGINEERING ANALYSIS SYSTEM RELEASE 2022 R2 22.2BETA ***
Ansys Mechanical Enterprise
00000000 VERSION=LINUX x64 21:00:16 AUG 21, 2022 CP= 23.537
** WARNING: PRE-RELEASE VERSION OF MAPDL 22.2BETA
ANSYS,INC TESTING IS NOT COMPLETE - CHECK RESULTS CAREFULLY **
***** MAPDL RESULTS INTERPRETATION (POST1) *****
(Pdb) mapdl.set('last')
USE LAST SUBSTEP ON RESULT FILE FOR LOAD CASE 0
SET COMMAND GOT LOAD STEP= 1 SUBSTEP= 1 CUMULATIVE ITERATION= 1
TIME/FREQUENCY= 1.0000
TITLE=
(Pdb) mapdl.reswrite('new_rst')
PUT THIS LOAD CASE ON THE RESULT FILE new_rst.rst
AS RESULT SET 1 (LOAD STEP 1 SUBSTEP 1 TIME= 1.0000 )
(Pdb) mapdl.file('new_rst.rst')
DATA FILE CHANGED TO FILE= new_rst.rst
(Pdb) mapdl.result_file # Prints None
But still mapdl.result_file
is None
.
Any idea @mikerife ??
@germa89 Still waiting on internal IT to get me on the Docker group. Works for me on non-Docker...
Conclusion of this issue.
The mapdl.inquire
does not return a name until you enter in mapdl.post1
. So the solution will be:
mapdl.post1()
mapdl.inquire("","RSTFILE")
Before submitting the issue
Description of the bug
Working on #1279 I found out that the INQUIRE command with the RST option seems to not work in the docker image.
Steps To Reproduce
Which Operating System are you using?
No response
Which Python version are you using?
3.9
PyMAPDL Report
PyMAPDL Software and Environment Report
Packages Requirements
Core packages
ansys.mapdl.core : 0.62.dev1 numpy : 1.22.0 appdirs : 1.4.4 scipy : 1.8.0 grpc : Package not found ansys.api.mapdl.v0 : Package not found ansys.mapdl.reader : 0.52.dev0 google.protobuf : Package not found
Optional packages
matplotlib : 3.5.1 pyvista : 0.35.dev0 pyiges : 0.2.1 tqdm : 4.62.3
Ansys Installation
Version Location
212 C:\Program Files\ANSYS Inc\v212 222 C:\Program Files\ANSYS Inc\ANSYS Student\v222
Ansys Environment Variables
ANSYS212_DIR C:\Program Files\ANSYS Inc\v212\ANSYS ANSYS222_DIR C:\Program Files\ANSYS Inc\ANSYS Student\v222\ANSYS ANSYSLIC_DIR C:\Program Files\ANSYS Inc\Shared Files\Licensing AWP_LOCALE212 en-us AWP_ROOT212 C:\Program Files\ANSYS Inc\v212 AWP_ROOT222 C:\Program Files\ANSYS Inc\ANSYS Student\v222 CADOE_LIBDIR212 C:\Program Files\ANSYS Inc\v212\CommonFiles\Language\en-us CADOE_LIBDIR222 C:\Program Files\ANSYS Inc\ANSYS Student\v222\CommonFiles\Language\en-us
Installed packages