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

Using data sampling as initial condition

Register Blogs Community New Posts Updated Threads Search

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

Reply
 
LinkBack Thread Tools Search this Thread 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: 16
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: 16
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
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,673
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,673
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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: 16
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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
buoyantSimpleFoam and watertank Tobi OpenFOAM Running, Solving & CFD 100 December 18, 2022 08:15
conjugate heat transfer in OpenFOAM skuznet OpenFOAM Running, Solving & CFD 99 March 16, 2017 05:07
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 08: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 21:11.