glotzmd::Polymer Class Reference

#include <Polymer.h>

Inheritance diagram for glotzmd::Polymer:

glotzmd::Particle glotzmd::BaseObject glotzutil::Listable glotzutil::Serializable glotzparticles::BeadPolymer glotzparticles::BentCoreTnp glotzparticles::SixRingTnp

List of all members.

Public Types

typedef std::vector
< Bond * > 
BondList

Public Member Functions

 Polymer ()
 Polymer (const Polymer &)
virtual PolymerClone ()
virtual ~Polymer ()
void OnEvent ()
unsigned int GetNumberOfBeads ()
unsigned int GetNumberOfRigidBodies ()
unsigned int GetNumberOfSprings ()
BeadGetBead (unsigned int)
RigidBodyGetRigidBody (unsigned int)
SpringGetSpring (unsigned int)
void AddBead (Bead *)
void AddRigidBody (RigidBody *)
void AddBond (Spring *, Bead *, Bead *)
void PreForceMove ()
 Defines the pre-force integration method.
void PostForceMove ()
 Defines the post-force integration method.
void SetVelocity (const glotz_vec &)
void ModifyVelocity (const glotz_vec &)
void SetPosition (const glotz_vec &)
void SetPositionInBox (const glotz_vec &)
void SetVelocity (const glotz_flt, const glotz_flt, const glotz_flt)
void SetPosition (const glotz_flt, const glotz_flt, const glotz_flt)
void RescaleVelocity (const glotz_flt)
void InvertVelocity ()
BeadGetBeadPtr (const int)
 Utility function for restarting.
glotz_vec ComputePosition () const
glotz_vec ComputeVelocity () const
virtual glotz_flt ComputeVolume () const
glotz_flt ComputeLinearKineticEnergy () const
glotz_flt ComputeAngularKineticEnergy () const
virtual int ComputeDegreesOfFreedom (const int) const
int GetNumberOfSprings () const
int GetNumberOfRigidBodies () const
int GetNumberOfNonRigidBeads () const
int Size () const
glotz_flt GetMass () const
virtual void PrintVis3dTemplate (std::ostream &)
virtual void PrintVis3d (std::ostream &)

Public Attributes

BeadList xLocalBead
 Local vector of ALL beads.
BeadList xBead
 Local vector of FREE beads (not in rigid bodies).
RigidBodyList xRigidBody
 Local vector of all rigid bodies.
BondList xBond
 Local vector of all bonds.

Protected Attributes

SimulationEvent mPossibleEvents

Classes

struct  Bond


Member Typedef Documentation

typedef std::vector<Bond*> glotzmd::Polymer::BondList


Constructor & Destructor Documentation

glotzmd::Polymer::Polymer (  ) 

glotzmd::Polymer::Polymer ( const Polymer rhs  ) 

Parameters:
rhs is a reference to the Polymer to be copied
Note:
uses upcasting to copy beads and calls Polymer::GetBeadPtr to return the local bead with particular ID.

glotzmd::Polymer::~Polymer (  )  [virtual]

Note:
Calls destructor for all RigidBody's, Bead's, and Spring's


Member Function Documentation

Polymer * glotzmd::Polymer::Clone (  )  [virtual]

Returns:
a pointer to a new identical glotzmd::Polymer. Uses Polymer copy constructor

Implements glotzmd::Particle.

void glotzmd::Polymer::OnEvent (  )  [virtual]

Reimplemented from glotzmd::BaseObject.

unsigned int glotzmd::Polymer::GetNumberOfBeads (  )  [virtual]

Reimplemented from glotzmd::Particle.

unsigned int glotzmd::Polymer::GetNumberOfRigidBodies (  )  [virtual]

Reimplemented from glotzmd::Particle.

unsigned int glotzmd::Polymer::GetNumberOfSprings (  )  [virtual]

Reimplemented from glotzmd::Particle.

Bead * glotzmd::Polymer::GetBead ( unsigned int  i  )  [virtual]

Reimplemented from glotzmd::Particle.

RigidBody * glotzmd::Polymer::GetRigidBody ( unsigned int  i  )  [virtual]

Reimplemented from glotzmd::Particle.

Spring * glotzmd::Polymer::GetSpring ( unsigned int  i  )  [virtual]

Reimplemented from glotzmd::Particle.

void glotzmd::Polymer::AddBead ( Bead bead  ) 

void glotzmd::Polymer::AddRigidBody ( RigidBody rbody  ) 

void glotzmd::Polymer::AddBond ( Spring spring,
Bead beadi,
Bead beadj 
)

void glotzmd::Polymer::PreForceMove (  )  [virtual]

Defines the pre-force integration method.

Implements glotzmd::Particle.

void glotzmd::Polymer::PostForceMove (  )  [virtual]

Defines the post-force integration method.

Implements glotzmd::Particle.

void glotzmd::Polymer::SetVelocity ( const glotz_vec velocity  )  [virtual]

Implements glotzmd::Particle.

void glotzmd::Polymer::ModifyVelocity ( const glotz_vec dv  )  [virtual]

Implements glotzmd::Particle.

void glotzmd::Polymer::SetPosition ( const glotz_vec position  )  [virtual]

Implements glotzmd::Particle.

void glotzmd::Polymer::SetPositionInBox ( const glotz_vec position  )  [virtual]

Implements glotzmd::Particle.

void glotzmd::Polymer::SetVelocity ( const   glotz_flt,
const   glotz_flt,
const   glotz_flt 
) [virtual]

Implements glotzmd::Particle.

void glotzmd::Polymer::SetPosition ( const   glotz_flt,
const   glotz_flt,
const   glotz_flt 
) [virtual]

Implements glotzmd::Particle.

void glotzmd::Polymer::RescaleVelocity ( const   glotz_flt  )  [virtual]

Implements glotzmd::Particle.

void glotzmd::Polymer::InvertVelocity (  )  [virtual]

Implements glotzmd::Particle.

Bead * glotzmd::Polymer::GetBeadPtr ( const   int  ) 

Utility function for restarting.

Parameters:
id is the sequencer of the desired bead
Returns:
a pointer to a bead with the corresponding sequencer, otherwise 0x0 (GLOTZ_EMPTY_POINTER)

glotz_vec glotzmd::Polymer::ComputePosition (  )  const [virtual]

Implements glotzmd::Particle.

glotz_vec glotzmd::Polymer::ComputeVelocity (  )  const [virtual]

Implements glotzmd::Particle.

glotz_flt glotzmd::Polymer::ComputeVolume (  )  const [virtual]

Implements glotzmd::Particle.

glotz_flt glotzmd::Polymer::ComputeLinearKineticEnergy (  )  const [virtual]

Implements glotzmd::Particle.

glotz_flt glotzmd::Polymer::ComputeAngularKineticEnergy (  )  const [virtual]

Implements glotzmd::Particle.

int glotzmd::Polymer::ComputeDegreesOfFreedom ( const   int  )  const [virtual]

Implements glotzmd::Particle.

int glotzmd::Polymer::GetNumberOfSprings (  )  const

int glotzmd::Polymer::GetNumberOfRigidBodies (  )  const

int glotzmd::Polymer::GetNumberOfNonRigidBeads (  )  const

int glotzmd::Polymer::Size (  )  const [virtual]

Reimplemented from glotzmd::Particle.

glotz_flt glotzmd::Polymer::GetMass (  )  const [virtual]

Reimplemented from glotzmd::Particle.

void glotzmd::Polymer::PrintVis3dTemplate ( std::ostream &  os  )  [virtual]

Implements glotzmd::Particle.

void glotzmd::Polymer::PrintVis3d ( std::ostream &  os  )  [virtual]

Implements glotzmd::Particle.


Member Data Documentation

BeadList glotzmd::Polymer::xLocalBead

Local vector of ALL beads.

BeadList glotzmd::Polymer::xBead

Local vector of FREE beads (not in rigid bodies).

RigidBodyList glotzmd::Polymer::xRigidBody

Local vector of all rigid bodies.

BondList glotzmd::Polymer::xBond

Local vector of all bonds.

SimulationEvent glotzmd::Polymer::mPossibleEvents [protected]


The documentation for this class was generated from the following files:
Generated on Tue Feb 24 20:54:28 2009 by  doxygen 1.5.3