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

Probability density function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2014, 09:36
Default Probability density function
  #1
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hi All,

Is there any pre-implemented function to calculate the pdf (probability density function) of a given variable? I need something that does more or less what the matlab command "hist" does to calculate the pdf of the velocity during the run.

Thanks

Andrea
Andrea_85 is offline   Reply With Quote

Old   October 30, 2014, 09:41
Default pdfPlot
  #2
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18
fabian_roesler is on a distinguished road
Hi,

Application: pdfPlot
Description: Generates a graph of a probability distribution function.

$WM_PROJECT_DIR/applications/utilities/postProcessing/miscellaneous/pdfPlot

Never used it though. Cheers

Fabian
fabian_roesler is offline   Reply With Quote

Old   October 31, 2014, 03:14
Default
  #3
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hi Fabian,

It seems a good starting point. Thank you for the hint.

Best,

Andrea
Andrea_85 is offline   Reply With Quote

Old   November 4, 2014, 12:36
Default
  #4
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hi,
maybe very stupid question...but how max and min function work for scalarField?

To define my intervals i need to define the minimum and maximum of a scalarField. If i use min(myScalarField) or max(myScalarField) i get very strange numbers. So, do min and max work for scalarField and do they work also in parallel (do they perform reduce operations)?

best,

andrea
Andrea_85 is offline   Reply With Quote

Old   November 7, 2014, 02:27
Default gmin/gmax
  #5
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18
fabian_roesler is on a distinguished road
Nope, min and max only work for one processor. For parallel runs you have to use global gmin/gmax functions.

Cheers

Fabian
fabian_roesler 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
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
pdfPlot , probability density funktion , pdf , pdfDictionary heavy_user OpenFOAM Post-Processing 2 October 15, 2010 08:06
How to get probability density function (PDF) in OpenFoam? openfoam15 OpenFOAM 5 July 6, 2009 03:37


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