-
-
December 5, 2022 at 7:05 pm
Patrik
SubscriberHello all,
I have the following APDL command
*get,lsnum,active,,solu,ncmls ! lsnum = LAST CALCULATED LOAD STEP
*if,lsnum,gt,0,then ! IF A RESULT HAS BEEN CALCULATED, THEN ...how can i find out what is stored in lsnum to determine if the if loop is entered or not?
I am using ANSYS WORKBENCH 2022 R1 ( student version )
thank you in advance
-
December 5, 2022 at 7:38 pm
Ankush Choudhary
SubscriberHi Patrik,
You can get this information in the solver output file.
Thanks,
Ankush
-
December 5, 2022 at 7:54 pm
Patrik
Subscriberdo i understand it correctly?
this is in my solve.out file
*GET LSNUM FROM ACTI ITEM=SOLU NCML VALUE= 0.00000000
*IF lsnum ( = 0.00000 ) GT
0 ( = 0.00000 ) THEN*ENDIF
LSNUM has the value 0 (LSNUM=0) therefore the if command is bypassed?is there something like a debug mode where i can see why LSNUM gets the value 0.
or how do you proceed with such problems? -
December 5, 2022 at 8:02 pm
Ankush Choudhary
SubscriberHi Patrik,
I can't say much without seeing the model, and we are not allowed to see the model here. However, I am sharing a link below that will help you with this command. This is a good article written by one of our channel partners.
https://simutechgroup.com/single-frame-restarts-in-mechanical/
Thanks,
Ankush
-
December 6, 2022 at 6:02 pm
Mike Rife
Ansys EmployeeHi Patrik
Can you post more of the commands object and where it is inserted into the WB Mechanical model tree. The easiest answer, with what has been provided, is the the commands object logic is getting the value prior to solution so there are no solved load steps.
Mike
-
- 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
-
1285
-
1096
-
459
© 2023 Copyright ANSYS, Inc. All rights reserved.