CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to run potentialFoam and simpleFoam together .

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes
  • 1 Post By openfoam_user
  • 2 Post By petros
  • 1 Post By MathiasSonderskov
  • 3 Post By petros

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2012, 06:24
Default How to run potentialFoam and simpleFoam together .
  #1
New Member
 
sandip
Join Date: Jan 2012
Posts: 20
Rep Power: 14
vmsandip2011 is on a distinguished road
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.
vmsandip2011 is offline   Reply With Quote

Old   October 2, 2012, 09:07
Default
  #2
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
openfoam_user is on a distinguished road
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.
hogsonik likes this.
openfoam_user is offline   Reply With Quote

Old   June 8, 2015, 13:45
Default
  #3
New Member
 
Domi
Join Date: Feb 2015
Posts: 26
Rep Power: 11
macRC is on a distinguished road
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 15:15.
macRC is offline   Reply With Quote

Old   June 9, 2015, 05:27
Default
  #4
New Member
 
Sune Niemann
Join Date: Aug 2011
Posts: 18
Rep Power: 14
Sune is on a distinguished road
Is this what you want?

Initialization with potentialFoam
Sune is offline   Reply With Quote

Old   June 11, 2020, 14:53
Default
  #5
New Member
 
Mathias Sønderskov Schaltz
Join Date: Nov 2018
Location: Denmark
Posts: 4
Rep Power: 7
MathiasSonderskov is on a distinguished road
Quote:
Originally Posted by macRC View Post
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
What's the advantage of initializing with potentialFoam before simpleFoam?
MathiasSonderskov is offline   Reply With Quote

Old   June 11, 2020, 15:17
Default
  #6
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 7
petros is on a distinguished road
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
hogsonik and allanZHONG like this.
petros is offline   Reply With Quote

Old   June 11, 2020, 15:53
Default
  #7
New Member
 
Mathias Sønderskov Schaltz
Join Date: Nov 2018
Location: Denmark
Posts: 4
Rep Power: 7
MathiasSonderskov is on a distinguished road
Quote:
Originally Posted by petros View Post
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
Thanks very much.
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?
granzer likes this.
MathiasSonderskov is offline   Reply With Quote

Old   June 12, 2020, 05:58
Default
  #8
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 7
petros is on a distinguished road
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;
}
For a complete set up, please have a look at the windAroundBuildings tutorial case.
https://github.com/OpenFOAM/OpenFOAM...roundBuildings
petros is offline   Reply With Quote

Old   April 2, 2021, 10:23
Default
  #9
Senior Member
 
Mandeep Shetty
Join Date: Apr 2016
Posts: 185
Rep Power: 10
granzer is on a distinguished road
Quote:
Originally Posted by petros View Post
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;
}
For a complete set up, please have a look at the windAroundBuildings tutorial case.
https://github.com/OpenFOAM/OpenFOAM...roundBuildings
Does this mean that potentialFoam solver will run for 3 iterations and then simpleFoam will take over for the number of iterations mentioned in controlDict?
granzer is offline   Reply With Quote

Old   April 2, 2021, 10:38
Default
  #10
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 7
petros is on a distinguished road
That's correct.
petros is offline   Reply With Quote

Old   April 2, 2021, 10:46
Default
  #11
Senior Member
 
Mandeep Shetty
Join Date: Apr 2016
Posts: 185
Rep Power: 10
granzer is on a distinguished road
Quote:
Originally Posted by petros View Post
That's correct.
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
granzer is offline   Reply With Quote

Old   April 2, 2021, 10:56
Default
  #12
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 7
petros is on a distinguished road
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.
granzer, Muerio and allanZHONG like this.
petros 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
Initialization with potentialFoam Sune OpenFOAM Running, Solving & CFD 6 March 2, 2016 12:18
simpleFoam airfoil2d Continuity error cannot be removed junkie71189 OpenFOAM Running, Solving & CFD 3 August 9, 2012 13:58
BC for simpleFoam from potentialFoam results Geon-Hong OpenFOAM Running, Solving & CFD 0 April 5, 2011 22:23
Problem with skew faces in simpleFoam... HelloWorld OpenFOAM 7 May 14, 2010 11:28
Getting faster convergence in simpleFoam basneb OpenFOAM 8 February 9, 2010 04:20


All times are GMT -4. The time now is 02:10.