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

Generating multiple internal walls using gmshToFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 30, 2013, 10:40
Default Generating multiple internal walls using gmshToFoam
  #1
New Member
 
Join Date: Sep 2013
Posts: 8
Rep Power: 3
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.
Internal faces from gmsh how to create patches in OpenFoam. 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
Multiple internal wall an fluid zones 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, 02:20
Default
  #2
New Member
 
Adrien Cahuzac
Join Date: Oct 2014
Posts: 6
Rep Power: 2
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, 03:56
Default
  #3
New Member
 
Adrien Cahuzac
Join Date: Oct 2014
Posts: 6
Rep Power: 2
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Defining Interfaces and Splitting Internal Walls ICEM-FLUENT pmtgt ANSYS Meshing & Geometry 6 April 12, 2014 18:22
how to set periodic boundary conditions Ganesh FLUENT 13 January 22, 2014 05:11
Doxygen documentation Tanay OpenFOAM Installation 9 September 23, 2011 11:40
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
ParaView and Qt 4.3.5 on Mac OS X 10.6 Adrian OpenFOAM 3 August 8, 2010 03:16


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