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

Options
Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 419
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: 419
    5 Likes First Anniversary Ansys Employee Solution Developer Community of Practice Member
    edited May 23
    Options

    XML:

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

    Python:

    def AddSolveCommands(load, step, stream):
        return
    
  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 316
    First Answer First Anniversary First Comment 5 Likes
    Options

    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.