How to change the EndTime (Analysis Settings) in WB LS-DYNA with ACT?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 467
100 Answers 250 Likes 100 Comments Second Anniversary
✭✭✭✭
edited June 2023 in Structures

How to change the EndTime (Analysis Settings) in WB LS-DYNA with ACT?

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 467
    100 Answers 250 Likes 100 Comments Second Anniversary
    ✭✭✭✭
    Answer ✓

    Since WB LS-DYNA is itself an ACT extension one has to retrieve the user solver object and then access the properties.

    analysis = Model.Analyses[0]  # Get the Analysis system
    
    # Get the solver object
    solver = analysis.Solver
    
    solver.Properties["Step Controls/Endtime"].Value = 20
    ExtAPI.DataModel.Tree.Refresh()
    
  • Aria
    Aria Member, Employee Posts: 67
    25 Answers Second Anniversary 25 Likes 10 Comments
    ✭✭✭✭
    Answer ✓

    Some more examples of how to set analysis settings for WB LS-Dyna:

    analysis = Model.Analyses[0]
    solver  = analysis.Solver
    
    # Number of CPUs
    solver.Properties['Memory Management/NCPUS'].Value = 16
    # End time
    solver.Properties['Step Controls/Endtime'].Value = 0.01 
    # mass scaling turned off
    mscl = solver.Properties['Step Controls/Automatic Mass Scaling']
    mscl.Value = mscl.Options[0]
    # mass scaling on
    mscl.Value = mscl.Options[1]
    solver.Properties['Step Controls/Time Step Size'].Value = 1e-06
    # Use MPP 
    mpp = solver.Properties['Memory Management/Processing Type']
    mpp.Value = mpp.Options[2]
    # Use SMP
    smp = solver.Properties['Memory Management/Processing Type']
    smp.Value = smp.Options[1]
    # Double precision
    solverPrec = solver.Properties['Solver Controls/Solver Precision']
    # Single precision
    solverPrec.Value = solverPrec.Options[1]
    # Result file frequency
    resFreq = solver.Properties['Output Controls/Calculate Results At']
    resFreq.Value = resFreq.Options[1]
    solver.Properties['Output Controls/--- Value'].Value = 50