diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/multiphaseSystem.C b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/multiphaseSystem.C index 4dd5c2ef51..d1804b5b6d 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/multiphaseSystem.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/multiphaseSystem.C @@ -403,11 +403,6 @@ Foam::multiphaseSystem::multiphaseSystem calcAlphas(); alphas_.write(); - forAllIter(PtrDictionary, phases_, iter) - { - phaseModelTable_.add(iter()); - } - interfaceDictTable dragModelsDict(lookup("drag")); forAllConstIter(interfaceDictTable, dragModelsDict, iter) @@ -418,8 +413,8 @@ Foam::multiphaseSystem::multiphaseSystem dragModel::New ( iter(), - *phaseModelTable_.find(iter.key().first())(), - *phaseModelTable_.find(iter.key().second())() + *phases_.lookup(iter.key().first()), + *phases_.lookup(iter.key().second()) ).ptr() ); } diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/multiphaseSystem.H b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/multiphaseSystem.H index 33ba3d76e9..b9238c9928 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/multiphaseSystem.H +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/multiphaseSystem.H @@ -159,25 +159,6 @@ private: //- Dictionary of phases PtrDictionary phases_; - //- phaseModelTable - class phaseModelTable - : - public HashTable - { - public: - - phaseModelTable() - {} - - void add(const phaseModel& pm) - { - this->insert(pm.name(), &pm); - } - }; - - //- Phase model table for quick lookup - phaseModelTable phaseModelTable_; - const fvMesh& mesh_; const surfaceScalarField& phi_;