|
[Sponsors] |
Initial solution from potentialFoam (or similar) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 19, 2020, 10:04 |
Initial solution from potentialFoam (or similar)
|
#1 |
Senior Member
Gerry Kan
Join Date: May 2016
Posts: 376
Rep Power: 11 |
Howdy Foamers:
I have always been wondering about this and wanted to ask for your opinions. I am setting up a transient run using a variant of rhoPimpleFoam, involving multiple species. To speed up initialization I would like to apply a steady-state initial flow field, possibly by using potentialFoam. My questions are as follows: 1) Is it possible or advisable to do this in a single solver, i.e., the solver calling potentialFoam or solves for the steady potentialFoam through some code change? 2) Should a separate call to potentialFoam is required, how should I prescribe the results as initial solution? Thank you very much in advance, Gerry. |
|
February 19, 2020, 11:38 |
|
#2 |
Senior Member
Join Date: Jul 2013
Posts: 124
Rep Power: 13 |
Hi Gerry,
I don't think it is advisable to do this with a single solver, it's best to keep things modular. First you should run potentialFoam, and then run your other solver with the output of potentialFoam as the initial condition for the new solver. If I remember correctly, potentialFoam actually directly overwrites the 0 directory, so you probably don't need to change anything and you can just directly launch the second solver. I might not be remembering correctly. If it doesn't overwrite 0, just change your startTime in your controlDict file to whatever time directory contains the output of potentialFoam. |
|
February 19, 2020, 12:34 |
|
#3 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,770
Rep Power: 66 |
Run potentialFoam and then your solver. You don't need to hack any solver. Use changeDictionary and scripting to make your life easier.
Actually you can just put this into your fvSolution dict to initialize using potentialFOAM. Code:
potentialFlow { nNonOrthogonalCorrectors 10; } |
|
February 20, 2020, 11:21 |
|
#4 |
Senior Member
Gerry Kan
Join Date: May 2016
Posts: 376
Rep Power: 11 |
Folks:
That's kind of what I thought. It might be easier to send a potentialFoam job and then rename the results to the initial conditions of the transient run. Another question, though. Is there a way to introduce a weighting factor (between 0 and 1) so that I can set this initial condition as an interpolated average between the potentialFoam solution and the quiescent initial conditions? Thanks in advance, Gerry. |
|
February 20, 2020, 11:58 |
|
#5 |
Senior Member
Join Date: Jul 2013
Posts: 124
Rep Power: 13 |
I haven't personally heard of an option to introduce such a weighting factor. If I were desperate to do that I would probably end up writing a small utility that reads the two fields and does the weighting. There is probably a more elegant way that I am not familiar with.
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
chtMultiRegionSimpleFoam: maximum number of iterations excedeed. | Nkl | OpenFOAM Running, Solving & CFD | 19 | October 10, 2019 03:42 |
HeatSource BC to the whole region in chtMultiRegionHeater | xsa | OpenFOAM Running, Solving & CFD | 3 | November 7, 2016 06:07 |
Compressor Simulation using rhoPimpleDyMFoam | Jetfire | OpenFOAM Running, Solving & CFD | 107 | December 9, 2014 14:38 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
pisoFoam with k-epsilon turb blows up - Some questions | Heroic | OpenFOAM Running, Solving & CFD | 26 | December 17, 2012 04:34 |