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

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

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

Comments

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

    XML:

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

    Python:

    def AddSolveCommands(load, step, stream):
        return
    
  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 326
    First Answer First Anniversary First Comment 5 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.