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

writing a dat file at each time step

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 27, 2005, 07:33
Default writing a dat file at each time step
  #1
ayapan
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
  Reply With Quote

Old   September 27, 2005, 13:16
Default Re: writing a dat file at each time step
  #2
Evan Rosenbaum
Guest
 
Posts: n/a
See autosave in the user's manual.
  Reply With Quote

Old   September 28, 2005, 06:54
Default Re: writing a dat file at each time step
  #3
ayapan
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

  Reply With Quote

Old   September 28, 2005, 23:42
Default Re: writing a dat file at each time step
  #4
top.shen
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); }

  Reply With Quote

Old   September 30, 2005, 02:07
Default Re: writing a dat file at each time step
  #5
ayapan
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

  Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 14:55.