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


Public Types | |
| typedef double(CRotThermElasticInteraction::* | ScalarFieldFunction) () const |
| typedef pair< bool, double >(CRotThermElasticInteraction::* | CheckedScalarFieldFunction) () const |
| typedef Vec3(CRotThermElasticInteraction::* | VectorFieldFunction) () const |
| typedef CRotThermElasticIGP | ParameterType |
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_kr |
| spring constant More... | |
| Vec3 | m_force |
| caching force for E_pot More... | |
| double | m_nForce |
| normal force, always >= 0 More... | |
| Vec3 | m_cpos |
| current position More... | |
| Vec3 | m_D |
| initial positions of the particles More... | |
| double | m_diffusivity |
| thermal diffusivity More... | |
Friends | |
| ostream & | operator<< (ostream &, const CRotThermElasticInteraction &) |
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 |
Elastic Interaction between free thermal, rotational particles
| typedef pair<bool,double>(CRotThermElasticInteraction::* CRotThermElasticInteraction::CheckedScalarFieldFunction) () const |
| typedef double(CRotThermElasticInteraction::* CRotThermElasticInteraction::ScalarFieldFunction) () const |
| typedef Vec3(CRotThermElasticInteraction::* CRotThermElasticInteraction::VectorFieldFunction) () const |
| CRotThermElasticInteraction::CRotThermElasticInteraction | ( | ) |
References m_diffusivity, m_force, m_kr, and m_nForce.
| CRotThermElasticInteraction::CRotThermElasticInteraction | ( | CRotThermParticle * | p1, |
| CRotThermParticle * | p2, | ||
| const CRotThermElasticIGP & | param | ||
| ) |
References CRotThermElasticIGP::diffusivity, CParticle::getDo2dCalculations(), CBasicParticle::getPos(), CBasicParticle::getRad(), m_D, m_diffusivity, m_force, CRotThermElasticIGP::m_kr, m_kr, m_nForce, ARotThermPairInteraction::m_p1, and ARotThermPairInteraction::m_p2.

|
inlinevirtual |
|
virtual |
Calculate free elastic forces. 23 Flops if in contact, 10 Flops if not
Implements ARotThermPairInteraction.
References CParticle::applyForce(), CBasicParticle::getPos(), CBasicParticle::getRad(), m_cpos, m_force, m_kr, m_nForce, ARotThermPairInteraction::m_p1, ARotThermPairInteraction::m_p2, and Vec3::unit().

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

| Vec3 CRotThermElasticInteraction::getBondedVector | ( | ) | const |
|
static |
Get the particle member function which returns a checked scalar field of a given name.
| name | the name of the field |
References NULL.
| Vec3 CRotThermElasticInteraction::getForce | ( | ) | const |
References m_force.
Referenced by getVectorFieldFunction().

|
inlinevirtual |
Implements ARotThermPairInteraction.
References m_cpos.
| double CRotThermElasticInteraction::getPotentialEnergy | ( | ) | const |
get the potential energy stored in the interaction
References m_kr, and m_nForce.
Referenced by getScalarFieldFunction().

|
static |
Get the particle member function which returns a scalar field of a given name.
| name | the name of the field |
References AInteraction::Count(), getPotentialEnergy(), and NULL.

|
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 |
load restart data from stream
| iStream | the input stream |
References m_D, m_diffusivity, AInteraction::m_id, AInteraction::m_init, and m_kr.
|
virtual |
save restart data to ostream
| oStream | the output stream |
References m_D, m_diffusivity, AInteraction::m_id, AInteraction::m_init, and m_kr.
|
friend |
|
private |
current position
Referenced by calcForces(), and getPos().
|
private |
initial positions of the particles
Referenced by CRotThermElasticInteraction(), loadRestartData(), and saveRestartData().
|
private |
thermal diffusivity
Referenced by calcHeatTrans(), CRotThermElasticInteraction(), loadRestartData(), and saveRestartData().
|
private |
caching force for E_pot
Referenced by calcForces(), CRotThermElasticInteraction(), and getForce().
|
private |
spring constant
Referenced by calcForces(), CRotThermElasticInteraction(), getPotentialEnergy(), loadRestartData(), and saveRestartData().
|
private |
normal force, always >= 0
Referenced by calcForces(), CRotThermElasticInteraction(), and getPotentialEnergy().