CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Commercial meshers] Converting fluent mesh to foam (https://www.cfd-online.com/Forums/openfoam-meshing/108051-converting-fluent-mesh-foam.html)

sivakumar October 10, 2012 13:32

Converting fluent mesh to foam
 
Hi there,
I am trying to convert .msh file in to foam,
I am getting the following error, can you please help me.
nes

Usage: fluentMeshToFoam [OPTIONS] <Fluent mesh file>
options:
-case <dir> specify alternate case directory, default is the cwd
-noFunctionObjects
do not execute functionObjects
-scale <factor> geometry scaling factor - default is 1
-writeSets write cell zones and patches as sets
-writeZones write cell zones as zones
-srcDoc display source code in browser
-doc display application documentation in browser
-help print the usage

Using: OpenFOAM-2.0.1 (see www.OpenFOAM.com)
Build: 2.0.1

--> FOAM FATAL ERROR:
Wrong number of arguments, expected 1 found 2

FOAM exiting

thanks for your help,
Siva

wyldckat October 13, 2012 04:31

@sivakumar: Does this answer your question?
Quote:

Originally Posted by lovecraft22 (Post 359944)
Simply run this one then:

fluentMeshToFoam elbow.msh

If not, then please indicate the command you've used to get the error message you got!

Best regards,
Bruno

sivakumar October 13, 2012 05:50

Hi Bruno,
Regarding this issue I dont know it is correct or not but I tried as follows,
fluentMeshToFoam -writeSets -writeZones mrf.msh
The .msh file has been converted in to foam file.
regarding this I got some information from dmoroian as well.
This tutorial case from dmoroian.

if I follow the same to my real case its not working.
I have tried in 2 ways

1) fluentMeshToFoam -writeSets -writeZones baseFanWall.msh

FINISHED LEXING

dimension of grid: 3
Creating shapes for 3-D cells
Building patch-less mesh...--> FOAM Warning :
From function polyMesh::polyMesh(... construct from shapes...)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 614
Found 45400 undefined faces in mesh; adding to default patch.
done.

Building boundary and internal patches.
Creating patch 0 for zone: 3 start: 1 end: 3500 type: shadow name: ILR_shadow


--> FOAM FATAL ERROR:
fluent patch type shadow not recognised.

From function fluentToFoam::main(int argc, char *argv[])
in file fluentMeshToFoam.L at line 1344.

FOAM aborting

2) fluent3DMeshToFoam -writeSets -writeZones baseFanWall.msh


Usage: fluent3DMeshToFoam [OPTIONS] <Fluent mesh file>
options:
-case <dir> specify alternate case directory, default is the cwd
-cubit special parsing of (incorrect) cubit files
-ignoreCellGroups <names>
specify cell groups to ignore
-ignoreFaceGroups <names>
specify face groups to ignore
-noFunctionObjects
do not execute functionObjects
-scale <factor> geometry scaling factor - default is 1
-srcDoc display source code in browser
-doc display application documentation in browser
-help print the usage

Using: OpenFOAM-2.0.1 (see www.OpenFOAM.com)
Build: 2.0.1



--> FOAM FATAL ERROR:
Invalid option: -writeSets
Invalid option: -writeZones


Thanks and regards,
Sivakumar

wyldckat October 13, 2012 06:21

Hi Sivakumar,

OK, given the new information, I moved the posts to a new thread.

Let's see:
  1. Looks like the "type shadow" is not allowed. I would try removing or changing the cells that have type shadow and change them to something else.
  2. Well, in this case it seems simple enough... simply run the command again without those two options:
    Code:

    fluent3DMeshToFoam -writeSets -writeZones baseFanWall.msh
    I think this utility has more capabilities than the other one, so these options are not necessary.


Best regards,
Bruno

sivakumar October 17, 2012 12:36

Hi Bruno and Foamers,
Still I have some problem to run MRFSimpleFoam.
first I have converted the .msh file foam using fluent3DMeshToFoam.
then while using the createPatch I am getting the following error message. The log file size too large to attach here so, I am giving part of the log file.

Please give me some information, where I am doing mistake.
or can I go ahead without considering the error message?


Create time

Reading createPatchDict.

Create polyMesh for time = 0

Adding new patch ILR0 as patch 12 from
{
type cyclic;
neighbourPatch ILR1;
transform rotational;
rotationAxis ( 1 0 0 );
rotationCentre ( 0 0 0 );
matchTolerance 0.001;
}

Adding new patch ILR1 as patch 13 from
{
type cyclic;
neighbourPatch ILR0;
transform rotational;
rotationAxis ( 1 0 0 );
rotationCentre ( 0 0 0 );
matchTolerance 0.001;
}

