CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Boundary condition problems imported msh (http://www.cfd-online.com/Forums/openfoam-solving/57766-boundary-condition-problems-imported-msh.html)

milos March 15, 2009 07:46

Hi everyone! I managed to t
 
Hi everyone!

I managed to transfer a file from ProEngineer to Gambit and afterwards to a .msh file, which I transfered again into an OpenFOAM format so I could run the simulation.

Everything seems all right, checkMesh says that the mesh is fine, but I'm constantly getting the following error after starting the simulation (simpleFoam solver):

-------------------------------------------
Create time

Create mesh for time = 0

Reading field p

keyword wall is undefined in dictionary "/home/milos/OpenFOAM/milos-1.5/run/test3/0/p::boundaryField"

file: /home/milos/OpenFOAM/milos-1.5/run/test3/0/p::boundaryField from line 25 to line 45.

From function dictionary::subDict(const word& keyword) const

in file db/dictionary/dictionary.C at line 271.

FOAM exiting

-------------------------------------------

My geometry is actually a pipe elbow. I guess it doesn't get much more simple than that.

After some improvising I managed to get the simulation running for several steps, although I still do not know the essence of the problem that came up.

Now, I'm at this:

-----------------------------------------
Create time

Create mesh for time = 0

Reading field p

Reading field U

Reading/calculating face flux field phi



keyword pRefCell is undefined in dictionary "/home/milos/OpenFOAM/milos-1.5/run/test3/system/fvSolution::SIMPLE"

file: /home/milos/OpenFOAM/milos-1.5/run/test3/system/fvSolution::SIMPLE from line 59 to line 59.

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

FOAM exiting
-----------------------------------

If anyone knows what do these error mean (what should I change in the pre-processing stage), please let me know.

Thanks a million!

zhoubinwx March 15, 2009 08:29

Hi Milos, Would you please
 
Hi Milos,

Would you please upload your fvSolutions and fvSchemes files? BTW, describe your model, boundary condition, laminar?turbulence?

So that we may give some suggestions.

Bin

milos March 15, 2009 09:43

No problem about the upload, b
 
No problem about the upload, but you have to tell me where to upload since I'm new on this forum (and still at rookie level with OpenFOAM). If it would be useful, I could upload my whole case folder.

Model is a simple pipe (50mm in diameter) elbow, with an inlet and an outlet. I set up the boundary conditions in Gambit and modified them after the conversion to OpenFOAM format. As for boundary conditions, I have: inlet, outlet and a wall. Flow should be turbulent, k-epsilon model.

Thanks!

zhoubinwx March 15, 2009 10:26

Hi Milos, As for the method
 
Hi Milos,

As for the method to upload, please take a look at "Attachments" at http://www.cfd-online.com/cgi-bin/Op...?pg=formatting.

Well, it is clear that you are simulating turbulence. I suggest you to copy some existing fvSolutions & fvSchemes from tutorials. After you are familiar with it, you could change the discretisation schemes and other parameters.

Try to copy the following content in your fvSolutions file:
solvers
{
p PCG
{
preconditioner DIC;
tolerance 1e-06;
relTol 0.01;
};
U PBiCG
{
preconditioner DILU;
tolerance 1e-05;
relTol 0.1;
};
k PBiCG
{
preconditioner DILU;
tolerance 1e-05;
relTol 0.1;
};
epsilon PBiCG
{
preconditioner DILU;
tolerance 1e-05;
relTol 0.1;
};
R PBiCG
{
preconditioner DILU;
tolerance 1e-05;
relTol 0.1;
};
nuTilda PBiCG
{
preconditioner DILU;
tolerance 1e-05;
relTol 0.1;
};
}

SIMPLE
{
nNonOrthogonalCorrectors 3;
}

relaxationFactors
{
p 0.3;
U 0.7;
k 0.7;
epsilon 0.7;
R 0.7;
nuTilda 0.7;
}

Bin

milos March 16, 2009 05:28

Thank you for the effort zhoubinwx. However, I managed to figure it out. It's just about having the same boundaries defined in each of the boundary conditions files (p, U, k, epsilon, nu tilda...), although the latter problem with "undefined pRefCell" was solved by copying fresh fvSolution and fvSchemes from the tutorial folder (as you suggested).

Thanx once more! Cheers!

jml October 6, 2009 03:32

Hello Milos, I have read your first post and I have the same problem to run the simulation:

************************************************** *

Create time
Create mesh for time = 0
Reading thermodynamicProperties
Reading field p

keyword wall is undefined in dictionary "/scratch/inyeccion/LES/0/p::boundaryField"
file: /scratch/inyeccion/LES/0/p::boundaryField from line 26 to line 62.
From function dictionary::subDict(const word& keyword) const
in file db/dictionary/dictionary.C at line 271.
FOAM exiting

********************************

What can I do to solve it? Thanks.

milos October 6, 2009 03:44

Well, I see your folder name contains LES and I would assume that you are dealing with Large Eddies. To be honest, I am not familiar with that solver at all, but my problem was inconsistent boundary conditions.

To make it more clear, go to your 'constant' folder, and check how is your geometry defined (how many walls, inlets, outlets etc.). Afterwards go to the '0' folder and make sure that you have properly defined boundary conditions (p, U etc.) for each of the geometric entities (walls, inlets, outlets etc.).

To simplify it even more, the key should lie in the relation/consistency between the '0' folder and the 'constant' folder.

Let me know if that helped.

Cheers!

jml October 6, 2009 08:59

Thank you Milos, I have checked the constant file and I have found the solution to my problem. It was a problem in the creation of the mesh.

Thank you very much.

milos October 6, 2009 09:50

No problemo! :)


All times are GMT -4. The time now is 08:18.