-
-
November 15, 2018 at 2:38 pm
Vanderbezi
SubscriberGreetings,
i am using the following APDL commands to measure the rotation of two external points:
*get,my_rotx1,node,my_pilot1,rot,x
*get,my_rotx2,node,my_pilot2,rot,x
pi=acos(-1)
my_rotx1=my_rotx1*180/pi
my_rotx2=my_rotx2*180/pi
I am using 10 loadsteps in a static analysis and getting only the results for the last .
How can i get these results for the different loadsteps?
regards,
Vanderbezi
-
November 15, 2018 at 3:32 pm
jpasquerell
Ansys EmployeeIn post1 the set command tells the program what results to read from the rst file.
set,first
*do,jj,1,10
! put your block of commands here
*if,jj,lt,10,then
set,next
*endif
*enddo
-
November 16, 2018 at 2:13 pm
-
November 23, 2018 at 1:26 pm
Rohith Patchigolla
Ansys EmployeeHello Vanderbezi,
Could you paste your APDL commands used instead of snapshot? The picture is not so clear.
But from my understanding, you simply pasted your command set (in your first post) at the location Jim suggested in his script.
If yes, the values for parameters, my_rotx1 (for example) will be replaced during each loop by values at the next result set and the values you finally get are those corresponding to last result set.
Do you need all the 40 parameters in the details of the command snippet?
If not, you can simply modify the script as shown below, by adding %i% to the name (and removing my_), and after the loop, just getting those values needed into the details box of the command snippet.
set,first
*do,jj,1,10
! put your block of commands here
*get,rotx1,node,my_pilot1,rot,x
*get,rotx2,node,my_pilot2,rot,x
pi=acos(-1)
rotx1_set_%i%=my_rotx1*180/pi
rotx2_set_%i%=my_rotx2*180/pi
*if,jj,lt,10,then
set,next
*endif
*enddo
!Extracting rotx1 at set 5
my_rotx1 = rotx1_set_5
Other option is to use an array instead of a scalar parameter in the loop and write out the array data to an external file using *CFOPEN and *VWRITE commands for example.
Hope this helps.
Best regards,
Rohith
-
- You must be logged in to reply to this topic.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Saving & sharing of Working project files in .wbpz format
- An Unknown error occurred during solution. Check the Solver Output…..
- Understanding Force Convergence Solution Output
- Solver Pivot Warning in Beam Element Model
- Colors and Mesh Display
- How to calculate the residual stress on a coating by Vickers indentation?
- whether have the difference between using contact and target bodies
- What is the difference between bonded contact region and fixed joint
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- User manual
-
2524
-
2066
-
1279
-
1096
-
457
© 2023 Copyright ANSYS, Inc. All rights reserved.