TAGGED: apdl
-
-
July 14, 2024 at 11:21 pmAnita AmirsardariSubscriber
Hi ANSYS community,
I am trying to run incremental static analysis in ANSYS Mechanical APDL. I am not sure how to write the code using a loop command (using “*do”). I need to write a loop command (rather than directly solving by defining the number of subsets etc) because after each solved step, I need to review the stresses and strains in the model and use the ekill command if the threshold is exceeded.
A short example of my script is below. I like to apply a displacement of 20mm to the selected nodes in 100 steps. However, in my current code, in the first load step the 20mm is applied, rather than 20/100 = 0.2mm.
Could someone please advise how I can correct my script?
Many thanks,
Anita
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Apply load on selected nodes !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
NSLA, R,1
NSEL,R,LOC,X,-100, 100
NSEL,R,LOC,Y,300
NSEL,R,LOC,Z,27
CM, n0, NODES
D,n0,UY,20, , , , , , , , ,
ALLSEL,ALL
!*
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Define Solution Controls !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/SOLU
!total number of steps for solve
steps=100
TIME_END=1
timeinc=TIME_END/steps
time,timeinc
solve
*do,ICOUNT,1,steps-1
/solu
allsel,all
time,timeinc*ICOUNT+timeinc
solve
finish
*enddo -
July 15, 2024 at 2:24 pmAshish KhemkaForum Moderator
Hi,
Instead of defining loadsteps you can define equal substeps. Also, refer to the following verification maula from Ansys Help which might help ypu:
Ansys Mechanical APDL Verification Manual
Regards,
Ashish Khemka
-
July 16, 2024 at 6:51 amAnita AmirsardariSubscriber
Hi Ashish,
Thank you very much for the suggested references. I am unable to find an example in the Verfication Manual for which a loop is used to incrementally increase the applied load.
I am able to use NSUBS to run the analysis successfully, however, this doesn't allow me to create a loop command where I can check the stresses at each substep in order to implement ekill if required.
Would you please be able to provide an example where the load is applied incrementally but at each substep it is possible to run a *do command to check element stress and execute ekill if the stress exceeds the threshold?
Many thanks,
Anita
-
July 16, 2024 at 7:03 amAshish KhemkaForum Moderator
Hello,
Please see if the links below help:
Delete cells with stress above a certain value – EKILL – APDL (ansys.com)
Element Alive and Kill Commands with 2D Shell Models (ansys.com)
Regards,
Ashish Khemka
-
- The topic ‘Incremental static analysis in ANSYS Mechanical APDL’ is closed to new replies.
- Ayuda con Error: “Unable to access the source: EngineeringData”
- At least one body has been found to have only 1 element in at least 2 directions
- Error when opening saved Workbench project
- How to apply Compression-only Support?
- Geometric stiffness matrix for solid elements
- How to select the interface delamination surface of a laminate?
- Timestep range set for animation export
- Image to file in Mechanical is bugged and does not show text
- Frictional No separation contact
- Elastic limit load, Elastic-plastic limit load
-
1301
-
591
-
544
-
524
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.