How to add Solve Commands to all or selected time steps with GetSolveCommands?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 444
250 Likes Solution Developer Community of Practice Member Ansys Employee First Anniversary
✭✭✭✭

How to add Solve Commands to all or selected time steps with GetSolveCommands?

Comments

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 444
    250 Likes Solution Developer Community of Practice Member Ansys Employee First Anniversary
    ✭✭✭✭
    edited May 23

    XML:

    <getsolvecommands timeDependent="true">AddSolveCommands</getsolvecommands>
    

    Python:

    def AddSolveCommands(load, step, stream):
        return
    
  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 330
    25 Answers First Anniversary 100 Comments 25 Likes
    ✭✭✭✭

    I recommend using the callback GetCommands and location = solve

    This will also pass the IsolverData object to the callback that tracks the current step number as well as access to lots of useful info.