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

[Gmsh] Internal faces from gmsh how to create patches in OpenFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 22, 2008, 11:14
Default Hi, Eugene, Thanks a lot!
  #21
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
Hi, Eugene,

Thanks a lot! You are an angel.

Pei
hsieh is offline   Reply With Quote

Old   February 25, 2009, 10:11
Default Hi Pei, I am trying to make
  #22
New Member
 
Steinar Aasebø
Join Date: Mar 2009
Posts: 13
Rep Power: 17
saasebo is on a distinguished road
Hi Pei,

I am trying to make this FAN boundary working, but I do not understand how it should be set up. Is it possible that you could give me some hints?

Best Regards,
Steinar
saasebo is offline   Reply With Quote

Old   February 25, 2009, 10:51
Default Hi Pei, I am trying to make
  #23
New Member
 
Steinar Aasebø
Join Date: Mar 2009
Posts: 13
Rep Power: 17
saasebo is on a distinguished road
Hi Pei,

I am trying to make this FAN boundary working, but I do not understand how it should be set up. Is it possible that you could give me some hints?

Best Regards,
Steinar
saasebo is offline   Reply With Quote

Old   July 10, 2009, 06:18
Default boundaries gmsh/openfoam
  #24
New Member
 
ouafa
Join Date: Jul 2009
Posts: 15
Rep Power: 17
ouafa is on a distinguished road
bonjour,
en lisant vos échanges sur ce sujet, je m'aperçois que j'ai quasiment le même problème. en effet, j'ai défini un maillage avec gmsh que j'ai ensuite converti par gmshToFoam. dans le dictionnaire boundary, les faces intérieures ne sont pas prises en compte "empty with nFaces=0". j'ai essayé de suivre votre raisonnement mais j'avoue que je ne comprends pas vraimant ce qu'il faudrait que je fasse. est ce au niveau de gmsh ou d'openFoam? la commande createPatches semble résoudre ce problème mais comment l'utiliser?
merci de votre aide et désolée si je vous écris en français.
ouafa.



Quote:
Originally Posted by podallaire View Post
Thanks for those infos, it worked !

What I did :

1) Modified boundary file and added new patch nFaces 0 in polyMesh/boundary
2) Modified all files in 0
3) createBaffles root case set patch
4) created a faceSetDict to select a second faceZone
5) faceSet root case
6) Moved my mesh from 0 to constant
7) ... restart at 1) to 3)

Regards,

PO
ouafa is offline   Reply With Quote

Old   July 22, 2009, 12:30
Default
  #25
New Member
 
Poncho
Join Date: Mar 2009
Posts: 6
Rep Power: 17
Fonss is on a distinguished road
I was trying to get something similar done in Salome. Basically a large box contains a fan that sucks volume from a certain shape duct or box if you will. The questions is will the fan be a single sheet body/surface/face or does it have to be two faces separated by a small distance as in the link down here.?

"The original FanCenter (imported from gmsh) is now split into FanCenter and FanCenter2 (two sides of the same patch)."

http://www.cfd-online.com/OpenFOAM_D...es/1/8239.html


I tried several ways on Salome to do this. One is where the box is solid and the duct is empty. I applied a pressure on the fan and inlet/outlet on the duct inlet. Ok I got something but obviously nothing inside the duct. Next i tried to remove the surface that serves as the inlet to the duct. This leaves the duct and fan as an open surface inside a closed volume. This did not mesh on Salome. So that brings the question: IF the fan can be simulated as only one face, how can I bring that face form a pro/e STEP file to Salome to open Foam.
Fonss is offline   Reply With Quote

Old   November 8, 2011, 12:04
Default a question about inner sampling faces
  #26
Member
 
chenkai
Join Date: May 2010
Location: munich
Posts: 44
Rep Power: 16
xck1986 is on a distinguished road
Hi everyone,

I am now simulating two phase flow with Lagrange particle tracking in OpenFOAM.

My domain is a simple rectangular duct. In order to compare the numerical particle properties with experiment data, I need to define a inner patch in my domain, which is parallel to the patch: Inlet and outlet, to sample the particle data.

I have try with createBaffles to convert a faceSet to a patch. But I failed, because I am not familiar with these command.

Does anyone has idea, how to create a inner sampling faces, which is only used to sample the data of the particles, who passes through it.

thanks a lot in advance
xck1986 is offline   Reply With Quote

Old   April 25, 2012, 17:19
Default
  #27
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 15
latvietis is on a distinguished road
Quote:
Originally Posted by 7islands View Post
Hi Pierre-Olivier,

If I remember correctly, the procedure continues as follows after 7) of your post.

8) Move your mesh from 0 to constant after a second createBaffles run
9) Create a faceSetDict to select FanCenter
10) faceSet root case
11) Create another faceSetDict to select a subset of FanCenter according to normalToFace<pre>name FanCenter;
action subset;
topoSetSources
(
normalToFace
{
normal (1 0 0); // Vector
cos 0.01; // Tolerance (max cos of angle)
}
);</pre>12) faceSet root case
13) Create a createPatchDict to create a patch FanCenter2 from the faceSet<pre>patches
(
{
name FanCenter2;
type patch;
constructFrom set;
set FanCenter;
}
);</pre>14) createPatch root case

And you will see FanCenter and FanCenter2 separated by their normal directions, with FanCenter2 being the intake-side of the fan.

Takuya

Greetings!

Can anyone please explain this move now? It seems some things have changed since 2008 and this could be done with topoSet (I guess). But I seem to can't figure this out. I managed to get internal patches with Baffles from gmsh, but I can't do these steps (get 2 sided patch).

Sincerely,
Martin

Last edited by latvietis; April 25, 2012 at 17:56.
latvietis is offline   Reply With Quote

Old   April 25, 2012, 22:24
Default
  #28
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 15
latvietis is on a distinguished road
I'm thinking I'm close, but something is not right:

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      topoSetDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
    {
        name    faceZone_6;
        type    faceSet;
        action  subset;
        source  normalToFace;
        sourceInfo
        {
        normal (0 0 -1);
        cos 0.01;
        }
    }
);
Code:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object createPatchDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

pointSync false;
// Patches to create.
patches
(
    {
        // Name of new patch
    name faceZone_62;
        // Dictionary to construct new patch from
    patchInfo
    {
    type patch;
    }
        // How to construct: either from 'patches' or 'set'
    constructFrom set;
    set faceZone_6;
    }
);
I tried all normals from (000) to (00-1), and from 3000+ faces it makes a set with about 17 faces. Why is that?

When I try to make a new patch I get this error:
Code:
--> FOAM FATAL ERROR: 
Face 8768 specified in set faceZone_6 is not an external face of the mesh.
This application can only repatch existing boundary faces.
This error is with every normal I tried (of course the face number changes).

What am I doing wrong?
latvietis is offline   Reply With Quote

Reply


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
parallel run OpenFoam Srinath Reddy OpenFOAM Running, Solving & CFD 13 February 27, 2019 10:15
[snappyHexMesh] SHM is not extruding/adding Layers everywhere matthiasd OpenFOAM Meshing & Mesh Conversion 2 October 16, 2016 17:45
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 15:49
createPatch Segmentation Fault (CORE DUMPED) sam.ho OpenFOAM Pre-Processing 2 April 21, 2014 03:01
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 00:04.