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

Boundary condition problems imported msh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2009, 06:46
Default Hi everyone! I managed to t
  #1
New Member
 
Milos Stanic
Join Date: Mar 2009
Location: Novi Sad, Serbia
Posts: 29
Rep Power: 17
milos is on a distinguished road
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!
milos is offline   Reply With Quote

Old   March 15, 2009, 07:29
Default Hi Milos, Would you please
  #2
Senior Member
 
ZHOU Bin
Join Date: Mar 2009
Location: Nanjing/Torino, Nanjing/Piemente, China/Italy
Posts: 164
Rep Power: 17
zhoubinwx is on a distinguished road
Send a message via ICQ to zhoubinwx Send a message via MSN to zhoubinwx Send a message via Skype™ to zhoubinwx
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
zhoubinwx is offline   Reply With Quote

Old   March 15, 2009, 08:43
Default No problem about the upload, b
  #3
New Member
 
Milos Stanic
Join Date: Mar 2009
Location: Novi Sad, Serbia
Posts: 29
Rep Power: 17
milos is on a distinguished road
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!
milos is offline   Reply With Quote

Old   March 15, 2009, 09:26
Default Hi Milos, As for the method
  #4
Senior Member
 
ZHOU Bin
Join Date: Mar 2009
Location: Nanjing/Torino, Nanjing/Piemente, China/Italy
Posts: 164
Rep Power: 17
zhoubinwx is on a distinguished road
Send a message via ICQ to zhoubinwx Send a message via MSN to zhoubinwx Send a message via Skype™ to zhoubinwx
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
zhoubinwx is offline   Reply With Quote

Old   March 16, 2009, 04:28
Default
  #5
New Member
 
Milos Stanic
Join Date: Mar 2009
Location: Novi Sad, Serbia
Posts: 29
Rep Power: 17
milos is on a distinguished road
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!
milos is offline   Reply With Quote

Old   October 6, 2009, 03:32
Default
  #6
jml
New Member
 
Jml
Join Date: Mar 2009
Posts: 23
Rep Power: 17
jml is on a distinguished road
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.
jml is offline   Reply With Quote

Old   October 6, 2009, 03:44
Default
  #7
New Member
 
Milos Stanic
Join Date: Mar 2009
Location: Novi Sad, Serbia
Posts: 29
Rep Power: 17
milos is on a distinguished road
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!
milos is offline   Reply With Quote

Old   October 6, 2009, 08:59
Default
  #8
jml
New Member
 
Jml
Join Date: Mar 2009
Posts: 23
Rep Power: 17
jml is on a distinguished road
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.
jml is offline   Reply With Quote

Old   October 6, 2009, 09:50
Default
  #9
New Member
 
Milos Stanic
Join Date: Mar 2009
Location: Novi Sad, Serbia
Posts: 29
Rep Power: 17
milos is on a distinguished road
No problemo!
milos 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
[Commercial meshers] Boundary condition problems (OpenFOAM) Milos OpenFOAM Meshing & Mesh Conversion 13 October 13, 2016 20:58
NASA Rotor 37 Boundary Condition Problems Dom FLUENT 1 March 27, 2012 08:00
Problems implementing a boundary condition ogloth OpenFOAM Running, Solving & CFD 3 July 17, 2007 16:36
Boundary condition and source in electromagnetic problems evgenii OpenFOAM Pre-Processing 3 March 6, 2007 16:20
Problems with Fan boundary condition Nish FLUENT 2 August 27, 2004 19:27


All times are GMT -4. The time now is 09:04.