Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

Ansys Learning Forum Forums Discuss Simulation General Mechanical Save thermal results in txt file via /post1 snippet Reply To: Save thermal results in txt file via /post1 snippet

John Miller
Subscriber

Hello Chandra,

thank you for the helpfull answer.

When I apply the mentioned lines to my code:

 

nodeid=27844

/post26
nsol,2,node,nodeid,temp !Specifies nodal data to be stored from the results file
prvar,2                              !Lists variables vs. time (or frequency).
plvar,2                              !Displays up to ten variables in the form of a graph.

/out,d:\mypvar.dat
prvar,2
/out
/show,png
plvar,2
/show,close

 

this is the outcome in the solve.out file:

 

          ***** TIME-HISTORY POSTPROCESSOR (POST26) *****

 ALL POST26 SPECIFICATIONS ARE RESET TO INITIAL DEFAULTS

 *** WARNING ***                         CP =     418.125   TIME= 13:48:41
 The data in field 3 is invalid.  The NSOL command is ignored.           

 *** WARNING ***                         CP =     418.125   TIME= 13:48:41
 No data points are saved during this storage step.                      

 /OUTPUT FILE= d:\mypvar.dat

 /SHOW SWITCH PLOTS TO  PNG         - RASTER MODE.

 Set Encoding of XML File to:ISO-8859-1

 Set Output of XML File to:
     PARM,     ,     ,     ,     ,     ,     ,     ,     ,     ,     ,     ,
         ,     ,     ,     ,     ,     ,     ,

 DATABASE WRITTEN ON FILE  parm.xml                                                                                                                                                                                                                                                            


 ***** ROUTINE COMPLETED *****  CP =       419.062

 

 PRINTOUT RESUMED BY /GOP

 *GET  _WALLDONE  FROM  ACTI  ITEM=TIME WALL  VALUE=  13.8116667    

 PARAMETER _PREPTIME =     1.000000000    

 PARAMETER _SOLVTIME =     150.0000000    

 PARAMETER _POSTTIME =     4.000000000    

 PARAMETER _TOTALTIM =     155.0000000    

 *GET  _DLBRATIO  FROM  ACTI  ITEM=SOLU DLBR  VALUE=  0.00000000    

 *GET  _COMBTIME  FROM  ACTI  ITEM=SOLU COMB  VALUE=  0.00000000    

 *GET  _SSMODE   FROM  ACTI  ITEM=SOLU SSMM  VALUE=  2.00000000    

 *GET  _NDOFS    FROM  ACTI  ITEM=SOLU NDOF  VALUE=  122196.000    
 --- Total number of nodes = 283054
 --- Total number of elements = 84182
 --- Element load balance ratio = 0
 --- Time to combine distributed files = 0
 --- Sparse memory mode = 2
 --- Number of DOF = 122196

 EXIT ANSYS WITHOUT SAVING DATABASE


 NUMBER OF WARNING MESSAGES ENCOUNTERED=         30
 NUMBER OF ERROR   MESSAGES ENCOUNTERED=          0

 

Obviously, the nodal data isn't stored at all.

 

With best regards

John M.

[bingo_chatbox]