Path result export
Path result export
(OP)
Hello,
I'm new to the forum.
I have a problem in Ansys Workbench 14.
I want to create a command apdl object, within the solution object, that automatically write deformation results of a path into a text file.
First I tried selecting the path created by the gui (by PSEL command) , but I get the message: " No path data active. The PDEF command is ignored. "
(Is there any way to recall result objects created in workbench mechanical into a command apdl object?)
Then I created the path by command line, but when I try to get displacement data it gives the following output:
" *** WARNING *** CP = 5.366 TIME= 04:13:23
UY is not a valid degree of freedom for this solution. The DOF
command may be used to add degrees of freedom.
DEFINE PATH VARIABLE UY AS THE DEGREE OF FREEDOM ITEM=U COMP=Y
PRINT ALONG PATH DEFINED BY LPATH COMMAND. DSYS= 0
*** NOTE *** CP = 5.366 TIME= 04:13:23
Invalid PRPATH label UY is ignored. "
Here is my code for mechanical APDL object:
/OUTPUT,C:\path,txt,
path,Pmain,2,8,20
ppath,1,,0,0,0
ppath,2,,0,0,30
pdef,UY,u,y
PRPATH,UY
Any help is greatly appreciated.
Many thanks,
Andrea
I'm new to the forum.
I have a problem in Ansys Workbench 14.
I want to create a command apdl object, within the solution object, that automatically write deformation results of a path into a text file.
First I tried selecting the path created by the gui (by PSEL command) , but I get the message: " No path data active. The PDEF command is ignored. "
(Is there any way to recall result objects created in workbench mechanical into a command apdl object?)
Then I created the path by command line, but when I try to get displacement data it gives the following output:
" *** WARNING *** CP = 5.366 TIME= 04:13:23
UY is not a valid degree of freedom for this solution. The DOF
command may be used to add degrees of freedom.
DEFINE PATH VARIABLE UY AS THE DEGREE OF FREEDOM ITEM=U COMP=Y
PRINT ALONG PATH DEFINED BY LPATH COMMAND. DSYS= 0
*** NOTE *** CP = 5.366 TIME= 04:13:23
Invalid PRPATH label UY is ignored. "
Here is my code for mechanical APDL object:
/OUTPUT,C:\path,txt,
path,Pmain,2,8,20
ppath,1,,0,0,0
ppath,2,,0,0,30
pdef,UY,u,y
PRPATH,UY
Any help is greatly appreciated.
Many thanks,
Andrea





RE: Path result export
Did you get any replies to this post? I have a similar problem where I want to extract the stress results on the path, but I get the following error:
*** WARNING *** CP = 2.371 TIME= 12:51:09
The requested S data is not available. The PDEF command is ignored.
I am using Workbench 14.0 and my APDL command is:
/post1
RSYS,17
PATH,deg0_1,2,12,100
PPATH,1,,0,3331,0,
PPATH,2,,0,2410,32160,
!Normal Stress
PDEF,S_zz,S,Z,NOAV
Any help would be appreciated.
Best Regards
Niels
RE: Path result export
Hello Niels
I suspect that you are not saving the results data you are trying to acess. before solving the model issue:
outres,all,all
Anyway,to get the displacement you should use:
*DIM command to issue a dimension for your array
*get command to get values on entities, (can be nodes, for instance)
*vfill to fill the array you dimensioned on *DIM with the values you got with *get
/output command to select the file and the path
*vwrite command to write the values of the array into a text file
Niels, for you it´s the same, but instead of UY you should write The stress command, which I think is SX, where x is the axis you are measuring stress on
Check ANSYS help for the syntax of these commands and use them in this order. Please let me know the outcome.
Regards,
Hugo Silva
Mechanical Eng. PhD student
Materials Eng. MSc.