|
[Sponsors] |
September 27, 2005, 07:33 |
writing a dat file at each time step
|
#1 |
Guest
Posts: n/a
|
hi i am simulating cross flow over cylinder for turb re 3900, i need to write u and v components in a particular plane of wake at every iteration with out stoping iterastion is it possible through udf??, comments plz by apn
|
|
September 27, 2005, 13:16 |
Re: writing a dat file at each time step
|
#2 |
Guest
Posts: n/a
|
See autosave in the user's manual.
|
|
September 28, 2005, 06:54 |
Re: writing a dat file at each time step
|
#3 |
Guest
Posts: n/a
|
hi in autosave it will save whole case and data or both but i need only in a particular plane that too only some interesting parameter. comments welcome
|
|
September 28, 2005, 23:42 |
Re: writing a dat file at each time step
|
#4 |
Guest
Posts: n/a
|
hi: maybe you have to use the macro DEFINE_EXECUTE_AT_END(NAME). THE FOLLOEING IS A SAMPLE FOR U: (SPECIES MODEL WITHOUT REACTION,TO GET THE MASS(index 0) FRACTION)
DEFINE_EXECUTE_AT_END(EAE_WPD) { Domain *d=Get_Domain(1); Thread *t; cell_t c; real x[ND_ND]; FILE *f; f=fopen("RESULTdata.txt","W"); if(f==0) printf("\n\ncan NOT open the pointdata file!"); /*LOOP ALL CELL,U HAVE TO CHANGE TO LOOP ON THE FACE YOU CARE ABOUT.*/ thread_loop_c(t,d) { begin_c_loop_all(c,t) { Cz=C_YI(c,t,0); fprintf(f,"\t|mass fraction:%ft\n",Cz); }end_c_loop_all(c,thread) } fclose(f); } |
|
September 30, 2005, 02:07 |
Re: writing a dat file at each time step
|
#5 |
Guest
Posts: n/a
|
hi thank you EVAN&SHEN i think i'll get it by trying what you people suggested bye w'll meet again
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Transient simulation not converging | skabilan | OpenFOAM Running, Solving & CFD | 14 | December 17, 2019 00:12 |
2.0.x on Mac OSX | niklas | OpenFOAM Installation | 74 | March 28, 2012 17:46 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |
Journal file to automate a time step change | Damien_CFD | FLUENT | 0 | August 2, 2011 08:05 |
Full pipe 3D using icoFoam | cyberbrain | OpenFOAM | 4 | March 16, 2011 10:20 |