I use the default, which is in
I use the default, which is integral if I'm not mistaken. I just noticed that everything works with stitching insideSlider and outsideSlider patches in the mixer2D, which is similar to my problem.
So it has to do with my mesh setup. I just converted 2 gambit meshes to openfoam, ran mergeMeshes and stitching goes wrong. Possibly something wrong with the conversion? Frank |
Solved! at least for now :-)
Solved! at least for now :-)
I did import both (gridpro) meshes in gambit and exported as 1 mesh instead of two (rootCase and addCase). So I didn't have to use mergeMeshes and stitchMesh did its job perfectly. Now the result of the stitching is 2 interface patches with 0 faces, so I can simply remove them, which was my initial goal :-) Thanks for the ideas, Frank |
Hi Frank,
I have studied this
Hi Frank,
I have studied this thread quite close, because I'm having problems with stichMesh even though I believe I follow the same procedure as you use in the end. My procedure is as follows: - Mesh a simple pipe in Gambit 2.4.6 with a non-conformal interface with perfect alignment. See picture http://www.cfd-online.com/OpenFOAM_D...ges/1/6900.gif - Declare an inlet and outlet boundary in Gambit and 2 interface boundaries: int1 and int2. - Export the mesh from Gambit as a single mesh for Fluent 5/6 solver - import the single mesh using fluent3DMeshToFoam: "fluent3DMeshToFoam . Test mesh.msh" - tries to merge and remove the 2 internal patches using: "stichMesh . test int1 int2 -perfect" This gives me a fatal error stating something with "... FOAM FATAL ERROR : point, face or cell zone already exists#0..." Any ideas on what i'm doing wrong here?? Jens |
Hi Jens,
Just remove the p
Hi Jens,
Just remove the pointZones / faceZones and cellZones files from the /constant/polyMesh dir..... Btw, I only use fluentMeshToFoam (for me it works for 3D too).... Frank |
Frank,
Thank you very much, n
Frank,
Thank you very much, now it works fine. http://www.cfd-online.com/OpenFOAM_D...part/happy.gif Do you know why the xxZones files are put there in the first place by fluent3DMeshToFoam? I guess they can not be part of the fundamental mesh definition but rather a convient grouping of mesh elements for different utilities? Do you know of any utility that might not work because they have been deleted? Jens |
no :-)
no :-)
|
At least cell zones are used w
At least cell zones are used with porous zones, or MRF model.
fluentMeshToFoam can't handle baffles etc., whereas fluent3DMeshToFoam can. The latter came to 1.4.1, there is something about it in the Release Notes. |
Thank you for your inputs.
Thank you for your inputs.
Jens |
Hi guys,
I have a problem w
Hi guys,
I have a problem with stitchMesh. My mesh has 2 coinciding patches which need to be stitched. When I use stitchMesh . case interface1 interface2, this leads to a lot of non-orthogonal faces and some concave angles....... Is this a common problem??? Regards, Frank |
Hi Frank,
I have had this
Hi Frank,
I have had this problem before. Usually when points on the two patches are very close, but not close enough to be merged and/or when two boundaries don't quite line up, resulting in small poorly defined faces. I solved it by remeshing, though there may be better ways... Cheers, Andrew |
hi everyone,
i need to gene
hi everyone,
i need to generate a mesh around a cylnder. i have started with quarter of it. now how to complete it? i tried with filter>Reflection in paraview. it was working but i have a doubt that paraview being just a viewing tool, if i take the reflection, is it really going to change my computational domain physically?? this is a kind of urgent. reply will be greatly appreciated. regards, nike |
Hi All,
As geometry is symm
Hi All,
As geometry is symmetric, mesh generated only half of the domain. I solved the symmetric flow using this mesh. Now i need to solve the non symmetric flow. For that i need full mesh. I mirrored the mesh for 180degree. Now i have two mesh in different directories (name by pos and neg ). When i tried stitchMesh, it giving me error Create Times Reading master mesh for time = 0 Create mesh Reading mesh to add for time = 0 Create mesh Writing combined mesh to 9e-07 Face owner and neighbour are identical. This is not allowed. Face: 4(98934 98956 98957 98935) masterPointID:-1 masterEdgeID:-1 masterFaceID:-1 patchID:0 owner:90180 neighbour:90180#0 Foam::error::printStack(Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) in "/home/vc/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so" #1 Foam::error::abort() in "/home/vc/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so" #2 Foam::polyAddFace::polyAddFace(Foam::face const&, int, int, int, int, int, bool, int, int, bool) in "/home/vc/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/mergeMeshes" #3 Foam::mergePolyMesh::addMesh(Foam::polyMesh const&) in "/home/vc/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/mergeMeshes" #4 main in "/home/vc/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/mergeMeshes" #5 __libc_start_main in "/lib/libc.so.6" #6 Foam::regIOobject::write() const in "/home/vc/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/mergeMeshes" From function polyAddFace ( const face& f, const label owner, const label neighbour, const label masterPointID, const label masterEdgeID, const label masterFaceID, const bool flipFaceFlux, const label patchID, const label zoneID, const bool zoneFlip ) in file /home/vc/OpenFOAM/OpenFOAM-1.5/src/dynamicMesh/lnInclude/polyAddFace.H at line 217. FOAM aborting Aborted Suggestions are appreciated Velan |
Hi,
Apologize for given wro
Hi,
Apologize for given wrong information, I used mergeMeshes for previous mail. When i used stitchMesh, i got the following error, stitchMesh -perfect ../neg ../pos/ /*---------------------------------------------------------------------------*\ | ========= | | | \ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \ / O peration | Version: 1.5 | | \ / A nd | Web: http://www.OpenFOAM.org | | \/ M anipulation | | \*---------------------------------------------------------------------------*/ Exec : stitchMesh -perfect ../neg ../pos/ Date : Feb 19 2009 Time : 13:15:12 Host : scram PID : 8116 Case : /home/vc/P_10/stitch nProcs : 1 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 word::stripInvalid() called for word ..neg For debug level (= 2) > 1 this is considered fatal Aborted |
Hi Velan,
If you have used
Hi Velan,
If you have used mergeMeshes previously on your case, you should have obtained a 1/ folder within you get a new polymesh. If you take this 1/polymesh and replace it instead of your old constant/polymesh, then you have the right setup to do stitchMesh. StitchMesh command is using patches, not folders, so the command should be something like stitchMesh patchMaster patchSlave. I think the command you are using may not be correct. Olivier |
Hi Olivier,
Thanks for your
Hi Olivier,
Thanks for your reply. I got the error message while doing mergeMeshes (Face owner and neighbour are identical. This is not allowed....), which i posted the error in previous mail. May be the command which i am using was wrong. Can you please clarify few problems ? * I have two meshes which having one symmetric half body mesh and another which is exactly rotated about 180 degree (mirror mesh) * I have two directories by name orig and mirr * I have the boundary name as Out, In, Top Can you please tell me the exact command for merging mesh for my case?. Is there any separate Dict file for it ? Similarly i not understand the option of mergeMesh master root master case root to add case to add Where i can find the details about this option ? |
stitch mesh error
2 Attachment(s)
Hi
I am using an axi-symmetric mesh something likes in the below image,I want to mesh this domain with two size: coarse and fine(like in the second image) then I tried to make a change in polyMesh dictionary and made 2 blocks and two patches by name of patch right and patch left like this: convertToMeters 0.001; vertices ( (0 0 0)//0 (0.43661 0 10)//1 (0.43661 44 10)//2 (0 44 0)//3 (-0.43661 0 10)//4 (-0.43661 44 10)//5 (0 44 0)//6 (0.43661 44 10)//7 (0.43661 75 10)//8 (0 75 0)//9 (-0.43661 44 10)//10 (-0.43661 75 10)//11 ); blocks ( hex (0 1 2 3 0 4 5 3) (30 44 1) simpleGrading (1 1 1) hex (6 7 8 9 6 10 11 9) (15 31 1) simpleGrading (1 1 1) // hex (6 7 10 9 6 8 11 9) (15 31 1) simpleGrading (1 1 1) ); edges ( ); patches ( wall walls ( (9 8 11 9) (0 4 1 0) (1 4 5 2) (7 10 11 8) ) symmetryPlane axis ( (0 3 3 0) (6 9 9 6) ) patch left ( (6 7 10 6) ) patch right ( (3 5 2 3) ) wedge back ( (3 5 4 0) (9 11 10 6) ) wedge front ( (0 1 2 3) (6 7 8 9) ) ); blockMesh worked fine to create this mesh(like in the second image) but I need to delete to patches(right & left) That I created in the previous stage,so I try to use stitchMesh utility but I faced error like this: Create time Create mesh for time = 0 Coupling patches right and left Resulting (internal) faces will be in faceZone rightleftCutFaceZone Note: the overall area covered by both patches should be identical ("integral" interface). If this is not the case use the -partial option Adding point and face zones Reading all current volfields Patch face has got a neighbour This is not allowed. Face: 5(905 926 2838 927 906) faceID:4201 owner:862 neighbour:137 patchID:5#0 Foam::error::printStack(Foam::Ostream&) in "/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so" #1 Foam::error::abort() in "/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so" #2 Foam::polyModifyFace::polyModifyFace(Foam::face const&, int, int, int, bool, int, bool, int, bool) in "/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdynamicMesh.so" #3 Foam::slidingInterface::coupleInterface(Foam::poly TopoChange&) const in "/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdynamicMesh.so" #4 Foam::slidingInterface::setRefinement(Foam::polyTo poChange&) const in "/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdynamicMesh.so" #5 Foam::polyTopoChanger::topoChangeRequest() const in "/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdynamicMesh.so" #6 Foam::polyTopoChanger::changeMesh(bool, bool, bool, bool) in "/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdynamicMesh.so" #7 main in "/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/stitchMesh" #8 __libc_start_main in "/lib/libc.so.6" #9 Foam::regIOobject::readIfModified() in "/home/openfoam1.5/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/stitchMesh" From function polyModifyFace::polyModifyFace ( const face& f, const label faceID, const label owner, const label neighbour, const bool flipFaceFlux, const label patchID, const bool removeFromZone, const label zoneID, const bool zoneFlip ) in file lnInclude/polyModifyFace.H at line 221. FOAM aborting Aborted What is my mistake? |
Hi I am using an axi-symmetric mesh something likes in the below image,I want to mes
Hi,
I am also facing same kind of problem, I am testing rotating propeller, I have merged Rotar which includes propeller with Tank, stiching tank and rotor mesh results in the same error as mentioned above, My questions were 1) Is it possible to run command stitchMesh in OF-1.5, 2) if yes , could you please specify the cause for this error, Thanks in advance, Pramod |
Quote:
Does stitck mesh mean merge nodes? but afaik MRF do not need merge nodes, it can deal with the interface problem. http://www.cfd-online.com/Forums/ope...enfoam.htmlcan u give me any hints? Thanks in advance. |
mergeMeshes doesn't work for arbitrary patch names
Hello all,
I'm trying to merge to cubic meshes. It works fine if the 6 patch names for each mesh are the same. However this makes it difficult to distinguish different patches in the merged grid. If I give different patch names for each grid mergeMeshes gives the following error message: . . . Copying old patches Adding new patches. --> FOAM FATAL ERROR: Illegal neighbourPatch name Valid patch names are 12 ( master0_half0 master0_half1 master1_half0 master1_half1 master2_half0 master2_half1 help0_half0 help0_half1 help1_half0 help1_half1 help2_half0 help2_half1 ) From function cyclicPolyPatch::neighbPatchID() const in file meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C at line 825. FOAM exiting I'm pretty confused since I have not specified any neighborPatch with "name" like stated in the error message. Did anybody have the same problem or does anybody have a hint for solving it? Thank you in advance Reini |
Hi everyone,
I am working on a centrifugal pump simulation, and i am trying to stitch two interfaces byusing stitchMesh command. i post a thread explaining the situation in the link as followed: http://www.cfd-online.com/Forums/ope...tml#post421020 if you have any idea to solve this problem, could you please help me. Thanks in advance, and regards Dogan |
All times are GMT -4. The time now is 16:31. |