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

Question about the regionSizeDistribution.C

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2014, 12:26
Default Question about the regionSizeDistribution.C
  #1
Member
 
Join Date: Mar 2012
Posts: 51
Rep Power: 14
callahance is on a distinguished road
Hi,

I have a question about the regionSizeDistribution.C file:

ln111: where is the constant::mathematical:: pi in
Code:
const scalar maxDropletVol = 1.0/6.0*pow(maxDiam_, 3)
I didnt check the whole .C and .H files so i dont know if there are still some hidden mistakes in the files.

Thanks in advance

(Moderator note: This post has been moved from this thread http://www.cfd-online.com/Forums/ope...tribution.html )

Last edited by wyldckat; January 26, 2014 at 13:16. Reason: see "Moderator note:"
callahance is offline   Reply With Quote

Old   January 26, 2014, 13:14
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings callahance,

Are you referring to this block of code?
Code:
// Calculate the diameters
scalarField sortedDiameters(sortedVols.size());
forAll(sortedDiameters, i)
{
    sortedDiameters[i] = Foam::cbrt
    (
        sortedVols[i]
        *6/constant::mathematical::pi
    );
}
The "constant::mathematical::pi" is defined at "src/OpenFOAM/global/constants/mathematical/mathematicalConstants.H".

Best regards,
Bruno
__________________
wyldckat 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
small question about the functionalities of topological changes in OpenFoam ngj OpenFOAM Running, Solving & CFD 2 February 28, 2013 10:02
Question Re Engineering Data Source imnull ANSYS 0 March 5, 2012 13:51
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 15:26
question on bounday layer modeling Wen Long Main CFD Forum 2 November 12, 2005 17:29
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 04:37


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