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 Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2018, 09:47
Default No 3D Element found during gmshToFoam conversion
  #1
New Member
 
Bhargav lakhlani
Join Date: Jan 2018
Posts: 22
Rep Power: 8
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, 09:37
Default
  #2
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
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


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 84 September 2, 2022 01:04
[Gmsh] 3D Mesh conversion from gmsh-2.5.0 to OpenFOAM Ancioi OpenFOAM Meshing & Mesh Conversion 17 January 8, 2019 23:50
Gmsh installation on terminal help spitfire Main CFD Forum 4 July 27, 2017 15:11
[Other] How to create an MRF zone ? aminem OpenFOAM Meshing & Mesh Conversion 2 December 8, 2014 10:45
missing vtf3.h BPatch.h papi.h linch OpenFOAM Installation 41 July 24, 2012 14:45


All times are GMT -4. The time now is 06:40.