|
[Sponsors] |
[blockMesh] Meshing a "triangle" with blockMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 2, 2020, 13:04 |
Meshing a "triangle" with blockMesh
|
#1 |
New Member
Marc Batlle
Join Date: Mar 2017
Posts: 9
Rep Power: 9 |
Good afternoon Foamers,
These days I am facing problems to mesh a triangular shape together with rectangle the way I want. I think the best explanation comes with a representative sketch. I attach two images, the "OP_1" is what I am looking for, and, the "OP_2" what I obtain. I already tried to mergePatchPair unsuccesfully, wondered about splitMesh but dismissed due to a lack of information .. Any help is welcomed |
|
April 2, 2020, 17:48 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Any blockMeshDict, which doesn't work? Working over it might help.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
April 3, 2020, 03:53 |
|
#3 |
Member
Bram Kerkhofs1
Join Date: Oct 2016
Posts: 30
Rep Power: 10 |
Hi Marc
I would make two meshes: A rectangle (block1) and a parallelogram (block2). Then try to cut the parallelogram in 2, in order to get the triangle. Cutting the mesh up, you can use splitMesh. To figure out how it works, type splitMesh -help in your terminal. There you see something like this : Code:
Usage: splitMesh [OPTIONS] <faceSet> <master> <slave> Arguments: <faceSet> The faces used for splitting <master> The master patch name <slave> The slave patch name Options: -case <dir> Specify case directory to use (instead of the cwd) -overwrite Overwrite existing mesh/results files -doc Display documentation in browser -help Display short help and exit -help-compat Display compatibility options and exit -help-full Display full help and exit Splits mesh by making internal faces external at defined faceSet You can use setSet for this, or topoSet. setSet does the same as topoSet, but if you google the topoSet wiki, it has a more complete explanation regarding the possibilities. In order to define the domain, you can use a searchableBox, and make it of the dimensions so all the cells of the triangle are in there, and than filter the right faces out. I would do something like this: cellSet of all cells in the triangle cellSet inverted version of above cells (to invert it, you first need to copy it, and than invert it) faceSet of the first cellSet faceSet of the second cellSet faceSet subset of first cellSet with second cellSet So cut the mesh, and than use stitchMesh to stitch it. Hope this helps! |
|
April 3, 2020, 05:52 |
|
#4 |
Member
Franco Marra
Join Date: Mar 2009
Location: Napoli - Italy
Posts: 70
Rep Power: 17 |
Dear Marc,
a possible solution could be to split the triangle (that is the real problem) into three subfigures as in the attached picture. Best regards, Franco TriangleMesh.png |
|
April 3, 2020, 11:40 |
|
#5 |
New Member
Marc Batlle
Join Date: Mar 2017
Posts: 9
Rep Power: 9 |
Hello again and thanks for your replies,
I have been working on Bram's answer without success for the moment. As requested, I attach a simple case only meshing the "triangle" which initially I define as a parallelogram with only 4 cells for simplicity. A topoSetDict file can also be found in /system with my interpretation from Bram's suggestions. Thanks again. |
|
May 13, 2022, 14:31 |
|
#6 |
New Member
M. Constanza Sadino Riquelme
Join Date: May 2022
Posts: 1
Rep Power: 0 |
Hello Marc,
I want to create a similar mesh. Could you find a strategy for this? Thank you |
|
November 25, 2022, 14:08 |
|
#7 |
New Member
Gerardo Zegers
Join Date: Apr 2015
Posts: 4
Rep Power: 11 |
Hi,
I was having the same issue and solved the problem using francescomarra solution! Here is my blockmesdict. Best, Gerardo ---- /*--------------------------------*- C++ -*----------------------------------*\n| ========= | | | \ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \ / O peration | Version: 2.3.1 | | \ / A nd | Web: www.OpenFOAM.org | | \/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 1; vertices ( (0.143424 0.143292 -6.949927463502417)//0 (1.000188 0.143292 -6.949927463502417)//1 (1.000188 1.856396 -6.949927463502417)//2 (0.143424 1.856396 -6.949927463502417)//3 (0.143424 0.143292 -6.589941731751209)//4 (0.7145999999999999 0.143292 -6.709936975668278)//5 (0.7145999999999999 1.856396 -6.709936975668278)//6 (0.143424 1.856396 -6.589941731751209)//7 (0.143424 0.143292 -6.229956)//8 (1.000188 0.143292 -6.589941731751208)//9 (1.000188 1.856396 -6.589941731751208)//10 (0.143424 1.856396 -6.229956)//11 (1.856952 0.143292 -6.949927463502417)//12 (1.856952 1.856396 -6.949927463502417)//13 ); blocks ( hex ( 3 2 6 7 0 1 5 4) fluido (8 8 3) simpleGrading (1 1 1 ) hex (7 6 10 11 4 5 9 8) fluido (8 8 3) simpleGrading (1 1 1 ) hex (2 13 10 6 1 12 9 5) fluido (8 8 3) simpleGrading (1 1 1 ) ); edges ( ); boundary ( ); mergePatchPairs ( ); // ************************************************** *********************** // |
|
Tags |
blockmesh, mergepatchpair, splitmesh, triangle |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] Cooper Method Meshing | RTN3000 | ANSYS Meshing & Geometry | 1 | March 2, 2015 00:59 |
[ANSYS Meshing] Meshing strategy for External Flows | Hybrid | ANSYS Meshing & Geometry | 0 | January 24, 2012 15:27 |
[blockMesh] error Meshing a 3D cube geometry with blockMesh | GodOfLove | OpenFOAM Meshing & Mesh Conversion | 5 | July 14, 2009 16:30 |
Best Meshing scheme for Cylinder | Nutrex | Main CFD Forum | 4 | July 29, 2008 12:03 |
Volume Meshing & Face Meshing? singularity of grid | ken | FLUENT | 0 | September 4, 2003 12:08 |