CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Using data sampling as initial condition (https://www.cfd-online.com/Forums/fluent/141922-using-data-sampling-initial-condition.html)

tinhtt September 19, 2014 07:07

Using data sampling as initial condition
 
Hi Fluent experts,
In transient simulation of Fluent, activating data sampling can obtain the temporal average data. I would like to use these data sampling results as initial condition for a STEADY simulation (same parameters as previous ones, except STEADY).
Could you please give me the advice how to overcome this problem? Thank you!

tinhtt September 19, 2014 07:09

Ps: Actually, I need to use data sampling results from transient simulation as the frozen fields for the next steady simulation.

LuckyTran September 19, 2014 07:35

Some context would help. Can you not just switch settings from a transient simulation to a steady one? If you do this switch without re-initializing the current fields from the transient simulation will be used as the initial values for your steady simulation.

I know of one way to export, may not be the best way. It works only if your next steady simulation is done on the same domain or same mesh.

Write an interpolate file. File=>interpolate=>write data
Write the variables you want over each zone

Then read this file into your steady simulation.

It might work better if you switch your transient simulation to a steady one before writing the interpolate file.

Ok, now I see you want to use the data sampling results. Hmms.

LuckyTran September 19, 2014 07:54

Ok try this. First create a custom field function for each of your statistics. On the GUI that's under define=>custom field functions.
Choose unsteady statistics => velocity, etc. and select. Your custom field definition is now the current field for the mean velocity, etc. Give an appropriate name for your custom field.

Now you can patch your existing fields to your custom field. That is, patch X velocity using the custom field for the mean X velocity. To do this go to initialize=>patch. Select x-velocity. Check the box for use field function, select your field function created earlier. Select appropriate zones and patch.

Now you have replaced the instantaneous velocity field with the time-averaged one. It can now be manipulated using normal methods. You can now switch to steady and proceed.

tinhtt September 19, 2014 08:16

Thank you so much LuckyTran!
Initialization by patching the custom field functions works perfectly as my expectation.
Thanks again and best wishes to you! :)

Thanh Tinh Tran


All times are GMT -4. The time now is 09:55.