How do I get correct cross-section divisions on ACT result objects for BEAM188?
I'm trying to code by ACT a user defined result using "CreateResultObject". The targeted elements are beam188 and result contour needs to have a resolution of 16 divisions per cross section. I have set the divisions to 16 from the default value of 8 using SECDATA APDL command for the beam but the ACT result object still shows 8 divisions, how do I retrieve the correct cross-sections results?
Current Result (8 divisions):
Expected Result (16 divisions):
Answers
-
By default, ACT result objects are scoped to Geometrical entities which retrieve the cross-sectional properties from Mechanical DataModelTree. With SECDATA the changes are behind the scenes in APDL Beam cross-section properties, hence, cross-section properties when retrieved from APDL will give the correct results. Changing the scope to MaterialIDs will do the trick:
my_ext = ExtAPI.ExtensionManager.GetExtensionByName("result_evaluate") analysis = Model.Analyses[0] res_obj = Model.Analyses[0].CreateResultObject("result_evaluate", my_ext) res_obj.Properties["Geometry"].Properties["DefineBy"].Value = "ID_SolverComponentMatSelection" # Add the material ID for the Beam res_obj.Properties["Geometry"].Properties["DefineBy"].Properties["MaterialID"].Value = 1 solution = analysis.Solution solution.EvaluateAllResults()
0