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

Evaluation of evaporated mass

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2010, 09:22
Default Evaluation of evaporated mass
  #1
New Member
 
Join Date: Jun 2010
Posts: 25
Rep Power: 15
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, 11:37
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
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, 04:14
Default
  #3
New Member
 
Join Date: Jun 2010
Posts: 25
Rep Power: 15
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, 04:22
Default
  #4
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
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, 04:43
Default
  #5
New Member
 
Join Date: Jun 2010
Posts: 25
Rep Power: 15
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, 05:53
Default
  #6
New Member
 
Join Date: Jun 2010
Posts: 25
Rep Power: 15
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, 07:39
Default
  #7
New Member
 
Join Date: Jun 2010
Posts: 25
Rep Power: 15
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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Target Mass Flow Rate Nitin FLUENT 9 June 17, 2017 10:30
Running dieselFoam error adorean OpenFOAM Running, Solving & CFD 119 February 1, 2016 14:41
questions about species transport through walls shuqin FLUENT 13 April 9, 2014 02:42
particle, parcel and mass flow rate balance flybird FLUENT 0 May 24, 2007 10:44


All times are GMT -4. The time now is 05:56.