CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Can I import text file to UDF?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By pakk

LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2016, 19:57
Default Can I import text file to UDF?
New Member
S.J Chung
Join Date: Mar 2015
Posts: 6
Rep Power: 11
ssavi22 is on a distinguished road
hi guys.

I want to import text file to UDF (define macro) for setting cell porosity.

Is there any way to read text data?

Ps. Can I set porosity of each cells by using define profile?
ssavi22 is offline   Reply With Quote

Old   July 13, 2016, 05:03
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Yes. UDFs are written in the c language, and in c it is possible to read text files.

For more information on how to read text files in c, google "how to read text files in c".
ssavi22 likes this.
pakk is offline   Reply With Quote


import, text, txt

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
wmake compiling new solver mksca OpenFOAM Programming & Development 14 June 22, 2018 06:29
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 10:03
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24

All times are GMT -4. The time now is 15:49.