|
[Sponsors] |
January 15, 2001, 20:08 |
How to output variables every time step?
|
#1 |
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
|
|
January 15, 2001, 20:22 |
Re: How to output variables every time step?
|
#2 |
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. |
|
January 15, 2001, 21:47 |
Re: How to output variables every time step?
|
#3 |
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
|
|
January 15, 2001, 22:07 |
Re: How to output variables every time step?
|
#4 |
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. |
|
January 16, 2001, 12:17 |
Re: How to output variables every time step?
|
#5 |
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.
|
|
|
|
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 |