Go to the documentation of this file.
21 this->m_update_timestamp=0;
30 this->m_update_timestamp=0;
44 console.
Debug() <<
"calculating " << m_interactions.size() <<
" elastic forces\n" ;
46 for(vector<CRotThermElasticInteraction>::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(!this->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());
102 if(this->m_exIG!=
NULL){
103 if(!this->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
Definition: RotThermElasticInteraction.h:24
Console & Debug()
set verbose level of next message to "dbg"
double getSpringConst() const
Definition: RotThermElasticInteraction.h:40
vector< CRotThermElasticInteraction > m_interactions
Definition: RotThermElasticInteractionGroup.h:34
double getDiffusivity() const
Definition: RotThermElasticInteraction.h:44
CRotThermElasticInteractionGroup()
Definition: RotThermElasticInteractionGroup.hpp:18
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
virtual void Update(ParallelParticleArray< T > *)
Definition: RotThermElasticInteractionGroup.hpp:55
ostream & operator<<(ostream &ost, const CRotThermElasticInteractionGroup< T > &E)
Definition: RotThermElasticInteractionGroup.hpp:128
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
void setParam(const CRotThermElasticIGP *)
Definition: RotThermElasticInteractionGroup.hpp:34
virtual void calcForces()
Definition: RotThermElasticInteractionGroup.hpp:41
Definition: RotThermElasticInteraction.h:62
Definition: RotThermElasticInteractionGroup.h:32
Console console
Definition: console.cpp:25