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

[Commercial meshers] faceSet of a cutting plane for a internal patch definition

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By japaf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2017, 18:17
Default faceSet of a cutting plane for a internal patch definition
  #1
New Member
 
Rubén Gutiérrez Amo
Join Date: Jul 2016
Posts: 1
Rep Power: 0
RubenGutiii is on a distinguished road
Hello,

I need help with a mesh manipulation problem in OpenFOAM. My problem come from a case in which I would like to create an internal patch defined by a cutting plane. The utility that I will use is createBaffles but first I need to have the cutting plane defined by a faceSet and I don’t find the correct way to define it.

I am not able to define the patch with blockMesh because the geometry is too complex for it. I’ve meshed the case with ICEM CFD.

I’ve done some tries with the topoSet utility using different sources in topoSetDict:

surfaceToCell : using only the includeCut option and a .stl file of the plane extracted from paraFoam, I’ve obtained the plane in a faceSet but with a thickness equal to a cell length, so that the cellSet is a extruded block and not a plane. If I convert that cellSet to a faceSet it remains to be a block.

nearestToCell: I found the way to extract the cell center coordinates of the plane cells with a paraFoam filter. I used them as an input in the source of topoSetDict but the same result as before came up, an extruded block instead of a plane.

normalToFace: this faceSet defines all planes in the normal direction that I want. In this case, the objects are planes, but I only need one of them, the desired plane at a certain distance.

I know that I am approached to the solution, but I don’t find the correct way.
RubenGutiii is offline   Reply With Quote

Old   April 17, 2019, 05:10
Default
  #2
New Member
 
Pavel Ferkl
Join Date: Mar 2014
Posts: 2
Rep Power: 0
japaf is on a distinguished road
Hi,

you can look into topoSetDict of mesh/foamyHexMesh/simpleShapes tutorial. Basically what you want to do is the following:

Code:
    // define cellSet that has one side aligned with you desired cutting plane
    {
        name    z;
        type    cellSet;
        action  new;
        source  boxToCell;
        box     (-100 -100 0)(100 100 100);
    }
    // convert all faces in the above cellSet to a new faceSet
    {
        name    zf;
        type    faceSet;
        action  new;
        source  cellToFace;
        set     z;
        option  all;
    }
    // invert selection, thus the new cellSet has only the cutting plane in common with the original cellSet
    {
        name    z;
        type    cellSet;
        action  invert;
    }
    // convert faces to faceSet, but keep only those, which are common with original faceSet (the cutting plane)
    {
        name    zf;
        type    faceSet;
        action  subset;
        source  cellToFace;
        set     z;
        option  all;
    }
You will end up with faceSet named zf.
KateBradbrook likes this.
japaf 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
Near wall treatment in k-omega SST Arnoldinho OpenFOAM Running, Solving & CFD 38 March 8, 2017 13:48
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
[Other] How to create an MRF zone ? aminem OpenFOAM Meshing & Mesh Conversion 2 December 8, 2014 10:45
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 10:56
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 02:34


All times are GMT -4. The time now is 08:01.