From c85269854f1490e160e176c6ee81d961874954ce Mon Sep 17 00:00:00 2001 From: graham Date: Tue, 18 Nov 2008 17:51:53 +0000 Subject: [PATCH] Modified id reading and mapping to make mols specify which sites they need pair potentials for and only look for them in the potentialDict. Ids requiring pair potentials are stored first in the siteIdList to make the look-up of them in pairPotential work as before. --- .../solvers/molecularDynamics/mdFoam/mdFoam.C | 4 - .../molecule/molecule/molecule.H | 26 ++++--- .../molecule/molecule/moleculeI.H | 76 +++++++++++++------ .../molecule/moleculeCloud/moleculeCloud.C | 6 +- .../potential/potential/potential.C | 69 +++++++++++++---- .../potential/potential/potential.H | 10 ++- .../potential/potential/potentialI.H | 16 ++-- .../tetherPotentialList/tetherPotentialList.C | 28 +++---- .../tetherPotentialList/tetherPotentialList.H | 14 ++-- .../tetherPotentialListI.H | 4 +- 10 files changed, 167 insertions(+), 86 deletions(-) diff --git a/applications/solvers/molecularDynamics/mdFoam/mdFoam.C b/applications/solvers/molecularDynamics/mdFoam/mdFoam.C index a299d558fd..99a9e90d7d 100644 --- a/applications/solvers/molecularDynamics/mdFoam/mdFoam.C +++ b/applications/solvers/molecularDynamics/mdFoam/mdFoam.C @@ -43,10 +43,6 @@ int main(int argc, char *argv[]) potential pot(mesh); - const pairPotentialList& pairPot(pot.pairPotentials()); - - Info<< pairPot.energy(0, 0, 0.45e-9) << endl; - moleculeCloud molecules(mesh, pot); Info << "\nStarting time loop\n" << endl; diff --git a/src/lagrangian/molecularDynamics/molecule/molecule/molecule.H b/src/lagrangian/molecularDynamics/molecule/molecule/molecule.H index 8fb1f5ebab..89e8483e32 100644 --- a/src/lagrangian/molecularDynamics/molecule/molecule/molecule.H +++ b/src/lagrangian/molecularDynamics/molecule/molecule/molecule.H @@ -86,6 +86,10 @@ public: List