MercuryDPM  Trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MPISuperQuadric Class Reference

#include <MpiDataClass.h>

+ Inheritance diagram for MPISuperQuadric:

Public Member Functions

void copyDataFromMPIParticleToParticle (BaseParticle *p)
 
void copyDataFromParticleToMPIParticle (BaseParticle *p)
 
- Public Member Functions inherited from MPISphericalParticle
void copyDataFromMPIParticleToParticle (BaseParticle *p)
 Copies data from a BaseParticle to an MPIParticle class and returns this. More...
 
void copyDataFromParticleToMPIParticle (BaseParticle *p)
 

Static Public Member Functions

static BaseParticlenewParticle ()
 
- Static Public Member Functions inherited from MPISphericalParticle
static BaseParticlenewParticle ()
 

Public Attributes

Vec3D axes
 
Mdouble epsilon1
 
Mdouble epsilon2
 
- Public Attributes inherited from MPISphericalParticle
unsigned int id
 
unsigned int indSpecies
 
unsigned int HGridLevel
 
Mdouble radius
 
Vec3D position
 
Vec3D angularVelocity
 
Vec3D velocity
 
Quaternion orientation
 
unsigned communicationComplexity
 
bool isMaser
 
bool isFixed
 

Detailed Description

Definition at line 58 of file MpiDataClass.h.

Member Function Documentation

void MPISuperQuadric::copyDataFromMPIParticleToParticle ( BaseParticle p)

Definition at line 85 of file MpiDataClass.cc.

References axes, MPISphericalParticle::copyDataFromMPIParticleToParticle(), epsilon1, epsilon2, BaseParticle::setAxes(), and BaseParticle::setExponents().

86 {
88  p->setAxes(axes);
90 }
void copyDataFromMPIParticleToParticle(BaseParticle *p)
Copies data from a BaseParticle to an MPIParticle class and returns this.
Definition: MpiDataClass.cc:51
virtual void setAxes(const Vec3D &axes)
Only ustilised in case of superquadric particles.
Definition: BaseParticle.h:524
Mdouble epsilon1
Definition: MpiDataClass.h:62
virtual void setExponents(const Mdouble &eps1, const Mdouble &eps2)
Only ustilised in case of superquadric particles.
Definition: BaseParticle.h:529
Mdouble epsilon2
Definition: MpiDataClass.h:63
void MPISuperQuadric::copyDataFromParticleToMPIParticle ( BaseParticle p)

Definition at line 145 of file MpiDataClass.cc.

References axes, MPISphericalParticle::copyDataFromParticleToMPIParticle(), epsilon1, epsilon2, BaseParticle::getAxes(), BaseParticle::getExponentEps1(), and BaseParticle::getExponentEps2().

145  {
147  axes = p->getAxes();
148  epsilon1 = p->getExponentEps1();
149  epsilon2 = p->getExponentEps2();
150 }
void copyDataFromParticleToMPIParticle(BaseParticle *p)
virtual Mdouble getExponentEps1() const
Only ustilised in case of superquadric particles. Had to create a virtual function to allow function ...
virtual Vec3D getAxes() const
Only ustilised in case of superquadric particles. Had to create a virtual function to allow function ...
Mdouble epsilon1
Definition: MpiDataClass.h:62
virtual Mdouble getExponentEps2() const
Only ustilised in case of superquadric particles. Had to create a virtual function to allow function ...
Mdouble epsilon2
Definition: MpiDataClass.h:63
BaseParticle * MPISuperQuadric::newParticle ( )
static

Definition at line 161 of file MpiDataClass.cc.

161  {
162  return new SuperQuadricParticle;
163 }

Member Data Documentation

Vec3D MPISuperQuadric::axes
Mdouble MPISuperQuadric::epsilon1
Mdouble MPISuperQuadric::epsilon2

The documentation for this class was generated from the following files: