-
How to create small buttons for ACT Extension
Hi for a long time I'm wondering if it is possible to create small toolbar entries for my ACT extension. I'm able to create only big buttons (Supports), but not the small entries (Fixet, Frictionless, ....) Does some way exist, how to do it? Thanks
-
Maximum tensile and compressive stress in XY plane
I want to plot the maximum tensile stress in the xy-plane and the maximum compressive stress in the xy-plane. I am able to extract the x and y stress using the python result snippet inside Mechanical, however I'm struggling to perform the math using logic and for loops to evaluate each element: If the stress in both…
-
Calling object generator within ansys script
Hi, Is it possible to call the object generator tool within an IronPython script? I am trying to use Python code to automate creating repetitive contacts and the object generator is great at doing that with just a few named selections. I would like to pass the named selections through the script and have the object…
-
How do I export Nastran File from Mechanical to a user defined path?
How do I export Nastran File from Mechanical to a user defined path?
-
How to Export Nastran File to a specific folder?
Using ACT scripting inside mechanical how can we export a Nastran file to a specific folder?
-
How to parameterize the objective weight using Python Code object?
When performing Structural Optimization analysis in Mechanical, one can define multiple rows (corresponding to multiple analyses) in Objective, which will then activate the property "Weight" in the worksheet. One cannot parametrize these weights natively.
-
How do I export pictures for multiple design points?
I am running a simulation for which I create figures for various results. I want to export them for each design point. How can I do this?
-
How to make total mass of a part as an Output parameter in Mechanical using Python Code object?
In ANSYS Mechanical, we can make the mass of all bodies as a parameter, but, if one wants mass of a multibody Part or an assembly, the Parameter option is not available.
-
How to assess the maximum stress range for a fatigue assessment when there are several load cases?
This might be a trivial task if there is a manageable number of load cases. Once the load case number is increasing and/or the data is sitting in different result files the effort for doing it may get time consuming.
-
How do I calculate stress along a path of desired length normal to a surface at a node?
How do I calculate stress along a path of desired length normal to a surface at a node?
-
How to get stress values along a path using DPF considering element orientations defined on body?
Hi guys Would need help understand how to retrieve stress tensor values on a path considering: element orientations the are defined in the associated body, layer, and position . Similar to a user plot defined on a path: I have developed the module to retrieve the nodes on the path and I have a named selection of the…
-
Robust Example of Python Result Property Provider and Script
Hi all, This is just an example of some advanced implementations for python result objects. There are some more properties, helper methods and general how-to information in the code.
-
How can I populate the tabular data section of a python result Plot?
Hi , was wondering if there is a quick sample on how to get custom data to display in the tabular data section of a python result plot. For instance in my case, I calculate a certain value for specific nodes and want the tabular data to show the node and the corresponding value for the node. Would appreciate any help in…
-
Creating custom charts, using python result plots
Hi Is there an example anywhere on how to use charts with python results? basically what are the requirements for the tree item allowed for the chart as input selections. And how can cater my python result file to be an acceptable selection for the chart?
-
Nodal named selection: retrieve node numbers in selection?
How can I know the node numbers of a nodal named selection, through scripting?
-
How to install/use PyAnsys in Mechanical CPython console?
How to install/use PyAnsys in Mechanical CPython console?
-
Need help updating python result property upon changing another property.
Hi again Was wondering if someone would know how to setup a python result property that updates another property upon change. For example, when I change the Weaker plate material field, I would like the weld strength to be updated with it to what ever value I have associated to the plate. You can assume that I am using…
-
How to get Von Mises equivalent stresses in a random vibration analysis using DPF?
If we try to use stress_von_mises results, we are getting different values than Mechanical. Why?
-
Use Mechanical DPF to define a "path" and calculate/integrate stress along it
How can we define a conceptual path (not an actual path + result in the tree) in DPF in Mechanical. I want to define the path with start+end points and # of divisions. I then want to map a stress result to those path points and then possibly also do a length-normalized average or integration along that path. Anybody have…
-
Use Python Code object / Python Result object with a DOE
When a Python Code or a Python Result object is inserted in Mechanical, by default it is not connected, ie there is a question mark next to the object in the Mechanical tree, and the code will not be executed. Manual action has to be taken to connect the object, which is fine for a single run, but will prevent a DOE…
-
Example of worflow automation: create geometry, model setup, and postprocess
Is there an example of workflow automation with geometry creation, model setup and postprocessing?
-
How can I run a Mechanical script in batch mode?
I have a Mechanical script that I can run by opening Mechanical and clicking Scripting>>Open script>>Run. How can I run this script in a batch mode?
-
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
-
Meshing clipboard
Mechanical 2023R1 About mesh control’s copy to clipboard, is it possible to save the mesh control items offline in disk (or any way that to save mesh controls offline) and then if one day we have leverage design/geometry with this part and can just import the saved mesh control items into the new Mechanical model and…
-
Combine mode shapes using Mechanical DPF
I've run an eigenvalue buckling analysis and would like to create a Python Result that will plot a combined deformation of the mode shapes, with a scale factor.
-
Cannot scope Named selections for a Path Construction Geometry
Hi guys. An easy one for you. I am trying to scope a named selection to a path. I am using : pth.Location = ExtAPI.DataModel.GetObjectById(WeaverEdge_NS.ObjectId) This changes the Scoping method to Namedselection but does not populate the Named selection field. and the pth.location remains [] when I audit during debug. I…
-
Combine mode shapes using Mechanical automation API
I've run an eigenvalue buckling analysis and would like to: add a mode shape result for all eigen modes add a user-defined result that will plot a combined deformation of the mode shapes, with a scale factor
-
Volume and mass of elements above a result threshold
Using ACT scripting, how can I find the elements for which the average stress is above a specific value and sum the volume of these elements, and find the summed mass of these elements ?
-
Export result data
From a Mechanical simulation, I would like to export result data
-
How can we get the user files folder?
How can we get the user files folder of a project, from Mechanical?