|
[Sponsors] |
IndexedOctree: how to access get the bounding box value of a node |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 23, 2013, 10:31 |
IndexedOctree: how to access get the bounding box value of a node
|
#1 |
New Member
sebastian
Join Date: May 2013
Posts: 1
Rep Power: 0 |
Dear All,
i'm working on a tool to do some mesh morphing. I know there are already some tools doing this but my emphasis lies on a tool that can keep some structus (e.g. protecting the boundary layer) of the grid and do not violate the gridquality. In this regard i'm asking myself how to access the bounding box variable of a node in the indexedOctree. For initialization if used: Code:
treeBoundBox meshBb(mesh.bounds()); scalar typDim = meshBb.avgDim()/(2.0*Foam::cbrt(scalar(mesh.nCells()))); treeBoundBox shiftedBb ( meshBb.min(), meshBb.max() + vector(typDim, typDim, typDim) ); indexedOctree<treeDataCell> ioc ( treeDataCell(true, mesh, polyMesh::FACEDIAGTETS), shiftedBb, 100, 1, 10.0 ); Code:
const point sample = mesh.points()[10]; Code:
ioc.getNode(ioc.findNode(0,sample)) P.S.: if there is a "better" possibility to achieve this i would lso appreciate any suggestions =) Best regards, Sebastian |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
snapyHexMesh Bounding box | vmsandip2011 | OpenFOAM Pre-Processing | 5 | May 26, 2012 02:13 |
Near-wall node data access | Silmaril | CFX | 3 | March 8, 2012 22:17 |
999999 (../../src/mpsystem.c@1123):mpt_read: failed:errno = 11 | UDS_rambler | FLUENT | 2 | November 22, 2011 09:46 |
access node values in UDFs | Amir | Fluent UDF and Scheme Programming | 0 | February 6, 2011 15:15 |
bounding box in tgrid 3.6.8 | Anthony | ANSYS Meshing & Geometry | 4 | July 30, 2009 12:23 |