Go to the documentation of this file.
23 this->m_update_timestamp=0;
31 this->m_update_timestamp=0;
44 console.
Debug() <<
"calculating " << m_interactions.size() <<
" elastic forces\n" ;
46 for(vector<CElasticInteraction>::iterator it=m_interactions.begin();it!=m_interactions.end();it++){
60 if(this->m_update_timestamp!=PPA->getTimeStamp()){
62 m_interactions.erase(m_interactions.begin(),m_interactions.end());
63 this->m_set.erase(this->m_set.begin(),this->m_set.end());
72 tv.push_back(
iter->first->getID());
73 tv.push_back(
iter->second->getID());
75 if(!m_exIG->isIn(tv)){
77 this->m_set.insert(pair<int,int>(
iter->first->getID(),
iter->second->getID()));
79 <<
iter->second->getID() <<
"\n";
83 <<
iter->second->getID() <<
"\n";
87 this->m_set.insert(pair<int,int>(
iter->first->getID(),
iter->second->getID()));
89 <<
iter->second->getID() <<
"\n";
100 tv.push_back(
iter->first->getID());
101 tv.push_back(
iter->second->getID());
103 if(!m_exIG->isIn(tv)){
105 this->m_set.insert(pair<int,int>(
iter->first->getID(),
iter->second->getID()));
107 <<
iter->second->getID() <<
"\n";
111 <<
iter->second->getID() <<
"\n";
115 this->m_set.insert(pair<int,int>(
iter->first->getID(),
iter->second->getID()));
117 <<
iter->second->getID() <<
"\n";
121 this->m_update_timestamp=PPA->getTimeStamp();
122 console.
XDebug() <<
"added " << count_l <<
" pairs to EIG\n";
124 console.
XDebug() <<
"end CElasticInteractionGroup::Update\n";
130 ost <<
"CElasticInteractionGroup : \n";
132 ost << *it <<
" , " ;
134 ost <<
"exchange list: \n";
135 for(set<pair<int,int> >::const_iterator vit=E.m_exchg_list.begin();vit!=E.m_exchg_list.end();vit++){
136 ost <<
"[ " << vit->first <<
" from " << vit->second <<
" ] , ";
NeighborTable< T >::pairlist::iterator PairListIterator
Definition: pp_array.h:78
PairListHandle getFullPairList()
Get list of all pairs. Forwards to NTable::getFullList().
Definition: pp_array.h:187
void setParam(const CElasticIGP *)
Definition: ElasticInteractionGroup.hpp:35
Console & Debug()
set verbose level of next message to "dbg"
vector< CElasticInteraction > m_interactions
Definition: ElasticInteractionGroup.h:33
double getSpringConst() const
Definition: ElasticInteraction.h:36
Class for a group of unbonded,elastic interactions.
Definition: ElasticInteractionGroup.h:31
virtual void Update(ParallelParticleArray< T > *)
Definition: ElasticInteractionGroup.hpp:55
virtual void calcForces()
Definition: ElasticInteractionGroup.hpp:41
ostream & operator<<(ostream &ost, const CElasticInteractionGroup< T > &E)
Definition: ElasticInteractionGroup.hpp:128
Interaction group parameters for CElasticInteractionGroups.
Definition: ElasticInteraction.h:25
PairListHandle getNewPairList()
Get list of new pairs. Forwards to NTable::getNewList().
Definition: pp_array.h:189
parrallel particle storage array with neighborsearch and variable exchange
Definition: pp_array.h:75
Console & XDebug()
set verbose level of next message to "xdg"
#define NULL
Definition: t_list.h:17
Template class for a handle/ref. counted pointer.
Definition: handle.h:27
boost::python::object iter(const boost::python::object &pyOb)
Definition: Util.h:25
CElasticInteractionGroup()
Definition: ElasticInteractionGroup.hpp:20
Console console
Definition: console.cpp:25
Elastic Interaction between free particles.
Definition: ElasticInteraction.h:52