|
[Sponsors] |
ANSYS APDL: Get Path results for each Substep and export this? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 12, 2019, 05:22 |
ANSYS APDL: Get Path results for each Substep and export this?
|
#1 |
New Member
Oliver Mosig
Join Date: Aug 2019
Posts: 2
Rep Power: 0 |
Hey there,
I do a transient structural mechanics in ANSYS Workbench and want to export the results of a defined path for each time step. Can anyone help me with this command? Thank you so much |
|
August 12, 2019, 10:03 |
|
#2 |
Senior Member
Gwenael H.
Join Date: Mar 2011
Location: Switzerland
Posts: 392
Rep Power: 20 |
Hi Oliver,
Here is an example that allows you to export the temperature along a path at all the different sets: " set,first node2=node(0,0,0) !Take the nodes loc to create the path node1=node(1000,1000,1000) PATH,TPATH,2,30,51 ! DEFINE PATH WITH NAME = "TPATH" PPATH,1,node1 PPATH,2,node2 PDEF,temper,temp,,AVG !Interpolate the temperature PAGET,temper1,TABLE *GET,nline,PARM,temper1,DIM,1 !retrieve the number of values of the paget table *GET,nsets,ACTIVE,0,SET,NSET *DIM,PATHtemp,array,nline,nsets+1 *do,i,1,nline !copy paste the values we need PATHtemp(i,1)=temper1(i,4) *enddo *do,i,1,nsets ! do it for every time PDEF,CLEAR PDEF,temper,temp,,AVG PAGET,temper1,TABLE *do,j,1,nline PATHtemp(j,i+1)=temper1(j,5) *enddo set,next *enddo *MWRITE,PATHtemp(1,1),RESULTS_Pathtemp,txt,,JIK,,, 1 !write it on a file (98(F15.10)) " You can simply change the temperature to the field variable you need using the APDL guide. Have fun |
|
August 14, 2019, 09:39 |
|
#3 |
New Member
Oliver Mosig
Join Date: Aug 2019
Posts: 2
Rep Power: 0 |
Thats my APDL-Command, but it not really worked, does anyone find what's wrong? I put the command in the solution process in workbench. And where can I find the .txt file to be output?
/POST1 node2=node(100,0,0) node1=node(100,50,0) PATH,TPATH,2,30,100 PPATH,1,node1 PPATH,2,node2 PDEF,PfadSigX,S,X,AVG PAGET,PathData,TABLE *GET,nline,PARM,PathData,DIM,1 !retrieve the number of values of the paget table *GET,nsets,ACTIVE,0,SET,NSET *DIM,PATHSig,array,nline,nsets+1 *do,i,1,nline PATHsig(i,1)=PathData(i,4) *enddo *do,i,1,nsets ! do it for every time PDEF,CLEAR PDEF,PfadSigX,S,X,AVG PAGET,PathData,TABLE *do,j,1,nline PATHsig(j,i+1)=temper1(j,5) *enddo set,next *enddo *MWRITE,PATHsig(1,1),RESULTS_PathSig,txt,,JIK,,, 1 !write it on a file (98(F15.10)) *CFCLOS |
|
Tags |
ansys, apdl, command in workbench, path |
|
|