CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

IndexedOctree: how to access get the bounding box value of a node

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   May 23, 2013, 10:31
Default IndexedOctree: how to access get the bounding box value of a node
New Member
Join Date: May 2013
Posts: 1
Rep Power: 0
seher is on a distinguished road
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:

treeBoundBox meshBb(mesh.bounds()); 
    scalar typDim = meshBb.avgDim()/(2.0*Foam::cbrt(scalar(mesh.nCells()))); 
        treeBoundBox shiftedBb 
            meshBb.max() + vector(typDim, typDim, typDim) 
        indexedOctree<treeDataCell> ioc 
            treeDataCell(true, mesh, polyMesh::FACEDIAGTETS), 
Next let's say i've got a point:

const point sample = mesh.points()[10];
Know the question is how can i get the bounding box values of something like this:

Any suggestions are welcome.

P.S.: if there is a "better" possibility to achieve this i would lso appreciate any suggestions =)

Best regards,
seher is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

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 23:17
999999 (../../src/mpsystem.c@1123):mpt_read: failed:errno = 11 UDS_rambler FLUENT 2 November 22, 2011 10:46
access node values in UDFs Amir Fluent UDF and Scheme Programming 0 February 6, 2011 16:15
bounding box in tgrid 3.6.8 Anthony ANSYS Meshing & Geometry 4 July 30, 2009 12:23

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