Adding new patch OLR0 as patch 14 from
{
type cyclic;
neighbourPatch OLR1;
transform rotational;
rotationAxis ( 1 0 0 );
rotationCentre ( 0 0 0 );
matchTolerance 0.001;
}

Adding new patch OLR1 as patch 15 from
{
type cyclic;
neighbourPatch OLR0;
transform rotational;
rotationAxis ( 1 0 0 );
rotationCentre ( 0 0 0 );
matchTolerance 0.001;
}


Moving faces from patch ILR_shadow to patch 12
Moving faces from patch ILR to patch 13
Moving faces from patch OLR_shadow to patch 14
Moving faces from patch OLR to patch 15

Doing topology modification to order faces.

Cannot find point in pts1 matching point 139 coord:(0.0985922 -0.259456 0.181474) in pts0 when using tolerance 1.19243e-05
Searching started from:0 in pts1
Compared coord:(0.0980996 -0.259957 0.181037) with difference to point 0.000827536
Cannot find point in pts1 matching point 138 coord:(0.120023 -0.259457 0.181471) in pts0 when using tolerance 1.19248e-05
Searching started from:0 in pts1
Compared coord:(0.0980996 -0.259957 0.181037) with difference to point 0.0219338
Compared coord:(0.119531 -0.259959 0.181034) with difference to point 0.000827555
Cannot find point in pts1 matching point 279 coord:(0.0991178 -0.264911 0.188996) in pts0 when using tolerance 1.19091e-05
Searching started from:1 in pts1
Compared coord 0.119531 -0.259959 0.181034) with difference to point 0.0224633
Compared coord 0.0986413 -0.265405 0.188564) with difference to point 0.000811152
Cannot find point in pts1 matching point 137 coord 0.141447 -0.259461 0.181471) in pts0 when using tolerance 1.19213e-05
Searching started from:3 in pts1

Cannot find point in pts1 matching point 6720 coord 3.07424 -0.549983 0.520688) in pts0 when using tolerance 1.1706e-05
Searching started from:6998 in pts1
Compared coord 3.07411 -0.55001 0.520694) with difference to point 0.000125937
Cannot find point in pts1 matching point 6860 coord 3.07418 -0.556031 0.527758) in pts0 when using tolerance 1.17059e-05
Searching started from:6999 in pts1
Compared coord 3.07407 -0.556048 0.527774) with difference to point 0.000117432
cyclicPolyPatch::order : Writing neighbour faces to OBJ file "/home/cerecam/OpenFOAM/OpenFOAM-2.0.1/tutorials/incompressible/MRFSimpleFoam/createPatchTest2/OLR0_faces.obj"
cyclicPolyPatch::order : Writing my faces to OBJ file "/home/cerecam/OpenFOAM/OpenFOAM-2.0.1/tutorials/incompressible/MRFSimpleFoam/createPatchTest2/OLR1_faces.obj"
cyclicPolyPatch::order : Dumping currently found cyclic match as lines between corresponding face centres to file "/home/cerecam/OpenFOAM/OpenFOAM-2.0.1/tutorials/incompressible/MRFSimpleFoam/createPatchTest2/OLR1_faceCentres.obj"
--> FOAM Serious Error :
From function cyclicPolyPatch::order(const primitivePatch&, labelList&, labelList&) const
in file meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C at line 1385
Patch:OLR1 : Cannot match vectors to faces on both sides of patch
Perhaps your faces do not match? The obj files written contain the current match.

Continuing with incorrect face ordering from now on!
Dumping ILR0 faces to "coupled_ILR0.obj"
Dumping ILR1 faces to "coupled_ILR1.obj"
Dumping cyclic match as lines between face centres to "coupled_ILR0ILR1_match.obj"
Dumping OLR0 faces to "coupled_OLR0.obj"
Dumping OLR1 faces to "coupled_OLR1.obj"
Dumping cyclic match as lines between face centres to "coupled_OLR0OLR1_match.obj"
Not synchronising points.

Removing patches with no faces in them.

Removing empty patch ILR_shadow at position 0
Removing empty patch ILR at position 1
Removing empty patch OLR_shadow at position 2
Removing empty patch OLR at position 3
Removing patches.
Dumping ILR0 faces to "final_ILR0.obj"
Dumping ILR1 faces to "final_ILR1.obj"
Dumping cyclic match as lines between face centres to "final_ILR0ILR1_match.obj"
Dumping OLR0 faces to "final_OLR0.obj"
Dumping OLR1 faces to "final_OLR1.obj"
Dumping cyclic match as lines between face centres to "final_OLR0OLR1_match.obj"
Writing repatched mesh to 1

