-
Heat passed through contact surface with the use of PyDPF
How to calculate the heat that has passed through a contact surface with the use of PyDPF?
-
Example throws DPFServerException
Hi, I would like to use DPF for one of my tasks. I have installed ansys-dpf- core version 0.8.1and tried the example according to the documentation from ansys.dpf.core import Model from ansys.dpf.core import examples model = Model(examples.find_simple_bar()) print(model) But when I get to print line it raises this error:…
-
How do I fetch Angular Velocity and Angular Acceleration using PyDPF from a Transient Analysis?
How do I fetch Angular Velocity and Angular Acceleration using PyDPF from a Transient Analysis??
-
How to move Element Table Data to Nodal in DPF
Element table data is per element, but often stored per node (i.e results at node I , J , K , L). How can use DPF to get this data as "Nodal" values. I suppose going the other way would work if it is easier, average the nodal values and get 1 value per element. What I am trying to do is create a plot of contact gap-volume.…
-
Usage of DPF operator vtk to fields
Hi all, I am using pyDPF I am trying to get the data from a VTK file, and combine it with results of RST file. I found the operator "vtk_to_fields" unfofortinately I could not figure out how to use this operator. I have already looked at the example as well as the tests in github but did not find anything useful. could you…
-
dpf.FieldsContainer item access by label name
I've explored the capabilities of Data Processing Framework (DPF) in getting and processing data of Mechanical analysis for possible application in ACT-extension. dpf.FieldsContainer is the object that stores results data for particular entity and time scoping. Target entity is a 'Location', result set is 'time…
-
How can I plot deformed and undeformed mesh ( with result) together using PyDPF?
I would like to plot result having deformed mesh and undeformed mesh after getting results from PyDPF. The plot should looks something similar to Mechanical, like below.
-
Plot field Vectors on a Named Selection in PyDPF
How to plot field vectors on a named selection in PyDPF?
-
Extracting results from a Path in Transient analysis and creating a 3D Surface Plot in PyDPF
How to extract results from a path in a Transient analysis and create a spatiotemporal 3D surface plot in PyDPF?
-
How to plot result on cut mesh using PyDPF
Hi I would like to plot a one side of a volume geometry, for which I have nodal results, and would like to cut the geometry with specific plane. I have tried the mesh_plan_clip operator but as soon as I use it, the output mesh is cannot really plot the results. I have tried to create a possible solution with the PyVista…
-
How do I get the centroid of my contact elements
I want to save the centroid of the contact elements in all my contacts in a CSV. How would I do that in Mechanical?
-
How do i extract h5 results using DPF?
Hello Ansys developers: I'am trying to extract some results from an h5 file to plot them using Python Result, but i couldn't found how to read the h5 file and extract my fields. is it even possible ? Thank you in advance
-
[DPF] An unexpected error occurred - rst file used by another program
Hello, I'm writing some codes in DPF in a python result inside my modal analysis, so I need to read the rst file with the dataSource accessed with the "dpf.DataSources(analysis.ResultFileName)" command. My code works well, but when I want to resolve my modal analysis, it shows this error : An unexpected error occurred :…
-
How to plot within a Python result the total stiffness energy in a named selection with ansys dpf ?
Hello everyone, As the title suggest, I want to plot within a Python result the total stiffness energy in a named selection with ansys dpf. I made something that plot the stiffness energy by element on a given named selection, and I think I have to use fields operators to plot the total stiffness energy on the named…
-
How do i extract force reaction table from rst file using DPF Post?
Hello Ansys developers: recently i am trying to extract force reaction from rst file without opening Ansys Mechanical. As the below pic shows, i want to get the forces on the whole process time steps. Thus, i implemented such code to get my target values. But i get the following error msg: I suppose that i have defined a…
-
ANSYS Version used by PyMAPDL reader, pyDPF
Hello, DPF and possibly the PyMAPDL reader, use libraries or other files that come with an ANSYS installation. When a script that uses PyMAPDL or DPF is executing, I would like to know which ANSYS installation it is using (I have multiple ANSYS versions installed). How would I do that?
-
How do I calculate linearized stress (Membrane, Bending and Peak) using DPF?
How do I calculate linearized stress (Membrane, Bending and Peak) using DPF?
-
How do I calculate linearized maximum principal stress (Membrane, Bending) using PyDPF?
How do I calculate linearized maximum principal stress (Membrane, Bending) using PyDPF?
-
PyDPF - Remove midside nodes
Hi guys, Can I remove midside nodes from the extracted nodes, using Pydpf?
-
Identify elements that has atleast one face on the surface
Greetings! My objective is to retrieve elements that feature at least one surface face. To achieve this, I attempted using the following instructions: skinOp = dpf.operators.mesh.skin(mesh) skin_mesh = skinOp.outputs.mesh() However, the above commands yield surface elements that have been converted to 2D elements. The…
-
How to multiply all elements of a field
Dear all To get the total probability of survival (one scalar) I need to multiply the probality of survival of each element. This data I have in a dpf field. What would be the easiest way to this? Do I need to loop over the entries or is there some kind of vector operation? Regards Lorenz
-
Identifying element IDs with discrepancies in number of stress tensors and connected nodes
Dear Team, I am using dpf to read an .rst file and extract elementalNodal stresses. However, I have encountered an issue with some elements in the model. Specifically, when I try to obtain the stress tensor for certain elements, dpf outputs stresses at 8 nodes (model.results.stress.eval()[0].get_entity_data(x)), whereas…
-
Changing field mesh scoping
I have created a field in DPF and now I would like to limit to a subset of the mesh on which it was originally created without recomputing it. I have tried: ns_scope = dpf.mesh_scoping_factory.named_selection_scoping('BLADE_N', model) subset_op = dpf.operators.scoping.rescope() # operator instantiation…
-
Get elemental nodal stress array along with corresponding node ids
Dear Team, I am reaching out for help with organizing stress tensors for all elemental nodes using the API call (self.model.results.stress.eval()[0].data). This API call generates an array of stress tensors (elementalNodal) for all the elements, and I need to create another array with the corresponding node IDs for each…
-
DPF mesh.mesh_get_attribute error
Code: from ansys.dpf import core as dpf dpf.__version__ mesh_attr_op = dpf.operators.mesh.mesh_get_attribute() '0.8.1' Returns: '0.8.1' --------------------------------------------------------------------------- KeyError Traceback (most recent call last) Cell In[8], line 1 ----> 1 mesh_attr_op =…
-
PyDPF - Select Surface nodes
Hi guys, Is there an method to extract all the surface nodes from a rst file? For the moment, I create a new component on mechanical with all the surface nodes, and I extract it during the postprocess. But I cannot always modify the model on mechanical. Thanks, Tommaso
-
How to extract rotational displacements on a static analysis ?
How can I extract the rotational displacement values from the result file of a static structural analysis using PyDPF?
-
How do you transform direction stresses to a different coordinate system in DPF
In a Python Result in Mechanical I want to get stresses in a cylindrical (or any other coordinate system). Is there a built in method to transform stresses?