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

Options
Vishnu
Vishnu Member, Employee Posts: 214
Name Dropper First Anniversary Solution Developer Community of Practice Member First Comment
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: 214
    Name Dropper First Anniversary Solution Developer Community of Practice Member First Comment
    Answer ✓
    Options

    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)