XANSYS Forum Index
    Register    

FAQ    Search    Memberlist    Usergroups    SmartFeedSmartFeed    Profile    Log in
Transitioning from Workbench to APDL is hard
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    XANSYS Forum Index -> XANSYS
Author Message
karthik.ganesh
User


Joined: 28 Jul 2015
Posts: 2

PostPosted: Wed Jul 29, 2015 8:17 am  Reply with quote

Hi guys,

I have more than four years of experience with ANSYS Workbench but very limited experience with APDL scripting. I am trying to work out a simple mesh convergence study for a cantilever beam with a I cross-section. I have attached a small powerpoint that has some pictures attached (if you are interested).

I am using an APDL script to store maximum principal stresses at all nodes in a specific section into an array which would then let me find out the location of the maximum stress point in the model and perform other postprocessing stuff on the array itself. The code below does the same for the total deformation.

/post1
cmsel, s, Nodal1, NODE
! Nodal1 is the named nodal selection

*get, my_nodecount, node,0,count
! I am getting the number of nodes in the selection

*Dim,AA,array,my_nodecount,1
! Defining an array with the count dimensions.

*do,i,1,my_nodecount,1
*get,temp,node,i,u, sum
AA(i)= temp
*enddo
! Looping and storing the total deformation in the array

*VSCFUN,temp1, MAX, AA
! Finding the maximum value

my_maxvalue = temp1
! Storing that to a temp variable for display in parametric analysis

*VSCFUN,temp2, LMAX, AA
my_maxloc = temp2
! Finding and storing the location of the node with max deformation.

*get, my_maxx,node,my_maxloc,loc,x
*get, my_maxy,node,my_maxloc,loc,y
*get, my_maxz,node,my_maxloc,loc,z
!Displaying the (x,y,z) in the parametric analysis table.

If I do the same thing with maximum principal stresses, it says "the requested data is not available"

More info:
Midside nodes are KEPT.
ANSYS Analysis DB is saved.
Unnecessary files are not deleted.

I have no clue what could be causing this. If I try out the same command in ANSYS Classic for the same model, it works (like magic). Please help!
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    XANSYS Forum Index -> XANSYS
All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

sleek template created by Andrew Charron