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

MultiComponentMixture constructor

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 15, 2007, 03:13
Default I have added scalar transport
  #1
Member
 
Prashant Ojha
Join Date: Mar 2009
Posts: 38
Rep Power: 17
prashant24983 is on a distinguished road
I have added scalar transport equation in the heat transfer solver (buoyantFoam). For the thermophysicalProperties file I am using the multiComponentMixture class. I looked at the multiCompoentMixture source code but I didn't understand how the properties of all the species must be written in the thermophysical dictionary. The constructor used is...

combustionMixture(thermoDict, specieNames, mesh),
speciesData_(species_.size()),
mixture_("mixture", *speciesThermoData[specieNames[0]])
{
forAll(species_,i)
{
speciesData_.set
(
i,
new ThermoType(*specieThermoData[Species_[i]])
);
}
correctMassFractions();
}

I would like to know, how OF reads all this data from thermoPhysicalProperties file?

I tried to look through existing tutorial cases but in Vain.... Please help me out..

Prashant
prashant24983 is offline   Reply With Quote

Old   October 15, 2007, 03:39
Default The transport equation is impl
  #2
Member
 
Prashant Ojha
Join Date: Mar 2009
Posts: 38
Rep Power: 17
prashant24983 is on a distinguished road
The transport equation is implemented same as it is implemeted in reactingFoam ... Initially, I am trying only two species, say CO and N2. I want to know, how I should write the thermophysicalproperties in my case file? How does OF read the values?
prashant24983 is offline   Reply With Quote

Old   October 15, 2007, 08:43
Default can someone give this a look a
  #3
Member
 
Prashant Ojha
Join Date: Mar 2009
Posts: 38
Rep Power: 17
prashant24983 is on a distinguished road
can someone give this a look and help me?
prashant24983 is offline   Reply With Quote

Old   January 9, 2008, 17:07
Default Hi Prashat, So, for an exam
  #4
New Member
 
C.E.M.
Join Date: Mar 2009
Posts: 16
Rep Power: 17
evan is on a distinguished road
Hi Prashat,

So, for an example of how thermophyscialproperties dictionary is read, see the moriyoshiHomogeneous tutorial in XiFoam. Look in the options file in the case solver, and then check the thermophysicalmodels/combustion/lnInclude directory, and look at, for example, hhuMixtureThermo.C ....

Hope that helps,
Evans
evan is offline   Reply With Quote

Old   January 28, 2008, 16:08
Default Sorry, maybe this is more help
  #5
New Member
 
C.E.M.
Join Date: Mar 2009
Posts: 16
Rep Power: 17
evan is on a distinguished road
Sorry, maybe this is more helpful?

http://www.cfd-online.com/OpenFOAM_D...tml?1131355778

Evan
evan is offline   Reply With Quote

Old   February 7, 2011, 16:54
Default Y_i * h_i
  #6
Member
 
Farshad
Join Date: Oct 2010
Posts: 76
Rep Power: 16
Farshad_Noravesh is on a distinguished road
Hi,
It is strange that this question is still remained unanswered.
I have exactly the same question:
The constructor used is...
combustionMixture(thermoDict, specieNames, mesh),
speciesData_(species_.size()),
mixture_("mixture", *speciesThermoData[specieNames[0]])
{
forAll(species_,i)
{
speciesData_.set
(
i,
new ThermoType(*specieThermoData[Species_[i]])
);
}
correctMassFractions();
}
-----------------------------------------
How speciesData_[n] is read in openfoam? I expect it to be the enthalpy of nth element.
Thanks for your help,
Farshad
Farshad_Noravesh 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
Face Set Constructor for star v4.02 gonnafon Siemens 1 June 6, 2012 10:16
IOobject constructor problem iyer_arvind OpenFOAM Running, Solving & CFD 3 November 19, 2006 07:39


All times are GMT -4. The time now is 23:07.