Several stages outputs using python
Posted: Mon May 31, 2021 1:40 pm
Hi!
I am trying to obtain the displacement of a node from a pushover analysis. However, I want to obtain the displacements for the two stages I have in the model: the gravitational and the horizontal. I have only been able to plot for the displacements for just one stage, either the gravitational or the horizontal. Is it possible to obtain them for both stages?
Regards
I am trying to obtain the displacement of a node from a pushover analysis. However, I want to obtain the displacements for the two stages I have in the model: the gravitational and the horizontal. I have only been able to plot for the displacements for just one stage, either the gravitational or the horizontal. Is it possible to obtain them for both stages?
Regards
Code: Select all
# create evaluation options
# here we want to extract data for all steps of the last stage
all_stages = db.getStageIDs() # get all model stages
last_stage = all_stages[1] # get the last stage (pushover)
all_steps = db.getStepIDs(last_stage) # get all steps of the last stage
all_times = db.getStepTimes(last_stage) # get all step times of the last stage
# initialize the evaluation options with the last stage
opt = MpcOdbVirtualResultEvaluationOptions()
opt.stage = last_stage