GrandCanonicalEnsemble was moved here from Simulation.cpp and partially adapted to Ensemble base class
The GrandCanonicalEnsemble probably used to be a functional muVT ensemble class, that was somewhat dropped with the move to XML inputs. The routines were all over simulation.cpp but never ran.
This is a STUB implementation, mainly lacking readXML and updateGlobalVariable.
Work done till now:
More...
#include <GrandCanonicalEnsemble.h>
|
std::vector< Component > | _components |
|
std::map< std::string, int > | _componentnamesToIds |
|
std::vector< MixingRuleBase * > | _mixingrules |
|
DomainBase * | _domain |
|
Type | _type = undefined |
|
Domain * | _simulationDomain |
|
GrandCanonicalEnsemble was moved here from Simulation.cpp and partially adapted to Ensemble base class
The GrandCanonicalEnsemble probably used to be a functional muVT ensemble class, that was somewhat dropped with the move to XML inputs. The routines were all over simulation.cpp but never ran.
This is a STUB implementation, mainly lacking readXML and updateGlobalVariable.
Work done till now:
- GrandCanonical inherits from Ensemble base class like the NVT Ensemble
- Ensemble Base was extended with additional calls at the appropriate points in the simulation loop
- Simulation.h/.cpp is rid of _lmu list and only uses general _ensemble calls
To Do:
- Make GrandCanonical functional again
- Adapt oldInput style to XML
- Test against a known simulation result
◆ afterForces()
Runs steps formerly in afterForces(simulate) in simulation.cpp
Reimplemented from Ensemble.
◆ beforeEventNewTimestep()
Runs steps formerly in simulate in simulation.cpp
- Todo:
- What is this good for? Where come the numbers from? Needs documentation
Reimplemented from Ensemble.
◆ E()
double GrandCanonicalEnsemble::E |
( |
| ) |
|
|
inlineoverridevirtual |
Returns the global energy of the ensemble.
Implements Ensemble.
◆ getLmu()
Returns _lmu pointer for processing by external plugins
Reimplemented from Ensemble.
◆ initConfigXML()
Runs steps formerly in initConfigXML in simulation.cpp
Reimplemented from Ensemble.
◆ mu()
double GrandCanonicalEnsemble::mu |
( |
| ) |
|
|
inlineoverridevirtual |
Returns the global chemical potential of the ensemble.
Implements Ensemble.
◆ N()
unsigned long GrandCanonicalEnsemble::N |
( |
| ) |
|
|
inlineoverridevirtual |
Returns the global number of Molecules of the ensemble.
Implements Ensemble.
◆ p()
double GrandCanonicalEnsemble::p |
( |
| ) |
|
|
inlineoverridevirtual |
Returns the global presure of the ensemble.
Implements Ensemble.
◆ prepare_start()
void GrandCanonicalEnsemble::prepare_start |
( |
| ) |
|
|
overridevirtual |
Runs steps formerly in prepare_start in simulation.cpp
Reimplemented from Ensemble.
◆ readXML()
void GrandCanonicalEnsemble::readXML |
( |
XMLfileUnits & |
xmlconfig | ) |
|
|
inlineoverridevirtual |
◆ storeSample()
void GrandCanonicalEnsemble::storeSample |
( |
Molecule * |
m, |
|
|
uint32_t |
componentid |
|
) |
| |
|
overridevirtual |
stores a molecule as a sample for a given component
Reimplemented from Ensemble.
◆ T()
double GrandCanonicalEnsemble::T |
( |
| ) |
|
|
inlineoverridevirtual |
Returns the global Temperature of the ensemble.
Implements Ensemble.
◆ updateGlobalVariable()
void GrandCanonicalEnsemble::updateGlobalVariable |
( |
ParticleContainer * |
particleContainer, |
|
|
GlobalVariable |
variable |
|
) |
| |
|
inlineoverridevirtual |
Calculate global variables.
- Parameters
-
variable | Variable to be updated. |
Implements Ensemble.
◆ V()
double GrandCanonicalEnsemble::V |
( |
| ) |
|
|
inlineoverridevirtual |
Returns the global volume of the ensemble.
Implements Ensemble.
The documentation for this class was generated from the following files: