Anything related to ANSYS, i.e. a CAE/multiphysics engineering simulation software for product design, testing and operation.
Questions tagged [ansys]
114 questions
3
votes
2 answers
Parametrizing Ansys Fluent with python in linux
I'm trying to do a parametric study in Ansys fluent through python.
The idea is to calculate some parameters before feeding them to fluent as boundary conditions and initial conditions.
I have searched wide and far but could not come into any…

coyote
- 194
- 13
3
votes
1 answer
Run ANSYS Mechanical APDL from Python in an efficient manner
I have the following code, which writes an Input file and executes ANSYS Mechanical APDL using a Windows command. My issue is the execution time is much longer (15 minutes inside the software, upwards of 1 hour when calling from Python). I need it…

Erik
- 41
- 1
- 4
2
votes
0 answers
pyansys mapdl reader visualization
I am working on Pyansys mapdl reader to visualise the values on the FE model. I have calculated few scalar values of no.of cycles to failure at each element and wrapped around the mesh to visualise it but the issue here is that the maximum values of…

suss
- 31
- 3
2
votes
1 answer
Change the way ANSYS workbench appears for version 18.2
I have a very specific question regarding ANSYS boot up and use.
I am not very familiar with ANSYS, but I have used the workbench enough before to be familiar with it. So when I went to open the workbench I was surprised to see this.
I am used to…

WnGatRC456
- 337
- 1
- 2
- 12
2
votes
1 answer
Comparing two Ansys Mechanical Model Trees
I want to compare two Ansys Mechanical Models and summarize the differences. For some cases it is sufficient to just compare the two ds.dat files with e.g. Notepad++. But different meshes make this comparison quickly confusing.
My idea is to export…

meshWorker
- 183
- 2
- 13
2
votes
1 answer
Is there an equivalent to ESLL in ANSYS ACT?
I'm looking for an ACT command that selects all elements that are connected to a line. In MAPDL this command was called ESLL.
Currently my script, which saves the elements in a named selection, looks kind of clunky:
geo_body = geo_data.GeoEntityById…

meshWorker
- 183
- 2
- 13
2
votes
2 answers
How to create shared topology using PyAnsys and PyVista
I have created two cylindrical meshes using PyVista with the goal of performing a modal analysis using PyAnsys on both the inner cylinder (shown in blue) and the outer cylinder (shown in grey). Where each of these cylinders have differing material…

ChaddRobertson
- 605
- 3
- 11
- 30
2
votes
1 answer
Python 3 - WRITE text to file without \n
I am writing a script that analyses some experimental data, then outputs certain information to a text file. The text file is used by another application, which will not understand the \n markers, and in which I do not have the ability to remove \n…

Joseph Langley
- 115
- 1
- 9
2
votes
2 answers
Ansys MPI_Init_thread: multiple pkey found / partition key table / MPI_IB_PKEY
there are problems with ansys. When I start it, it complains about some partitions. We are using slurm. Does it complain about slurm partitions, in which the jobs run? But RDMA sounds more a hard drive partition. I am a bit confused what the cause…

Networkguy
- 51
- 3
2
votes
1 answer
Boundary assignment in openFOAM
I created the mesh shown in the image below using snappyHexMesh.
I have assigned boundaries in blockMesh, but they have been removed after running snappy. My question is how to create boundaries like inlet/outlet to the mesh shown in the image.…

Moe.A
- 81
- 10
1
vote
0 answers
How to replace the stiffness matrix in ANSYS Mechanical APDL?
It is necessary to perform a calculation for a one-dimensional problem with a jump (this is some constant given in the displacements). There is a rod with areas V1 and V2, a border between them. At the border, the nodes are double numbered. There…

Igoshechka
- 11
- 1
1
vote
1 answer
Writing csv-file with IronPython (in Ansys Mechanical)
I am trying to export data from Ansys Mechanical by writing into a csv file. Unfortunately with my code the charakters in my lists don´t get seperated by the comma. They just end up in one cell and I can't figure out why. Thanks allot
Here are an…

nic
- 11
- 2
1
vote
0 answers
Stuck with loops in python
sheetData = {'ANSYS_Export': [['Bolt Pretension 33', [[False, 'Time [s]', '1.', '2.', '3.'],
[True, 'Bolt Pretension 33 (Working Load) [N]', '0.', '1.29e+005', '1.599e+005'],
[True, 'Bolt Pretension 34 (Working Load) [N]', '0.', '1.29e+005',…

Enrique BV
- 11
- 1
1
vote
1 answer
How can I control HFSS from Spyder?
I am trying to control, HFSS from the Python editor Spyder.
I tried the following but it gave me the error
`# -*- coding: utf-8 -*-
"""
Created on Wed Jun 01 16:53:18 2022
@author: Owner_Local
"""
import sys
sys.path.append("C://Program…

Robert
- 49
- 3
1
vote
1 answer
Inflation layer not working in certain geometries in ANSYS meshing tool
I am trying to implement an inflation layer between two geometries in my mesh using ANSYS, and I am confused about the procedure.
I found online (see the answer from Gopinath N K on 1/17/22) that in the ANSYS meshing tool you cannot combine face…

WnGatRC456
- 337
- 1
- 2
- 12