Joined: 28 Jul 2015
|Posted: Wed Jul 29, 2015 8:17 am
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.
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
! Defining an array with the count dimensions.
! 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.
!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"
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!