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

Can I import text file to UDF?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By pakk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2016, 20:57
Default Can I import text file to UDF?
  #1
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, 06:03
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
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

Reply

Tags
import, text, txt


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 07:29
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 11:03
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 06:18
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24


All times are GMT -4. The time now is 08:44.