1 |
< |
/* |
1 |
> |
/* |
2 |
|
* Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. |
3 |
|
* |
4 |
|
* The University of Notre Dame grants you ("Licensee") a |
54 |
|
#include "minimizers/PRCG.hpp" |
55 |
|
#include "minimizers/SDMinimizer.hpp" |
56 |
|
#include "UseTheForce/DUFF.hpp" |
57 |
< |
#include "UseTheForce/EAM.hpp" |
57 |
> |
#include "UseTheForce/EAM_FF.hpp" |
58 |
|
#include "UseTheForce/ForceFieldFactory.hpp" |
59 |
|
#include "UseTheForce/ForceFieldCreator.hpp" |
60 |
+ |
#include "lattice/LatticeFactory.hpp" |
61 |
+ |
#include "lattice/LatticeCreator.hpp" |
62 |
+ |
#include "lattice/FCCLattice.hpp" |
63 |
|
|
64 |
|
namespace oopse { |
65 |
|
|
66 |
|
|
67 |
< |
void registerForceFields() { |
67 |
> |
void registerForceFields() { |
68 |
|
/** @todo move to a seperate initialization module */ |
69 |
|
//DUFF, WATER and LJ are merged into one force field |
70 |
|
ForceFieldFactory::getInstance()->registerForceField(new ForceFieldBuilder<DUFF>("DUFF")); |
71 |
|
ForceFieldFactory::getInstance()->registerForceField(new ForceFieldBuilder<DUFF>("WATER")); |
72 |
|
ForceFieldFactory::getInstance()->registerForceField(new ForceFieldBuilder<DUFF>("LJ")); |
73 |
|
//in theory, EAM can also be merged |
74 |
< |
ForceFieldFactory::getInstance()->registerForceField(new ForceFieldBuilder<EAM>("EAM")); |
75 |
< |
} |
74 |
> |
ForceFieldFactory::getInstance()->registerForceField(new ForceFieldBuilder<EAM_FF>("EAM")); |
75 |
> |
} |
76 |
|
|
77 |
< |
void registerIntegrators() { |
77 |
> |
void registerIntegrators() { |
78 |
|
IntegratorFactory::getInstance()->registerIntegrator(new IntegratorBuilder<NVE>("NVE")); |
79 |
|
IntegratorFactory::getInstance()->registerIntegrator(new IntegratorBuilder<NVT>("NVT")); |
80 |
|
IntegratorFactory::getInstance()->registerIntegrator(new IntegratorBuilder<NPTi>("NPTi")); |
81 |
|
IntegratorFactory::getInstance()->registerIntegrator(new IntegratorBuilder<NPTf>("NPTf")); |
82 |
|
IntegratorFactory::getInstance()->registerIntegrator(new IntegratorBuilder<NPTxyz>("NPTxyz")); |
83 |
< |
} |
83 |
> |
} |
84 |
|
|
85 |
< |
void registerMinimizers() { |
85 |
> |
void registerMinimizers() { |
86 |
|
MinimizerFactory::getInstance()->registerMinimizer(new MinimizerBuilder<SDMinimizer>("SD")); |
87 |
|
MinimizerFactory::getInstance()->registerMinimizer(new MinimizerBuilder<PRCGMinimizer>("CG")); |
88 |
< |
} |
88 |
> |
} |
89 |
|
|
90 |
< |
void registerAll() { |
90 |
> |
void registerLattice(){ |
91 |
> |
LatticeFactory::getInstance()->registerLattice(new LatticeBuilder<FCCLattice>("FCC")); |
92 |
> |
} |
93 |
> |
|
94 |
> |
void registerAll() { |
95 |
|
registerForceFields(); |
96 |
|
registerIntegrators(); |
97 |
|
registerMinimizers(); |
98 |
< |
} |
98 |
> |
} |
99 |
|
|
100 |
|
} |