-
Transfer convection coefficient and ambient temperature data from csv to Mechanical via PyMechanical
I have data in csv and want to replace the convection coeff and ambient temperatures of convection boundary conditions in my mechanical model with the values in csv. How can I do this in PyMechanical?
-
How to export Time History tabular data of Force Reaction in Mechanical as a csv file?
I have several Force reaction objects in Mechanical and I want to export the time history for each Force Reaction object as a separate csv file which should have the columns Time, Fx, Fy and F_Total
-
How to create a coordinate system based on direction vectors and a specific origin?
I have principal axis vectors and center of gravity of a body. Now I want to create a coordinate system based on these vectors and center. But, Mechanical doesn't let me input vector information.
-
Migrating ACT extension: error message with CreateLoadObject()
I'm migrating an ACT extension to a newer version of Ansys and I'm getting an error message that CreateLoadObject() takes 2 arguments and only 1 was given: How do I resolve this?
-
How to extract directional acceleration results on a node in ANSYS Motion?
How to extract directional acceleration results on a node in ANSYS Motion?
-
How to get plate thickness based on element id?
Hi everyone, I have a plate model with several plates of different thicknesses. In postprocessing I'd like to know the thickness of an element based on its id. Does anybody know how to calculate/retrieve it? from ansys.dpf import postsimulation = post.load_simulation('file.rst')elemental_stress =…
-
Insert results and export image and animation
In Mechanical scripting, I would like to add a total deformation result and an equivalent stress result, evaluate those results and export an image (.png) and an animation (.avi) for each result.
-
DPF Crashes Workbench with large result files
I've noticed an issue when using DPF with large result files in my ACT scripts (currently using version 2023R2), essentially whenever the result file gets large enough (25+GB) all of my post processing scripts crash workbench a few seconds after starting to run. I reduced the size of mesh and resolved to get a smaller…
-
How to automaticly open workbench and import a geometry file (e.g.spacecliam) to mechiancal
I want to use pyansys to automatic run workbench and import a geoemtry file (generated by spaceclaim) in a local folder ?
-
Retrieve parameters and values
Is it possible to retrieve information on the parameters defined in the Parameter Set of a WB project schematic?
-
How to specify material and material model ( like Johnson cook model) using PyMechanical
The code and issue are stated here : https://github.com/ansys/pymechanical/issues/499
-
How to export Fluent msh file from Mechanical via scripting?
How to export Fluent msh file from Mechanical via Scripting? One can export it via GUI in Mechanical --> File --> Export
-
Why is there a discrepancy between the mold flow tensor and the rebuilt global Tensor of Ansy s
Hello everyone, I have a question regarding element orientation from injection mold data mapped on the ansys mesh. I simulated with this data and I got some euler angles as you can see here below. [87.893,-5.402,89.805] Then, I tried to reconstruct the global tensor coordinate system from the local eigen value and euler…
-
How to use SearchConnectionsForDuplicatePairs() ?
Mechanical offers an option to find duplicate contacts: Can this be used in scripting?
-
Minimum Principal Stress for a Full harmonic Analysis
How can I post-process the Minimum Principal Stress by Minimum Over Frequency in a full harmonic analysis and in the solution coordinate system?
-
Python Result example - mapping data
Is there an example of Python Result to map result data from one mesh to another mesh?
-
How to access results of Motion - Function Expression using scripting?
Hi all, is it possible to access results of Function Expression using scripting in Mechanical?
-
Overview of postprocessing capabilities in Ansys
In civil engineering, APDL has been traditionally used for both building up the models and postprocessing. Nowadays, many engineers are building their models in Mechanical, but they still use APDL snippet commands for getting some output data into txt files that are used afterwards in in-house tools. Which are the…
-
How to extract function expression result (Custom result) data using scripting for Ansys Motion?
-
How do I convert LS-Dyna results to USD format?
How do I convert LS-Dyna results to USD format?
-
ERP calculation using dpf-core
Hi, I am trying to calculate the Equivalent Radiated Power of a given surface, based on a named selection. I have performed a harmonic analysis using MSUP, and have created a named selection called "LARGE". The code has a number of blocks: 1) Time Here the time scoping is obtained 2) NS Here a mesh scoping is obtained from…
-
Centre of Gravity - Mechanical Script
How can I get the centre of gravity of an assembly of parts using scripting inside mechanical?
-
How can I create the fibre orientation tensor file used by nCode using PyDPF-Composites?
When using fibre-share approach of Ansys nCode DesignLife Short-Fibre Composite, a csv file including the fibre orientation tensor per element is needed, which must be given in the same coordinate system as the stress analysis result. Can PyDPF-Composites help me on its creation?
-
To Be Deleted
This question is to be deleted.
-
auto read script
1.How to use code let workbench read Journal script? 2.How to use code let SCDM red .py file?
-
How to create an Ansys UI Toolkit GUI box to get input from the user?
How to create an Ansys UI Toolkit GUI box to get input from the user?
-
How can I read a legend settings from a file from a script?
I have saved many Legends settings in xml files. I can access them interactively using the "Manage Named Legends" RMC on the results legend -> Named Legends -> Manage -> Import Also once the legends settings are loaded. How do I pick one from the list in my mechanical script? Thanks a lot
-
How can I convert coordinates from global to local CS in Mechanical?
When I select an entity in Mechanical, I can choose a coordinate system to display coordinates in the selection information. Is there a way to do it by script?
-
Python Result and DPF - how to select component
Using DPF to retrieve the deformation on a model. The operator returns a fields container with 3 components (UX, UY, UZ). How can I select the component to be plotted, in case I want to plot only UX for example ?
-
How to activate viewports in mechanical using script?
Dear Team, I am using four viewports in mechanical. As i need to save the image in each view port. I am looking for the the API to activate the viewport before saving the image via script. Thanks in Advance
-
Defining solution parameters
Hello, I saw in a few posts, that from v2021R2 on it is possible to define own parameters. I want to define three Stress Intensity Factors along the crack as an output parameter. At point 1, 16 and 31 of my crack front division. Is that possible and how? Thank you so much. Best regards, Viktoria
-
What is the most efficient way to export lots of animations from Mechanical
If I want to export hundreds of mode shapes to small animation files what is the best way to do that considering speed of creation and small file sizes?