CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

interTrackFoam faMesh error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 7, 2011, 08:05
Default interTrackFoam faMesh error
  #1
New Member
 
Tong Zhongyao
Join Date: Oct 2010
Posts: 10
Rep Power: 6
lionlove0903 is on a distinguished road
Hello everyone,
I am trying to solve a inclined film flow problem with interTrackFoam, but I am in trouble with the faMesh. This is my blockMeshDict:

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

convertToMeters 1;

vertices
(
(0 0 0)
(0.1 0 0)
(0 0.005 0)
(0.1 0.005 0)
(0 0.01 0)
(0.1 0.01 0)
(0 0 0.001)
(0.1 0 0.001)
(0 0.005 0.001)
(0.1 0.005 0.001)
(0 0.01 0.001)
(0.1 0.01 0.001)

);

blocks
(
hex (0 1 3 2 6 7 9 8) (100 5 1) simpleGrading (1 1 1)
hex (2 3 5 4 8 9 11 10) (100 5 1) simpleGrading (1 1 1)
);

edges
(
);

patches
(
wall bottom
(
(0 1 7 6)
)
patch inlet1
(
(0 2 8 6)
)
patch inlet2
(
(2 4 10 8)
)
patch outlet
(
(1 3 9 7)
(3 5 11 9)
)
patch freeSurface
(
(4 5 11 10)
)
empty frontAndBackPlanes
(
(0 1 3 2)
(6 7 9 8)
(2 3 5 4)
(8 9 11 10)
)
);

mergePatchPairs
(
);

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

And this is my faMeshDefinition:

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

polyMeshPatches 1( freeSurface );

boundary
{
inlet1
{
type patch;
ownerPolyPatch freeSurface;
neighbourPolyPatch inlet1;
}

inlet2
{
type patch;
ownerPolyPatch freeSurface;
neighbourPolyPatch inlet2;
}

outlet
{
type patch;
ownerPolyPatch freeSurface;
neighbourPolyPatch outlet;
}

frontAndBack
{
type empty;
ownerPolyPatch freeSurface;
neighbourPolyPatch frontAndBackPlanes;
}
}

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

And this is my error message:


// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Create faMesh ... Done
Add faPatches ... bool faBoundaryMesh::checkDefinition(const bool report) const : Problem with boundary patch 0.
The patch should start on face no 99 and the boundary file specifies 100.

bool faBoundaryMesh::checkDefinition(const bool report) const : Problem with boundary patch 1.
The patch should start on face no 100 and the boundary file specifies 101.

bool faBoundaryMesh::checkDefinition(const bool report) const : Problem with boundary patch 2.
The patch should start on face no 101 and the boundary file specifies 57.

--> FOAM Serious Error :
From function bool faBoundaryMesh::checkDefinition(const bool report) const
in file faMesh/faBoundaryMesh/faBoundaryMesh.C at line 280
This mesh is not valid: boundary definition is in error.
Done
Write finite area mesh ... Done

I have created the mesh with blockMesh command.

I have solved the problem with one 'inlet', but when I divided the inlet boundary into two parts, the problem comes out.

By the way, I can not compile the groovyBC in OpenFOAM-1.6-ext, so I have to divided the inlet into different parts to define different velocity. Has anyone successfully compiled groovyBC in OF-1.6-ext?

Can anyone help me?

Thanks a lot!

Last edited by lionlove0903; February 7, 2011 at 15:14.
lionlove0903 is offline   Reply With Quote

Old   February 8, 2011, 10:57
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
What was your solution for one inlet? I don't get any error when I change the patches to walls, but that is not what you want probably.

By the way, I had no problems with groovyBC for 1.6-ext.
Bernhard is offline   Reply With Quote

Old   February 9, 2011, 04:23
Default
  #3
New Member
 
Tong Zhongyao
Join Date: Oct 2010
Posts: 10
Rep Power: 6
lionlove0903 is on a distinguished road
Quote:
Originally Posted by Bernhard View Post
What was your solution for one inlet? I don't get any error when I change the patches to walls, but that is not what you want probably.

By the way, I had no problems with groovyBC for 1.6-ext.

Dear Bernhard,

I modified the faMeshDefinition document and deleted the 'inlet1' like this:

boundary
{
inlet2
{
type patch;
ownerPolyPatch freeSurface;
neighbourPolyPatch inlet2;
}

outlet
{
type patch;
ownerPolyPatch freeSurface;
neighbourPolyPatch outlet;
}

frontAndBack
{
type empty;
ownerPolyPatch freeSurface;
neighbourPolyPatch frontAndBackPlanes;
}
}

