|
[Sponsors] |
May 8, 2020, 06:53 |
potentialFoam, erasing the U and p fields
|
#1 | |
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6 |
hello,
I am trying to use potentialFoam to initialize my case and have a better initial field for simpleFoam for a laminar flow. for this to my fvSolution i added in the solvers phi {$p} so it use the same solver of p field and the potentialFlow{nNonOrthogonalCorrectors 3;} i have my 0.orig folder that i copy to the 0 and then run potentialFoam and then run simpleFoam. the issue I am facing is that when i run the potentialFoam application, it erases the initial field from the (U and p file that is in the 0 folder) and also the inlet boundary goes from fixedValue, value uniform (...) to fixedValue, value nonuniform 0(); . i do not understand what i am doing wrong, i am attaching the U and p files before and after potentialFoam, and also my controlDict, fvSolution and fvSchemes files. the geometry is a quarter of cylinder with two symetry planes. also copy the log of potentialFoam appli: Quote:
|
||
May 8, 2020, 07:20 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
>> the issue I am facing is that when i run the potentialFoam application, it erases the initial field from the (U and p file that is in the 0 folder) and also the inlet boundary goes from fixedValue, value uniform (...) to fixedValue, value nonuniform 0(); .
Executing potentialFoam will overwrite the U field, and optionally p and phi fields (if you add options, e.g. "potentialFoam -writep"). potentialFoam solves for the "velocity potential" (Wikipedia), and derives a new velocity field from it. That's why "U" boundary content is changed from "uniform" to "nonuniform" with new values. As a side note, I have been using potentialFoam to initialise viscous computations, but never laminar computations. Would you teach us why would executing potentialFoam would be helpful for laminar cases?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 8, 2020, 07:38 |
|
#3 | ||
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6 |
Quote:
Quote:
best regards. |
|||
May 8, 2020, 07:47 |
|
#4 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
>> hope that I am misunderstanding and the sarcasm in the phrase it is only that I am misreading it.I wanted to have an initialFields that is better than only a uniform value, so it would speed up the conversion of the simulation and also as a scholar case to learn how to use it.
best regards. - There was zero sarcasm. My apologies for misunderstanding. I was just curious, and wanted to learn. - Could you please post the "U" file? Overwriting the inlet boundary may be leading to the same inlet boundary? Let's see.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 8, 2020, 07:56 |
|
#5 | |||
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6 |
Quote:
yes i post it in the zip file in the first post, but i can copy paste here: the first one is before doing potential (i put in the same quote the U and p file): Quote:
Quote:
inlet {type fixedValue;value uniform (0 0 0.2);} to: inlet {type fixedValue;value nonuniform 0();} and the internalField goes from: internalField uniform (0 0 0.1); to: internalField uniform (0 0 0); best regards! |
||||
May 8, 2020, 08:14 |
|
#6 | |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Oh, ok, got you. Hmm..
- One issue seems to be that there is no potentialFoam iterations carried out for Phi: Quote:
- If the case is quick to run, would you try "potentialFoam -initialiseUBCs"? - Is z-direction the streamwise flow direction?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
||
May 8, 2020, 12:18 |
|
#7 | ||
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6 |
Quote:
so, i tried potentialFoam -initialiseUBCs with same results (and the files look the same): Quote:
|
|||
May 8, 2020, 14:16 |
|
#8 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
- Could you please tell me whether it is possible for you to share the case? (if it is not confidential)?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 8, 2020, 16:00 |
|
#9 |
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6 |
yeah no problem,you can use the Allrun scripts they work properly (it is OF v7)
|
|
May 8, 2020, 17:22 |
|
#10 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Hi,
- To my finding, the "inlet" and "outlet" patches were mistakenly defined inside wall patch. Check "constant/boundary" file, and you will see that the "inlet" and "outlet" boundaries have zero faces. You can also visualise it in paraview by selecting the "wall" only. Hence, zero potentialFoam iterations. - EDIT: Besides, you may want to refine the surface edges of the cylinder by adjusting snapping settings etc. Please have a look at the forum for further information. Hope this helps.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 9, 2020, 13:44 |
|
#11 | |
Senior Member
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6 |
Quote:
yes i will have a look, best regards franco |
||
May 9, 2020, 13:47 |
|
#12 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
pleasure - and good luck.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
August 14, 2022, 13:24 |
|
#13 |
Senior Member
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 102
Rep Power: 14 |
why does it write the solution to the "0" dir, rather than to "1"
|
|
Tags |
potentialfoam, simplefoam initialisation |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM v4.1 - farfield bc potentialFoam | jeytsav | OpenFOAM Running, Solving & CFD | 0 | November 23, 2016 10:06 |
potentialFoam doesnt start?! | Sway | OpenFOAM Running, Solving & CFD | 0 | July 2, 2015 08:48 |
a reconstructPar issue | immortality | OpenFOAM Post-Processing | 8 | June 16, 2013 12:25 |
an odd(at least for me!) reconstructPar error on a field | immortality | OpenFOAM Running, Solving & CFD | 3 | June 3, 2013 23:36 |
PostChannel | maka | OpenFOAM Post-Processing | 5 | July 22, 2009 10:15 |