|
[Sponsors] |
March 26, 2012, 07:42 |
time averaged data
|
#1 |
Member
Musango Lungu
Join Date: Dec 2011
Location: China
Posts: 73
Rep Power: 14 |
I urgently need help to process simulation data and obtain time-averaged values. I am modeling a 2D gas-solid fluidized bed reactor. I have just come to learn about the data sampling for time statistics option in fluent but it is too late since the simulation has already been done. I will appreciate your comments and valuable suggestions.
|
|
March 26, 2012, 09:39 |
|
#2 | |
Senior Member
|
Quote:
For this purpose, you can export FLUENT data in ASCII format then import them in MATLAB and finally write them in Tecplot format or interpolation format of FLUENT. Do not hesitate to ask if the procedure is not clear. P.S. In order to automize the exporting data from FLUENT, you will need a simple journal file; additionally, a code for importing and averaging data in MATLAB. Bests,
__________________
Amir |
||
March 27, 2012, 00:52 |
|
#3 |
Member
Musango Lungu
Join Date: Dec 2011
Location: China
Posts: 73
Rep Power: 14 |
Thanx alot, Amir! I have sent you the case and data files to help me understand more clearly. Actually my programming skills are quite basic. I am a beginner.
|
|
March 27, 2012, 01:24 |
|
#4 |
Member
Musango Lungu
Join Date: Dec 2011
Location: China
Posts: 73
Rep Power: 14 |
I have exported the data in ASCII format, imported it into matlab and saved it in interpolation format. How do I now proceed to get the average data?
|
|
March 27, 2012, 04:28 |
|
#5 | |
Senior Member
|
Quote:
You have to do such procedure for all of your time-dependent data; so you will need a tool to automize this procedure (exporting and importing) so you can use a journal file in FLUENT and a code for MATLAB. When you import all the data to MATLAB, you can simply compute the average flow field. Bests,
__________________
Amir |
||
March 27, 2012, 05:44 |
|
#6 |
Member
Musango Lungu
Join Date: Dec 2011
Location: China
Posts: 73
Rep Power: 14 |
Okay, as i said earlier my programming skills are quite basic and i would appreciate your assistance with the codes. I can modify them to suit my case. I have already sent the case and data files to you to have a look at. Thank you so much once again.
|
|
March 27, 2012, 09:07 |
|
#7 | |
Senior Member
|
Quote:
code1.f90 is a journal generator and code2.f90 is a MATLAB code generator. Bests,
__________________
Amir |
||
March 27, 2012, 09:15 |
|
#8 |
Member
Musango Lungu
Join Date: Dec 2011
Location: China
Posts: 73
Rep Power: 14 |
Thanx a million Amir, you are a life saver!!!
|
|
November 21, 2012, 11:56 |
|
#9 | |
New Member
pari
Join Date: Nov 2012
Posts: 6
Rep Power: 13 |
Quote:
I downloaded your codes but I don't know how to use them? How can I use journal file in fluent and how to import them in matlab? can you explain more? Thank you pari |
||
November 21, 2012, 12:39 |
|
#10 | |
Senior Member
|
Quote:
Before using these codes, you have to check whether they are necessary fro your case or not. These are designed just for post-run purposes, while you can do the same during the run with FLUENT primary options. However, you can refer to the manual to know how to use journal files. Bests,
__________________
Amir |
||
November 21, 2012, 13:11 |
|
#11 | |
New Member
pari
Join Date: Nov 2012
Posts: 6
Rep Power: 13 |
Quote:
I run journal creator code(fortran code) and then I read journal output file in fluent but I just obtain position cordinates and no velocity and pressure.what is my mistake? |
||
November 21, 2012, 15:53 |
|
#12 | |
Senior Member
|
Quote:
Bests,
__________________
Amir |
||
November 22, 2012, 01:46 |
|
#13 | |
New Member
pari
Join Date: Nov 2012
Posts: 6
Rep Power: 13 |
Quote:
if I know your solution you mean i can use unsteady data sampling icon which have been located in iteration panel,but this method only give me a few data,and I doubt this method. I want to know more about journal file operation.I read journal file but just the position of nodes were resulted... |
||
November 22, 2012, 05:06 |
|
#14 | |
Senior Member
|
Quote:
Before using that journal file, you have to change it for your purpose; I mean number of files, names and .... I propose to check one step in TUI to find the issues, so notice to probable errors in FLUENT console, but as you see it's prepared to export 4 variables: Code:
x-vel y-vel z-vel pressure Do not hesitate to ask if you face any problem. Bests,
__________________
Amir |
||
November 23, 2012, 04:10 |
|
#15 | |
New Member
pari
Join Date: Nov 2012
Posts: 6
Rep Power: 13 |
Quote:
I did what you said.when i copy journal text in TUI. after being shown somethings in TUI ,it appeare ASCII scalar(1)> what should i write in this step? my journal file that i copy In TUI is rcd cav-0001.cas /file/ex/ascii cav-0001 () x-vel y-vel z-vel pressure () rcd cav-0002.cas yes /file/ex/ascii cav-0002 () x-vel y-vel z-vel pressure () rcd cav-0003.cas yes /file/ex/ascii cav-0003 () x-vel y-vel z-vel pressure () rcd cav-0004.cas yes /file/ex/ascii cav-0004 () x-vel y-vel z-vel pressure () rcd cav-0005.cas yes /file/ex/ascii cav-0005 () x-vel y-vel z-vel pressure () *** cav is the name of sample project |
||
November 23, 2012, 04:50 |
|
#16 | |
Senior Member
|
Quote:
That's the first scalar you want to report! Press enter in this step to see the available options. Bests,
__________________
Amir |
||
November 23, 2012, 10:55 |
|
#17 |
New Member
pari
Join Date: Nov 2012
Posts: 6
Rep Power: 13 |
I did what you say.I wrote for example x-velocity after ASCII scalar(1) then y-velocity after ASCII scalar(2) and... how can I break this ASCII' sss? and where are these data stored?
|
|
November 23, 2012, 13:42 |
|
#18 |
Senior Member
|
You can get your answer by referring to he provided code! By using ().
__________________
Amir |
|
November 24, 2012, 12:19 |
|
#19 | |
New Member
pari
Join Date: Nov 2012
Posts: 6
Rep Power: 13 |
Quote:
I wrote 2 udf for my purpose to get time average data.I attach these two udf.if it's possible help me to correct them,please. I check them with data sampling time statics of fluent, the results are close but not exactly the same.I used udm and just for x-velocity. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 06:20 |
how to calculate the averaged mass flow along a line over time ? | iampolaris | OpenFOAM Post-Processing | 0 | March 10, 2011 22:03 |
Modeling in micron scale using icoFoam | m9819348 | OpenFOAM Running, Solving & CFD | 7 | October 27, 2007 00:36 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 02:58 |
AMG versus ICCG | msrinath80 | OpenFOAM Running, Solving & CFD | 2 | November 7, 2006 15:15 |