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