How to scope results at nodes or elements of interest in DPF?

Vishnu
Vishnu Member, Employee Posts: 222
100 Comments 100 Likes Second Anniversary Name Dropper
✭✭✭✭
edited June 2023 in Structures

Typical case would be to look at the displacements or stress at particular nodes/elements.

Tagged:

Answers

  • Vishnu
    Vishnu Member, Employee Posts: 222
    100 Comments 100 Likes Second Anniversary Name Dropper
    ✭✭✭✭
    Answer ✓

    you can use dpf.Scoping to scope some nodes or elements like below:

    myscoping = dpf.Scoping()
    myscoping.Ids = [1,2,3,4,5,6] #Here Nodes 1-6 are scoped 
    myscoping.Location = 'Nodal'
    

    You can then use this myscoping with corresponding operator of interest (like displacement) like below:

    u = dpf.operators.result.displacement(time_scoping=1,mesh_scoping=myscoping,data_sources=dataSource)