|
[Sponsors] |
How to run potentialFoam and simpleFoam together . |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 1, 2012, 07:24 |
How to run potentialFoam and simpleFoam together .
|
#1 |
New Member
sandip
Join Date: Jan 2012
Posts: 20
Rep Power: 14 |
I want to run the potentialFoam with few iterations and then run the simpleFoam using the same controlDict and fvSolution files , what changes are needed for openFoam2.1.0
Is it necessay to specify the residual controls in fvSolution file for simpleFoam? Idea is to use results of potentialFoam for simpleFoam as initial conditions. with regards. |
|
October 2, 2012, 10:07 |
|
#2 |
Senior Member
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18 |
Hi,
have a look at the motorbike tutorial. Exactly what you want (potentialFoam and then simpleFoam). ~/OpenFOAM/OpenFOAM-2.1.x/tutorials/incompressible/simpleFoam/motorBike Regards, Stephane. |
|
June 8, 2015, 14:45 |
|
#3 |
New Member
Domi
Join Date: Feb 2015
Posts: 26
Rep Power: 11 |
Dear Foamers,
I exactly wanted to do the same, first initializing with potentialfoam and then running the simulation with simplefoam. I compared the residuals and results with AND without initialization, BUT there is no difference at all. What could be wrong? My workflow is to create a single mesh, after that decomposepar it, run potentialfoam parallel, run simplefoam in parallel and reconstruct it again in the end. thanks a lot Last edited by macRC; June 8, 2015 at 16:15. |
|
June 9, 2015, 06:27 |
|
#4 |
New Member
Sune Niemann
Join Date: Aug 2011
Posts: 18
Rep Power: 15 |
||
June 11, 2020, 15:53 |
|
#5 | |
New Member
Mathias Sønderskov Schaltz
Join Date: Nov 2018
Location: Denmark
Posts: 4
Rep Power: 8 |
Quote:
|
||
June 11, 2020, 16:17 |
|
#6 |
Member
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 8 |
potentialFoam solves only for the velocity potential.
There are times when you are not entirely sure about the initial conditions of your problem. Running potentialFoam prior to more advanced solvers can help you initialise your simulation with "better" initial conditions, which can reduce the computational cost. Petros |
|
June 11, 2020, 16:53 |
|
#7 | |
New Member
Mathias Sønderskov Schaltz
Join Date: Nov 2018
Location: Denmark
Posts: 4
Rep Power: 8 |
Quote:
So you would have a controldict saying let's say 200 iterations for potentialfoam before running 2000 in simpleFoam. Would one have to save them as controlDict.potentialFoam and controlDict.simpleFoam then or what's best practice? And in a bat script you'll just run one solver after the other, correct? |
||
June 12, 2020, 06:58 |
|
#8 |
Member
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 8 |
As far as I am concerned, you don't have to set up different controlDicts. You just need to modify your fvSolution file to include something like:
Code:
potentialFlow { nNonOrthogonalCorrectors 3; } https://github.com/OpenFOAM/OpenFOAM...roundBuildings |
|
April 2, 2021, 11:23 |
|
#9 | |
Senior Member
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 10 |
Quote:
|
||
April 2, 2021, 11:38 |
|
#10 |
Member
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 8 |
That's correct.
|
|
April 2, 2021, 11:46 |
|
#11 |
Senior Member
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 10 |
Thank you @petros. But here it says potentialFoam runs just one iteration with n (here n=3) corrector loops. potentialFoam not writing and only one iteration
|
|
April 2, 2021, 11:56 |
|
#12 |
Member
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 8 |
Yes but non-orthogonal corrector loops are also iterations. potentialFoam does not contain any time loop - it just iterates over the user-specified non-orthogonal velocity potential corrector loops.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Initialization with potentialFoam | Sune | OpenFOAM Running, Solving & CFD | 6 | March 2, 2016 13:18 |
simpleFoam airfoil2d Continuity error cannot be removed | junkie71189 | OpenFOAM Running, Solving & CFD | 3 | August 9, 2012 14:58 |
BC for simpleFoam from potentialFoam results | Geon-Hong | OpenFOAM Running, Solving & CFD | 0 | April 5, 2011 23:23 |
Problem with skew faces in simpleFoam... | HelloWorld | OpenFOAM | 7 | May 14, 2010 12:28 |
Getting faster convergence in simpleFoam | basneb | OpenFOAM | 8 | February 9, 2010 05:20 |