|
[Sponsors] |
December 4, 2015, 17:50 |
Solver "nonNewtonianIcoFoam"
|
#1 |
New Member
K.S.
Join Date: Dec 2015
Posts: 3
Rep Power: 10 |
Hi everybody!
I hope I will not bother you too much. I am a newbie on the OpenFOAM and I'm trying to develop my Openfoam skills by myself. My main focus is the courses of prof.Hakan Nilsson and the reports of his students. So I was doing one of that reports and I stuck with one problem. The report is about "Non-Newtonian Models in OpenFOAM, Implementation a non-Newtonian model" by Naser Hamedi (http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2014/). Step by step I did everything but on the last step I get the problem. When I run "nonNewtonianIcoFoam" the error comes out like this: HTML Code:
--> FOAM FATAL IO ERROR: Unable to set reference cell for field p Please supply either pRefCell or pRefPointfile: /home/sehic/OpenFOAM/sehic-3.0.0/run/test_Casson/system/fvSolution.PISO from line 45 to line 46. From function void Foam::setRefCell ( const volScalarField&, const volScalarField&, const dictionary&, label& scalar&, bool ) in file cfdTools/general/findRefCell/findRefCell.C at line 129. Thank you for you time and I hope you will help me with this maybe silly bug. |
|
December 4, 2015, 23:03 |
|
#2 |
Member
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12 |
Try to add "pRefCell 0;" at system/fvsolution
PISO { nCorrectors 4; nNonOrthogonalCorrectors 2; pRefCell 0; //specify the pressure level in one cell } |
|
December 5, 2015, 05:46 |
|
#3 | |
New Member
K.S.
Join Date: Dec 2015
Posts: 3
Rep Power: 10 |
Quote:
"--> FOAM FATAL IO ERROR: keyword pRefValue is undefined in dictionary "/home/sehic/OpenFOAM/sehic-3.0.0/run/test_Casson/system/fvSolution.PISO" file: /home/sehic/OpenFOAM/sehic-3.0.0/run/test_Casson/system/fvSolution.PISO from line 45 to line 47. From function dictionary::lookupEntry(const word&, bool, bool) const in file db/dictionary/dictionary.C at line 442. FOAM exiting" I think it is not problem in these values because when I run the case from Naser Hamedi, the original one everything is OK. I was looking every single file my and his and I didn't find the bug. I hope we will find the bug. Thank you! |
||
December 6, 2015, 11:52 |
|
#4 |
Member
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12 |
Add "pRefValue 0;" as well
|
|
December 6, 2015, 13:33 |
|
#5 |
New Member
K.S.
Join Date: Dec 2015
Posts: 3
Rep Power: 10 |
Because of your suggestion I have found the bug So basically I was guilty the whole time. The reason I was having the bug is because I put the zero gradient on the outlet same as the inlet. My bad And when I get the outlet fixed value there is no need for pRefValue and pRefCell. Everything finished very smooth and my results are the same as from the tutorial. Thank you very much. |
|
Tags |
nonnewtonianicofoam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fluent Adjoint Solver? | ex10148 | FLUENT | 16 | September 28, 2018 08:11 |
thobois class engineTopoChangerMesh error | Peter_600 | OpenFOAM | 4 | August 2, 2014 09:52 |
Divergence problem | Smaras | FLUENT | 13 | February 21, 2013 05:03 |
3d vof | Smaras | FLUENT | 2 | February 19, 2013 06:58 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 14:08 |