CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Probability density function (https://www.cfd-online.com/Forums/openfoam-programming-development/143659-probability-density-function.html)

Andrea_85 October 30, 2014 09:36

Probability density function
 
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

fabian_roesler October 30, 2014 09:41

pdfPlot
 
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

Andrea_85 October 31, 2014 03:14

Hi Fabian,

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

Best,

Andrea

Andrea_85 November 4, 2014 12:36

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

fabian_roesler November 7, 2014 02:27

gmin/gmax
 
Nope, min and max only work for one processor. For parallel runs you have to use global gmin/gmax functions.

Cheers

Fabian


All times are GMT -4. The time now is 00:54.