CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   ploting liquid penetration (https://www.cfd-online.com/Forums/openfoam/88234-ploting-liquid-penetration.html)

mooyii May 11, 2011 18:52

ploting liquid penetration
 
p { margin-bottom: 0.21cm; } hello,

I have a question about ploting liquid penetration versus time in openfoam, how can I do it?



I have built models in dieselFoam, and from which I can see the approximate liquid penetration length. But can I direct plot it in ParaFoam?


how did you calculate liquid penetration in your numerical results? is it possible to explain more about how to plot vapor penetration?


regards

arza September 9, 2011 16:43

Hi everybody
i also have the same problem, i cant also plot the smd (Sauter Mean Diameter). Can anybody help me?:( i am going to be dismissed from MSc program because of this:(:(

mturcios777 September 9, 2011 19:24

For both of your problems, you will need to write a custom post-processor. Have a look at $FOAM_UTILITIES/postProcessing/lagrangian for two utilities that work on clouds to see how some of the classes are used.

Your post processor would need to run through the cloud, extract the diameters/masses and average according to your definitions.

I would use particleTracks as a base utility. Make a copy and give it an appropriate name, then start coding. Good luck!

EDIT: If you are using the dieselSpray class, there are member functions that will return the SMD and liquidPenetration. If you haven't run your simulations yet (or can run them again) you should write this quantity to a logFile. By studying the code for this member function you can write your own post-processor for cases that you have already run (since there is no longer a spray but a cloud, you will need to adapt the code slightly). Find it in $FOAM_SRC/lagrangian/dieselSpray/spray/sprayFunctions.C (smd and liquidPenetration)


All times are GMT -4. The time now is 04:13.