mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -403,11 +403,6 @@ Foam::multiphaseSystem::multiphaseSystem
|
|||||||
calcAlphas();
|
calcAlphas();
|
||||||
alphas_.write();
|
alphas_.write();
|
||||||
|
|
||||||
forAllIter(PtrDictionary<phaseModel>, phases_, iter)
|
|
||||||
{
|
|
||||||
phaseModelTable_.add(iter());
|
|
||||||
}
|
|
||||||
|
|
||||||
interfaceDictTable dragModelsDict(lookup("drag"));
|
interfaceDictTable dragModelsDict(lookup("drag"));
|
||||||
|
|
||||||
forAllConstIter(interfaceDictTable, dragModelsDict, iter)
|
forAllConstIter(interfaceDictTable, dragModelsDict, iter)
|
||||||
@ -418,8 +413,8 @@ Foam::multiphaseSystem::multiphaseSystem
|
|||||||
dragModel::New
|
dragModel::New
|
||||||
(
|
(
|
||||||
iter(),
|
iter(),
|
||||||
*phaseModelTable_.find(iter.key().first())(),
|
*phases_.lookup(iter.key().first()),
|
||||||
*phaseModelTable_.find(iter.key().second())()
|
*phases_.lookup(iter.key().second())
|
||||||
).ptr()
|
).ptr()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -159,25 +159,6 @@ private:
|
|||||||
//- Dictionary of phases
|
//- Dictionary of phases
|
||||||
PtrDictionary<phaseModel> phases_;
|
PtrDictionary<phaseModel> phases_;
|
||||||
|
|
||||||
//- phaseModelTable
|
|
||||||
class phaseModelTable
|
|
||||||
:
|
|
||||||
public HashTable<const phaseModel*>
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
phaseModelTable()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void add(const phaseModel& pm)
|
|
||||||
{
|
|
||||||
this->insert(pm.name(), &pm);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
//- Phase model table for quick lookup
|
|
||||||
phaseModelTable phaseModelTable_;
|
|
||||||
|
|
||||||
const fvMesh& mesh_;
|
const fvMesh& mesh_;
|
||||||
const surfaceScalarField& phi_;
|
const surfaceScalarField& phi_;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user