32 void Foam::tetherPotentialList::readTetherPotentialDict
34 const List<word>& siteIdList,
35 const dictionary& tetherPotentialDict,
36 const List<word>& tetherSiteIdList
40 Info<<
nl <<
"Building tether potentials." <<
endl;
42 idMap_ = List<label>(siteIdList.size(), -1);
44 label tetherMapIndex = 0;
46 forAll(tetherSiteIdList, t)
48 word tetherPotentialName = tetherSiteIdList[t];
50 label tetherId = siteIdList.find(tetherPotentialName);
56 <<
"No matching entry found in siteIdList for tether name "
57 << tetherPotentialName
60 else if (!tetherPotentialDict.found(tetherPotentialName))
63 <<
nl <<
"tether potential specification subDict "
64 << tetherPotentialName <<
" not found"
75 tetherPotentialDict.subDict(tetherPotentialName)
80 idMap_[tetherId] = tetherMapIndex;
106 buildPotentials(siteIdList, tetherPotentialDict, tetherSiteIdList);
127 readTetherPotentialDict(siteIdList, tetherPotentialDict, tetherSiteIdList);
136 return (*
this)[tetherPotentialIndex(a)];
146 return (*
this)[tetherPotentialIndex(a)].force(rIT);
156 return (*
this)[tetherPotentialIndex(a)].energy(rIT);