LuckyTran |
February 14, 2017 23:09 |
Quote:
Originally Posted by hongfu2233
(Post 636633)
Thanks for your reply! I have gotten the time-averaged data using the utility of Fluent (Run Calculation => Data Sampling for Time Statistics). I would like to know how can I initialize flow from this time-averaged data?
|
There is a way to do it entirely within Fluent. I have written up the steps several times but I can't find the exact commands so I write just the outline. Maybe if your google skills are keen enough, you can dig up my old post.
It requires a few steps, a little tedious but not that bad. The problem is the time-averaged data are stored in new variables, whereas the raw variables are the instantaneous quantities. Unfortunately you cannot set the instantaneous quantities equal to the time-averaged ones directly and need a workaround. Fluent does not let you patch using the time-averaged fields, but it does let you patch using a custom field function.
What you need to do is define a bunch of custom field function. Make a field function for each of the time-averaged variables you need. These are just dummy functions so you can call them whatever, but define these field functions as equal the time-averaged variables that you get from your data sampling. I.e. a dummy x-velocity that will be equal to the mean x-velocity.
Now after you have done this for all the variables, you can now go the initialization pane and use the patch command. You can patch custom field functions onto the instantaneous variables. So patch (or overwrite) the x-velocity using the dummy x-velocity field.
For other software. Tecplot is great if you have access to it. But using the method I wrote above is much better because Fluent doesn't do any interpolation.
|