CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

how to link a C program to ANSYS CFX ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2021, 07:29
Question how to link a C program to ANSYS CFX ?
  #1
Member
 
Join Date: Dec 2019
Posts: 31
Rep Power: 6
Mohamed911 is on a distinguished road
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.
Mohamed911 is offline   Reply With Quote

Old   June 16, 2021, 07:54
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   June 16, 2021, 08:38
Default
  #3
Member
 
Join Date: Dec 2019
Posts: 31
Rep Power: 6
Mohamed911 is on a distinguished road
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
Mohamed911 is offline   Reply With Quote

Old   June 16, 2021, 08:42
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Reply

Tags
c programming, cfx 18, optimization parallel


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 21:33.