|
[Sponsors] |
November 14, 2011, 10:02 |
User defined labels in blockMeshDict
|
#1 |
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22 |
Dear All,
could you tell me if there is any way of specifying user defined labels for vertices in blockMeshDict? It would be great to have such functionality since adding a point in the middle of the list wouldn't upset the sequences in further commands e.g. blocks or patches. Please let me know, Robert |
|
November 16, 2011, 05:49 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
vertexLinksOben 23; and later using that with ($vertexLinksOben 0 0 ) But the actual problem (keeping track of the numbers) remains Otherwise you'll have to write a solution in some scripting language. There is an example in m4 on the Wiki (if you know that language. I don't) Personally if I HAVE to edit a blockMesh I use pyFoamDisplayBlockMesh and just append new vertices (that way I don't have to bother witrh renumbering) Bernhard |
||
November 16, 2011, 10:57 |
|
#3 |
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22 |
Thanks for your reply. I do not know m4 language, but this might be what I was looking for.
Currently, my modus operandi was to write perl scripts that output blockMeshDict. A script would take various parameters and allow refinements, change lengths or angles between different components etc. It is only when I create a blockMeshDict from scratch that labels would be useful. Since sometimes you think "oh, I would use this point between the other two" and on the other hand I like to keep them in a certain order. GUI would probably work for me, but I think I got used to text editing and I kind of enjoy it. If it was possible to extend it for a couple of features it would work better than GUI for me, but that this just my personal preference. Thanks again for your reply. |
|
November 16, 2011, 21:27 |
|
#4 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
|
|||
|
|
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 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |
user defined turbulence model | manuutin | STAR-CD | 5 | October 14, 2009 06:29 |
Gradient of a User defined Variable | Ramadas | CFX | 2 | August 21, 2007 10:19 |
User Defined Scalars - Returning Values | Carlos V. | FLUENT | 0 | April 19, 2006 19:18 |