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

[blockMesh] Declaring two vertices with the same coordinates

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2015, 15:26
Default Declaring two vertices with the same coordinates
  #1
New Member
 
Join Date: Jun 2015
Posts: 2
Rep Power: 0
Snapdad is on a distinguished road
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
Snapdad is offline   Reply With Quote

Old   June 26, 2015, 09:24
Default
  #2
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
alexB is on a distinguished road
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.
alexB is offline   Reply With Quote

Old   July 2, 2015, 16:03
Default
  #3
New Member
 
Join Date: Jun 2015
Posts: 2
Rep Power: 0
Snapdad is on a distinguished road
Alex,

Thank you very much for your help. Your answer was precisely what I needed to know.

With much appreciation,
Mike
Snapdad is offline   Reply With Quote

Reply

Tags
same coordinates, vertices


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
[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


All times are GMT -4. The time now is 14:24.