End

Thank you for time,

regards,
Sivakumar

sivakumar October 21, 2012 11:07

Hi Guys,
So for there is no reply from any one, I dont think it is a strange question.
How ever I have solved the problem. I am planning to give step by step tutorial for MRFSimpleFoam, it will be useful for the new users.

before releasing that tutorial, I want to check that with the experienced users.
experienced users at least help me for this initiative.


Thanks and regards,
Sivakumar

sivakumar November 6, 2012 08:17

MRFSimplefoam Tutorial
 
1 Attachment(s)
Hi Guys,
I have prepared the tutorial pdf, please have a look.
Dear experienced users if there is any mistake in the steps please let me know.

With regards,
Sivakumar

dogan April 23, 2013 05:47

1 Attachment(s)
Hi all,
First of all, i would like to thank to all of you for sharing your information.
While searching an answer for my problem on web, i found this thread, and i hope especially MRFSimpleFoam tutorial pdf will help me. Bun in any case, i would like to ask you a question.
I am working on a centrifugal pump simulation as my master thesis with OpenFOAM V.2.1.x, and i am having a problem while using stitchMesh command. In my simplified geometry, i have only the rotating impeller part and stationary spiral around the impeller. To be able to use MRFSimpleFoam, i have to stitch the interfaces between rotor and stator but unfortunately, i am getting error messages. The interfaces between rotor and stator are called GEOM-SIDE-1(nFaces=3248) and GEOM-SIDE-2 (5481).
When i type the command;
stitchMesh GEOM-SIDE-2 GEOM-SIDE-1 -partial -overwrite
i got the following error message:

--> FOAM FATAL ERROR:
Duplicate point found in cut face. Error in the face cutting algorithm for global face 4(476034 466684 466686 476036) local face 4(0 1 2 3)
Slave size: 3248 Master size: 5481 index: 0.
Face: 5(476034 466684 466686 338175 476036)


1) do you have any idea concerning this error message?
2) do i have any other way except from stitchMesh command (maybe createPatch) to combine those patches?
3) does createPatch command erases the existing patches when we use it with createFromPatch?

i hope i can find an answer,

thanks in advance,

Dogan

dogan April 23, 2013 07:16

hi again,
i have already tried to do it, but the only thing i got was changing the patch names.
i still receive the same error message!!!

wyldckat April 26, 2013 18:02

Greetings Dogan,

I can try to help you, but I'll need a simple test case to work with.
Without a test case, the only thing that comes to mind is to use the "-perfect" option instead of the "-partial" option.

Best regards,
Bruno

dogan April 30, 2013 09:26

Quote:

Originally Posted by wyldckat (Post 423421)
Greetings Dogan,

I can try to help you, but I'll need a simple test case to work with.
Without a test case, the only thing that comes to mind is to use the "-perfect" option instead of the "-partial" option.

Best regards,
Bruno


Greetings Bruno,

First of all, sorry for my late reply, and secondly, thank you for offering help. I happy to say that i solved the problem and i would like to explain it here in case someone else may need.
i was trying to use stitchMesh to merge the interfaces, but i was getting an error message all the time. then i decided to use cyclicAMI for the interfaces even though it was an steady state simulation. But in this point i realised another problem with the use of AMI algorithm. the error message was saying that i have overlapping faces. And with the help of my assisstant, i learned that in OpenFOAM 1.6 extended, there is the GGI algortihm available, and in GGI, i can ignore the overlapping faces in the interface. as you can see from the following, when i set bridgeOverLap true, the problem was solved.

GEOM-SIDE-2
{
type ggi;
nFaces 5481;
startFace 1722497;
matchTolerance 0.1;
shadowPatch GEOM-SIDE-1;
zone geoms2zone;
transform rotational;
bridgeOverlap true;
rotationAxis (0.000000 0.000000 1.000000);
rotationCentre (0.0 0.000000 0.000000);

Thanks and regards
Dogan

dogan April 30, 2013 09:29

Quote:

Originally Posted by wyldckat (Post 423421)
Greetings Dogan,

I can try to help you, but I'll need a simple test case to work with.
Without a test case, the only thing that comes to mind is to use the "-perfect" option instead of the "-partial" option.

Best regards,
Bruno

additionally,
as a second step of my work, i have to do a transient simulation with pimpleDyMFoam and again i am getting error messages with it. if you can help me, please take a look at the this thread:

http://www.cfd-online.com/Forums/ope...cmeshdict.html


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