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

Rohith Patchigolla
Rohith Patchigolla Member, Moderator, Employee Posts: 193
100 Comments 25 Answers Second Anniversary 25 Likes
✭✭✭✭

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: 193
    100 Comments 25 Answers Second Anniversary 25 Likes
    ✭✭✭✭

    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()