|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
S.J Chung
Join Date: Mar 2015
Posts: 6
Rep Power: 10 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 25 ![]() |
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". |
|
![]() |
![]() |
![]() |
Tags |
import, text, txt |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |