CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF in .txt (https://www.cfd-online.com/Forums/fluent-udf/175604-udf-txt.html)

oozcan August 2, 2016 06:35

UDF in .txt
 
Hi all,

I have some readed FLUENT tips. Allmost all tell that Microsoft Visual Studio is helpful to be linked dynamically to FLUENT. All folder extensions .c is must. I have no any C,C++ or Microsoft Visual Studio. is it possible to have access to write/do UDF macro in .txt extension

Kind Regards,

flo90000 August 2, 2016 09:28

Quote:

Originally Posted by oozcan (Post 612429)
Hi all,

I have some readed FLUENT tips. Allmost all tell that Microsoft Visual Studio is helpful to be linked dynamically to FLUENT. All folder extensions .c is must. I have no any C,C++ or Microsoft Visual Studio. is it possible to have access to write/do UDF macro in .txt extension

Kind Regards,


Hi

In the UDF manual, it write the UDF iw written in C programming language.

oozcan August 2, 2016 09:39

Quote:

Originally Posted by flo90000 (Post 612471)
Hi

In the UDF manual, it write the UDF iw written in C programming language.

I have two manuals 6.1 and 12, respectively. But I have never seen anything .txt extension?

So, is it possible to write C programming language in .txt extention ? and is there any differences ?

Kind Regards,

flo90000 August 2, 2016 10:17

Quote:

Originally Posted by oozcan (Post 612474)
I have two manuals 6.1 and 12, respectively. But I have never seen anything .txt extension?

So, is it possible to write C programming language in .txt extention ? and is there any differences ?

Kind Regards,

Personnaly I write my UDF in notepad++ but Ithink that you can write it in any text editor. As long as you can write in .c extension because when you will compile your UDF in fluent, it understand only the C language.

Zbynek August 3, 2016 03:58

You can write your UDF in whatever you want but you will hardly compile it if you write it in Notepad and have no other C compiler. All you could do is to interpret it - however, bear in mind that interpreted functions have some limitations and some more complicated macros must be compiled.

Anyway, simply download Visual Studio! The Express version is for free. Then you get a decent IDE for your codes.

oozcan August 3, 2016 04:21

Quote:

Originally Posted by Zbynek (Post 612584)
You can write your UDF in whatever you want but you will hardly compile it if you write it in Notepad and have no other C compiler. All you could do is to interpret it - however, bear in mind that interpreted functions have some limitations and some more complicated macros must be compiled.

Anyway, simply download Visual Studio! The Express version is for free. Then you get a decent IDE for your codes.

Hi all,

Thank you very much for your thought that is valuable to me.

Kind Regards,

M MOHSIN February 16, 2019 06:38

Quote:

Originally Posted by flo90000 (Post 612471)
Hi

In the UDF manual, it write the UDF iw written in C programming language.

Hi, i trust you are in good spirits.

Can we hook the C++ Compiled UDFs in Fluent?

Kind Regards.


All times are GMT -4. The time now is 12:24.