Extract node displacements of a named selection in Ansys Motion
I want to get node displacement values from an Ansys Motion analysis and export them. I have already looked at some similar posts on this forum about this, but can't seem to make it work.
I modified the code in this discussion to successfully get displacements of a single node with mechanical scripting.
I want to use a named selection to do this for multiple nodes but I can't seem to manage to do it. I tried using dpf.operators.scoping.on_named_selection() but I get an error "
U:19<-scoping_provider_by_ns:18<-requested result not found" when trying to use this scoping in dpf.operators.result.displacement(). If I open the solution worksheet there are no named selections listed under Solver Component Names - is this the source of this issue? Is there a solution/workaround? If it's not possible to use named selection can I at least somehow export displacements of all nodes?
Is there perhaps a better way to obtain the displacements I want? Thank you!