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

Solver "nonNewtonianIcoFoam"

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2015, 17:50
Default Solver "nonNewtonianIcoFoam"
  #1
New Member
 
K.S.
Join Date: Dec 2015
Posts: 3
Rep Power: 10
Movie is on a distinguished road
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.
When I run the folder that I downloaded from this page everything is OK but when I run my solver done with the step from the report there is the problem. I looked through the solver but I didn't find the bug. I'm using openfoam 3.0 and report is done in the 2.3.

Thank you for you time and I hope you will help me with this maybe silly bug.
Movie is offline   Reply With Quote

Old   December 4, 2015, 23:03
Default
  #2
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12
kmefun is on a distinguished road
Try to add "pRefCell 0;" at system/fvsolution

PISO
{
nCorrectors 4;
nNonOrthogonalCorrectors 2;
pRefCell 0; //specify the pressure level in one cell
}
kmefun is offline   Reply With Quote

Old   December 5, 2015, 05:46
Default
  #3
New Member
 
K.S.
Join Date: Dec 2015
Posts: 3
Rep Power: 10
Movie is on a distinguished road
Quote:
Originally Posted by kmefun View Post
Try to add "pRefCell 0;" at system/fvsolution

PISO
{
nCorrectors 4;
nNonOrthogonalCorrectors 2;
pRefCell 0; //specify the pressure level in one cell
}
I done this but now I get the message:

"--> 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!
Movie is offline   Reply With Quote

Old   December 6, 2015, 11:52
Default
  #4
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12
kmefun is on a distinguished road
Add "pRefValue 0;" as well
kmefun is offline   Reply With Quote

Old   December 6, 2015, 13:33
Default
  #5
New Member
 
K.S.
Join Date: Dec 2015
Posts: 3
Rep Power: 10
Movie is on a distinguished road
Quote:
Originally Posted by kmefun View Post
Add "pRefValue 0;" as well

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.
Movie is offline   Reply With Quote

Reply

Tags
nonnewtonianicofoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


All times are GMT -4. The time now is 07:25.