CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   SimpleFoam boundary conditions changed in OF 14 (https://www.cfd-online.com/Forums/openfoam-solving/59624-simplefoam-boundary-conditions-changed-14-a.html)

adorean May 13, 2007 11:34

Hello, I've got this error
 
Hello,

I've got this error in OF 1.4 - simpleFoam with a case setup that worked in OF 1.3:

--> FOAM FATAL IO ERROR : keyword U is undefined in dictionary "/home/ervin/OpenFOAM/ervin-1.4/tutorials/simpleFoam/intake-4mm/0/p::p-out"

file: /home/ervin/OpenFOAM/ervin-1.4/tutorials/simpleFoam/intake-4mm/0/p::p-out from line 41 to line 43.

From function dictionary::lookupEntry(const word& keyword) const
in file db/dictionary/dictionary.C at line 146.

FOAM exiting

My 0/p dictionary:

/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.3 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

FoamFile
{
version 2.0;
format ascii;

root "";
case "";
instance "";
local "";

class volScalarField;
object p;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


dimensions [0 2 -2 0 0 0 0];

internalField uniform 101325;

boundaryField
{
p-in
{
type totalPressure;
p0 uniform 102125;
value uniform 102125;
}

p-out
{
type totalPressure;
p0 uniform 98205;
value uniform 98205;
}

wall
{
type zeroGradient;
}

}


// ************************************************** *********************** //

Can someone tell why it is asking for U, then phi, rho, gamma ... in the 0/p file?

Thank you,

Ervin

adorean May 15, 2007 01:17

Hello again, Has anyone had
 
Hello again,

Has anyone had this problem with OF 1.4 and simpleFoam - with this B.C.?

I don't understand why is it complaining about those entries in that file (0/p).

I repeat: the exactly same setup worked just fine in OF 1.3.

Anyone?

Thanks,

Ervin

adorean May 26, 2007 11:46

Didn't anybody observe the abo
 
Didn't anybody observe the above described behaviour of simpleFoam and rhoSimpleFoam (for those kind of B.C.)?
What changed from 1.3 to 1.4?
Am I making a mistake with the B.C. in OF 1.4?

adorean May 26, 2007 13:38

Sorry for the wasted space. Pr
 
Sorry for the wasted space. Problem solved.

guido_adriaensen June 22, 2007 08:17

Hello Ervin, Could you expl
 
Hello Ervin,

Could you explain how you solved the problem? Thank you.

Guido

adorean June 22, 2007 08:50

Hello, By using this for th
 
Hello,

By using this for the p file:


FoamFile
{
version 2.0;
format ascii;

root "";
case "";
instance "";
local "";

class volScalarField;
object p;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


dimensions [1 -1 -2 0 0 0 0];

internalField uniform 101325;

boundaryField
{
p-in
{
type totalPressure;
p0 uniform 102125;
value uniform 102125;
U U;
phi phi;
rho rho;
psi none;
gamma 1.4;
}

p-out
{
type totalPressure;
p0 uniform 98205;
value uniform 98205;
U U;
phi phi;
rho rho;
psi none;
gamma 1.4;
}

wall
{
type zeroGradient;
}

}


Ervin


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