time averaged data
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.
|
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, |
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.
|
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?
|
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, |
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.
|
1 Attachment(s)
Quote:
code1.f90 is a journal generator and code2.f90 is a MATLAB code generator. ;) Bests, |
Thanx a million Amir, you are a life saver!!!
|
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 |
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, |
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? |
Quote:
Bests, |
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... |
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, |
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 |
Quote:
That's the first scalar you want to report! Press enter in this step to see the available options. Bests, |
Quote:
|
Quote:
|
2 Attachment(s)
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. |
All times are GMT -4. The time now is 17:30. |