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

Evaluation of evaporated mass

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 7, 2010, 10:22
Default Evaluation of evaporated mass
  #1
New Member
 
Join Date: Jun 2010
Posts: 25
Rep Power: 6
mystix is on a distinguished road
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.

Markus
mystix is offline   Reply With Quote

Old   July 7, 2010, 12:37
Default
  #2
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,077
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
hi friend
you have 2 options:
1.you 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
(
IOobject
(
"denominator",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
mesh,
dimensionedScalar ("denominator",...,0.0)
);
nimasam is offline   Reply With Quote

Old   July 8, 2010, 05:14
Default
  #3
New Member
 
Join Date: Jun 2010
Posts: 25
Rep Power: 6
mystix is on a distinguished road
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
Markus
mystix is offline   Reply With Quote

Old   July 8, 2010, 05:22
Default
  #4
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,077
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
1) do u compile ur solver after change you made ?
2) file name is "creatFields.H" , this file exists in every solver in openFoam
nimasam is offline   Reply With Quote

Old   July 8, 2010, 05:43
Default
  #5
New Member
 
Join Date: Jun 2010
Posts: 25
Rep Power: 6
mystix is on a distinguished road
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
Markus
mystix is offline   Reply With Quote

Old   July 9, 2010, 06:53
Default
  #6
New Member
 
Join Date: Jun 2010
Posts: 25
Rep Power: 6
mystix is on a distinguished road
Is there a possibilty to analyse the evaporation rate in OpenFOAM?
mystix is offline   Reply With Quote

Old   July 9, 2010, 08:39
Default
  #7
New Member
 
Join Date: Jun 2010
Posts: 25
Rep Power: 6
mystix is on a distinguished road
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.
mystix 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
questions about species transport through walls shuqin FLUENT 13 April 9, 2014 03:42
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 09:07
Running dieselFoam error adorean OpenFOAM Running, Solving & CFD 118 March 12, 2009 16:37
particle, parcel and mass flow rate balance flybird FLUENT 0 May 24, 2007 11:44
Target Mass Flow Rate Nitin FLUENT 6 March 12, 2004 06:39


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