CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

boundBox in OpenFoam

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 13, 2021, 02:24
Default boundBox in OpenFoam
  #1
New Member
 
Ibaraki
Join Date: Jul 2021
Posts: 9
Rep Power: 4
kraf is on a distinguished road
Hello, I'm having some problems to understand the source code of a program in openfoam. For instance what is the meaning of a command boundbox could somebody help me to understand this lines?
Thanks for your help!
-----------------------------------------------------------------------------------------
Code:
boundBox* meshBB = new boundBox(this->points(), false);
vector span = meshBB->span();
delete meshBB;
scalar waterDepth = meshBB->max()[2]; // What is this [2]?
waterDepth = ibProperties().lookupOrDefault<scalar>
("waterDepth",waterDepth);
waterDepth = objectDictList()[objectID].lookupOrDefault<scalar>
("waterDepth",waterDepth);
kraf is offline   Reply With Quote

 


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36
OpenFOAM Foundation Releases OpenFOAM v2.3.0 opencfd OpenFOAM Announcements from OpenFOAM Foundation 3 December 23, 2014 03:43
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


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