Go to the documentation of this file.
38 console.
Debug() <<
"TSubLattice<T>::setParticleAngularVelocity()\n";
44 this->m_ppa->forParticle(
id,(
void (T::*)(
Vec3))(&T::setAngVel),mv);
45 console.
XDebug() <<
"end TSubLattice<T>::setParticleAngularVelocity()\n";
82 if (type==
"RotDamping") {
86 damping_name=
"RotDamping";
89 this->m_damping.insert(make_pair(damping_name,DG));
90 this->m_damping[damping_name]->
update();
92 else if (type==
"RotLocalDamping") {
96 damping_name=
"RotLocalDamping";
99 this->m_damping.insert(make_pair(damping_name,DG));
100 this->m_damping[damping_name]->
update();
121 int tag=param_buffer.
pop_int();
122 string name=string(param_buffer.
pop_string());
127 double max_nForce = param_buffer.
pop_double();
128 double max_shForce = param_buffer.
pop_double();
129 double max_tMoment = param_buffer.
pop_double();
130 double max_bMoment = param_buffer.
pop_double();
131 bool scaling =
static_cast<bool>(param_buffer.
pop_int());
132 bool meanR_scaling =
static_cast<bool>(param_buffer.
pop_int());
138 <<
"Got RotBondedIG parameters: tag=" << tag
139 <<
", name=" << name.c_str()
144 <<
", nFrc=" << max_nForce
145 <<
", sFrc=" << max_shForce
146 <<
", tMom=" << max_tMoment
147 <<
", bMom=" << max_bMoment
148 <<
", scaling=" << scaling
172 vector<int> vi(2,-1);
173 for(
size_t i=0;i<conns.size();i+=2){
175 vi[1] = (conns[i+1]);
180 this->m_bpis.insert(make_pair(name,B_PIS));
182 console.
XDebug() <<
"end TSubLattice<T>::addRotBondedIG()\n";
192 console.
XDebug() <<
"TRotSubLattice<T>::addRotThermBondedIG()\n";
198 int tag=param_buffer.
pop_int();
199 string name=string(param_buffer.
pop_string());
204 double max_nForce = param_buffer.
pop_double();
205 double max_shForce = param_buffer.
pop_double();
206 double max_tMoment = param_buffer.
pop_double();
207 double max_bMoment = param_buffer.
pop_double();
208 double diffusivity = param_buffer.
pop_double();
213 <<
"Got RotThermBondedIG parameters: tag=" << tag
214 <<
", name=" << name.c_str()
219 <<
", nFrc=" << max_nForce
220 <<
", sFrc=" << max_shForce
221 <<
", tMom=" << max_tMoment
222 <<
", bMom=" << max_bMoment
223 <<
", diffusivity=" << diffusivity
245 vector<int> vi(2,-1);
246 for(
size_t i=0;i<conns.size();i+=2){
248 vi[1] = (conns[i+1]);
253 this->m_bpis.insert(make_pair(name,B_PIS));
255 console.
XDebug() <<
"end TRotSubLattice<T>::addRotThermBondedIG()\n";
virtual bool doAddDamping(const string &, CVarMPIBuffer &)
Definition: SubLattice.hpp:1417
virtual void addRotThermBondedIG()
Definition: RotSubLattice.hpp:190
virtual int pop_int()
Definition: mpivbuf.cpp:196
virtual void addRotBondedIG()
Definition: RotSubLattice.hpp:113
MPI send/recv buffer with automagically adjusted size.
Definition: mpivbuf.h:35
Console & Debug()
set verbose level of next message to "dbg"
double max_bMoment
Definition: RotBondedInteraction.h:78
virtual bool doAddPIG(const string &, const string &, CVarMPIBuffer &, bool tagged=false)
Definition: SubLattice.hpp:787
virtual bool doAddDamping(const string &, CVarMPIBuffer &)
Definition: RotSubLattice.hpp:76
virtual void receiveBroadcast(int)
Definition: mpivbuf.cpp:262
double max_shForce
Definition: RotBondedInteraction.h:78
parallel interaction storage array with exchange
Definition: pi_storage_e.h:37
Interaction parameters for bonded interaction between rotational particles.
Definition: RotBondedInteraction.h:38
abstract base class for parallel interaction storage array
Definition: pi_storage.h:45
double max_nForce
Definition: RotBondedInteraction.h:78
double ks
Definition: RotThermBondedInteraction.h:51
parallel storage array with exchange for bonded/breakable interactions
Definition: pi_storage_eb.h:30
Class for a Sublattice.
Definition: SubLattice.h:72
double truncated
Definition: RotBondedInteraction.h:82
double kt
Definition: RotBondedInteraction.h:77
double kt
Definition: RotThermBondedInteraction.h:51
double kb
Definition: RotThermBondedInteraction.h:51
Console & XDebug()
set verbose level of next message to "xdg"
virtual double pop_double()
Definition: mpivbuf.cpp:210
Definition: RotThermBondedInteraction.h:35
#define NULL
Definition: t_list.h:17
int tag
Definition: RotThermBondedInteraction.h:54
virtual bool doAddPIG(const string &, const string &, CVarMPIBuffer &, bool tagged=false)
Definition: RotSubLattice.hpp:56
bool meanR_scaling
Definition: RotBondedInteraction.h:81
double diffusivity
Definition: RotThermBondedInteraction.h:53
virtual bool update()
Definition: pi_storage_single.hpp:22
virtual Vec3 pop_vector()
Definition: mpibuf.cpp:26
double ks
Definition: RotBondedInteraction.h:77
double max_shForce
Definition: RotThermBondedInteraction.h:52
int tag
Definition: RotBondedInteraction.h:79
virtual void tryInsert(const I &)
TRotSubLattice(const esys::lsm::CLatticeParam &prm, int rank, MPI_Comm comm, MPI_Comm worker_comm)
Definition: RotSubLattice.hpp:21
double kr
Definition: RotBondedInteraction.h:77
CDampingIGP * extractDampingIGP(AMPIBuffer *B)
Definition: DampingIGP.cpp:64
virtual void setParticleAngularVelocity()
Definition: RotSubLattice.hpp:36
Interaction group parameters for CLocalDampingGroup.
Definition: LocalDampingIGP.h:28
CLocalDampingIGP * extractLocalDampingIGP(AMPIBuffer *B)
Definition: LocalDampingIGP.cpp:57
Definition: LatticeParam.h:30
parallel storage array without exchange for dynamically created single particle interactions (i....
Definition: pi_storage_single.h:27
Console console
Definition: console.cpp:25
Interaction group parameters for CDampingGroup.
Definition: DampingIGP.h:28
double kr
Definition: RotThermBondedInteraction.h:51
bool scaling
Definition: RotBondedInteraction.h:80
double max_tMoment
Definition: RotBondedInteraction.h:78
double kb
Definition: RotBondedInteraction.h:77
double max_nForce
Definition: RotThermBondedInteraction.h:52
double max_tMoment
Definition: RotThermBondedInteraction.h:52
double max_bMoment
Definition: RotThermBondedInteraction.h:52
virtual std::string pop_string()
Definition: mpivbuf.cpp:233
virtual ~TRotSubLattice()
Definition: RotSubLattice.hpp:29