![]() |
"Perhaps you have not exported the 3D elements?"
Hi,
I'm trying to mesh a *.msh file in OF and I receive the following error: Code:
--> FOAM FATAL IO ERROR: Code:
Point(1) = {0, 0, 0, 1.0}; |
Hi Jeremy,
I have looked through your code and was able to recreate it for you. Here is the code; Code:
Point(1) = {0, 0, 0, 0}; Cheers, |
Quote:
|
Hi Jeremy,
In your case, you were not using volume surface. You defined a plane surface only but since you have a volume i.e. 3D you need to define volume surface to be able to use structured me of the 3D. Best, |
Quote:
|
You are welcomed. Let me know if you need more help.
Best, |
Quote:
Code:
Info : Finalized high order topology of periodic connections Code:
Error : Cannot build pyramids on non manifold faces Code:
// Gmsh project created on Thu Mar 23 16:06:33 2017 |
1 Attachment(s)
Hi,
I have spent sometime on your weird pipe mesh and here is the code as well as a 3D picture of it; Code:
Point(1) = {0, 0.1, 0, 0}; Let me know how it goes with you. Cheers, Khamlaj |
Quote:
|
Quote:
https://photos-5.dropbox.com/t/2/AAB...36&size_mode=3 |
Can you show it?
|
1 Attachment(s)
Here is the new mesh without the inner pipe;
Code:
Point(1) = {0, 0.0, 0, 0}; Now, it is your job to complete the rest. Cheers, |
Quote:
Code:
--> FOAM Warning : Not using gmsh face 4(16055 823 6 155) since zero vertex is not on boundary of polyMesh |
Quote:
I am running with the similar issue while converting from gmsh to Foam , can you help me resolve this issue. Its a case of a cube obstacle in a sqaure domain.my error is as below, --> FOAM FATAL IO ERROR: No cells read from file "demo2.msh" Does your file specify any 3D elements (hex=5, prism=6, pyramid=7, tet=4)? Perhaps you have not exported the 3D elements? file: demo2.msh at line 5711. From function void readCells(Foam::scalar, bool, const pointField&, const Foam::Map<int>&, Foam::IFstream&, Foam::cellShapeList&, Foam::labelList&, Foam::List<Foam::DynamicList<Foam::face> >&, Foam::labelList&, Foam::List<Foam::DynamicList<int> >&) in file gmshToFoam.C at line 726. FOAM exiting I also attach my .geo file here below for your reference.Thanks in advance // Gmsh project created on Thu Dec 24 12:46:26 2020 SetFactory("OpenCASCADE"); //+ Point(1) = {0, 0, 0, 1.0}; //+ Point(4) = {30, 0, 0, 1.0}; //+ Point(5) = {40, 0, 0, 1.0}; //+ Point(6) = {40, 30, 0, 1.0}; //+ Point(7) = {30, 30, 0, 1.0}; //+ Point(8) = {0, 30, 0, 1.0}; //+ //square obstacle Point(9) = {10, 20, 0, 1.0}; //+ Point(10) = {10, 10, 0, 1.0}; //+ Point(11) = {20, 10, 0, 1.0}; //+ Point(12) = {20, 20, 0, 1.0}; //boundary lines //+ Line(1) = {8, 7};Transfinite Curve {1} = 11 Using Progression 1; //+ Line(2) = {7, 6};Transfinite Curve {2} = 11 Using Progression 1; //+ Line(3) = {6, 5}; //outlet line //+ Line(4) = {5, 4};Transfinite Curve {4} = 11 Using Progression 1; //+ Line(5) = {4, 1};Transfinite Curve {5} = 11 Using Progression 1; //+ Line(6) = {1, 8};//inlet line //+ //square obstacle Line(7) = {9, 12}; //+ Line(8) = {12, 11}; //+ Line(9) = {11, 10}; //+ Line(10) = {10, 9}; //obstacle connection //+ Line(11) = {8, 9}; //+ Line(12) = {7, 12}; //+ Line(13) = {7, 4};//boundary connection //+ Line(14) = {4, 11}; //+ Line(15) = {1, 10}; //Surfaces //+ Curve Loop(1) = {11, 7, -12, -1}; //+ Plane Surface(1) = {1}; //+ Curve Loop(2) = {12, 8, -14, -13}; //+ Plane Surface(2) = {2}; //+ Curve Loop(3) = {14, 9, -15, -5}; //+ Plane Surface(3) = {3}; //+ Curve Loop(4) = {15, 10, -11, -6}; //+ Plane Surface(4) = {4}; //+ Curve Loop(5) = {2, 3, 4, -13}; //+ Plane Surface(5) = {5}; //+ Recombine Surface {4}; //+ Recombine Surface {1}; //+ Recombine Surface {2}; //+ Recombine Surface {3}; //+ Extrude {0, 0, 1} { Surface{1}; Surface{2}; Surface{3}; Surface{4}; Surface{5}; Layers{1}; Recombine; } //boundary conditions //+ Physical Surface("inlet") = {20}; //+ Physical Surface("outlet") = {23}; //+ Physical Surface("bottom wall") = {9, 22}; //+ Physical Surface("top wall") = {24, 17}; //+ Physical Surface("obstacle wall") = {19, 15, 11, 7}; //+ Physical Surface("front and back") = {18, 21, 10, 14, 25, 5, 3, 4, 1, 2}; |
Hi,
I think you also miss adding the physical volume for your geometry, like the posts discussed above in this thread, since OpenFOAM only take care of the 3D mesh. |
All times are GMT -4. The time now is 15:51. |