45 console.
XDebug() <<
"calculating " << m_interactions.size() <<
" elastic wall forces\n" ;
49 it != m_interactions.end();
63 <<
"CEWallInteractionGroup::Update: wall origin = " << this->m_wall->getOrigin()
64 <<
", wall normal = " << this->m_wall->getNormal() <<
"\n" ;
68 m_interactions.erase(m_interactions.begin(),m_interactions.end());
69 this->m_inner_count=0;
76 bool iflag=PPA->
isInInner((*iter)->getPos());
78 this->m_inner_count+=(iflag ? 1 : 0);
96 double par=F.
unit()*this->m_wall->getNormal().
unit();
98 console.
Warning() <<
"Force not parallel to wall normal in CEWallInteractionGroup::applyForce : " << F <<
" vs. " << this->m_wall->getNormal() <<
"\n";
102 console.
Warning() <<
"No force applied to wall in CEWallInteractionGroup::applyForce, which will not converge. If ramping the force, start with a nonzero value.\n";
115 iter!=m_interactions.end();
117 k_local+=
iter->getStiffness();
121 m_k_global=this->m_comm->sum_all(k_local);
128 iter!=m_interactions.end();
133 F_local+=(f_i*O_f)*O_f;
139 double fgx=this->m_comm->sum_all(F_local.
X());
140 double fgy=this->m_comm->sum_all(F_local.
Y());
141 double fgz=this->m_comm->sum_all(F_local.
Z());
150 this->m_wall->moveBy(d*O_f);
156 this->m_wall->moveBy(d*O_f);
159 }
while((it<50)&&(ef>1e-3));
162 console.
Warning() <<
"applyForce doesn't converge, global stiffness: " << m_k_global <<
" applied force: " << F <<
" wall normal: " << this->m_wall->getNormal() <<
"\n";
168 ostream& operator<<(ostream& ost,const CEWallInteractionGroup<T>& IG)
170 ost <<
"CEWallInteractionGroup" << endl << flush;
171 ost << *(IG.m_wall) << endl << flush;