-
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 unfortunately gone into lockdown and you will not be able to post anything for a while. Please bear with us whilst we address…
-
New search functionality for the Ansys dev portal
Hello to our forum and portal users! We are very excited to be on the verge of rolling out our new unified search for the Ansys Developer Portal and Forums. This search will bring together the documentation and articles from the dev portal and posts and information on the forum into a new single search. Over time we will…
-
Welcome! Please Read Before Posting
Welcome to the Ansys Developer community! If you are using the developer tool packages with Ansys simulation tools then this is your community space. This community has been created to ask questions of your peers, exchange ideas, and converse about developer issues within an Ansys context. Here are some guidelines: Keep…
-
How can we using act mech. scripting print the average pressure on a fsi surface?
Say we have a vibro-acoustic models and a FSI surface - named selection called watersteelinter_so_fsi. How can we print the average pressure there for each frequency ?
-
XML control tags in property for ACT extensions
Is there a list of property controls somewhere for reference. The XML documentation doesn't have a list. I looked for about 30 minutes on the forum and examples. I know of "float", "string", "select" for lists, "scoping" for geometry? Is there others. I would like a few different controls. 1. I would like to pick a…
-
Mapdl in a loop: computation times increases
Hello, I am using mapdl to run independent static simulations in a loop. mapdl = launch_mapdl(...) for i in range(1000): t = time.time() static_computation()#calling mapdl solver elapsed = time.time() - t I did a bunch of tests and have noticed that for my first 11 iterations my elapsed time in around 0.6 sec (for each…
-
How do I get a joint associated with a given coordinate system?
When I get ExtAPI.DataModel.Project.Model.CoordinateSystems.Children, I get a list that includes all the coordinate systems associated with joints in the Connections branch of the tree. Further, there doesn't seem to be a means of distinguishing between a joint coordinate system that only shows up under the associated…
-
Using mech_dpf to output stress components in cylindrical coordinate systems
I want to output stress components for specific nodes, at specific time steps, of an analysis for further post processing. I can do this in cartesian coordinate system but need the results in polar coordinate system. I am currently working in 21R2, and would like to do this in mechanical scripting as I am not able to…
-
An Issue while Using with Transaction()
I am currently experiencing an issue with my script, which is divided into three main parts. The first part uses Auto_Detection to create the initial Connection Group and performs specific operations based on keywords. The second part sorts and classifies the created Contact Regions. The third part performs a new…
-
Lumapi module always raises AttributeError
Issue: The lumapi module always raises the AttributeError when any of the methods of the lumapi.FDTD class are called. Description: Our group is currently trying to create a data creation workflow in Python and use Lumerical FDTD (or MODE) to simulate the propagation of light on chip for certain devices. We would like to…
-
How can we automatically (say via mechanical scripting) create directional point masses?
How can we automatically (say via mechanical scripting) create directional point masses, say by first reading some data from a csv file (where the first column in that file gives the named selection to scope to, and the other columns contain the directional mass in x, y , z respectively for that point mass - so every row…
-
How to group joint results in the same groups we create in connections definition ?
Hi, I create a code in order the create joint results (force and moment) for each joint in the model. All the results are store in the same group. def def_JointExport(analysis,nom="Liaisons",temps=[]): numberAnalysis=Tree.GetPathToFirstActiveObject()…
-
How to export mesh as .msh file from Mechanical using PyMechanical
Hi all, I'm trying to export a mesh file in .msh format from a session of Mechanical 2024 R2 using PyMechanical. I've found this post, and tried to implement the solution: https://discuss.ansys.com/discussion/2715/how-to-export-fluent-msh-file-from-mechanical-via-scripting But when I try to use the line:…