|
[Sponsors] |
June 16, 2021, 07:29 |
how to link a C program to ANSYS CFX ?
|
#1 |
Member
Join Date: Dec 2019
Posts: 31
Rep Power: 6 |
Hello,
I am currently working on an axial pump. The original geometry didn't perform as well as I expected, so I plan to improve its performance. But all the ANSYS tools I tried either didn't work or didn't give me control over the variables I wanted, so I decided to use C code. Is there any way to link the C code to Ansys CFX? Thank you very much. |
|
June 16, 2021, 07:54 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
That depends on what you are trying to do. CFX has a C++ interface for reading and writing meshes. The solver has a user fortran interface, and the whole thing can be scripted using various text files (session files, CCL etc) so you can automate CFX by writing these text files. Writing text files can be done in just about any language.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
June 16, 2021, 08:38 |
|
#3 |
Member
Join Date: Dec 2019
Posts: 31
Rep Power: 6 |
first, the pump parts are made using Bladegen, then imported to Turbogrid for meshing, after that setup, and CFD-post.
I'm using genetic algorithms, so all the process should be done automatically |
|
June 16, 2021, 08:42 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
In that case it sounds like you want to write something which generates the input command files for Turbogrid, CFX-Pre, Solver and CFD-Post and then calls the command line to start those packages. This can be done in C or just about any other language. It is just generating text files and then running executables from the command line.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
Tags |
c programming, cfx 18, optimization parallel |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ansys Installation on Docker Container | mohsen.shiea | ANSYS | 11 | March 14, 2024 12:18 |
Compressible Flow in Ansys CFX | bcheruk | CFX | 15 | July 6, 2017 07:30 |
Ansys SIG$ILL error | loth | ANSYS | 3 | December 24, 2015 06:31 |
ICEM of ANSYS V15: how to export .msh mesh for CFX | hydroaero | ANSYS | 1 | March 9, 2015 23:17 |
Calculation of the Governing Equations | Mihail | CFX | 7 | September 7, 2014 07:27 |