mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
allow omission of diffCoeffModel in couplingProperties dict
if 'diffCoeffModel' is not defined in couplingProperties, create an
instance of noDiffCoeff ("off") and also do not try to read 'D' from
transportProperties dict
This commit is contained in:
@ -73,7 +73,7 @@ diffCoeffModel::diffCoeffModel
|
||||
)
|
||||
{
|
||||
// build constant fields for single phase case
|
||||
if (!particleCloud_.multiphase())
|
||||
if (!particleCloud_.multiphase() && dict_.found("diffCoeffModel"))
|
||||
{
|
||||
D0Field_ = volScalarField
|
||||
(
|
||||
|
||||
@ -37,7 +37,7 @@ autoPtr<diffCoeffModel> diffCoeffModel::New
|
||||
{
|
||||
word diffCoeffModelType
|
||||
(
|
||||
dict.lookup("diffCoeffModel")
|
||||
dict.lookupOrDefault<word>("diffCoeffModel","off")
|
||||
);
|
||||
|
||||
Info<< "Selecting diffCoeffModel "
|
||||
|
||||
Reference in New Issue
Block a user