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/)
-   -   interTrackFoam faMesh error (http://www.cfd-online.com/Forums/openfoam-solving/84708-intertrackfoam-famesh-error.html)

lionlove0903 February 7, 2011 08:05

interTrackFoam faMesh error
 
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!

Bernhard February 8, 2011 10:57

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.

lionlove0903 February 9, 2011 04:23

Quote:

Originally Posted by Bernhard (Post 294223)
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!

Bernhard February 9, 2011 04:32

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.

lionlove0903 February 9, 2011 04:59

Quote:

Originally Posted by Bernhard (Post 294349)
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.

Bernhard February 9, 2011 05:36

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.

lionlove0903 February 9, 2011 06:01

Quote:

Originally Posted by Bernhard (Post 294362)
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!

Bernhard February 9, 2011 06:28

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.

lionlove0903 February 9, 2011 06:32

Quote:

Originally Posted by Bernhard (Post 294375)
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


All times are GMT -4. The time now is 12:31.