14 #ifndef MODEL_VISCWALLINTERACTION_HPP
15 #define MODEL_VISCWALLINTERACTION_HPP
44 Vec3 vp=this->m_p->getVel();
45 Vec3 vw=this->m_wall->getVel();
47 Vec3 force=m_nu*this->m_p->getMass()*(vp-vw);
48 Vec3 pos=this->m_p->getPos();
50 this->m_p->applyForce(force,pos);
51 if(this->m_inner_flag) this->m_wall->addForce(force);
60 Vec3 vp=this->m_p->getVel();
61 Vec3 vw=this->m_wall->getVel();
63 Vec3 force=m_nu*this->m_p->getMass()*(vw-vp);
double m_nu
viscosity
Definition: ViscWallInteraction.h:31
virtual void calcForces()
Definition: ViscWallInteraction.hpp:42
Abstract base for all interactions between a particle and a wall.
Definition: WallInteraction.h:29
base class for all walls
Definition: Wall.h:39
CViscWallInteraction(T *, CWall *, double, bool)
Definition: ViscWallInteraction.hpp:29
virtual Vec3 getForce()
Definition: ViscWallInteraction.hpp:58