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

What does "fres" mean in the inhomogeneousMixture.C files?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By sheaker

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2016, 05:36
Default What does "fres" mean in the inhomogeneousMixture.C files?
  #1
New Member
 
Pierluigi Olmati
Join Date: Apr 2016
Location: Tokyo
Posts: 21
Rep Power: 10
Pier84 is on a distinguished road
Hi All,

Do you know what does "fres" mean in the inhomogeneousMixture.C files?

{
if (ft < 0.0001)
{
return oxidant_;
}
else
{
scalar fu = b*ft + (1.0 - b)*fres(ft, stoicRatio().value());
scalar ox = 1 - ft - (ft - fu)*stoicRatio().value();
scalar pr = 1 - fu - ox;

mixture_ = fu/fuel_.W()*fuel_;
mixture_ += ox/oxidant_.W()*oxidant_;
mixture_ += pr/products_.W()*products_;

return mixture_;
}
}

Furthermore after a complete combustion ft should go to zero but in openFOAM (inhomogeneousMixture) it does not! Any explanation?

Thanks,
Pierluigi
Pier84 is offline   Reply With Quote

Old   September 26, 2016, 04:32
Default
  #2
Senior Member
 
sheaker's Avatar
 
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10
sheaker is on a distinguished road
Hello.

I found this in basicMultiComponentMixtureI.H

Code:
inline Foam::scalar Foam::basicMultiComponentMixture::fres
(
    const scalar ft,
    const scalar stoicRatio
) const
{
    return max(ft - (1.0 - ft)/stoicRatio, 0.0);
}
I am pretty sure that is what You are looking for.

Have a nice day.
sheaker
Pier84 likes this.
sheaker 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
problem compiling with header files jreiter164 Fluent UDF and Scheme Programming 2 August 14, 2015 17:31
attaching trn files hossein_sml CFX 1 August 5, 2015 19:17
How to call FORTRAN files as UDF? Ehsan-F Fluent UDF and Scheme Programming 6 September 11, 2012 11:03
Writing Case and Data Files Using Journal/Scheme Files svp Fluent UDF and Scheme Programming 0 April 5, 2011 11:04
Problems with result files Kasper CFX 5 December 14, 2006 02:41


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