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

thermo model - where is R() defined?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2010, 05:53
Default thermo model - where is R() defined?
  #1
OMN
New Member
 
Olivier Macchion
Join Date: Jun 2010
Posts: 12
Rep Power: 16
OMN is on a distinguished road
Hello

I am writing a new thermo class to model the mixture of two gases, for example air (itself a mixture) and methane.

I think I have understood how to define it, but I have trouble understanding how to link the scalar used to transport the methane specie, called Y in the 0 directory, to the properties of the methane specie defined in the thermophysicalProperties file.

What I have done is the following:
1) Added the following
makeBasicMixture
(
multiComponentMixture,
constTransport,
hConstThermo,
perfectGas
);
to the file basicMixtures.C

2) Added the following
Y_
(
IOobject
(
“Y”,
mesh.time().timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
),
to the file basicThermo.C

3) Created a new perfectGas directory, called speciesPerfectGas, and changed the calculation of psi to the following:
inline scalar speciesPerfectGas:si(scalar, scalar T, scalar Y) const
{
return 1.0/((R()*(1-Y) + R_Y*Y)*T);
}


I have tried to find where R() is calculated, to know how to define R_Y in the previous code, but I can't find it. Would someone know that please?

Is there an example of multiComponentMixture somewhere?

Cheers

Olivier

Last edited by OMN; August 12, 2010 at 07:37.
OMN is offline   Reply With Quote

Old   August 18, 2010, 04:07
Default
  #2
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18
Chris Lucas is on a distinguished road
Hi,

have a look at the class specie in the folder "thermophysicalModels/specie/specie"

Regards,
Christian
Chris Lucas is offline   Reply With Quote

Old   August 18, 2010, 05:31
Default
  #3
OMN
New Member
 
Olivier Macchion
Join Date: Jun 2010
Posts: 12
Rep Power: 16
OMN is on a distinguished road
Thank you Christian!

Cheers

Olivier
OMN is offline   Reply With Quote

Old   June 21, 2011, 21:08
Talking multiComponentMixture
  #4
Member
 
carowjp's Avatar
 
Jim Carow
Join Date: Apr 2010
Location: Michigan, USA
Posts: 41
Rep Power: 16
carowjp is on a distinguished road
Hello Olivier,

I am working on a similar feature. Would you be willing to share your implementation?

thank you and best regards,

James
carowjp is offline   Reply With Quote

Old   June 24, 2011, 02:43
Default implementation
  #5
OMN
New Member
 
Olivier Macchion
Join Date: Jun 2010
Posts: 12
Rep Power: 16
OMN is on a distinguished road
Yes of course James.

Have you got an email?

regards

Olivier
OMN is offline   Reply With Quote

Old   June 24, 2011, 08:45
Smile implementation
  #6
Member
 
carowjp's Avatar
 
Jim Carow
Join Date: Apr 2010
Location: Michigan, USA
Posts: 41
Rep Power: 16
carowjp is on a distinguished road
My email is:

james dot p dot carow at wmich dot edu

Thank you Olivier and have a good weekend!

James
carowjp is offline   Reply With Quote

Reply

Tags
mixture of gases, modeling, psi, thermophysical


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
Use of k-epsilon and k-omega Models Jade M Main CFD Forum 40 January 27, 2023 08:18
New implemented algebraic Reynolds stress model volker OpenFOAM 13 October 21, 2013 01:01
OpenFOAM13 for Mac OSX Darwin 104 hjasak OpenFOAM Installation 70 September 24, 2010 06:06
species transport model or mixture model? achaokaoyan Main CFD Forum 0 July 10, 2010 11:52
Problems bout CFD model of biomass gasification, Downdraft gasifier wanglong FLUENT 2 November 26, 2009 00:27


All times are GMT -4. The time now is 21:22.