CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS

ANSYS APDL: Get Path results for each Substep and export this?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2019, 05:22
Default 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
Marek11x is on a distinguished road
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
Marek11x is offline   Reply With Quote

Old   August 12, 2019, 10:03
Default
  #2
Senior Member
 
Gweher's Avatar
 
Gwenael H.
Join Date: Mar 2011
Location: Switzerland
Posts: 392
Rep Power: 20
Gweher will become famous soon enough
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
Gweher is offline   Reply With Quote

Old   August 14, 2019, 09:39
Default
  #3
New Member
 
Oliver Mosig
Join Date: Aug 2019
Posts: 2
Rep Power: 0
Marek11x is on a distinguished road
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
Marek11x is offline   Reply With Quote

Reply

Tags
ansys, apdl, command in workbench, path


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 14:40.