multicomponentFluid: Correct boundary conditions of non-solved species

Whilst the cell values of non-solved species do not change, the boundary
values might, and correcting them is necessary for certain
post-processing operations to produce sensible results.
This commit is contained in:
Will Bainbridge
2024-07-04 09:10:17 +01:00
parent 728c14c902
commit 71dd72fef4
7 changed files with 56 additions and 85 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2015-2023 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2015-2024 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -104,24 +104,12 @@ Foam::PurePhaseModel<BasePhaseModel>::YRef()
template<class BasePhaseModel>
const Foam::UPtrList<Foam::volScalarField>&
Foam::PurePhaseModel<BasePhaseModel>::YActive() const
bool Foam::PurePhaseModel<BasePhaseModel>::solveSpecie
(
const label speciei
) const
{
// Y_ has never been set, so we are returning an empty list
return Y_;
}
template<class BasePhaseModel>
Foam::UPtrList<Foam::volScalarField>&
Foam::PurePhaseModel<BasePhaseModel>::YActiveRef()
{
FatalErrorInFunction
<< "Cannot access the species fractions of for a pure phase"
<< exit(FatalError);
return Y_;
return false;
}