|
[Sponsors] |
Using a flow field from a simulation to initialize another |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 22, 2019, 10:23 |
Using a flow field from a simulation to initialize another
|
#1 |
New Member
RKE
Join Date: Sep 2012
Posts: 21
Rep Power: 14 |
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 |
|
August 22, 2019, 10:36 |
|
#2 |
Senior Member
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18 |
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.
|
|
August 22, 2019, 13:00 |
|
#3 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,750
Rep Power: 66 |
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. |
|
August 25, 2019, 17:47 |
|
#4 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
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.
|
|
August 26, 2019, 19:59 |
|
#5 | |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
Quote:
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. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Surface Source - Fixed Temperature? | robtheslob | FloEFD, FloWorks & FloTHERM | 18 | May 12, 2017 03:28 |
Could Fluent initialize flow from time-average field data? | hongfu2233 | FLUENT | 7 | February 15, 2017 05:10 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
Steady simulation does not iterate in Time=1 | agustinvo | OpenFOAM Running, Solving & CFD | 3 | November 19, 2015 05:57 |
Inviscid Drag at subsonic, subcritical Mach # | Axel Rohde | Main CFD Forum | 1 | November 19, 2001 13:19 |