-
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…
-
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:…
-
Round off a list of decimal numbers to 4 significant figures without loops.
Round off a list of decimal numbers to 4 significant figures without loops.
-
Find the max abs of S1 or S3
How can I use DPF to find the maximum absolute value for S1 or S3 for all nodes for all timepoints. The min_max operator only accepts (and outputs) fields, but I need a fields container of all timepoints. The help has an example of how to do this by making a field local, but I have to think there is a better way than…
-
Can I edit the "Protected" parameter of a named selection from a script?
Here is what is returned from Tree.FirstActiveObject.Properties when a named selection object is selected: [GeometryDefineBy, GeometrySelection, SendToSolver, ProtectedTopology, SendAs, CosimulationInterface, Visible, IncludePCInflation, PreserveDuringSolve, ImportedFromCAD, NumInSelection, LengthOfEdges, AreaOfFaces,…
-
Load output of PyMechanical Script to PyDyna
I have a .mechdat file output from a previous sim in PyMechanical. How can I load it as an input mesh for subsequent simulation in PyDyna? Thanks in advance