-
How to access shell information with DPF.
Hi! I would like to know how to query the following shell layer information with DPF (C++): * Thickness * Orientation angle * Number of integration points * Material ID Thanks in advance! Victor Trejo.
-
Is it possible to consider temperature dependent strength data for safety factor calculation?
Is it possible to consider temperature dependent strength data for safety factor calculation within the stress tool?
-
Error: attribute 'FieldsFactory' of 'namespace#' object is read-only
Hi, I am referring to a previous post on this forum which explained how we can convert a field to scalar values. https://discuss.ansys.com/discussion/2150/how-do-you-transform-direction-stresses-to-a-different-coordinate-system-in-dpf I am trying to use the same syntax in my code, but I am getting an error that says Please…
-
Python Result example - mapping data
Is there an example of Python Result to map result data from one mesh to another mesh?
-
How to extract directional acceleration results on a node in ANSYS Motion?
How to extract directional acceleration results on a node in ANSYS Motion?
-
DPF Crashes Workbench with large result files
I've noticed an issue when using DPF with large result files in my ACT scripts (currently using version 2023R2), essentially whenever the result file gets large enough (25+GB) all of my post processing scripts crash workbench a few seconds after starting to run. I reduced the size of mesh and resolved to get a smaller…
-
Overview of postprocessing capabilities in Ansys
In civil engineering, APDL has been traditionally used for both building up the models and postprocessing. Nowadays, many engineers are building their models in Mechanical, but they still use APDL snippet commands for getting some output data into txt files that are used afterwards in in-house tools. Which are the…
-
Integrate results over a subsection of a surface
I have a surface on which I have calculated a direction heat flux solution. I would like to add a script that then takes a region of interest of that surface and integrates the directional heat flux in that region.
-
ERP calculation using dpf-core
Hi, I am trying to calculate the Equivalent Radiated Power of a given surface, based on a named selection. I have performed a harmonic analysis using MSUP, and have created a named selection called "LARGE". The code has a number of blocks: 1) Time Here the time scoping is obtained 2) NS Here a mesh scoping is obtained from…
-
Best way to get memory usage of DPF routine
How can I get the memory usage of my DPF (mechanical or PyDPF) script. I am wanting to know how much is being used in relation to size of results file (mesh and time steps) to know the general limit on a given machine.
-
Python Result and DPF - how to select component
Using DPF to retrieve the deformation on a model. The operator returns a fields container with 3 components (UX, UY, UZ). How can I select the component to be plotted, in case I want to plot only UX for example ?
-
Multi-threading with DPF post evaluations In Mechanical
Hi all, Has anybody experimented with using the iron python threading module to start an async thread that does DPF post calculations? Use case is this could be called immediately after the solve is done since the results file is available. Users can still interact with Mechanical since the call after the solve is simply…
-
How to get stresses from cut mesh
Hi All, I would like to cut up the mesh of a large ANSYS model into more manageable parts. To do that, I’m using the “mesh_plan_clip” mesh operator to cut the main-mesh at the location of a plane. To test my code, I use a simple beam model that is fixed on one side and is loaded with a lateral force on the other side. In…
-
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…
-
How can I use Python Result object in an unconverged analysis to plot a custom result?
This is currently a limitation. If any user tries to use Python Result with an unconverged analysis, an error message will pop up and the Python Result will have the red lightning not plotting any result.
-
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…
-
Find the maximum value in a field AND corresponding scoping ID
I need to find the node with the max stress. How can I do this using DPF
-
How to export results (SMISC - axial forces and moments) for all the beam connections in Mechanical?
I have lots of beam connections in the model. I want to export the data in the below format into a csv. beam element type id, Beam name in Mechanical, Fx, My_i, My_j, Mz_i , Mz_j
-
Beam results, dpf, Mechanical
Is there any way to access beam results using Python?
-
Contour Plots on Changed Mesh (NLAD) using Python Result object (DPF) in Mechanical
How could I generate contour plots of custom results on a changed mesh (NLAD) during the solution in Mechanical?
-
Increasing Speed of DPF in Extensions
I am looking into using DPF to drive the results in extensions instead of using the legacy results reader. While DPF is much faster than the legacy reader for getting things like nodal von mises stress, I am finding that the extensions performance is still substantially worse than the hard coded von-mises available in…
-
Can we get VOLT dof results using DPF
I need to be able to extract the VOLT DOF from SOLID226 with Keyopt 1 = 101
-
How to get the material properties for defined element using Mechanical API or DPF?
Hello team, I'm creating a script that gets the stress values in elements defined by element Id and would like to compare the stress values with the ultimate ones for material automatically. So, I wonder how to get the values of material properties for the element with a defined Id using Mechanical API or DPF? Thanks
-
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
-
Python Result example: Plot Young Modulus on elements
Using DPF inside a Python Result in Mechanical, how can I plot the material properties on each element of the model?
-
How to plot elemental custom results coming from a txt file in Mechanical?
I am an standard user of Mechanical, with no DPF background. I have got an in-house tool which makes a evaluation of my structure giving elemental custom results which can be written into a txt/csv file. I want to plot these elemental custom results in Mechanical.
-
How to map results data into different geometries?
Here's an example which maps the results from an assembly to a specific part of the assembly. The result calculated is the max principal elastic strain. Following the script from the mapping data post, the updated script calculates the difference between the elastic strains of the part and the elastic strains of the…
-
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?