CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF in .txt

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2016, 07:35
Default UDF in .txt
  #1
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
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,
oozcan is offline   Reply With Quote

Old   August 2, 2016, 10:28
Default
  #2
Member
 
ERMACORA Florian
Join Date: May 2016
Posts: 39
Rep Power: 10
flo90000 is on a distinguished road
Quote:
Originally Posted by oozcan View Post
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.
flo90000 is offline   Reply With Quote

Old   August 2, 2016, 10:39
Default
  #3
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
Quote:
Originally Posted by flo90000 View Post
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,
oozcan is offline   Reply With Quote

Old   August 2, 2016, 11:17
Default
  #4
Member
 
ERMACORA Florian
Join Date: May 2016
Posts: 39
Rep Power: 10
flo90000 is on a distinguished road
Quote:
Originally Posted by oozcan View Post
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.
flo90000 is offline   Reply With Quote

Old   August 3, 2016, 04:58
Default
  #5
Member
 
Join Date: Jun 2016
Posts: 66
Rep Power: 11
Zbynek is on a distinguished road
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.
Zbynek is offline   Reply With Quote

Old   August 3, 2016, 05:21
Default
  #6
Senior Member
 
Onur Özcan
Join Date: Feb 2016
Location: Istanbul/Turkey
Posts: 461
Rep Power: 12
oozcan is on a distinguished road
Quote:
Originally Posted by Zbynek View Post
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,
oozcan is offline   Reply With Quote

Old   February 16, 2019, 07:38
Default
  #7
New Member
 
M MOHSIN's Avatar
 
M Mohsin Iqbal
Join Date: Jan 2014
Location: National University Sciencies & Technology, Pakistan
Posts: 17
Rep Power: 12
M MOHSIN is on a distinguished road
Quote:
Originally Posted by flo90000 View Post
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.
M MOHSIN is offline   Reply With Quote

Reply


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
Parallelize UDF? Which kind of UDF? Lilly FLUENT 5 March 25, 2014 03:05
Help! Delete the UDM codes in the UDF Messi Fluent UDF and Scheme Programming 2 January 28, 2014 10:01
udf for multiple reaction alihosseini63 Fluent UDF and Scheme Programming 0 July 4, 2013 19:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 19:20.