|
ESyS-Particle
2.3.4
|
#include <RotThermBondedInteraction.h>


Public Types | |
| typedef CRotThermBondedIGP | ParameterType |
| typedef BondedInteractionCpData | CheckPointable |
| typedef double(CRotThermBondedInteraction::* | ScalarFieldFunction) () const |
| typedef pair< bool, double >(CRotThermBondedInteraction::* | CheckedScalarFieldFunction) () const |
| typedef Vec3(CRotThermBondedInteraction::* | VectorFieldFunction) () const |
Static Public Member Functions | |
| static ScalarFieldFunction | getScalarFieldFunction (const string &) |
| static CheckedScalarFieldFunction | getCheckedScalarFieldFunction (const string &) |
| static VectorFieldFunction | getVectorFieldFunction (const string &) |
| static string | getType () |
Private Attributes | |
| double | m_dist |
| current distance, cached from last calcForces() More... | |
| double | m_min_r |
| double | m_kr |
| spring constant More... | |
| double | m_ks |
| double | m_kb |
| double | m_kt |
| double | m_diffusivity |
| double | m_max_nForce |
| double | m_max_shForce |
| double | m_max_tMoment |
| double | m_max_bMoment |
| double | m_nForce |
| double | m_shForce |
| double | m_tMoment |
| double | m_bMoment |
| Vec3 | m_force |
| current force, cached for E_pot calculation More... | |
| Vec3 | m_moment |
| Vec3 | m_cpos |
| int | m_tag |
Friends | |
| class | TML_PackedMessageInterface |
| ostream & | operator<< (ostream &, const CRotThermBondedInteraction &) |
Additional Inherited Members | |
Protected Attributes inherited from ARotThermPairInteraction | |
| CRotThermParticle * | m_p1 |
| CRotThermParticle * | m_p2 |
Protected Attributes inherited from AInteraction | |
| vector< int > | m_id |
| id's of the particles involved More... | |
| int | m_iid |
| interaction id More... | |
| bool | m_init |
Interaction between bonded, thermal, rotational particles
| typedef pair<bool,double>(CRotThermBondedInteraction::* CRotThermBondedInteraction::CheckedScalarFieldFunction) () const |
Used by PIS to save/load check-point data for objects of this type.
| typedef double(CRotThermBondedInteraction::* CRotThermBondedInteraction::ScalarFieldFunction) () const |
| typedef Vec3(CRotThermBondedInteraction::* CRotThermBondedInteraction::VectorFieldFunction) () const |
| CRotThermBondedInteraction::CRotThermBondedInteraction | ( | ) |
References m_bMoment, m_diffusivity, m_force, m_kb, m_kr, m_ks, m_kt, m_max_bMoment, m_max_nForce, m_max_shForce, m_max_tMoment, m_min_r, m_moment, m_nForce, m_shForce, m_tag, and m_tMoment.
| CRotThermBondedInteraction::CRotThermBondedInteraction | ( | CRotThermParticle * | p1, |
| CRotThermParticle * | p2, | ||
| const CRotThermBondedIGP & | param | ||
| ) |
References CRotThermBondedIGP::diffusivity, CParticle::getDo2dCalculations(), CBasicParticle::getPos(), CBasicParticle::getRad(), CRotThermBondedIGP::kb, CRotThermBondedIGP::kr, CRotThermBondedIGP::ks, CRotThermBondedIGP::kt, m_bMoment, m_diffusivity, m_dist, m_force, m_kb, m_kr, m_ks, m_kt, m_max_bMoment, m_max_nForce, m_max_shForce, m_max_tMoment, m_min_r, m_moment, m_nForce, ARotThermPairInteraction::m_p1, ARotThermPairInteraction::m_p2, m_shForce, m_tag, m_tMoment, CRotThermBondedIGP::max_bMoment, CRotThermBondedIGP::max_nForce, CRotThermBondedIGP::max_shForce, CRotThermBondedIGP::max_tMoment, and CRotThermBondedIGP::tag.

|
virtual |
| bool CRotThermBondedInteraction::broken | ( | ) |
References console, Console::Debug(), CBasicParticle::getID(), CBasicParticle::getPos(), m_bMoment, m_dist, m_max_bMoment, m_max_nForce, m_max_shForce, m_max_tMoment, m_nForce, ARotThermPairInteraction::m_p1, ARotThermPairInteraction::m_p2, m_shForce, m_tMoment, NULL, and CParticle::setFlag().

|
virtual |
Implements ARotThermPairInteraction.
References CParticle::applyForce(), CRotParticleVi::applyMoment(), calc_angle(), cross(), dot(), CParticle::getInitPos(), CBasicParticle::getPos(), CRotParticleVi::getQuat(), CBasicParticle::getRad(), m_bMoment, m_cpos, m_dist, m_force, m_kb, m_kr, m_ks, m_kt, m_moment, m_nForce, ARotThermPairInteraction::m_p1, ARotThermPairInteraction::m_p2, m_shForce, m_tMoment, Vec3::norm(), Quaternion::return_sca(), Quaternion::return_vec(), Quaternion::to_matrix(), Matrix3::trans(), Vec3::X(), Vec3::Y(), and Vec3::Z().

|
virtual |
Reimplemented from ARotThermPairInteraction.
References CRotThermParticle::applyHeatTrans(), CBasicParticle::getPos(), CThermParticle::getTemperature(), m_diffusivity, ARotThermPairInteraction::m_p1, ARotThermPairInteraction::m_p2, and Vec3::norm2().

| double CRotThermBondedInteraction::getBendPotentialEnergy | ( | ) | const |
References m_bMoment, and m_kb.
Referenced by getScalarFieldFunction().

