-
Get maximum nodal stress values instead of averaged
Hi, I am developing a Python script to read an rst file using dpf reader and return the maximum nodal stress values instead of averaged ones. To be specific for a particular node (let's say node 1) there will be multiple stress tensors contributed by all the elements that share node 1. When I try to get the nodal stress…
-
DPF mapping between node ID/index and MAPDL node ID
DPF seems to have two different types of node IDs at least in the context of MAPDL results: one is an internal node ID and another is the node ID in MAPDL. For example it is possible to have ANSYS node IDs 100,200,300 and the corresponding internal DPF ids would be 1,2,3. The mesh scoping commands like nodes_scoping =…
-
how to control contour in PyDPF plot
https://dpf.docs.pyansys.com/examples has quite some useful example but I couldn't find anythin on how to manipulate the contour. For example banded/smooth, number of bands, their colors, min and max limits, position of the legend on screen. How can I do those things? Especially min,max is pretty important for any…
-
PyDPF - Differences in 'named_selection_scoping' and 'operators.scoping.on_named_selection()'
Hy guys, What is the difference between the different codes? 1 ) op = dpf.operators.scoping.on_named_selection() # operator instantiation op.inputs.requested_location.connect(my_requested_location) op.inputs.named_selection_name.connect(my_named_selection_name) op.inputs.int_inclusive.connect(my_int_inclusive)# optional…
-
Export results to VTK format
I am trying to export each time step of my analysis (available as rst file) into the VTK format using a python script and ansys.dpf.core. I don't want to save the whole model, but only a selection of elements, which I have as named_selection. This seems to work in general with my script (see below). The problem I have is…
-
Getting information on elements in PyDPF
In PyDPF, how can I get: the APDL element type (ie SOLID185, PLANE182, ...) the APDL element type id (ie getting the "1" value in et,1,185)
-
Create a field and plot results
Hey, I want to investigate the fatigue of given loads steps with DPF in Python. Therefore, I extract all data from the *.rst file and compute my damage value for each node (e.g., for a named selection). Finally, this results in a list of node ids (resulting from the named selection) and associated damage values (from my…
-
How to get time, load step and max sub step at a given load step information from dpf?
We might be interested in extracting below info:
-
How do I calculate element face normal of a solid element?
How do I calculate element face (skin - outer element) normal of a solid element?
-
How can one save a plot of a pydpf result when using pypdf in standalone (IDE) mode?
This is the standard question from customers who are partaking in a pyanys discussion, how can they plot results to file. They would like plots/images of the results that are created and pop up when using pyansys tools. If they were matplotlib plots it would be possible to write them to file. How to do similar with the…
-
DPF - How to retrieve quantities only on corner nodes of a given named selection?
User has created a name selection on a face, yet wants to extract stress values only at corner nodes. How can he do this?
-
How to scope results at nodes or elements of interest in DPF?
Typical case would be to look at the displacements or stress at particular nodes/elements.