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

How to output variables every time step?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2001, 20:08
Default How to output variables every time step?
  #1
Dazhi Guo
Guest
 
Posts: n/a
Hi,all, I want to output the coordinats and fluid velocity of all nodes "every time step". It seems the UDF DEFINE_ADJUST and DEFINE_RW_FILE can do that job. Could you give me some advice on how to do that with these two UDFs or any other method? Thanks a lot. Guo
  Reply With Quote

Old   January 15, 2001, 20:22
Default Re: How to output variables every time step?
  #2
Trac
Guest
 
Posts: n/a
Hi Guo,

You may also be able to do this using macros (solve --> monitors --> command). You should be able to set something up to write all the values you need to a particular file type at each time step, probably using "export".

Trac.
  Reply With Quote

Old   January 15, 2001, 21:47
Default Re: How to output variables every time step?
  #3
Dazhi Guo
Guest
 
Posts: n/a
Thank you tracie, I tried your method. It's working pretty well. But the problem now is I got so many big files which are going to kill my harddrive. What I need is to handle one set of data and delete it to make room for next one every time step. I still need to write a User Defined Function to work with the Fluent solver at the same time. Any info. is appreciated. Guo
  Reply With Quote

Old   January 15, 2001, 22:07
Default Re: How to output variables every time step?
  #4
Trac
Guest
 
Posts: n/a
Hi Guo,

Can you explain what you are doing a bit more - are you getting Fluent to read the file back in? Is it possible to just give the file the same name, so it overwrites the old one each time?

Trac.
  Reply With Quote

Old   January 16, 2001, 12:17
Default Re: How to output variables every time step?
  #5
Dazhi Guo
Guest
 
Posts: n/a
Yes,tracie,I want fluent to read that file in. Actually I need a subroutine or UDF to read that back. We can not change the Discrete Phase Model(DPM) with the FLUENT. So I have to write a UDF to calculate the particle phase. Now no coupling is considered and I don't need to put any effect of the particle back to the fluid phase. I am sure FLUENT has supplied the IO head files such as "stdio.h" in C language. The manual for that part is also confusing. Only one function DEFINE_RW_FILE(FILE *fp) is available. I tried that but it didn't work.
  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
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 05:03
directMapped problem panda60 OpenFOAM Bugs 4 July 8, 2010 11:23
Intermediate step during a time step Burn OpenFOAM 0 July 16, 2009 11:01
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 12:16
AMG versus ICCG msrinath80 OpenFOAM Running, Solving & CFD 2 November 7, 2006 16:15


All times are GMT -4. The time now is 04:06.