| Vec3 CRotThermBondedInteraction::getBondedVector1 | ( | ) | const |
References CBasicParticle::getPos(), CBasicParticle::getRad(), ARotThermPairInteraction::m_p1, and ARotThermPairInteraction::m_p2.

| Vec3 CRotThermBondedInteraction::getBondedVector2 | ( | ) | const |
References CBasicParticle::getPos(), CBasicParticle::getRad(), ARotThermPairInteraction::m_p1, and ARotThermPairInteraction::m_p2.

| Vec3 CRotThermBondedInteraction::getCentrePtDiff | ( | ) | const |
References CBasicParticle::getPos(), ARotThermPairInteraction::m_p1, and ARotThermPairInteraction::m_p2.

|
static |
Get the particle member function which returns a checked scalar field of a given name.
| name | the name of the field |
References NULL.
| double CRotThermBondedInteraction::getCriterion | ( | ) | const |
References m_bMoment, m_max_bMoment, m_max_nForce, m_max_shForce, m_max_tMoment, m_nForce, m_shForce, and m_tMoment.
Referenced by getScalarFieldFunction().

| Vec3 CRotThermBondedInteraction::getForce | ( | ) | const |
References m_force.
Referenced by getVectorFieldFunction().

| Vec3 CRotThermBondedInteraction::getInitialCentrePtDiff | ( | ) | const |
References CParticle::getInitPos(), ARotThermPairInteraction::m_p1, and ARotThermPairInteraction::m_p2.
Referenced by getInitialMidPoint().


| Vec3 CRotThermBondedInteraction::getInitialMidPoint | ( | ) | const |
References getInitialCentrePtDiff(), CBasicParticle::getRad(), ARotThermPairInteraction::m_p1, ARotThermPairInteraction::m_p2, and Vec3::norm().
Referenced by getShearDiff().


| double CRotThermBondedInteraction::getNormalPotentialEnergy | ( | ) | const |
References m_kr, and m_nForce.
Referenced by getScalarFieldFunction().

|
inlinevirtual |
Implements ARotThermPairInteraction.
References m_cpos.
| double CRotThermBondedInteraction::getPotentialEnergy | ( | ) | const |
|
static |
Get the particle member function which returns a scalar field of a given name.
| name | the name of the field |
References AInteraction::Count(), getBendPotentialEnergy(), getCriterion(), getNormalPotentialEnergy(), getPotentialEnergy(), getShearPotentialEnergy(), getTwistPotentialEnergy(), and NULL.

| Vec3 CRotThermBondedInteraction::getShearDiff | ( | ) | const |
References getInitialMidPoint(), CParticle::getInitPos(), CBasicParticle::getPos(), CRotParticleVi::getQuat(), ARotThermPairInteraction::m_p1, ARotThermPairInteraction::m_p2, and Quaternion::to_matrix().

| double CRotThermBondedInteraction::getShearPotentialEnergy | ( | ) | const |
References m_ks, and m_shForce.
Referenced by getScalarFieldFunction().

| int CRotThermBondedInteraction::getTag | ( | ) | const |
| double CRotThermBondedInteraction::getTwistPotentialEnergy | ( | ) | const |
References m_kt, and m_tMoment.
Referenced by getScalarFieldFunction().

|
inlinestatic |
|
static |
Get the particle member function which returns a vector field of a given name.
| name | the name of the field |
References getForce(), and NULL.

|
virtual |
|
virtual |
load restart data from stream
| iStream | the input stream |
References m_diffusivity, AInteraction::m_id, AInteraction::m_init, m_kb, m_kr, m_ks, m_kt, m_max_bMoment, m_max_nForce, m_max_shForce, m_max_tMoment, and setTag().

|
virtual |
|
virtual |
save restart data to ostream
| oStream | the output stream |
References getTag(), m_diffusivity, AInteraction::m_id, AInteraction::m_init, m_kb, m_kr, m_ks, m_kt, m_max_bMoment, m_max_nForce, m_max_shForce, and m_max_tMoment.

| void CRotThermBondedInteraction::setTag | ( | int | tag | ) |
|
friend |
|
friend |
|
private |
Referenced by broken(), calcForces(), CRotThermBondedInteraction(), getBendPotentialEnergy(), getCriterion(), and getPotentialEnergy().
|
private |
Referenced by calcForces(), and getPos().
|
private |
|
private |
current distance, cached from last calcForces()
Referenced by broken(), calcForces(), and CRotThermBondedInteraction().
|
private |
current force, cached for E_pot calculation
Referenced by calcForces(), CRotThermBondedInteraction(), and getForce().
|
private |
|
private |
spring constant
Referenced by calcForces(), CRotThermBondedInteraction(), getNormalPotentialEnergy(), getPotentialEnergy(), loadRestartData(), TML_PackedMessageInterface::pack(), saveRestartData(), and TML_PackedMessageInterface::unpack().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Referenced by CRotThermBondedInteraction().
|
private |
Referenced by calcForces(), and CRotThermBondedInteraction().
|
private |
Referenced by broken(), calcForces(), CRotThermBondedInteraction(), getCriterion(), getNormalPotentialEnergy(), and getPotentialEnergy().
|
private |
Referenced by broken(), calcForces(), CRotThermBondedInteraction(), getCriterion(), getPotentialEnergy(), and getShearPotentialEnergy().
|
private |
Referenced by CRotThermBondedInteraction(), getTag(), and setTag().
|
private |
Referenced by broken(), calcForces(), CRotThermBondedInteraction(), getCriterion(), getPotentialEnergy(), and getTwistPotentialEnergy().