Go to the documentation of this file.
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);
81 k_local+=m_k*((*iter)->getRad());
88 m_k_global=this->m_comm->sum_all(k_local);
112 iter!=m_interactions.end();
117 F_local+=(f_i*O_f)*O_f;
122 double fgx=this->m_comm->sum_all(F_local.
X());
123 double fgy=this->m_comm->sum_all(F_local.
Y());
124 double fgz=this->m_comm->sum_all(F_local.
Z());
128 d=((F+F_global)*O_f)/m_k_global;
130 this->m_wall->moveBy(d*O_f);
132 }
while((it<10)&&(fabs(d)>10e-6));
139 ost <<
"CEWallInteractionGroup" << endl << flush;
140 ost << *(IG.m_wall) << endl << flush;
base class for all walls
Definition: Wall.h:40
virtual void applyForce(const Vec3 &)
Definition: brokenEWallInteractionGroup.hpp:102
CEWallInteractionGroup(TML_Comm *)
Definition: brokenEWallInteractionGroup.hpp:21
unbonded elastic interaction between a particle and a wall
Definition: EWallInteraction.h:31
Class for a group of unbonded,elastic interactions between particles and a wall.
Definition: EWallInteractionGroup.h:56
double getSpringConst() const
Definition: ElasticInteraction.h:36
VEC3_INLINE Vec3 unit() const
Definition: vec3.hpp:225
virtual void Update(ParallelParticleArray< T > *)
Definition: brokenEWallInteractionGroup.hpp:57
Abstract Base class for a group of interactions between particles and a wall.
Definition: WallIG.h:31
Interaction group parameters for CEWallInteractionGroups.
Definition: brokenEWallInteractionGroup.h:33
double m_k
Elastic modulus.
Definition: brokenEWallInteractionGroup.h:59
VEC3_INLINE double & X()
Definition: vec3.h:119
NeighborTable< T >::particlelist::iterator ParticleListIterator
Definition: pp_array.h:80
parrallel particle storage array with neighborsearch and variable exchange
Definition: pp_array.h:75
Console & XDebug()
set verbose level of next message to "xdg"
VEC3_INLINE double & Z()
Definition: vec3.h:121
ostream & operator<<(ostream &ost, const CEWallInteractionGroup< T > &IG)
Definition: brokenEWallInteractionGroup.hpp:137
ParticleListHandle getParticlesAtPlane(Vec3 o, Vec3 n)
Get list of particles along a plane. Forwards to NTable::getParticlesAtPlane.
Definition: pp_array.h:191
VEC3_INLINE double & Y()
Definition: vec3.h:120
Template class for a handle/ref. counted pointer.
Definition: handle.h:27
virtual bool isInInner(const Vec3 &)
Definition: pp_array.hpp:208
boost::python::object iter(const boost::python::object &pyOb)
Definition: Util.h:25
static bool getDo2dCalculations()
Definition: Particle.h:181
abstract base class for communicator
Definition: comm.h:47
virtual void calcForces()
Definition: brokenEWallInteractionGroup.hpp:42
Console console
Definition: console.cpp:25