Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

FCC_Lattice Class Reference

List of all members.

Detailed Description

This creates a cluster in a Face-Centred-Cubic lattice formation.

Author:
John Schneiderman

Definition at line 28 of file fcclattice.h.

Public Member Functions

void createLattice (int baseSize, double reducedDensity, Cluster &cluster) const
 FCC_Lattice ()

Private Member Functions

void adjustPosCenMass (Cluster &cluster) const


Constructor & Destructor Documentation

FCC_Lattice::FCC_Lattice  ) 
 

Default constructor.

Definition at line 23 of file fcclattice.cpp.


Member Function Documentation

void FCC_Lattice::adjustPosCenMass Cluster cluster  )  const [private]
 

Adjusts the positions of a cluster according to its centre of mass.

Parameters:
cluster is the cluster to adjust.

Definition at line 88 of file fcclattice.cpp.

References Cluster::positionCentreMass(), and Cluster::size().

Referenced by createLattice().

Here is the call graph for this function:

void FCC_Lattice::createLattice int  baseSize,
double  reducedDensity,
Cluster cluster
const
 

Creates a cluster in an FCC lattice formation.

Parameters:
baseSize is the base in the algorithm 4n³; where n is the baseSize.
reducedDensity determines how dense to make the cluster.
cluster is the cluster to be shaped into an FCC lattice.

Definition at line 26 of file fcclattice.cpp.

References Cluster::addAtom(), adjustPosCenMass(), Cluster::calculateCentreMass(), Cluster::clear(), Cluster::setPositionCentreMass(), Coordinate::x, Coordinate::y, and Coordinate::z.

Referenced by createCluster().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Tue Mar 28 23:28:50 2006 for ClusterSim by  doxygen 1.4.4