bonjour,
je suis une utilisatrice récente du logiciel gmsh en vue de générer un maillage destinée à un usage sous OpenFoam. lors de la conversion du file.msh avec gmshToFoam j'ai rencontré quelques problèmes. pouvez vous m'aider!? je joint l'exemple que j'ai essayé de tourner qu iest vraiment basique avec les erreurs générées par la commande gmshToFoam. dans un autre registre, je me demandais commant on pouvait mailler des couches limites avec gmsh. en vous remerciant d'avance, cordialement, --------------------------------------------- Ouafa BOULOUMOU. _________________________________________________________________ Découvrez toutes les possibilités de communication avec vos proches http://www.microsoft.com/windows/windowslive/default.aspx
// Declaration de la taille des elements triangulaires
lc = 0.5; // il est possible d'en spécifier plusieurs ...
// Declaration des points du contour : coord. X, coord. Y, coord. Z, taille des
elements sur le contour
Point(1) = {0, 0, 0, lc};
Point(2) = {1., 0, 0, lc} ;
Point(3) = {1., 0.66, 0, lc};
Point(4) = {1., 1., 0, lc} ;
Point(5) = {0, 1., 0, lc} ;
Point(6) = {0, 0.33, 0, lc} ;
// Construction des lignes du contour en "reliant" les points
Line(1) = {1,2} ;
Line(2) = {2,3} ;
Line(3) = {3,4} ; // sortie du fluide
Line(4) = {4,5} ;
Line(5) = {5,6} ;
Line(6) = {6,1} ; // entree du fluide
// Connection des lignes
Line Loop(1) = {1,2,3,4,5,6} ; // Si domaine exterieur, lecture dans le sens
trigo
// attention au sens de lecture sinon numerotation inversee !!!
// Creation de la surface a partir des "line loop" declarees
Plane Surface(1) = {1} ;
// Identification des elements de surface par un numero logique 31
Physical Surface(31) = {1} ;
exp.msh
Description: Binary data
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.5 | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Exec : gmshToFoam exp.msh Date : May 29 2009 Time : 11:19:03 Host : lambda31 PID : 7999 Case : /home/flurec/commun/ouafa/testgmsh nProcs : 1 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Found $MeshFormat tag; assuming version 2 file format. Starting to read points at line 5 Vertices to be read:7 Vertices read:7 Starting to read cells at line 15 Cells to be read:6 Mapping region 31 to Foam patch 0 Cells: total:0 hex :0 prism:0 pyr :0 tet :0 CellZones: Zone Size Skipping tag at line 24 Patch 0 gets name patch0 Finding faces of patch 0 --> FOAM Warning : Not using gmsh face 3(6 1 2) since zero vertex is not on boundary of polyMesh --> FOAM Warning : From function gmshToFoam in file gmshToFoam.C at line 891 Could not match gmsh face 3(6 1 2) to any of the interior or exterior faces that share the same 0th point --> FOAM Warning : Not using gmsh face 3(0 1 6) since zero vertex is not on boundary of polyMesh --> FOAM Warning : From function gmshToFoam in file gmshToFoam.C at line 891 Could not match gmsh face 3(0 1 6) to any of the interior or exterior faces that share the same 0th point --> FOAM Warning : Not using gmsh face 3(0 6 5) since zero vertex is not on boundary of polyMesh --> FOAM Warning : From function gmshToFoam in file gmshToFoam.C at line 891 Could not match gmsh face 3(0 6 5) to any of the interior or exterior faces that share the same 0th point --> FOAM Warning : Not using gmsh face 3(4 5 6) since zero vertex is not on boundary of polyMesh --> FOAM Warning : From function gmshToFoam in file gmshToFoam.C at line 891 Could not match gmsh face 3(4 5 6) to any of the interior or exterior faces that share the same 0th point --> FOAM Warning : Not using gmsh face 3(6 3 4) since zero vertex is not on boundary of polyMesh --> FOAM Warning : From function gmshToFoam in file gmshToFoam.C at line 891 Could not match gmsh face 3(6 3 4) to any of the interior or exterior faces that share the same 0th point --> FOAM Warning : Not using gmsh face 3(2 3 6) since zero vertex is not on boundary of polyMesh --> FOAM Warning : From function gmshToFoam in file gmshToFoam.C at line 891 Could not match gmsh face 3(2 3 6) to any of the interior or exterior faces that share the same 0th point FaceZones: Zone Size End
_______________________________________________ gmsh mailing list [email protected] http://www.geuz.org/mailman/listinfo/gmsh
