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

MC_Simulation Class Reference

Inheritance diagram for MC_Simulation:

Inheritance graph
[legend]
Collaboration diagram for MC_Simulation:

Collaboration graph
[legend]
List of all members.

Detailed Description

This is the base for all monte carlo simulations.

Author:
John Schneiderman

Definition at line 33 of file mcsimulation.h.

Public Member Functions

 MC_Simulation (const ConfigurationDatabase &conf)
void setTemperature (double temperature)
double temperature () const

Protected Member Functions

void writeAverages (ostream &out, const Cluster &cluster)

Protected Attributes

double m_accumPotentialSQ
double m_accumPotentialTotal
double m_temperature


Constructor & Destructor Documentation

MC_Simulation::MC_Simulation const ConfigurationDatabase conf  ) 
 

General constructor.

Parameters:
conf is the default configuration values.

Definition at line 24 of file mcsimulation.cpp.

References m_accumPotentialSQ, m_accumPotentialTotal, and m_temperature.


Member Function Documentation

void MC_Simulation::setTemperature double  temperature  ) 
 

Modifier for the temperature of the system.

Parameters:
temperature the temperature to set the system to.

Definition at line 36 of file mcsimulation.cpp.

References m_temperature.

Referenced by nonInteractiveRun(), and selectSimulation().

double MC_Simulation::temperature  )  const
 

Accessor for the temperature of the system.

Returns:
the temperature.

Definition at line 31 of file mcsimulation.cpp.

References m_temperature.

void MC_Simulation::writeAverages ostream &  out,
const Cluster cluster
[protected]
 

Calculates the simulation averages and writes them out.

Parameters:
out is the source to write the averages to.
cluster is the cluster that ran in the simulation.

Definition at line 41 of file mcsimulation.cpp.

References m_accumPotentialSQ, m_accumPotentialTotal, BaseSimulation::m_changeInStep, and BaseSimulation::m_runSteps.

Referenced by MCLJ_Simulation::run().


Member Data Documentation

double MC_Simulation::m_accumPotentialSQ [protected]
 

Parameters:
m_accumPotentialSQ is the potential energy accumulator squared.

Definition at line 64 of file mcsimulation.h.

Referenced by MC_Simulation(), MCLJ_Simulation::run(), and writeAverages().

double MC_Simulation::m_accumPotentialTotal [protected]
 

Parameters:
m_acumPotentialTotal is the total potential energy accumulator.

Definition at line 60 of file mcsimulation.h.

Referenced by MC_Simulation(), MCLJ_Simulation::run(), and writeAverages().

double MC_Simulation::m_temperature [protected]
 

Parameters:
m_temperature is the temperature of the system.

Definition at line 56 of file mcsimulation.h.

Referenced by MC_Simulation(), MCLJ_Simulation::run(), setTemperature(), and temperature().


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