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

Probability density function

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 30, 2014, 10:36
Default Probability density function
  #1
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 303
Rep Power: 9
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, 10:41
Default pdfPlot
  #2
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 210
Rep Power: 10
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, 04:14
Default
  #3
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 303
Rep Power: 9
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, 13:36
Default
  #4
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 303
Rep Power: 9
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, 03:27
Default gmin/gmax
  #5
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 210
Rep Power: 10
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

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
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 07: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 02:10.