How to change the EndTime (Analysis Settings) in WB LSDYNA with ACT?
Ayush Kumar
Member, Moderator, Employee Posts: 442
✭✭✭✭
Answers

Since WB LSDYNA 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()
4 
Some more examples of how to set analysis settings for WB LSDyna:
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 = 1e06 # 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
2