|
[Sponsors] |
October 12, 2018, 16:54 |
How to create UDF file generally?
|
#1 |
New Member
GenD
Join Date: Nov 2017
Posts: 23
Rep Power: 9 |
Hi,
I've been learning ANSYS Fluent and Mesh for some time and now I've reached the point, where I want to define my own UDF file, but I don't know how to do this at all. First case is that C++ is a familiar language to me and I want to use it in coding UDF. Is it possible? The second case is far more complex. I don't know how to start writing code, in which programme, how to connect c++ file and ANSYS and is there any clue/scheme that I can follow to write code correctly for ANSYS? So basically I need step-by-step explanation. Is there anybody that can help me in this manner? Or have some materials, which I can learn it from? Anything. I appreciate every help. Thanks in advance. |
|
October 13, 2018, 07:47 |
|
#2 |
Member
mohamed
Join Date: Apr 2016
Posts: 34
Rep Power: 10 |
||
October 13, 2018, 08:12 |
|
#3 |
New Member
GenD
Join Date: Nov 2017
Posts: 23
Rep Power: 9 |
I don't know, if I understand correctly, so correct me. The only way to define UDF is by using C language?
|
|
October 13, 2018, 19:31 |
|
#4 |
New Member
GenD
Join Date: Nov 2017
Posts: 23
Rep Power: 9 |
I've found the answer to my question. UDF can be written in C++. After searching whole the internet, I've found everything in most obvious place, ANSYS Help. I put here the link for the ones that will look for it in future. It's like the instruction given here by moh_zain, but for the latest version 19.2.
https://ansyshelp.ansys.com/account/...f/flu_udf.html |
|
October 14, 2018, 02:40 |
|
#5 |
Senior Member
Join Date: Sep 2017
Posts: 130
Rep Power: 9 |
||
October 14, 2018, 21:48 |
|
#6 | |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
Quote:
Please see https://vcUdfStudio.bitbucket.io |
||
October 15, 2018, 02:47 |
|
#7 |
Senior Member
Join Date: Sep 2017
Posts: 130
Rep Power: 9 |
Or maybe he wants to see this topic:
What compilers can we use in Ansys Fluent to compile our UDF? Thanks to gearboy for useful tool. |
|
October 15, 2018, 08:16 |
|
#8 |
New Member
GenD
Join Date: Nov 2017
Posts: 23
Rep Power: 9 |
Thanks for all your help.
I've started to read the Manual for the purpose of creating UDF file, but... I got a problem. As you can see on the image I attached, source code don't read the udf.h. I have even put this file in local folder of my_adjust.c. Still nothing. Any thoughts? |
|
October 16, 2018, 02:35 |
|
#9 |
Member
mohamed
Join Date: Apr 2016
Posts: 34
Rep Power: 10 |
read chapter 4 and 5 depending on which udf you use
|
|
Tags |
coding, fluent, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 18:18 |
[swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 13:41 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |