mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
solidchemistryModel: renamed solid() -> solidThermo()
This commit is contained in:
@ -35,11 +35,8 @@ Foam::chemistryModel<CompType, ThermoType>::chemistryModel
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
CompType(mesh),
|
CompType(mesh),
|
||||||
|
|
||||||
ODE(),
|
ODE(),
|
||||||
|
|
||||||
Y_(this->thermo().composition().Y()),
|
Y_(this->thermo().composition().Y()),
|
||||||
|
|
||||||
reactions_
|
reactions_
|
||||||
(
|
(
|
||||||
dynamic_cast<const reactingMixture<ThermoType>&>(this->thermo())
|
dynamic_cast<const reactingMixture<ThermoType>&>(this->thermo())
|
||||||
|
|||||||
@ -37,7 +37,7 @@ ODESolidChemistryModel
|
|||||||
:
|
:
|
||||||
CompType(mesh),
|
CompType(mesh),
|
||||||
ODE(),
|
ODE(),
|
||||||
Ys_(this->solid().composition().Y()),
|
Ys_(this->solidThermo().composition().Y()),
|
||||||
pyrolisisGases_
|
pyrolisisGases_
|
||||||
(
|
(
|
||||||
mesh.lookupObject<dictionary>
|
mesh.lookupObject<dictionary>
|
||||||
@ -45,12 +45,17 @@ ODESolidChemistryModel
|
|||||||
),
|
),
|
||||||
reactions_
|
reactions_
|
||||||
(
|
(
|
||||||
dynamic_cast<const reactingSolidMixture<SolidThermo>& >(this->solid())
|
dynamic_cast<const reactingSolidMixture<SolidThermo>& >
|
||||||
|
(
|
||||||
|
this->solidThermo()
|
||||||
|
)
|
||||||
),
|
),
|
||||||
solidThermo_
|
solidThermo_
|
||||||
(
|
(
|
||||||
dynamic_cast<const reactingSolidMixture<SolidThermo>& >
|
dynamic_cast<const reactingSolidMixture<SolidThermo>& >
|
||||||
(this->solid()).solidData()
|
(
|
||||||
|
this->solidThermo()
|
||||||
|
).solidData()
|
||||||
),
|
),
|
||||||
gasThermo_(pyrolisisGases_.size()),
|
gasThermo_(pyrolisisGases_.size()),
|
||||||
nGases_(pyrolisisGases_.size()),
|
nGases_(pyrolisisGases_.size()),
|
||||||
@ -147,7 +152,7 @@ ODESolidChemistryModel
|
|||||||
|
|
||||||
// Calculate inital values of Ysi0 = rho*delta*Yi
|
// Calculate inital values of Ysi0 = rho*delta*Yi
|
||||||
Ys0_[fieldI].internalField() =
|
Ys0_[fieldI].internalField() =
|
||||||
this->solid().rho()
|
this->solidThermo().rho()
|
||||||
*max(Ys_[fieldI], scalar(0.001))*mesh.V();
|
*max(Ys_[fieldI], scalar(0.001))*mesh.V();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -564,7 +569,7 @@ void Foam::ODESolidChemistryModel<CompType, SolidThermo, GasThermo>::calculate()
|
|||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false
|
false
|
||||||
),
|
),
|
||||||
this->solid().rho()
|
this->solidThermo().rho()
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(RRs_, i)
|
forAll(RRs_, i)
|
||||||
@ -585,8 +590,8 @@ void Foam::ODESolidChemistryModel<CompType, SolidThermo, GasThermo>::calculate()
|
|||||||
if (reactingCells_[celli])
|
if (reactingCells_[celli])
|
||||||
{
|
{
|
||||||
scalar rhoi = rho[celli];
|
scalar rhoi = rho[celli];
|
||||||
scalar Ti = this->solid().T()[celli];
|
scalar Ti = this->solidThermo().T()[celli];
|
||||||
scalar pi = this->solid().p()[celli];
|
scalar pi = this->solidThermo().p()[celli];
|
||||||
|
|
||||||
scalarField c(nSpecie_, 0.0);
|
scalarField c(nSpecie_, 0.0);
|
||||||
for (label i=0; i<nSolids_; i++)
|
for (label i=0; i<nSolids_; i++)
|
||||||
@ -636,7 +641,7 @@ Foam::ODESolidChemistryModel<CompType, SolidThermo, GasThermo>::solve
|
|||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false
|
false
|
||||||
),
|
),
|
||||||
this->solid().rho()
|
this->solidThermo().rho()
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll(RRs_, i)
|
forAll(RRs_, i)
|
||||||
@ -656,8 +661,8 @@ Foam::ODESolidChemistryModel<CompType, SolidThermo, GasThermo>::solve
|
|||||||
cellCounter_ = celli;
|
cellCounter_ = celli;
|
||||||
|
|
||||||
scalar rhoi = rho[celli];
|
scalar rhoi = rho[celli];
|
||||||
scalar Ti = this->solid().T()[celli];
|
scalar Ti = this->solidThermo().T()[celli];
|
||||||
scalar pi = this->solid().p()[celli];
|
scalar pi = this->solidThermo().p()[celli];
|
||||||
|
|
||||||
scalarField c(nSpecie_, 0.0);
|
scalarField c(nSpecie_, 0.0);
|
||||||
scalarField c0(nSpecie_, 0.0);
|
scalarField c0(nSpecie_, 0.0);
|
||||||
|
|||||||
@ -110,10 +110,10 @@ public:
|
|||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
//- Return access to the solid thermo package
|
//- Return access to the solid thermo package
|
||||||
inline solidReactionThermo& solid();
|
inline solidReactionThermo& solidThermo();
|
||||||
|
|
||||||
//- Return const access to the solid thermo package
|
//- Return const access to the solid thermo package
|
||||||
inline const solidReactionThermo& solid() const;
|
inline const solidReactionThermo& solidThermo() const;
|
||||||
|
|
||||||
//- Return total gases mass source term [kg/m3/s]
|
//- Return total gases mass source term [kg/m3/s]
|
||||||
virtual tmp<DimensionedField<scalar, volMesh> > RRg() const = 0;
|
virtual tmp<DimensionedField<scalar, volMesh> > RRg() const = 0;
|
||||||
|
|||||||
@ -25,14 +25,14 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
inline Foam::solidReactionThermo& Foam::solidChemistryModel::solid()
|
inline Foam::solidReactionThermo& Foam::solidChemistryModel::solidThermo()
|
||||||
{
|
{
|
||||||
return solidThermo_();
|
return solidThermo_();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline const Foam::solidReactionThermo&
|
inline const Foam::solidReactionThermo&
|
||||||
Foam::solidChemistryModel::solid() const
|
Foam::solidChemistryModel::solidThermo() const
|
||||||
{
|
{
|
||||||
return solidThermo_();
|
return solidThermo_();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user