|
[Sponsors] |
April 18, 2019, 08:59 |
Labels of nodes and faces on a patch
|
#1 |
New Member
Join Date: Aug 2016
Posts: 19
Rep Power: 10 |
I have a mesh with a single patch named outerBoundary. I want to move the nodes that are on this patch. To determine in which direction to move a given node p, I want to average the normal vectors of the patch faces that have node p in common. This means I need an outer loop for looping over the nodes on the patch and an inner loop to loop over the faces that connect to a given node.
I can get a lot of mesh connectivity information using the code from here, but the information I am still missing is 1) how to determine the labels of nodes that are on a given patch and 2) how to determine for an arbitrary face if the face is a patch face or an internal face. How can I get this information? |
|
April 19, 2019, 05:33 |
|
#2 |
Member
Vu
Join Date: Nov 2016
Posts: 42
Rep Power: 10 |
Hi,
1. Take a look at this thread: How to access to faces of a patch and this: Loop over Points of a boundary / patch 2. Try: Code:
mesh.isInternalFace(yourFaceID); |
|
Tags |
mesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface | Kryo | OpenFOAM Meshing & Mesh Conversion | 13 | February 17, 2022 08:34 |
[snappyHexMesh] Help with Snappy: no layers growing | GianF | OpenFOAM Meshing & Mesh Conversion | 2 | September 23, 2020 09:26 |
[snappyHexMesh] Layers not growing at all | zonda | OpenFOAM Meshing & Mesh Conversion | 12 | June 6, 2020 12:28 |
[snappyHexMesh] sHM layer process keeps getting killed | MBttR | OpenFOAM Meshing & Mesh Conversion | 4 | August 15, 2016 04:21 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |