|
[Sponsors] |
April 18, 2018, 09:06 |
Scripting: Naming of block vertices
|
#1 |
New Member
Alex
Join Date: Mar 2018
Posts: 4
Rep Power: 8 |
I am having trouble scripting the meshing process for a convoluted duct.
The duct is fully described geometrically and I am using multiple blocks along its length. I wish to split the blocks, to form a sort of C-grid (I am only modelling half the duct, thanks to its symmetry). However, I cannot seem to find where the numbering of block vertices originates from. It does not seem consistent, either, as when I replay a script I have pre-recorded, ICEM throws the error: "Error in replay of ic_hex_split_grid 21 384 0.462676 m GEOM INLET OUTLET WALL SYMMETRY SOLID: no such edge Error in replay script." I am splitting the blocks twice along 1 edge. After the 1st split, the 2nd split is acting on a new block with 2(?) new vertices. So... my question is : (a) Can I find out the node number before applying the split ? (b) Can I assign a number to a block vertex ? Any help on this matter would be highly appreciated. I am completely stuck ! Thanks Alex |
|
April 20, 2018, 05:33 |
|
#2 | ||
Senior Member
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21 |
Hi Alex,
Quote:
Unfortunately, i don't know the algorithm deciding directions of the new vertex numbering. However, see the workaround below. Quote:
I propose the following solution to your problem: use the command ic_hex_vertex_number to get the desired vertex number. it takes the coordinate (called index in icem) as input and returns the corresponding vertex number. e.g. Code:
ic_hex_vertex_number { 1 1 2 } The catch here is, that the coordinates are updated each time you split, modify or create a block. So you can use the "predictable" coordinates to return the vertex numbers. You can activate the indices in the vertex context menu to get an impression. Best regards, Sebastian |
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] Mixer mesh - negative volume problem | jadtwo | OpenFOAM Meshing & Mesh Conversion | 2 | November 6, 2014 17:37 |
[blockMesh] block with 6 vertices | Hale | OpenFOAM Meshing & Mesh Conversion | 1 | October 5, 2013 09:00 |
foamLog not solving for Ux, Uy, Uz | aerospain | OpenFOAM Post-Processing | 5 | April 18, 2012 11:01 |
[Commercial meshers] Icem Mesh to Foam | jphandrigan | OpenFOAM Meshing & Mesh Conversion | 4 | March 9, 2010 03:58 |
[blockMesh] How to construct a block with four vertices | jennyrui2008 | OpenFOAM Meshing & Mesh Conversion | 0 | November 5, 2008 21:44 |