- Thermal phase change and wall boiling functionality has been generalized to support two- and multi- phase simulations. - Thermal phase change now also allows purePhaseModel, which simplifies case setup. - The phaseSystem templates have been restructured in preparation of multiple simultaneous mass transfer mechanisms. For example, combination of thermal phase and inhomogeneous population balance models. Patch contributed by VTT Technical Research Centre of Finland Ltd and Institute of Fluid Dynamics, Helmholtz-Zentrum Dresden - Rossendorf (HZDR).
59 lines
2.1 KiB
C
59 lines
2.1 KiB
C
/*---------------------------------------------------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration |
|
|
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation
|
|
\\/ M anipulation |
|
|
-------------------------------------------------------------------------------
|
|
License
|
|
This file is part of OpenFOAM.
|
|
|
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
|
under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
#include "partitioningModel.H"
|
|
|
|
// * * * * * * * * * * * * * * * * Selector * * * * * * * * * * * * * * * * //
|
|
|
|
Foam::autoPtr<Foam::wallBoilingModels::partitioningModel>
|
|
Foam::wallBoilingModels::partitioningModel::New
|
|
(
|
|
const dictionary& dict
|
|
)
|
|
{
|
|
word partitioningModelType(dict.lookup("type"));
|
|
|
|
Info<< "Selecting partitioningModel: "
|
|
<< partitioningModelType << endl;
|
|
|
|
dictionaryConstructorTable::iterator cstrIter =
|
|
dictionaryConstructorTablePtr_->find(partitioningModelType);
|
|
|
|
if (cstrIter == dictionaryConstructorTablePtr_->end())
|
|
{
|
|
FatalErrorInFunction
|
|
<< "Unknown partitioningModelType type "
|
|
<< partitioningModelType << endl << endl
|
|
<< "Valid partitioningModel types are : " << endl
|
|
<< dictionaryConstructorTablePtr_->sortedToc()
|
|
<< exit(FatalError);
|
|
}
|
|
|
|
return cstrIter()(dict);
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|