|
[Sponsors] |
![]() |
![]() |
#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
|
|
![]() |
![]() |
![]() |
#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. |
|
![]() |
![]() |
![]() |
#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
|
|
![]() |
![]() |
![]() |
#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. |
|
![]() |
![]() |
![]() |
#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.
|
|
![]() |
![]() |
|
|
![]() |
||||
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 04:03 |
directMapped problem | panda60 | OpenFOAM Bugs | 4 | July 8, 2010 10:23 |
Intermediate step during a time step | Burn | OpenFOAM | 0 | July 16, 2009 10:01 |
Differences between serial and parallel runs | carsten | OpenFOAM Bugs | 11 | September 12, 2008 11:16 |
AMG versus ICCG | msrinath80 | OpenFOAM Running, Solving & CFD | 2 | November 7, 2006 15:15 |