CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Using a flow field from a simulation to initialize another

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By LuckyTran
  • 1 Post By me3840

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2019, 09:23
Default Using a flow field from a simulation to initialize another
  #1
RKE
New Member
 
RKE
Join Date: Sep 2012
Posts: 21
Rep Power: 13
RKE is on a distinguished road
I am running two versions of a transient Star-CCM+ simulation of a stirred tank, which represent the same system but have different spatial resolutions.

The first one (with the lower resolution) runs faster; the second one runs very slowly.

I would like to use the results from the first one, at a given time, as the initial velocity field for the second (higher resolution) simulation. This would allow me to shorten the time required to examine the operation of the stirred tank beyond the initial start-up.

Would someone kindly provide suggestions on how to import a flow field from the low-resolution simulation for use as the initial condition for the higher-resolution one?

Of course, I will need to make sure the position and speed of the impeller in both simulations match each other.

Thank you
RKE is offline   Reply With Quote

Old   August 22, 2019, 09:36
Default
  #2
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 17
fluid23 is on a distinguished road
You should be able to run the low resolution simulation to whatever point you want, then re-mesh to give you the desired high-resolution discritization. The software will interpolate the coarse mesh results on to the fine mesh. Then clear results (but not fields so you retain all field function values, but start at iteration 1 or t=0) and start your simulation again.
fluid23 is offline   Reply With Quote

Old   August 22, 2019, 12:00
Default
  #3
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,677
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Re-meshing and letting Star interpolate automatically is easiest if you don't already have two distinct cases. Otherwise you have to...


Export all each variable as a csv table and then import these tables into your new case. Sometimes you can get away with using just x,y,z tables to assign the initial conditions. More often, this is not good enough and you need to use a data mapper, to map the data from the table onto your new mesh. This then creates field functions (with funny mapped names) that you can then use to assign to each field.


It's a pain.
flotus1 and cwl like this.
LuckyTran is offline   Reply With Quote

Old   August 25, 2019, 16:47
Default
  #4
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,400
Rep Power: 47
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
Just a few days ago, I was searching for a reasonable method to do this. Glad to hear that I was not just too stupid to find it.
flotus1 is offline   Reply With Quote

Old   August 26, 2019, 18:59
Default
  #5
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
Export all each variable as a csv table and then import these tables into your new case. Sometimes you can get away with using just x,y,z tables to assign the initial conditions. More often, this is not good enough and you need to use a data mapper, to map the data from the table onto your new mesh. This then creates field functions (with funny mapped names) that you can then use to assign to each field.

For future folks, I would strongly advise against using a table in this manner. The mapper is definitely the way to go unless your mesh is very small.


The reason is that tables are not partitioned. Say your mesh and solution consume 10GB of memory. At runtime one copy of the table is provided to each process. This means on a node with 16 processes, that table will consume 160GB of memory. Ouch.


The data mappers use field functions which are partitioned, so they are far more efficient.
cwl likes this.
me3840 is offline   Reply With Quote

Reply


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
Surface Source - Fixed Temperature? robtheslob FloEFD, FloWorks & FloTHERM 18 May 12, 2017 02:28
Could Fluent initialize flow from time-average field data? hongfu2233 FLUENT 7 February 15, 2017 04:10
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
Steady simulation does not iterate in Time=1 agustinvo OpenFOAM Running, Solving & CFD 3 November 19, 2015 04:57
Inviscid Drag at subsonic, subcritical Mach # Axel Rohde Main CFD Forum 1 November 19, 2001 12:19


All times are GMT -4. The time now is 18:25.