CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

Using data sampling as initial condition

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By LuckyTran
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Display Modes
Old   September 19, 2014, 07:07
Default Using data sampling as initial condition
  #1
New Member
 
Join Date: Sep 2009
Posts: 19
Rep Power: 7
tinhtt is on a distinguished road
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 is offline   Reply With Quote

Old   September 19, 2014, 07:09
Default
  #2
New Member
 
Join Date: Sep 2009
Posts: 19
Rep Power: 7
tinhtt is on a distinguished road
Ps: Actually, I need to use data sampling results from transient simulation as the frozen fields for the next steady simulation.
tinhtt is offline   Reply With Quote

Old   September 19, 2014, 07:35
Default
  #3
Senior Member
 
Lucky Tran
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 591
Rep Power: 11
LuckyTran is on a distinguished road
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.
tinhtt likes this.
LuckyTran is offline   Reply With Quote

Old   September 19, 2014, 07:54
Default
  #4
Senior Member
 
Lucky Tran
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 591
Rep Power: 11
LuckyTran is on a distinguished road
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 likes this.
LuckyTran is offline   Reply With Quote

Old   September 19, 2014, 08:16
Default
  #5
New Member
 
Join Date: Sep 2009
Posts: 19
Rep Power: 7
tinhtt is on a distinguished road
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
tinhtt is offline   Reply With Quote

Reply

Tags
data sampling, initial conditions, steady simulation

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
conjugate heat transfer in OpenFOAM skuznet OpenFOAM Running, Solving & CFD 62 January 26, 2015 02:45
buoyantSimpleFoam and watertank Tobi OpenFOAM Running, Solving & CFD 48 December 26, 2014 09:49
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 14:58
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 09:35
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33


All times are GMT -4. The time now is 00:20.