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

Options
Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 414
First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer

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

Comments

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 414
    First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
    edited May 23
    Options

    XML:

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

    Python:

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