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";