CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

pitzdaily error missing p

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2018, 13:02
Default pitzdaily error missing p
  #1
New Member
 
Johnny
Join Date: Mar 2018
Posts: 12
Rep Power: 8
barracuda is on a distinguished road
Hi, I am following video tutorial https://www.youtube.com/watch?v=BG-dkp7z1fI

pitzdaily case.

See 6:24

Error:
Unable to set reference cell for field p
Please supply either pRefCell or pRefPoint

Why is this needed? It is not in the tutorial.

I have noticed there exists a topic about similar problem, but not with pitzdaily and they did not mention what exactly they changed in the fvSolution.

Just a moment, I will send the code.

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
p
{
solver GAMG;
tolerance 1e-08;
relTol 0.1;
smoother GaussSeidel;
}

"(U|k|epsilon|omega|f|v2)"
{
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-08;
relTol 0.1;
}
}

SIMPLE
{
nNonOrthogonalCorrectors 0;
consistent yes;

residualControl
{
p 1e-6;
U 1e-6;
"(k|epsilon|omega|f|v2)" 1e-3;
}
}

relaxationFactors
{
equations
{
U 0.7; // 0.9 is more stable but 0.95 more convergent
".*" 0.3; // 0.9 is more stable but 0.95 more convergent
}
}


// ************************************************** *********************** //
barracuda is offline   Reply With Quote

Old   March 21, 2018, 03:38
Default
  #2
Member
 
Hosein
Join Date: Nov 2011
Location: Germany
Posts: 93
Rep Power: 14
einstein_zee is on a distinguished road
Quote:
Originally Posted by barracuda View Post
Hi, I am following video tutorial https://www.youtube.com/watch?v=BG-dkp7z1fI

pitzdaily case.

See 6:24

Error:
Unable to set reference cell for field p
Please supply either pRefCell or pRefPoint

Why is this needed? It is not in the tutorial.

I have noticed there exists a topic about similar problem, but not with pitzdaily and they did not mention what exactly they changed in the fvSolution.

Just a moment, I will send the code.

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
p
{
solver GAMG;
tolerance 1e-08;
relTol 0.1;
smoother GaussSeidel;
}

"(U|k|epsilon|omega|f|v2)"
{
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-08;
relTol 0.1;
}
}

SIMPLE
{
nNonOrthogonalCorrectors 0;
consistent yes;

residualControl
{
p 1e-6;
U 1e-6;
"(k|epsilon|omega|f|v2)" 1e-3;
}
}

relaxationFactors
{
equations
{
U 0.7; // 0.9 is more stable but 0.95 more convergent
".*" 0.3; // 0.9 is more stable but 0.95 more convergent
}
}


// ************************************************** *********************** //
this is already addressed in here "https://www.cfd-online.com/Forums/openfoam-pre-processing/62259-fvsolution-prefcell-prefvalue.html".
einstein_zee is offline   Reply With Quote

Old   March 21, 2018, 07:10
Default Thank you
  #3
New Member
 
Johnny
Join Date: Mar 2018
Posts: 12
Rep Power: 8
barracuda is on a distinguished road
Thank you so much.
https://cfd.direct/openfoam/user-guide/fvsolution/

However I got an error.

wait a moment to paste it:

Reading field U

Reading/calculating face flux field phi



--> FOAM FATAL IO ERROR:
Illegal master cellID 0. Should be 0..0

file: /home/fsx/OpenFOAM/fsx-5.0/run/LaminarPipe3d/system/fvSolution.SIMPLE from line 39 to line 47.

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


My code here:


SIMPLE
{
nNonOrthogonalCorrectors 0;
consistent yes;
pRefCell 0;
pRefValue 0;
residualControl
{
p 1e-6;
U 1e-6;
"(k|epsilon|omega|f|v2)" 1e-3;
}
}

relaxationFactors
{
equations
{
U 0.7; // 0.9 is more stable but 0.95 more convergent
".*" 0.3; // 0.9 is more stable but 0.95 more convergent
}
}

I tested 0 , 0.0 and 0. values, all results error.

Refence to cfdTools/general/findRefCell/findRefCell.C
in unknown location (I cannot find cfdTools directory)
barracuda is offline   Reply With Quote

Old   March 21, 2018, 07:50
Exclamation boundry conditions
  #4
New Member
 
Johnny
Join Date: Mar 2018
Posts: 12
Rep Power: 8
barracuda is on a distinguished road
p:

boundaryField
{
inlet
{
type zeroGradient;
}

outlet
{
type fixedValue;
value uniform 0;
}

wall
{
type zeroGradient;
}
}

U:


boundaryField
{
inlet
{
type fixedValue;
value uniform (0502464 0 0);
}

outlet
{
type zeroGradient;
}

wall
{
type noSlip;
}

}

Please see the error in the post above

Edit:
checkMesh outputs mesh is OK
barracuda is offline   Reply With Quote

Old   March 21, 2018, 08:54
Lightbulb
  #5
New Member
 
Johnny
Join Date: Mar 2018
Posts: 12
Rep Power: 8
barracuda is on a distinguished road
Finally I have solved that:

SIMPLE
{
nNonOrthogonalCorrectors 0;
consistent yes;
residualControl
pRefCell 0;
pRefValue 0.0;
{
pRefCell 0;
pRefValue 0.0;
p 1e-6;
U 1e-6;
"(k|epsilon|omega|f|v2)" 1e-3;
}
}
barracuda is offline   Reply With Quote

Reply


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
pitzDaily validation laurentD OpenFOAM Running, Solving & CFD 3 June 2, 2020 04:11
Problem in 3D extension of pitzDaily yfjok22 OpenFOAM Running, Solving & CFD 1 October 19, 2016 11:39
[Other] Error during PitzDaily case harsha_kulkarni OpenFOAM Meshing & Mesh Conversion 2 April 12, 2014 02:12
icoFoam crashed (pitzDaily laminar) RTom OpenFOAM Running, Solving & CFD 0 January 5, 2014 14:36
Pressure problem in pitzDaily pisoFoam LES fluentfreak OpenFOAM Running, Solving & CFD 0 April 18, 2012 18:13


All times are GMT -4. The time now is 03:30.