TAGGED: apdl-commands, substep
-
-
July 15, 2025 at 11:07 am
j.godinat
SubscriberHi everyone!
I am pretty new to the ANSYS APDL language and the use of command files.
For my question below I will give you a very simple testing example.In a transient thermal model, I have this command script:
*GET,CurrentSubStep_,ACTIVE,0,SET,SBSTP !gets the current active substep
*IF,CurrentSubStep_,GT,1,then !deletes the previous Heatflux
SFDELE,ALL,HFLUX
*ENDIFNewFlux_=500000*CurrentSubStep_ !calculates a new heatflux value
SF,SourceSurf,HFLUX,NewFlux_ !creates a new heatflux loadThis script is placed here in the tree:
I know that I can make the command file run at each Loadstep using following option:
This script sort of works, it updates the heatflux but only at each Loadstep.
I want to run this file or the script pasted above at each Substep. I can't however seem to find anything in the docuentation, or maybe my lack of understanding is the problem here.
Could somebody explain to me what I'm doing wrong or misunderstanding?
Thanks ahead for the help!
-
July 16, 2025 at 7:39 am
Rahul Kumbhar
Ansys EmployeeHello,
This method can be used to solve at loadstep level and cannot solve on substep level. One workaround is that, you can define number of loadsteps as much as total substeps. Eahc loadstep has only one substep.Â
-
- You must be logged in to reply to this topic.
-
3492
-
1057
-
1051
-
965
-
942
© 2025 Copyright ANSYS, Inc. All rights reserved.