CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   Evaluation of evaporated mass (

mystix July 7, 2010 09:22

Evaluation of evaporated mass
Dear FOAMers,

I want to analyse the evaporation constant lambda (called denominator in the evaporation model scripts) over time and for every parcel to compare different evaporation models.

I tried to get the information with implementing the printf command
printf ("denominator = %E \n, denominator")
in the RutlandFlashBoil.C. But it did not work.

Then I implemented
#include "RutlandFlashBoil.H"
Info<< "denominator = " << denominator << " s"
<< nl << endl;

I also tried to get the information of the evaporation constant with ParaView. But there is no data for it.

Any suggestions? Thanks in advance.


nimasam July 7, 2010 11:37

hi friend
you have 2 options: can show ur result in log file by adding ur written code exactly after where denominator is calculated
2. you can define ur denominator in creatField.H
somethings like this :

volScalarField denominator
dimensionedScalar ("denominator",...,0.0)

mystix July 8, 2010 04:14

Thank you for answer nimasam.

I added

Info << "denominator = " << denominator << " s" << nl << endl;

exactly after where denominator is calculated in the RutlandFlashBoil.C and compiled the library. But when running the updated case there is no denominator mentioned in the log-file.
Why isn't it shown?

I tried to define the denominator in the creatField.H but I dont find the file using search in whole OpenFOAM-folder. I am using OpenFOAM 1.5.
How is the path of creatField.H?

Thanks in advance. Best regards

nimasam July 8, 2010 04:22

1) do u compile ur solver after change you made ?
2) file name is "creatFields.H" , this file exists in every solver in openFoam

mystix July 8, 2010 04:43

Thank you for answer nimasam.

No, I did not compile the solver, because I think I only have to compile it when I made changes there. Isn't it?
To go for sure I compiled the solver, too. But there is still no denominator mentioned in the log file.
Is the coding correct?

You are right, there is a file createFields.H in many solvers. However I am using the dieselFoam solver and there is no createFields.H.
Is there any possibilty to implement it?

Thanks in advance. Best regards

mystix July 9, 2010 05:53

Is there a possibilty to analyse the evaporation rate in OpenFOAM?

mystix July 9, 2010 07:39

I found a solution:

You can analyse the current liquid mass in your system with defaultCloud -> Glyph -> Histogramm -> scalars m.

You know the injected mass because of your massProfil given in the injectorProperties.

You can calculate the evaporated mass.

All times are GMT -4. The time now is 10:48.