How to implement regionSizeDistribution
Hi,
I have completed an analysis using twoPhaseEulerFoam solver and have some results files. My case is similar to the tutorial bubblecolumn case where bubble flows up to the outlet at the top of the domain. I want to get a plot of the droplet size distribution at the outlet. I have found that there is a function called 'regionSizeDistribution' and there is an example showing the inputs and outputs of the function, however where and how do I implement this function? ie. do I copy, for example, this function: regionSizeDistribution1 { type regionSizeDistribution; functionObjectLibs ("libfieldFunctionObjects.so"); ... field alpha; patches (outlet); threshold 0.4; fields (p U); nBins 100; maxDiameter 0.5e-4; minDiameter 0; setFormat gnuplot; } into the controldict file and then re-run the solver again at the time I want? Thank you in advance, Tong |
please, any help will be great.
|
regionSizeDistribution plot
Hi,
I had successfully ran the regionSizeDistribtion function in controlDict for my case which is suppose to plot a histogram of droplet sizes vs frequency they occur on a specified patch. After running the case, two new files appear in the latest time file: alpha1_background and alpha1_liquidCore. However, there was no histogram to be found anywhere. I was just wondering how does the output for regionSizeDistribution work? Where does the histogram saved to? Regards, Tong |
Greetings Tong,
I got your private message and I'll answer here on the forum, since more people can take advantage of this. I've tested this on the tutorial "multiphase/twoPhaseEulerFoam/bubbleColumn" and used the following "system/controDict": Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
regionSizeDistribution1 Inside each one of those time folders you'll find Gnuplot scripts, which can be executed by giving them to the gnuplot command, e.g.: Code:
gnuplot postProcessing/regionSizeDistribution1/0.5/diameter_count.gplt Best regards, Bruno |
Hi,
Are max and min diameter set to meters or millimeters by default? Thanks |
All times are GMT -4. The time now is 04:57. |