BUG: twoPhaseEulerFoam: fixed multiple registering of blended drag and virtual mass models
This commit is contained in:
parent
e0de7c96c7
commit
4e36e9ce1c
@ -44,10 +44,11 @@ namespace dragModels
|
||||
Foam::dragModels::Ergun::Ergun
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair)
|
||||
dragModel(dict, pair, registerObject)
|
||||
{}
|
||||
|
||||
|
||||
|
@ -70,7 +70,8 @@ public:
|
||||
Ergun
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
@ -44,10 +44,11 @@ namespace dragModels
|
||||
Foam::dragModels::Gibilaro::Gibilaro
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair),
|
||||
dragModel(dict, pair, registerObject),
|
||||
residualRe_("residualRe", dimless, dict.lookup("residualRe"))
|
||||
{}
|
||||
|
||||
|
@ -78,7 +78,8 @@ public:
|
||||
Gibilaro
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
@ -46,16 +46,18 @@ namespace dragModels
|
||||
Foam::dragModels::GidaspowErgunWenYu::GidaspowErgunWenYu
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair),
|
||||
dragModel(dict, pair, registerObject),
|
||||
Ergun_
|
||||
(
|
||||
new Ergun
|
||||
(
|
||||
dict,
|
||||
pair
|
||||
pair,
|
||||
false
|
||||
)
|
||||
),
|
||||
WenYu_
|
||||
@ -63,7 +65,8 @@ Foam::dragModels::GidaspowErgunWenYu::GidaspowErgunWenYu
|
||||
new WenYu
|
||||
(
|
||||
dict,
|
||||
pair
|
||||
pair,
|
||||
false
|
||||
)
|
||||
),
|
||||
residualRe_("residualRe", dimless, dict.lookup("residualRe"))
|
||||
|
@ -85,7 +85,8 @@ public:
|
||||
GidaspowErgunWenYu
|
||||
(
|
||||
const dictionary& interfaceDict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
@ -44,10 +44,11 @@ namespace dragModels
|
||||
Foam::dragModels::GidaspowSchillerNaumann::GidaspowSchillerNaumann
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair),
|
||||
dragModel(dict, pair, registerObject),
|
||||
residualRe_("residualRe", dimless, dict.lookup("residualRe"))
|
||||
{}
|
||||
|
||||
|
@ -85,7 +85,8 @@ public:
|
||||
GidaspowSchillerNaumann
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
@ -44,10 +44,11 @@ namespace dragModels
|
||||
Foam::dragModels::SchillerNaumann::SchillerNaumann
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair),
|
||||
dragModel(dict, pair, registerObject),
|
||||
residualRe_("residualRe", dimless, dict.lookup("residualRe"))
|
||||
{}
|
||||
|
||||
|
@ -74,7 +74,8 @@ public:
|
||||
SchillerNaumann
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
@ -44,10 +44,11 @@ namespace dragModels
|
||||
Foam::dragModels::SyamlalOBrien::SyamlalOBrien
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair),
|
||||
dragModel(dict, pair, registerObject),
|
||||
residualRe_("residualRe", dimless, dict.lookup("residualRe"))
|
||||
{}
|
||||
|
||||
|
@ -77,7 +77,8 @@ public:
|
||||
SyamlalOBrien
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
@ -44,10 +44,11 @@ namespace dragModels
|
||||
Foam::dragModels::TomiyamaAnalytic::TomiyamaAnalytic
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair),
|
||||
dragModel(dict, pair, registerObject),
|
||||
residualEo_("residualEo", dimless, dict.lookup("residualEo")),
|
||||
residualE_("residualE", dimless, dict.lookup("residualE"))
|
||||
{}
|
||||
|
@ -87,7 +87,8 @@ public:
|
||||
TomiyamaAnalytic
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
@ -44,10 +44,11 @@ namespace dragModels
|
||||
Foam::dragModels::TomiyamaCorrelated::TomiyamaCorrelated
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair),
|
||||
dragModel(dict, pair, registerObject),
|
||||
residualRe_("residualRe", dimless, dict.lookup("residualRe")),
|
||||
A_("A", dimless, dict.lookup("A"))
|
||||
{}
|
||||
|
@ -87,7 +87,8 @@ public:
|
||||
TomiyamaCorrelated
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
@ -44,10 +44,11 @@ namespace dragModels
|
||||
Foam::dragModels::WenYu::WenYu
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair),
|
||||
dragModel(dict, pair, registerObject),
|
||||
residualRe_("residualRe", dimless, dict.lookup("residualRe"))
|
||||
{}
|
||||
|
||||
|
@ -88,7 +88,8 @@ public:
|
||||
WenYu
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
@ -42,7 +42,8 @@ const Foam::dimensionSet Foam::dragModel::dimK(1, -3, -1, 0, 0);
|
||||
|
||||
Foam::dragModel::dragModel
|
||||
(
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
regIOobject
|
||||
@ -51,7 +52,10 @@ Foam::dragModel::dragModel
|
||||
(
|
||||
IOobject::groupName(typeName, pair.name()),
|
||||
pair.phase1().mesh().time().timeName(),
|
||||
pair.phase1().mesh()
|
||||
pair.phase1().mesh(),
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
registerObject
|
||||
)
|
||||
),
|
||||
pair_(pair)
|
||||
@ -61,7 +65,8 @@ Foam::dragModel::dragModel
|
||||
Foam::dragModel::dragModel
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
regIOobject
|
||||
@ -70,7 +75,10 @@ Foam::dragModel::dragModel
|
||||
(
|
||||
IOobject::groupName(typeName, pair.name()),
|
||||
pair.phase1().mesh().time().timeName(),
|
||||
pair.phase1().mesh()
|
||||
pair.phase1().mesh(),
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
registerObject
|
||||
)
|
||||
),
|
||||
pair_(pair),
|
||||
|
@ -87,9 +87,10 @@ public:
|
||||
dictionary,
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
),
|
||||
(dict, pair)
|
||||
(dict, pair, registerObject)
|
||||
);
|
||||
|
||||
|
||||
@ -104,14 +105,16 @@ public:
|
||||
// Construct without residual constants
|
||||
dragModel
|
||||
(
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
// Construct with residual constants
|
||||
dragModel
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
@ -52,7 +52,7 @@ Foam::autoPtr<Foam::dragModel> Foam::dragModel::New
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
return cstrIter()(dict, pair);
|
||||
return cstrIter()(dict, pair, true);
|
||||
}
|
||||
|
||||
|
||||
|
@ -44,10 +44,11 @@ namespace dragModels
|
||||
Foam::dragModels::noDrag::noDrag
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
dragModel(pair)
|
||||
dragModel(pair, registerObject)
|
||||
{}
|
||||
|
||||
|
||||
|
@ -66,7 +66,8 @@ public:
|
||||
noDrag
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
@ -45,10 +45,11 @@ namespace dragModels
|
||||
Foam::dragModels::segregated::segregated
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair),
|
||||
dragModel(dict, pair, registerObject),
|
||||
residualRe_("residualRe", dimless, dict.lookup("residualRe")),
|
||||
m_("m", dimless, dict.lookup("m")),
|
||||
n_("n", dimless, dict.lookup("n"))
|
||||
|
@ -88,7 +88,8 @@ public:
|
||||
segregated
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
@ -49,10 +49,11 @@ namespace virtualMassModels
|
||||
Foam::virtualMassModels::Lamb::Lamb
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
virtualMassModel(dict, pair)
|
||||
virtualMassModel(dict, pair, registerObject)
|
||||
{}
|
||||
|
||||
|
||||
|
@ -74,7 +74,8 @@ public:
|
||||
Lamb
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
@ -50,10 +50,11 @@ Foam::virtualMassModels::constantVirtualMassCoefficient::
|
||||
constantVirtualMassCoefficient
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
virtualMassModel(dict, pair),
|
||||
virtualMassModel(dict, pair, registerObject),
|
||||
Cvm_("Cvm", dimless, dict.lookup("Cvm"))
|
||||
{}
|
||||
|
||||
|
@ -75,7 +75,8 @@ public:
|
||||
constantVirtualMassCoefficient
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
@ -44,10 +44,11 @@ namespace virtualMassModels
|
||||
Foam::virtualMassModels::noVirtualMass::noVirtualMass
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
virtualMassModel(dict, pair)
|
||||
virtualMassModel(dict, pair, registerObject)
|
||||
{}
|
||||
|
||||
|
||||
|
@ -66,7 +66,8 @@ public:
|
||||
noVirtualMass
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
@ -52,7 +52,7 @@ Foam::autoPtr<Foam::virtualMassModel> Foam::virtualMassModel::New
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
return cstrIter()(dict, pair);
|
||||
return cstrIter()(dict, pair, true);
|
||||
}
|
||||
|
||||
|
||||
|
@ -42,7 +42,8 @@ const Foam::dimensionSet Foam::virtualMassModel::dimK(dimDensity);
|
||||
Foam::virtualMassModel::virtualMassModel
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
)
|
||||
:
|
||||
regIOobject
|
||||
@ -51,7 +52,10 @@ Foam::virtualMassModel::virtualMassModel
|
||||
(
|
||||
IOobject::groupName(typeName, pair.name()),
|
||||
pair.phase1().mesh().time().timeName(),
|
||||
pair.phase1().mesh()
|
||||
pair.phase1().mesh(),
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
registerObject
|
||||
)
|
||||
),
|
||||
pair_(pair)
|
||||
|
@ -77,9 +77,10 @@ public:
|
||||
dictionary,
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
),
|
||||
(dict, pair)
|
||||
(dict, pair, registerObject)
|
||||
);
|
||||
|
||||
|
||||
@ -95,7 +96,8 @@ public:
|
||||
virtualMassModel
|
||||
(
|
||||
const dictionary& dict,
|
||||
const phasePair& pair
|
||||
const phasePair& pair,
|
||||
const bool registerObject
|
||||
);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user