CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Viscositymodel tutorial, problems when changing test case to cavity

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

Like Tree1Likes
  • 1 Post By Bernhard

Reply
 
LinkBack Thread Tools Display Modes
Old   December 8, 2013, 10:39
Default Viscositymodel tutorial, problems when changing test case to cavity
  #1
Member
 
Join Date: Aug 2013
Posts: 60
Rep Power: 5
sur4j is on a distinguished road
Hello,

I have recently created a simulation which has a temperature dependant viscosity: (http://www.tfd.chalmers.se/~hani/kur...nFoam%20v2.pdf)

The solver and test case both worked fine and compiled okay, however when I tried to modify the simulation to apply this temperature dependant viscosity on the cavity tutorial geometry I had gotten an error:

Code:
--> FOAM FATAL IO ERROR: 
Unable to set reference cell for field p
    Please supply either pRefCell or pRefPoint


file: /home/sk/OpenFOAM/sk-2.2.1/run/tvCavity/system/fvSolution.SIMPLE from line 80 to line 87.

    From function void Foam::setRefCell
(
    const volScalarField&,
    const volScalarField&,
    const dictionary&,
    label& scalar&,
    bool
)
    in file cfdTools/general/findRefCell/findRefCell.C at line 125.

FOAM exiting
The code in fvSolution lines 80-87 is the following:

Code:
SIMPLE
{
    nNonOrthogonalCorrectors 0;

    residualControl
    {
	T 		1e-2;
        p               1e-2;
        U               1e-3;
        "(k|epsilon|omega)" 1e-3;
    }
}
Again, the tutorial case worked fine, this error only occured when I modified the blockMeshDict and boundary conditions to work with the cavity test case. This has really confused me and I would appreciate any help with this problem.

Thank you.
sur4j is offline   Reply With Quote

Old   December 8, 2013, 10:53
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 14
Bernhard is on a distinguished road
Add
Code:
    pRefCell        0;
    pRefValue       0;
To your system/fvSolution in the SIMPLE subdictionary.

You are changing more things, as you are trying to solve using a SIMPLE algorithm (apparently), which looks up different subdictionaries.
sur4j likes this.
Bernhard is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
The turbulent swirling flow test case - Dellenback dogan Main CFD Forum 0 February 27, 2013 09:10
cavity case with different mesh masterfgee OpenFOAM 1 July 21, 2010 11:53
Interfoam Droplet under shear test case adona058 OpenFOAM Running, Solving & CFD 3 May 3, 2010 18:46
looking for a test case, DES, Supersonic flow kaarthik Main CFD Forum 0 June 7, 2007 05:49
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


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