How to solve multiple connected structural-prestress_modal-random_vibration analysis with RSM?

Options
Rohith Patchigolla
Rohith Patchigolla Member, Moderator, Employee Posts: 115
First Answer First Anniversary Name Dropper Solution Developer Community of Practice Member

I have in Mechanical multiple structural-prestress_modal-random_vibration analyses. My goal is to send first the structural analysis to HPC, solve and get results and then solve the downstream Modal and Random Vibration analyses accordingly.

Answers

  • Rohith Patchigolla
    Rohith Patchigolla Member, Moderator, Employee Posts: 115
    First Answer First Anniversary Name Dropper Solution Developer Community of Practice Member
    Options

    With the below code, we would first solve all the Static analyses, download the results, then do the same for Modal and Random Vibration Analyses.

    staticAnalyses = [child for child in Model.Analyses if child.AnalysisType == AnalysisType.Static]
    modelAnalyses = [child for child in Model.Analyses if child.AnalysisType == AnalysisType.Modal]
    randomVibAnalyses = [child for child in Model.Analyses if child.AnalysisType == AnalysisType.Spectrum]
    
    for analysis in staticAnalyses:
        analysis.Solve()
        analysis.Solution.GetResults()
    
    for analysis in modelAnalyses:
        analysis.Solve()
        analysis.Solution.GetResults()
    
    for analysis in randomVibAnalyses:
        analysis.Solve()
        analysis.Solution.GetResults()