|
[Sponsors] |
[Gmsh] Does your file specify any 3D elements ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 19, 2018, 08:51 |
Does your file specify any 3D elements ?
|
#1 |
New Member
Nikhil
Join Date: Jun 2018
Posts: 1
Rep Power: 0 |
Hello
I am trying to mesh a file 2c2.mesh in OpenFoam but i'm getting an error as shown below, No cells read from file "2c2.msh" Does your file specify any 3D elements (hex=5, prism=6, pyramid=7, tet=4)? Perhaps you have not exported the 3D elements? Please help to mesh that file and the related 2c2.geo file is as follows, //+ Point(1) = {0, 0, 0, 1.0}; //+ Point(2) = {0, 1, 0, 1.0}; //+ Point(3) = {1, 1, 0, 1.0}; //+ Point(4) = {1, 0, 0, 1.0}; //+ Point(5) = {0.25, 0.5, 0, 1.0}; //+ Point(6) = {0.4, 0.5, 0, 1.0}; //+ Point(7) = {0.1, 0.5, 0, 1.0}; //+ Point(8) = {0.25, 0.65, 0, 1.0}; //+ Point(9) = {0.25, 0.35, 0, 1.0}; //+ Point(10) = {0.6, 0.5, -0, 1.0}; //+ Point(11) = {0.75, 0.65, 0, 1.0}; //+ Point(12) = {0.75, 0.5, 0, 1.0}; //+ Point(13) = {0.9, 0.5, 0, 1.0}; //+ Point(14) = {0.75, 0.35, 0, 1.0}; //+ //+ Circle(1) = {7, 5, 8}; //+ Circle(2) = {8, 5, 6}; //+ Circle(3) = {6, 5, 9}; //+ Circle(4) = {9, 5, 7}; //+ Circle(5) = {10, 12, 11}; //+ Circle(6) = {11, 12, 13}; //+ Circle(7) = {13, 12, 14}; //+ Circle(8) = {14, 12, 10}; //+ Line(9) = {1, 2}; //+ Line(10) = {2, 3}; //+ Line(11) = {3, 4}; //+ Line(12) = {4, 1}; //+ Line Loop(1) = {1, 2, 3, 4}; //+ Line Loop(2) = {5, 6, 7, 8}; //+ Line Loop(3) = {10, 11, 12, 9}; //+ Plane Surface(1) = {1, 2, 3}; //+ Extrude {0, 0, 0.05} { Surface{1}; } //+ Extrude {0, 0, 0.15} { Surface{74}; } //+ Extrude {0, 0, 0.05} { Surface{136}; } //+ SetFactory("Built-in"); |
|
June 19, 2018, 09:38 |
|
#2 |
Senior Member
|
Hi,
You have to define physical volume. |
|
February 18, 2023, 23:37 |
|
#3 |
Member
Khan
Join Date: Jul 2018
Posts: 45
Rep Power: 8 |
I believe that I define already the physical volume but same error. Here is my geo file:
Code:
SetFactory("OpenCASCADE"); // Inputs r_tank=2.56/2; // m - radius of tank r_pipe=0.075; // m - radius of pipe r_diff=0.8; // m - radius of diffuser h_tank=3.83; // m - tank height h_pipe=0.25; // m - inlet/outlet height h_such=0.13; // m - suction head t_diff=0.005; // m - material thickness (diffuser and pipe) h_diff=0.075; // m - diffuser gap height grid_s=1; // grid size // Geometry - Tank Point(1) = {0,0,0,grid_s}; Point(2) = {r_pipe,0,0,grid_s}; Point(3) = {r_pipe,0,h_pipe,grid_s}; Point(4) = {r_tank,0,h_pipe,grid_s}; Point(5) = {r_tank,0,h_pipe+h_tank,grid_s}; Point(6) = {r_pipe,0,h_pipe+h_tank,grid_s}; Point(7) = {r_pipe,0,h_pipe+h_tank+h_pipe,grid_s}; Point(8) = {0,0,h_pipe+h_tank+h_pipe,grid_s}; Line(1) = {1,2}; Line(2) = {2,3}; Line(3) = {3,4}; Line(4) = {4,5}; Line(5) = {5,6}; Line(6) = {6,7}; Line(7) = {7,8}; Line(8) = {8,1}; Line Loop(1) = {1,2,3,4,5,6,7,8}; Plane Surface(0) = {1}; // Geometry - Diffuser - Bottom Point(9) = {0,0,h_pipe+h_diff,grid_s}; Point(10)= {r_diff,0,h_pipe+h_diff,grid_s}; Point(11)= {r_diff,0,h_pipe+h_diff+t_diff,grid_s}; Point(12)= {0,0,h_pipe+h_diff+t_diff,grid_s}; Line(9) = {9,10}; Line(10)= {10,11}; Line(11)= {11,12}; Line(12)= {12,9}; Line Loop(2) = {9,10,11,12}; Plane Surface(1) = {2}; // Geometry - Diffuser - Top Plate Point(13)= {0,0,h_tank+h_pipe-h_such-h_diff-t_diff,grid_s}; Point(14)= {r_diff,0,h_tank+h_pipe-h_such-h_diff-t_diff,grid_s}; Point(15)= {r_diff,0,h_tank+h_pipe-h_such-h_diff,grid_s}; Point(16)= {0,0,h_tank+h_pipe-h_such-h_diff,grid_s}; Line(13)= {13,14}; Line(14)= {14,15}; Line(15)= {15,16}; Line(16)= {16,13}; Line Loop(3) = {13,14,15,16}; Plane Surface(2) = {3}; // Geometry - Diffuser - Top Inlet Point(17)= {r_pipe,0,h_tank+h_pipe-h_such-t_diff,grid_s}; Point(18)= {r_diff,0,h_tank+h_pipe-h_such-t_diff,grid_s}; Point(19)= {r_diff,0,h_tank+h_pipe-h_such,grid_s}; Point(20)= {r_pipe+t_diff,0,h_tank+h_pipe-h_such,grid_s}; Point(21)= {r_pipe+t_diff,0,h_tank+h_pipe,grid_s}; Line(17)= {17,18}; Line(18)= {18,19}; Line(19)= {19,20}; Line(20)= {20,21}; Line(21)= {21,6}; Line(22)= {6,17}; Line Loop(4) = {17,18,19,20,21,22}; Plane Surface(3) = {4}; // Union of Diffuser Surfaces // Plane Surface (4) = BooleanUnion{ Surface{1}; Delete; }{ Surface{2,3}; Delete; }; // Subtracting Diffuser from the Main Flow Body // Plane Surface (5) = BooleanDifference{ Surface{1}; }{ Surface{4}; Delete; }; // Rotating the Surface and Forming Volume (AxiSymmetric) Rotate {{0,0,1},{0,0,0},-2.5*Pi/180.0} { Surface {0}; } Extrude {{0,0,1},{0,0,0},5*Pi/180.0} { Surface {0}; Layers{1}; Recombine; } // Rotating the Surface and Forming Volume - diffuser (AxiSymmetric) // BooleanUnion{ Surface{1}; Delete; }{ Surface{2,3}; Delete; } Rotate {{0,0,1},{0,0,0},-2.5*Pi/180.0} { Surface {1}; } Extrude {{0,0,1},{0,0,0},5*Pi/180.0} { Surface {1}; Layers{1}; Recombine; } BooleanDifference{ Volume{1}; Delete;}{ Volume{2}; Delete;} Rotate {{0,0,1},{0,0,0},-2.5*Pi/180.0} { Surface {2}; } Extrude {{0,0,1},{0,0,0},5*Pi/180.0} { Surface {2}; Layers{1}; Recombine; } BooleanDifference{ Volume{1}; Delete;}{ Volume{2}; Delete;} Rotate {{0,0,1},{0,0,0},-2.5*Pi/180.0} { Surface {3}; } Extrude {{0,0,1},{0,0,0},5*Pi/180.0} { Surface {3}; Layers{1}; Recombine; } BooleanDifference{ Volume{1}; Delete;}{ Volume{2}; Delete;} Physical Surface("inlet") = {54}; Physical Surface("outlet") = {43}; Physical Surface("walls") = {44,47,58,57,55}; Physical Surface("wedge_1") = {45}; Physical Surface("wedge_2") = {46}; Physical Surface("diffuser") = {39,40,41,42,48,49,50,51,52,53,56}; Physical Volume("innerFlow") = {1} |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 04:23 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |
pisoFoam compiling error with OF 1.7.1 on MAC OSX | Greg Givogue | OpenFOAM Programming & Development | 3 | March 4, 2011 18:18 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |