How do I get correct cross-section divisions on ACT result objects for BEAM188?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 470
100 Answers 250 Likes 100 Comments Second Anniversary
✭✭✭✭
edited June 2023 in Structures

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

enter image description here

Expected Result (16 divisions):

enter image description here

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 470
    100 Answers 250 Likes 100 Comments Second Anniversary
    ✭✭✭✭
    Answer ✓

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

    enter image description here