-
How to implement Utilization factor procedure in IPython DPF (Mechanical)
Hi, I'm trying to plot utilization factor based on Von Mises stress and arbitrary yield value. My similar script works in CPython, however in Mechanical Python Rsult I'm getting 0s. Von Mises Elemental Mean is plotting correc, but next step is not yielding results def define_dpf_workflow(analysis): import mech_dpf import…
-
PyMechanical example for " how to access parameter of ANSYS mechanical"
I want to use pymechanical for the remote session and access the parameter of that ANSYS Workbench Mechanical file and again solve it on remote.
-
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 can I extract participation factors of a modal analysis?
How can I extract participation factors or ratio of effective mass of a modal analysis through scripting?
-
Using Mechanical scripting, how do I search for objects in the tree?
For example, how would I get a pressure load named MyPressure or all Named Selections scoped to nodes?
-
Extract real and imaginary displacement in cyclic symmetry analysis
I have a cyclic symmetry analysis model and would like to extract the real and imaginary nodal displacements. Is this possible?
-
Importing library os in Mechanical
I want to import the library os in Mechanical, but i always get this error message. I have this on two different computers with different Ansys versions (2022R1, 2023R1). I am sure that it worked in the past and in this forum the library is often used aswell.
-
How to change text style and size in Ansys Mechanical ?
Hello everyone, do you think we can change the Tree objects text style or size in Ansys Mechanical using scripting? I can manipulate the graphic labels using javascript, so i think it should exist something similar to do the same with text in Ansys Mechanical using javascirpt or Python. I'am talking about this text , i can…
-
Multi stage cyclic symmetry models
Hi, I need to work on multi-stage cyclic symmetry models in Ansys. Can anyone please guide me on how to start? Also, are there any available learning materials or tutorials on this?
-
Get the top 10% of the results from an analysis
How to get the average value for the top 10% ranked output value for a predefined Named Selection? In post processing, it would take only the 10% top ranked output value (e.g. NLPLWK) in a predefined Named Selection (Mesh,Nodes,Face) and plot it. Then it would calculate the average of those 10% shorted values with their…
-
Edit legends with a UI box in Mechanical
It has come to my attention that several users have issues editing the legend in the Mechanical UI due to a graphical defect with certain NVIDIA GPUs. How can I create a python button in Mechanical that allows me to edit the upper/lower bounds?
-
Script for Ansys LS-Dyna / Mechanical
Ansys LS-Dyna / Mechanical 2023R1 How could I use script and/or ACT to Generate CFL time-step in Ansys LS-Dyna Get its Minimum CFL value and Maximum CFL value
-
How can I create groups of groups for the geometry in Mechanical?
How can I create groups of groups for the geometry in Mechanical ?
-
What's the difference between "Tree geometry" and "Geodata" in Mechanical API?
See above.
-
Check face types in Mechanical
In Mechanical, how can I check the face type (ie, plane, cylinder, etc) for each body in the Mechanical tree?
-
Export Deformed Mesh for Harmonic Analysis
I want to export the deformed body mesh at a particular frequency and particular phase angle for a harmonic analysis as a .cdb file. Harmonic Analysis - Ansys Mechanical 2021R1
-
How to get the parts with failed Mesh?
How to get the parts with failed Mesh in Mechanical/Ansys Ls-dyna? Originally I tried to identify the part with 0 element as failed mesh part, it works the case starting with no mesh condition. Unfortunately in some cases all mesh are completed (mesh ObjectState is Solved), and for better quality purpose modified the mesh…
-
Set solve process settings and RSM queue through scripting
How can I create a new solve process setting and select the RSM queue through scripting?
-
How to plot charts in Mechanical?
How to plot charts in Mechanical?
-
How to get the unmeshed parts by script?
If mesh status is not Solved, how to get the unmeshed parts by script in Mechanical, Ansys Ls-dyna?
-
Draw an ARC and a Circle
ExtAPI.Graphics.Scene.Clear() draw_cmd = ExtAPI.Graphics R=1 theta_in = 0 theta_end = (pi) np = 60 dtheta = (theta_end- theta_in)/np graphics = ExtAPI.Graphics for i in range(np): p1= draw_cmd.CreateWorldPoint (R*cos(i*dtheta+theta_in), R*sin(i*dtheta+theta_in),0) p2= draw_cmd.CreateWorldPoint…
-
Question regarding changing user defined charts' time steps using a python result script.
Hi I have a python result file that I am trying to get some custom result files evaluated in different time steps. for some reason I cannot find a method under a user plot object that would be similar to "Retrieve this result" as opposed to "Evaluate all results. In any case the application does not perform a "Evaluate all…
-
How to get correct Joint's ObjectState under with Transaction(True)
With below code, it shows 'NoState' for Joint ObjectState. It's incorrect status. But out of Transaction, it shows the correct status UnderDefined. My question is how to get the correct ObjectState within Transaction(True):, so that it can go PromoteToRemotePoint successfully. Because in my real case, there may be more…
-
How to retrieve "floating point ops" from solve.out file in Mechanical ?
I need to create a parameter studies with 'floating point ops' as outputs parameters :
-
Selecting an element/node by its Id, how to find which body the element/node corresponds to?
I have an element id, but I need the body to which the element corresponds to. In general, I have a named selection with all the elements of a body. I need to find out to which body the elements correspond to in the assembly.
-
Ansys Mechanical Scrpting (Python): How to set direction of directional shear force?
Hello, I am trying to create a beam result for a directional shear force (in y- & z-axis). But this options seems not to exist as a method (at least I can't find it in the API Reference Guide). For directional bending moments, it is easily possible: yMoment = mySolution.AddDirectionalBendingMoment()…
-
In Mechanical scripting how can I create a Named Selection that is scoped to a list of node numbers?
I have a list of node numbers in a CSV file. I would like to create a named selection with the node numbers, so that I can visualize where are these nodes located at the mesh. Is this possible with Mechanical Scripting?
-
Microsoft Authentication Library support for Ansys Plugin
Need help regarding Microsoft Authentication Library support for Ansys Plugin.