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

[Gmsh] Generating multiple internal walls using gmshToFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 30, 2013, 11:40
Default Generating multiple internal walls using gmshToFoam
  #1
New Member
 
Join Date: Sep 2013
Posts: 8
Rep Power: 13
rendagar is on a distinguished road
Hello fellow CFD enthusiasts,

I've been banging my head against a problem for a couple of days now and am hoping someone can help me.

First let me give you an idea of what I would like to simulate. The basic idea is a simple rectangular box with 2 separate fans inside, not connected to the wall. To start with I would like to solve the (incompressible) flow inside the box at different fan speeds.


The problem I have is that when I generate a mesh file using
gmsh which has internal geometries (i.e. the fans) they are lost after I convert the file using the gmshToFoam tool. I have read a couple of (older) posts about this problem however the solutions they post only work for converting a single boundary, which is not enough.

This old post comes close to that I require.
http://www.cfd-online.com/Forums/ope...-openfoam.html. It instructs you to make a number of changes to the boundary file and files in 0/ and to repeat this process for all patches. I can make the process work once but than all information regarding the not yet converted internal patches is lost and the face indexes are recalculated, so I can't add them. A possible cause is that I am missing the faceSet command however I have been unable to locate the command or that it is supposed to do. All my tries so far have been with the .geo file provided in the post above and have been unsuccessfully (for multiple patches, a single patch is no problem).

This post
http://www.cfd-online.com/Forums/ope...tml#post323464 is a bit more recent but describes the same process and also fails on multiple faces.

A possible solution (found in
http://openfoamwiki.net/index.php/Ho...internal_walls) would be http://openfoamwiki.net/index.php/Co...itMeshWithSets however I don't know how to compile this. I have extracted the file to /opt/OpenFOAM-2.2.1/applications/utilities/mesh/manipulation and tried to use wmake to compile it. However when I try to use wmake it complains that the environment variable $WM_OPTIONS is not set. I believe that is incorrect because ">>echo $WM_OPTIONS" returns "linux64GccDPOpt". I don't know it that is correct but WM_OPTIONS is certainly is set to something.

If anyone solved this problem, knows of a better approach to generating a mesh with internal structures (using non commercial software) or what the problem with wmake is, I would very much appreciate your input.


Regards,
rendagar is offline   Reply With Quote

Old   October 13, 2014, 03:20
Default
  #2
New Member
 
Adrien Cahuzac
Join Date: Oct 2014
Posts: 6
Rep Power: 12
acahuzac is on a distinguished road
Same issu in OpenFoam 2.3.0. Please, some help ?
acahuzac is offline   Reply With Quote

Old   October 20, 2014, 04:56
Default
  #3
New Member
 
Adrien Cahuzac
Join Date: Oct 2014
Posts: 6
Rep Power: 12
acahuzac is on a distinguished road
The only solution I found, and which works quite well, is to make distinct meshes with Gmsh, and then merge them with "mergeMeshes". A bit tedious, but at least it works fine.
acahuzac is offline   Reply With Quote

Reply

Tags
gmsh, gmshtofoam, internal face, internal wall, wmake


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
[blockMesh] Internal walls of zero thickness anger OpenFOAM Meshing & Mesh Conversion 23 February 6, 2020 19:25
Multiple internal fields boundary conditions manu551 OpenFOAM Running, Solving & CFD 0 January 4, 2017 11:00
ParaView and Qt 4.3.5 on Mac OS X 10.6 Adrian OpenFOAM 3 August 8, 2010 04:16
[snappyHexMesh] SnappyHexMesh internal walls podallaire OpenFOAM Meshing & Mesh Conversion 2 July 24, 2008 10:12
Internal Walls in Hex hagupta CFX 4 June 7, 2006 10:09


All times are GMT -4. The time now is 10:24.