|
[Sponsors] |
May 3, 2013, 10:14 |
how to retrieve output to a text file!!
|
#1 |
Senior Member
|
Hi,
I am a beginner in udf and would love to have your help in the following problem. Thank you very much in advance I have a udf for accessing the cell information such as its x,y,z coordinate, mixture fraction of species. Everything is fine, except i dont know how to get this data written into a text file. I thought it would get displayed in one of the "results" so that i can just "write" it into a file..But now it gets displayed only in the boundary conditions. Please can someone tell me how do i extract this information on to a text file. the program is as below. #include "udf.h" DEFINE_ADJUST(fonction_retour,domain) { cell_t c; Thread *tc; real xc[ND_ND],x,y,z,tempe,mass_w_i; int i; thread_loop_c(tc, domain) { begin_c_loop(c, tc) { C_CENTROID(xc,c,tc); x=xc[0]; y=xc[1]; z=xc[2]; tempe= C_T(c,tc); mass_w_i = C_YI(c,tc,i); } end_c_loop(c, tc) } } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 17:22 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 13:59 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 14:11 |
Compiling OpenFOAM13 on AMD64 with Redhat Enterprise | mbeaudoin | OpenFOAM Installation | 20 | June 17, 2008 06:43 |
PHI file structure | Eugene | Phoenics | 9 | November 2, 2001 22:00 |