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

[Gmsh] No 3D Element found during gmshToFoam conversion

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2018, 10:47
Default No 3D Element found during gmshToFoam conversion
  #1
New Member
 
Bhargav lakhlani
Join Date: Jan 2018
Posts: 22
Rep Power: 3
bhargav1195 is on a distinguished road
Hello Everyone,

I am trying to create a mesh of simple room with one inlet and one outlet in gmsh. I have created geometry using the OpenCASCADE kernel with following script

.........

//+
SetFactory("OpenCASCADE");
Box(1) = {0, 0, 0, 10, 10, 10};
//+
Box(2) = {1, 1, 1, 0.1, 1, 1};
//+
Box(3) = {9, 9, 9, 0.1, 1, 1};
//+
Physical Surface("Inlete") = {8};
//+
Physical Surface("Outlete") = {13};
//+
Physical Surface("Wall") = {4, 1, 3, 2, 5, 6};
Transfinite Line "*"= 10 ;
Transfinite Surface "*" = 10;
Transfinite Volume "*"= 10;
Recombine Surface "*";
..........

Even though a 3D mesh is generating in gmsh, when I try to convert into the OpenFOAM mesh using the gmshToFoam command, I am getting an error showing "No 3D elements found". I am a novice user of gmsh so please suggest me some solution for this.

Regards,
Bhargav
bhargav1195 is offline   Reply With Quote

Old   June 21, 2018, 10:37
Default
  #2
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 178
Rep Power: 4
deepbandivadekar is on a distinguished road
I'm not an expert and not 100% sure as I never encountered it before. But you are not defining a "Physical Volume". That could be a reason.
deepbandivadekar is offline   Reply With Quote

Reply

Tags
3d elements, gmsh, openfoam

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
[RapidCFD] Discussion thread on how to install and use RapidCFD newoscar OpenFOAM Community Contributions 71 June 11, 2019 03:51
[Gmsh] 3D Mesh conversion from gmsh-2.5.0 to OpenFOAM Ancioi OpenFOAM Meshing & Mesh Conversion 17 January 9, 2019 00:50
Gmsh installation on terminal help spitfire Main CFD Forum 4 July 27, 2017 16:11
[Other] How to create an MRF zone ? aminem OpenFOAM Meshing & Mesh Conversion 2 December 8, 2014 11:45
missing vtf3.h BPatch.h papi.h linch OpenFOAM Installation 41 July 24, 2012 15:45


All times are GMT -4. The time now is 11:38.