mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
mixtureThermos: Set name of Yt so that it doesn't displace Y[0] from the database
This commit is contained in:
@ -30,7 +30,7 @@ License
|
|||||||
template<class ThermoSolidType>
|
template<class ThermoSolidType>
|
||||||
void Foam::multiComponentSolidMixture<ThermoSolidType>::correctMassFractions()
|
void Foam::multiComponentSolidMixture<ThermoSolidType>::correctMassFractions()
|
||||||
{
|
{
|
||||||
volScalarField Yt = Y_[0];
|
volScalarField Yt("Yt", Y_[0]);
|
||||||
|
|
||||||
for (label n=1; n<Y_.size(); n++)
|
for (label n=1; n<Y_.size(); n++)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -49,7 +49,7 @@ const ThermoType& Foam::multiComponentMixture<ThermoType>::constructSpeciesData
|
|||||||
template<class ThermoType>
|
template<class ThermoType>
|
||||||
void Foam::multiComponentMixture<ThermoType>::correctMassFractions()
|
void Foam::multiComponentMixture<ThermoType>::correctMassFractions()
|
||||||
{
|
{
|
||||||
volScalarField Yt = Y_[0];
|
volScalarField Yt("Yt", Y_[0]);
|
||||||
|
|
||||||
for (label n=1; n<Y_.size(); n++)
|
for (label n=1; n<Y_.size(); n++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user