|
[Sponsors] |
November 10, 2011, 05:04 |
Multiple source files (initial condition)
|
#1 |
New Member
Join Date: Sep 2011
Location: Norway
Posts: 11
Rep Power: 14 |
Hi,
I want to use multiple source files (.res files) as an initial condition for a transient simulation. In my .def file I have a fluid and a solid domain. I have one .res file with an identical mesh as in the .def file (for both fluid and solid), and I have one .res file with only the fluid mesh. In my transient simulation I want to use the initial values for the fluid domain from the "fluid-only" .res file, and initial values for the solid domain from the other .res file. I specify both files in the setup, but my problem is that the solver uses values for the fluid domain from the wrong .res file. It does not help to change the order of how I specify the .res files (Initial values 1 and Initial values 2 in Define run). Can I control which .res file which has the highest priority, or something like that? |
|
November 10, 2011, 16:19 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,695
Rep Power: 143 |
You cannot specify multiple initial conditions files. You are going to have to combine both res files into one file to use it - have a look at the cfx5interp.exe command and the options it has for combining res files. You may have to delete the solid domain from the fluid run, then interpolate the fluid run as one step, the solid run as the next step or something like that.
|
|
November 11, 2011, 01:41 |
|
#3 |
New Member
Join Date: Sep 2011
Location: Norway
Posts: 11
Rep Power: 14 |
Aha, thank you. I managed to solve my problem with an alternative approach, but I'll look into this for future reference.
|
|
November 11, 2011, 04:04 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,695
Rep Power: 143 |
Can you describe the alternate approach?
|
|
November 11, 2011, 06:54 |
|
#5 |
New Member
Join Date: Sep 2011
Location: Norway
Posts: 11
Rep Power: 14 |
It was just something that was possible in this specific problem. In the fluid+solid simulation, I was able to retrieve an almost identical result by removing the fluid domain and instead apply a constant temperature on the walls where the fluid had been. (I'm really just interested in the temperature distribution in the solids in this steady state simulation.) So I ended up with one res file with only solid domains and one res file with only the fluid domain. I specified both in Define run and the solver picked the correct initial values for each domain from the two res files.
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem with Min/max rho | tH3f0rC3 | OpenFOAM | 8 | July 31, 2019 09:48 |
SLTS+rhoPisoFoam: what is rDeltaT??? | nileshjrane | OpenFOAM Running, Solving & CFD | 4 | February 25, 2013 04:13 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 04:03 |
Error log | vw.cfd | OpenFOAM | 6 | August 7, 2009 05:44 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |