Simpatico  v1.10
List of all members | Public Member Functions
McMd::ClusterIdentifier Class Reference

Detailed Description

Identifies clusters of molecules, such as micelles.

Definition at line 34 of file ClusterIdentifier.h.

#include <ClusterIdentifier.h>

Public Member Functions

 ClusterIdentifier (System &system)
 Constructor. More...
 
 ~ClusterIdentifier ()
 Destructor. More...
 
virtual void initialize (int speciesId, int atomTypeId, double cutoff)
 Clear accumulator. More...
 
void identifyClusters ()
 Identify all clusters (main operation). More...
 
int nCluster () const
 Get number of clusters. More...
 
ClusterLinklink (int moleculeId)
 Get a specific ClusterLink, by id of the associated molecule. More...
 
Clustercluster (int id)
 Get a specific cluster, indexed in the order identified. More...
 
bool isValid () const
 Return true if valid, or throw Exception otherwise. More...
 

Constructor & Destructor Documentation

McMd::ClusterIdentifier::ClusterIdentifier ( System system)

Constructor.

Parameters
systemreference to parent System object

Definition at line 28 of file ClusterIdentifier.cpp.

McMd::ClusterIdentifier::~ClusterIdentifier ( )

Destructor.

Definition at line 42 of file ClusterIdentifier.cpp.

Member Function Documentation

void McMd::ClusterIdentifier::initialize ( int  speciesId,
int  atomTypeId,
double  cutoff 
)
virtual
void McMd::ClusterIdentifier::identifyClusters ( )
int McMd::ClusterIdentifier::nCluster ( ) const
inline

Get number of clusters.

Definition at line 69 of file ClusterIdentifier.h.

Referenced by isValid(), and McMd::ClusterHistogram::sample().

ClusterLink& McMd::ClusterIdentifier::link ( int  moleculeId)
inline

Get a specific ClusterLink, by id of the associated molecule.

Parameters
moleculeIdmolecule index.

Definition at line 77 of file ClusterIdentifier.h.

Cluster& McMd::ClusterIdentifier::cluster ( int  id)
inline

Get a specific cluster, indexed in the order identified.

The id argument of this function is a consecutive array index, with 0 <= id < nCluster, which need not be equal to the cluster identifier returned by Cluster::id().

Parameters
idcluster array index, 0 <- id < nCluster.

Definition at line 89 of file ClusterIdentifier.h.

Referenced by initialize(), and McMd::ClusterHistogram::sample().

bool McMd::ClusterIdentifier::isValid ( ) const

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