|
[Sponsors] |
[Commercial meshers] faceSet of a cutting plane for a internal patch definition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 19, 2017, 19:17 |
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 |
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. |
|
April 17, 2019, 06:10 |
|
#2 |
New Member
Pavel Ferkl
Join Date: Mar 2014
Posts: 2
Rep Power: 0 |
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; } |
|
|
|
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 14:48 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
[Other] How to create an MRF zone ? | aminem | OpenFOAM Meshing & Mesh Conversion | 2 | December 8, 2014 11:45 |
[Gmsh] Import problem | ARC | OpenFOAM Meshing & Mesh Conversion | 0 | February 27, 2010 11:56 |
CheckMeshbs errors | ivanyao | OpenFOAM Running, Solving & CFD | 2 | March 11, 2009 03:34 |