|
[Sponsors] |
October 1, 2012, 05:05 |
Initialization with potentialFoam
|
#1 |
New Member
Sune Niemann
Join Date: Aug 2011
Posts: 18
Rep Power: 15 |
I upgraded from 1.6.x to 2.1.0, and I noticed that it is now possible to include initialization of fields with potentialFoam, quite simply by including the potentialFlow keyword to the fvSolution dictionary, which is great. Using potentialFoam this way however, limits potentialFoam to use the same solvers and settings as used with for example simpleFoam.
Before I upgraded I used two fvSolution dicts, i.e fvSolution.potentialFoam and fvSolution.simpleFoam and then created a symbolic link to the fvSolution file before running potentialFoam or simpleFoam respectively. Does anyone know of a simpler way of setting solvers and their settings for simpleFoam and potentialFoam individually, using only one fvSolution file? Thanks in advance Sune |
|
October 1, 2012, 07:22 |
How to run potentialFoam and simpleFoam together .
|
#2 |
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 necessary to specify the residual controls in fvSolution file for simpleFoam. Idea is to use results of potentialFoam for simpleFoam as intial conditions. with regards. |
|
October 1, 2012, 08:29 |
|
#3 | |
New Member
Sune Niemann
Join Date: Aug 2011
Posts: 18
Rep Power: 15 |
Quote:
Code:
solvers { p { solver PCG; preconditioner DIC; tolerance 1e-12; relTol 0.0001; } // And all the rest of your solvers } SIMPLE { nNonOrthogonalCorrectors 1; pRefPoint (0 0 0.5); pRefValue 0; residualControl { p 1e-9; U 1e-9; //etc. } } potentialFlow { nNonOrthogonalCorrectors 10; } So far as I know you can't use this same method to control the solution algorithms individually, which was what my question was about. |
||
October 1, 2012, 08:57 |
|
#4 |
New Member
sandip
Join Date: Jan 2012
Posts: 20
Rep Power: 14 |
Hi
Thanks for the reply . I tried using fvSolution file as changes you have suggested , but I am getting following error when I am running potentialFoam ..... Create time Create mesh for time = 0 Reading field p Reading field U Calculating potential flow GAMG: Solving for p, Initial residual = 1.#QNAN, Final residual = 1.#QNAN, No Iterations 1000 --> FOAM FATAL ERROR: Unknown functionEntry 'QNAN' in "IStringStream.sourceFile" near line 3 Valid functionEntries are : 4 ( codeStream include calc includeIfPresent ) From function functionEntry::execute(const word&, const dictionary&, primitiveEntry&, Istream&) in file db/dictionary/functionEntries/functionEntry/functionEntry.C at line 129. FOAM exiting can you throw some light on what could be the wrong . with regards |
|
October 1, 2012, 10:45 |
|
#5 | |
New Member
Sune Niemann
Join Date: Aug 2011
Posts: 18
Rep Power: 15 |
I am not entirely sure what happened to your simulation, and probably some more experienced OF user could give you a better answer, but what I notice is:
Quote:
- you have set the number of iterations to 1000 for GAMG under p in solvers. It will probably not solve your problem, but try and set maxIter to 10, to see if the error occurs instantaneously. Also posting your entire fvSolution file would help. |
||
August 27, 2015, 12:36 |
Continuity error with potentialFoam within a pimpleDyMFoam case
|
#6 | |||
Member
Werner
Join Date: Jul 2015
Location: West Lafayette, USA
Posts: 34
Rep Power: 11 |
Dear Forum,
I'm using the solver pimpleDyMFoam to simulate a wind Turbine and since the solver crashes with a floating point exception just after "bounding K" I decided to run potentialFoam to get make it easier for a simulation. I introduced the lines the potentialFlow call in fvSolution an the solver missed Phi setting in fvSolution/solvers. I copied such settings from the tutorial basics/potentialFoam/cylinder/system/fvSolution and potenfialFoam missed the word Phi in fvSchemes/fluxrequired. I added it imitating the tutorial again and now I'm getting a continuity error. I'm pasting here parts I mentioned. fvSolution Quote:
Quote:
Quote:
best regards, Werner |
||||
March 2, 2016, 13:18 |
|
#7 |
Member
Peter
Join Date: Nov 2015
Location: Hamburg, Germany
Posts: 57
Rep Power: 11 |
Dear Werner,
hope, you have already solved this issue... Nevertheless, some ideas: For a potential flow, the continuity equation is solved (particularly the laplace equation when the velocity potential is introduced). Hence, the error of the approximate solution can be described as a continuity error. Besides, I think, 10 nNonOrthogonalCorrectors steps are quite a few. See the following post(s) for more information: http://www.cfd-online.com/Forums/ope...tml#post233066 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FMG initialization query | Mohsin | FLUENT | 6 | November 2, 2016 03:02 |
simple geometry and potentialFoam? | Tobi | OpenFOAM | 0 | June 21, 2012 17:39 |
Initialization | a student | Siemens | 2 | May 19, 2006 13:55 |
compressor initialization | paglia | FLUENT | 0 | February 1, 2006 16:14 |
Mesh Initialization | shakked | FLUENT | 1 | August 5, 2004 10:41 |