Best Of
-
Re: PyMechanical: Opening an existing mechdat file while launching PyMechanical
Hi @"James Derrick" , thank you for your quick response. I have found a way of doing it. Instead of opening an existing file using launch_mechanical directly, I used the run_python_script(.…5 -
Is your scripting up to scratch?
We want to hear from you! What's the most useful Ansys scripting tip you've found? It could be on the forum, in documentation, or anywhere else. It just has to be... * About Ansys * A developer tool …10 -
Re: Display XY-plot by using PyFluent Visualization
Hi, does this help: https://stackoverflow.com/a/56416229 ?6 -
Re: Ansys Python Chart Output Quantities
Hello @jholder2 A colleague of mine gave me the answer for this. #----------------------------------------------------------------------all_properties=Add_Chart.Properties #Output Quantities starts f…5 -
Re: How to change project unit system in Mechanical?
ExtAPI.DataModel.Project.UnitSystem = Ansys.Mechanical.DataModel.Enums.UserUnitSystemType.StandardNMMton https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v201/en/act_ref/item…6 -
Re: Example of dummy post object
Below is an example of a post object that when evaluated will change the value in the details view from 0 to 15. * The xml file is: <extension version="1" name="PostObject">…7 -
Why does pyDPF report negative harmonic indices
When listing model data pyDPF shows negative values for Harmonic Index? Number of sets: 30 Cumulative Frequency (Hz) LoadStep Substep Harmonic index 1 670386.325235 1 1 0.000000 2 872361.424038 1 2 0…6 -
ATTENTION NEW USERS! READ THIS POST BEFORE DOING ANYTHING!
Hello all! Unfortunately the forum has recently been the victim of a spam attack, which you may have seen. We've got it under control but whilst we work to shore up the walls, so to speak, we have un…6 -
Re: Working with legends in Mechanical scripting
In 2020R2, new ACT features have been released to expose legend settings. Legend Settings can either be Global (common to all results) or result specific.You can use the following Legend Settings obj…7 -
Re: Create a Python result to plot the node ID
The below script can be used. The trick is to use the forward_field() method to send the field to an operator to be able to plot it. def post_started(sender, analysis):# Do not edit this line define_…5