CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   MultiComponentMixture constructor (https://www.cfd-online.com/Forums/openfoam-solving/59192-multicomponentmixture-constructor.html)

prashant24983 October 15, 2007 02:13

I have added scalar transport
 
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 October 15, 2007 02:39

The transport equation is impl
 
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 October 15, 2007 07:43

can someone give this a look a
 
can someone give this a look and help me?

evan January 9, 2008 16:07

Hi Prashat, So, for an exam
 
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 January 28, 2008 15:08

Sorry, maybe this is more help
 
Sorry, maybe this is more helpful?

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

Evan

Farshad_Noravesh February 7, 2011 15:54

Y_i * h_i
 
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


All times are GMT -4. The time now is 18:40.