-
How to plot stress results on specific coordinates in Mechanical?
Hello, Is it possible to plot the stress values of my model at certain coordinates (theoretical weld transition) in Mechanical? The coordinates result from the joint lines of two plates and a defined evaluation distance to the joint lines. Thus, they usually do not lie exactly on a node, but can also lie in the middle of…
-
Are stresses extracted from DPF global or local to the element orientation
When using DPF to extract stresses are the values returned in the global system, or the local element system?
-
transform direction stresses to a different coordinate system node for node
for rotating the stress tensor I use the dpf.operators.geo.rotate function with an op.inputs.fields_container and an op.inputs.coordinate_system for an rotation field the problem is, the rotation is just performt for the first entry in the rotation field, not used as a field as I expected. Use case is getting stress in a…
-
DPF Install issue
I used the Ansys Python Manager to download python and relevant libraries. When I do that and then try to run dpf in with the following command from ansys.dpf import core as dpf in Jupyter notebook I get the following error. `---------------------------------------------------------------------------AttributeError…
-
DPF: time scoping in non-linear plastic structural analysis
I am new to the pyANSYS framework. Using ANSYS 2023 R2. I am running DPF in ANSYS Mechanical and post processing a structural non-linear plastic analysis with 200 substeps. I'm trying to scope my results in the time domain to the specific time that my max plasticity occurs. I do this with the following function and it kind…
-
How to get a safety factor result in a model with a custom yield limit for specific elements?
We want to get a safety factor result based on Von Mises stresses in a model where tensile yield strength must be based on elemental named selection.
-
Mechanical 2022R2 DPF VTK Export of Assembly & Plotting Parts.
Can we add something to the Mechanical DPF "VTK Export" operation so that it is easy to plot individual parts if wanted. For example if we were using PyVista.
-
faces nodes connectivity property error
Hello, I'm new to dpf. How do I resolve this error? "ValueError: faces_nodes_connectivity property is not supported" Thank you
-
Beam results, dpf, Mechanical
Is there any way to access beam results using Python?
-
How to create a result in DPF with deformed mesh whose scaling is different for each axis ?
Hello, As the title suggests, I want to create a result in DPF with deformed mesh whose scaling is different for each axis. When you normally create a result in ansys mechanical, you can adjust the scaling : But I want the scaling to be different for each axis, for example 1 in X, 3 in Y and 10 in Z. Does anyone know how…
-
Filter elements with deformation above a value and change their material properties
How can I find elements that have a deformation value above a specified threshold and change their material properties for a subsequent analysis?
-
How can I filter all nodes / elements above a certain result threshold using DPF / PyDPF?
How can I filter all nodes / elements above a certain result threshold using DPF / PyDPF?
-
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?
-
Python Result example - mapping data
Is there an example of Python Result to map result data from one mesh to another mesh?
-
DPF Operator C++
Hey everyone, I have a question about creating a custom operator in C++. Can this created operator be called in a DPF script in IronPython? Could someone please provide me with an example of creating such an operator and how to call it? Thank you in advance!
-
DPF operators like NSEL/ESEL
Does DPF have any operators that work like the NSEL APDL commands? Specifically I want to point to a CS in Mechanical and get all nodes within a certain radius to the cyl system axis (filter by its local X). I am looking for an efficient solution to work on large meshes with potentially thousands of these CSs.
-
DPF solution for force and moment reactions
Hi all. I am looking for a DPF solution in mechanical that is equal to a force and moment reaction probe. I would like to be able to scope to either geometry, a contact, or to a construction surface that cuts through geometry. I am more interested in auto export of the data than contours in Mechanical, so creation of a…
-
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:…
-
Error with DPF operator: stl_export
I am getting an error with stl export operator. Any ideas why? The mesh region is found fine with the mesh_provider op, but the stl export fails with: Could not find the specified Output Type import mech_dpf import Ans.DataProcessing as dpf my_file_path=r'C:\Users\mthompso\MyData\test.stl' dataSource =…
-
How to extract a frequency response of a node from a harmonic response analysis using DPF ?
Extracting Real,Imaginary,Amplitude and Phase
-
How to get stress tensors on edge of a shell in python results, by defining position and layer
-
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.…
-
Get max stress values at the nodes instead of averaged
Hi, I am currently working on developing a Python script model in which an rst file will be read through dpf reader (dpf.Model(rst_file)) and get the nodal stress values. But, the problem here is that the nodal stress values should not be the averaged ones but the maximum among the element contributions. I mean let's say…
-
How to retrieve the material name of an element in mesh ?
I want to get the material name for each element so ican get it's properties in engineering data. i am using dpf but it only gave me the matid and i don't know how to link it to the name of the material. Thank you in advance. @AKD-Scripting-Team
-
How to merge workflow ?
Hello, I wrote a python result code to plot with dpf the total stiffness energy of named selection with name "R_" + number ("R_1", "R_2", "R_3", etc...). The user has to select his named selection in the property provider, and the plot appears as a result. My code is : def post_started(sender, analysis):# Do not edit this…
-
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?