How to fetch APDL element type based on Element Id?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 467
100 Answers 250 Likes 100 Comments Second Anniversary
✭✭✭✭

How to fetch APDL element type based on Element Id?

Tagged:

Comments

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 467
    100 Answers 250 Likes 100 Comments Second Anniversary
    ✭✭✭✭
    import mech_dpf
    import Ans.DataProcessing as dpf
    
    mech_dpf.setExtAPI(ExtAPI)
    
    
    analysis = Model.Analyses[0]
    ds = dpf.DataSources(analysis.ResultFileName)
    
    model = dpf.Model(ds)
    mesh = model.Mesh
    
    eid = 1
    
    e_prop = mesh.GetPropertyField("apdl_element_type")
    e_type = e_prop.GetEntityDataById(eid)
    print(e_type[0])