8 |
|
#define BUILD_NMOL_PARTICLE 5 |
9 |
|
|
10 |
|
|
11 |
< |
namespace IHATECPP{ |
12 |
< |
struct Mols |
11 |
> |
namespace nano{ |
12 |
> |
typedef struct Mols |
13 |
|
{ |
14 |
|
double pos[3]; // Center of Molecule position |
15 |
|
MoleculeStamp* myStamp; |
25 |
|
class nanoBuilder{ |
26 |
|
|
27 |
|
public: |
28 |
< |
nanoBuilder(int thisIsRandom, int thisHasVacancies,int thisLatticeType, |
29 |
< |
double thisParticleRadius, double thisCoreRadius, |
30 |
< |
double thisVacancyFraction,double thisVacancyRadius, |
31 |
< |
double thisLatticeSpacing, |
32 |
< |
double solute_x, int &hasError); |
28 |
> |
nanoBuilder(int &hasError); |
29 |
|
~nanoBuilder(); |
30 |
|
|
31 |
|
int buildNanoParticle(void); |
77 |
|
double soluteX; //Mole fraction for randomly mixed nanoparticle. |
78 |
|
|
79 |
|
//Vector to store atoms while were building nanoparticle. |
80 |
< |
std::vector<IHATECPP::Mols> moleculeVector; |
80 |
> |
std::vector<nano::Mols> moleculeVector; |
81 |
|
std::vector<int> vacancyInterface; |
82 |
|
|
83 |
|
|
84 |
< |
IHATECPP::Mols myMol; |
84 |
> |
nano::Mols myMol; |
85 |
|
|
86 |
|
MoleculeStamp* coreStamp; |
87 |
|
MoleculeStamp* shellStamp; |