ENH: Updates to MPPIC sub-models. Instantiation for kinematic clouds

This commit is contained in:
Sergio Ferraris
2020-08-28 08:45:33 -07:00
committed by Andrew Heather
parent 9207140e37
commit 5bc846553c
8 changed files with 128 additions and 17 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2013-2016 OpenFOAM Foundation
Copyright (C) 2019 OpenCFD Ltd.
Copyright (C) 2019-2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -85,8 +85,10 @@ Foam::PackingModel<CloudType>::New
CloudType& owner
)
{
const word modelType(dict.get<word>(typeName));
const word modelType
(
dict.template getOrDefault<word>(typeName, "none")
);
Info<< "Selecting packing model " << modelType << endl;
auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);