CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2013, 10:31
Default 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
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:

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 
        );
Next let's say i've got a point:

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

Code:
 ioc.getNode(ioc.findNode(0,sample))
Any suggestions are welcome.

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

Best regards,
Sebastian
seher is offline   Reply With Quote

Reply


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 Off
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 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


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