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

Question about the regionSizeDistribution.C

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 16, 2014, 13:26
Default Question about the regionSizeDistribution.C
  #1
New Member
 
Join Date: Mar 2012
Posts: 25
Rep Power: 5
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 How to implement regionSizeDistribution )

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

Old   January 26, 2014, 14:14
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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

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


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