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