How can I define autotime stepping algorithm through scripting?

Options
Pernelle Marone-Hitz
Pernelle Marone-Hitz Member, Moderator, Employee Posts: 810
First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
edited June 2023 in Structures

How can I define autotime stepping algorithm through scripting?

Tagged:

Answers

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 810
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Answer ✓
    Options

    The following code can be adapted:

        settings = ExtAPI.DataModel.Project.Model.Analyses[0].Children[0] # reference analysis settings
        settings.Activate() # activate Analysis Settings Object
        settings.CurrentStepNumber=1 # select active step
        settings.AutomaticTimeStepping=AutomaticTimeStepping.On # activate algorithm
        settings.DefineBy=TimeStepDefineByType.Substeps # define by substeps
        settings.InitialSubsteps=10 # define values
        settings.MinimumSubsteps=5
        settings.MaximumSubsteps=25