-
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…
-
mapping.on_coordinates operator on tetrahedrons mesh
Hello, I have a question regarding the "mapping.on_coordinates" operator. To test my code I use a simple ANSYS model consisting of a beam, meshed with volume elements, fixed on one side and loaded with a lateral force on the other side. My aim is to determine the stresses along the outside-surface node normals. I have the…
-
DPF model.metadata.meshed_region properties
For a particular model I see the following: model = dpf.Model(rstfile) print(model.metadata.meshed_region.available_property_fields) Returns: ['connectivity', 'elprops', 'eltype', 'apdl_element_type', 'section', 'mat'] Can you please explain the following: The scheme by which the element connectivity is stored What is…
-
How to get plate thickness based on element id?
Hi everyone, I have a plate model with several plates of different thicknesses. In postprocessing I'd like to know the thickness of an element based on its id. Does anybody know how to calculate/retrieve it? from ansys.dpf import postsimulation = post.load_simulation('file.rst')elemental_stress =…
-
Extract PointData from d3plot files
Hi, I would like to understand the correct method for extracting LSDyna results from our d3plot files and adapting them for a web application. Specifically, we are attempting to extract PointData and create VTK objects to display in our Dash app. Currently, we have successfully extracted the FieldsContainer, but we are…
-
How do I convert LS-Dyna results to USD format?
How do I convert LS-Dyna results to USD format?
-
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…
-
How can I create the fibre orientation tensor file used by nCode using PyDPF-Composites?
When using fibre-share approach of Ansys nCode DesignLife Short-Fibre Composite, a csv file including the fibre orientation tensor per element is needed, which must be given in the same coordinate system as the stress analysis result. Can PyDPF-Composites help me on its creation?
-
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.
-
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…
-
Check for mesh connectivity between two bodies
How to check whether there is mesh connectivity between two bodies using scripting? for example, manually I can use mesh connection option in Display settings to verify: upon observation, I can confirm whether it has mesh connectivity or not. but, if I have to verify the same using scripting, is there any way?
-
Ansys pyDPF Logical statements
Hi, I am new to the world of PyDPF and was wondering if there was an if statement or something equivalent as a operator in PyDPF. I'm looking to compare stresses on a node by node basis against a critical value and if the stress at the node exceeds a value I would like to set that value to 0. I noticed that there was an…
-
Extract eigen values and eigen vectors from d3eigv files in pydpf
Extract eigen values and eigen vectors from d3eigv files in pydpf
-
Python Result - Pressure Plot
Is there a way to use a python result object to create a contour plot of all applied pressures in Ansys Mechanical? It seems like the result file does not contain pressure information. How can I access the applied pressure to generate a plot showing the pressure in each time step?
-
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 do I extract Mode Shapes with Result file on remote machine using PyDPF?
How do I extract Mode Shapes with Result file on remote machine using PyDPF~~~~?
-
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 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 can I plot in pydpf-post results on a mesh part linked to a named selection?
'Extract results on named selections - Modal Simulation' example shows how to plot results on a specific named selection. Results are only shown on that named selection, but the rest of the structure is kept grey. Is there any way to only plot the mesh which is linked to the named selection and not the whole structure?
-
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…
-
How to compare two transient runs and extract maximum of difference between nodal temperatures?
We want to compare two thermal transient runs, under the assumption they contain results at the exact same time steps. As an end result, we want to get a plot of the maximum differences between nodal results over the entire time range - i.e. we only have one plot showing max(t2,t1) not at every time step but for the entire…
-
How can I export a GLB / GLTF file format with PyDPF?
How can I export a GLB / GLTF file format with PyDPF?
-
How to get svar outputs with ansys-dpf?
Can anyone help with getting svar output results with ansys-dpf? I cannot find it in model result fields.
-
Error extracting nodal forces from beam connection
I am working on building a script to pull forces from beam connections in a model. In my test model I have 2 shells with holes cut in each and a beam connection between them. In the UI I can place a 'Beam Probe' and get all the data I need, but I cannot seem to get it through DPF. I get the same error with Output Controls…
-
How can I calculate joint forces on MPC184 elements using PyDPF?
How can I calculate joint forces on MPC184 elements using PyDPF?
-
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?
-
How to calculate contact surface and heat flow with the use of PyDpf
How to calculate contact surface and heat flow with the use of PyDpf