|
[Sponsors] |
[Commercial meshers] Converting fluent mesh to foam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 10, 2012, 14:32 |
Converting fluent mesh to foam
|
#1 |
Senior Member
|
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 |
|
October 13, 2012, 05:31 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
@sivakumar: Does this answer your question?
If not, then please indicate the command you've used to get the error message you got! Best regards, Bruno
__________________
|
|
October 13, 2012, 06:50 |
|
#3 |
Senior Member
|
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:olyMesh(... 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 |
|
October 13, 2012, 07:21 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Sivakumar,
OK, given the new information, I moved the posts to a new thread. Let's see:
Best regards, Bruno
__________________
|
|
October 17, 2012, 13:36 |
|
#5 |
Senior Member
|
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 coord0.0985922 -0.259456 0.181474) in pts0 when using tolerance 1.19243e-05 Searching started from:0 in pts1 Compared coord0.0980996 -0.259957 0.181037) with difference to point 0.000827536 Cannot find point in pts1 matching point 138 coord0.120023 -0.259457 0.181471) in pts0 when using tolerance 1.19248e-05 Searching started from:0 in pts1 Compared coord0.0980996 -0.259957 0.181037) with difference to point 0.0219338 Compared coord0.119531 -0.259959 0.181034) with difference to point 0.000827555 Cannot find point in pts1 matching point 279 coord0.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:rder : Writing neighbour faces to OBJ file "/home/cerecam/OpenFOAM/OpenFOAM-2.0.1/tutorials/incompressible/MRFSimpleFoam/createPatchTest2/OLR0_faces.obj" cyclicPolyPatch:rder : Writing my faces to OBJ file "/home/cerecam/OpenFOAM/OpenFOAM-2.0.1/tutorials/incompressible/MRFSimpleFoam/createPatchTest2/OLR1_faces.obj" cyclicPolyPatch:rder : 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:rder(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 |
|
October 21, 2012, 12:07 |
|
#6 |
Senior Member
|
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 |
|
November 6, 2012, 09:17 |
MRFSimplefoam Tutorial
|
#7 |
Senior Member
|
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 |
|
April 23, 2013, 06:47 |
|
#8 |
Member
Dogan
Join Date: Nov 2012
Location: Bochum/Germany
Posts: 42
Rep Power: 14 |
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 |
|
April 23, 2013, 08:16 |
|
#9 |
Member
Dogan
Join Date: Nov 2012
Location: Bochum/Germany
Posts: 42
Rep Power: 14 |
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!!! |
|
April 26, 2013, 19:02 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
April 30, 2013, 10:26 |
|
#11 | |
Member
Dogan
Join Date: Nov 2012
Location: Bochum/Germany
Posts: 42
Rep Power: 14 |
Quote:
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 |
||
April 30, 2013, 10:29 |
|
#12 | |
Member
Dogan
Join Date: Nov 2012
Location: Bochum/Germany
Posts: 42
Rep Power: 14 |
Quote:
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 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] foam Mesh to Fluent | tachyon_me | OpenFOAM Meshing & Mesh Conversion | 16 | September 16, 2019 13:47 |
Fluent converting 'wall' to 'interior' BC for hybrid mesh | DarrenC | FLUENT | 8 | January 3, 2019 07:24 |
[mesh manipulation] RefineMesh Error and Foam warning | jiahui_93 | OpenFOAM Meshing & Mesh Conversion | 4 | March 3, 2018 12:32 |
[Commercial meshers] Fluent to OpenFoam Mesh converting | MultiphaseFlowsLab | OpenFOAM Meshing & Mesh Conversion | 5 | May 20, 2014 06:04 |
[Commercial meshers] Several problems with the mesh conversion utility when converting the meshes from Gridgen | su_junwei | OpenFOAM Meshing & Mesh Conversion | 2 | July 27, 2008 00:58 |