Now the interTrackFoam works. I think maybe it is because 'inlet1' is not the 'neighbourPolyPartch' of the freeSurface Patch.

But I still can not compile the groovyBC in OpenFOAM-1.6-ext. I downloaded the OpenFOAM-1.6-ext from http://openfoamwiki.net/index.php/Installation with the command: sudo apt-get install openfoam-1.6-ext. And I downloaded the GroovyBC from http://openfoamwiki.net/index.php/Contrib_groovyBC with svn. I can compile it in the OpenFOAM-1.7.1 and OpenFOAM-1.6.

So my questions are:
1. Did you install OpenFOAM-1.6-ext in this way or you compiled it yourself?
2. Have you tried to run the interTrackFoam in the parallel way?

Thank you very much for your reply!
lionlove0903 is offline   Reply With Quote

Old   February 9, 2011, 04:32
Default
  #4
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
1. I've downloaded the source, and compiled using ./Allwmake
2. No, I've not run interTrackFoam in parallel yet, but I'm planning to do it in the futur. I've seen that that's not straightforward, but managable.


What were your problems in installing groovyBC for 1.6-ext? Sooner or later you want to use it anyway I suppose.
Bernhard is offline   Reply With Quote

Old   February 9, 2011, 04:59
Default
  #5
New Member
 
Tong Zhongyao
Join Date: Oct 2010
Posts: 10
Rep Power: 6
lionlove0903 is on a distinguished road
Quote:
Originally Posted by Bernhard View Post
1. I've downloaded the source, and compiled using ./Allwmake
2. No, I've not run interTrackFoam in parallel yet, but I'm planning to do it in the futur. I've seen that that's not straightforward, but managable.


What were your problems in installing groovyBC for 1.6-ext? Sooner or later you want to use it anyway I suppose.
Can you tell me where you downloaded the source and how to compile it? I used to download the source in this way:
git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext
then I source the bashrc in etc and ./Allwmake, but I can not compile it successfully.
My system is ubuntu 10.04 32bit and I have installed the OpenFOAM-1.7.1 on it.
lionlove0903 is offline   Reply With Quote

Old   February 9, 2011, 05:36
Default
  #6
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
I got it from the same location of course, but without error messages it is difficult to say what went wrong. Furthermore, I don't know why you want to go through compiling again, that won't solve your groovyBC problem.
Bernhard is offline   Reply With Quote

Old   February 9, 2011, 06:01
Default
  #7
New Member
 
Tong Zhongyao
Join Date: Oct 2010
Posts: 10
Rep Power: 6
lionlove0903 is on a distinguished road
Quote:
Originally Posted by Bernhard View Post
I got it from the same location of course, but without error messages it is difficult to say what went wrong. Furthermore, I don't know why you want to go through compiling again, that won't solve your groovyBC problem.
Because I found the OpenFOAM-1.6-ext I installed with 'sudo apt-get install openfoam-1.6-ext' has the different directories from the version I got from 'git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext'. I mean the directory structures are different in the two versions. And the latter one has the same directory structure with OpenFOAM-1.7.1 and OpenFOAM-1.6.
When I compile groovyBC in my installed OpenFOAM-1.6-ext, the program can not find the documents because there are no such directories as in standard version OpenFOAMs.
Would you please tell me what system and gcc version you are using?
Thanks!
lionlove0903 is offline   Reply With Quote

Old   February 9, 2011, 06:28
Default
  #8
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
This version was compiled on SuSE 11.1 and with gcc 4.3.2. But please a open a new topic about your installation issues, so more people will find it to help you out.
Bernhard is offline   Reply With Quote

Old   February 9, 2011, 06:32
Default
  #9
New Member
 
Tong Zhongyao
Join Date: Oct 2010
Posts: 10
Rep Power: 6
lionlove0903 is on a distinguished road
Quote:
Originally Posted by Bernhard View Post
This version was compiled on SuSE 11.1 and with gcc 4.3.2. But please a open a new topic about your installation issues, so more people will find it to help you out.
Yes, I think I must do that because it is so difficult to compile OpenFOAM.

Thank you very much, Bernhard
lionlove0903 is offline   Reply With Quote

Reply

Tags
intertrackfoam

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
GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM 300 October 29, 2014 20:00
c++ libraries and solver compiling vaina74 OpenFOAM Installation 13 February 3, 2012 18:43
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50
user defined function cfduser CFX 0 April 29, 2006 11:58


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