CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] Does your file specify any 3D elements ?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2018, 07:51
Question Does your file specify any 3D elements ?
  #1
New Member
 
Nikhil
Join Date: Jun 2018
Posts: 1
Rep Power: 0
2nicholas is on a distinguished road
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");


2nicholas is offline   Reply With Quote

Old   June 19, 2018, 08:38
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 37
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

You have to define physical volume.
alexeym is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 19:43
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 17:18
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


All times are GMT -4. The time now is 05:13.