|
[Sponsors] |
[blockMesh] Declaring two vertices with the same coordinates |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 19, 2015, 15:26 |
Declaring two vertices with the same coordinates
|
#1 |
New Member
Join Date: Jun 2015
Posts: 2
Rep Power: 0 |
Hello,
I have no background in fluid dynamics or OpenFOAM to speak of, but I've been tasked with writing a script to generate a blockMeshDict file from a matrix. My question is this - if I wanted to generate two cubes which share a face, is it acceptable to use two separately-declared vertices with the same coordinates? In other words, would this: vertices ( (0 0 0) (1 0 0) (1 1 0) (0 1 0) (0 0 0.1) (1 0 0.1) (1 1 0.1) (0 1 0.1) (1 0 0) (2 0 0) (2 1 0) (1 1 0) (1 0 0.1) (2 0 0.1) (2 1 0.1) (1 1 0.1)); blocks ( hex (0 1 2 3 4 5 6 7) (20 20 1) simpleGrading (1 1 1) hex (8 9 10 11 12 13 14 15) (20 20 1) simpleGrading (1 1 1)); have the same result as this? vertices ( (0 0 0) (1 0 0) (1 1 0) (0 1 0) (0 0 0.1) (1 0 0.1) (1 1 0.1) (0 1 0.1) (2 0 0) (2 1 0) (2 0 0.1) (2 1 0.1)); blocks ( hex (0 1 2 3 4 5 6 7) (20 20 1) simpleGrading (1 1 1) hex (1 8 9 2 5 10 11 6) (20 20 1) simpleGrading (1 1 1)); Thank you very much for any assistance. Last edited by Snapdad; June 19, 2015 at 15:35. Reason: formatting |
|
June 26, 2015, 09:24 |
|
#2 |
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11 |
Hi snapdad,
both versions of your blockMeshDict would work and would look the same in e.g. paraView . But in the first version your blocks wouldn't be connected, so OF couldn't compute the flow between both blocks... and other errors could occur. You could connect these blocks with the function mergepatchpairs . But I am not familiar with it... I always worked around this function. regards Alex
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
July 2, 2015, 16:03 |
|
#3 |
New Member
Join Date: Jun 2015
Posts: 2
Rep Power: 0 |
Alex,
Thank you very much for your help. Your answer was precisely what I needed to know. With much appreciation, Mike |
|
Tags |
same coordinates, vertices |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] Internal walls of zero thickness | anger | OpenFOAM Meshing & Mesh Conversion | 23 | February 6, 2020 19:25 |
Get the coordinates of tet vertices after tetD | vkoppejan | OpenFOAM Programming & Development | 0 | January 8, 2019 09:48 |
[Scripting]: How to get the coordinates of a 2D airfoil @ different angles of attack? | CfdIntro | Main CFD Forum | 2 | December 12, 2017 11:23 |
[ICEM] Specifying Periodic Vertices Causes Mesh Overlap | Josh | ANSYS Meshing & Geometry | 10 | July 8, 2010 03:39 |
vertices coordinates of a geometry domain | dikra | Main CFD Forum | 2 | December 20, 2007 17:26 |