| 147 |
|
outInitFileName = getPrefix(inputFileName.c_str()) + ".in"; |
| 148 |
|
} |
| 149 |
|
|
| 150 |
+ |
std::cout <<"Before build shaped lattice. "<<std::endl; |
| 151 |
|
|
| 151 |
– |
|
| 152 |
|
/* create Molocators */ |
| 153 |
|
locator = new MoLocator(oldInfo->getMoleculeStamp(0), oldInfo->getForceField()); |
| 154 |
|
|
| 155 |
|
/* Create nanoparticle */ |
| 156 |
|
shapedLatticeSpherical nanoParticle(latticeConstant,latticeType,particleRadius); |
| 157 |
+ |
|
| 158 |
+ |
std::cout <<"Before build getPoints. "<<std::endl; |
| 159 |
|
/* Build a lattice and get lattice points for this lattice constant */ |
| 160 |
|
vector<Vector3d> nanoParticleSites = nanoParticle.getPoints(); |
| 161 |
+ |
|
| 162 |
|
/* Get number of lattice sites */ |
| 163 |
|
numSites = nanoParticleSites.size(); |
| 164 |
|
|
| 165 |
+ |
//std::cout <<"numSites are %d "<<numSites<<std::endl; |
| 166 |
+ |
// std::cout <<"nComponents are %d "<<nComponents<<std::endl; |
| 167 |
|
numMol = new int[nComponents]; |
| 168 |
|
|
| 169 |
|
|
| 219 |
|
SimInfo* NewInfo = oldCreator.createSim(outMdFileName, false); |
| 220 |
|
|
| 221 |
|
|
| 222 |
+ |
std::cout << "Contents of nanoParticleSites to follow: " << std::endl; |
| 223 |
+ |
for (int i=0; i< nanoParticleSites.size() |
| 224 |
+ |
; i++) { |
| 225 |
+ |
cout<<nanoParticleSites.at(i)<<endl; |
| 226 |
+ |
} |
| 227 |
|
// Place molecules |
| 228 |
|
Molecule* mol; |
| 229 |
|
SimInfo::MoleculeIterator mi; |
| 230 |
|
mol = NewInfo->beginMolecule(mi); |
| 231 |
|
int l = 0; |
| 232 |
|
for (mol = NewInfo->beginMolecule(mi); mol != NULL; mol = NewInfo->nextMolecule(mi)) { |
| 233 |
< |
locator->placeMol(latticePos[l], latticeOrt[l], mol); |
| 233 |
> |
locator->placeMol(nanoParticleSites[l], latticeOrt[l], mol); |
| 234 |
|
l++; |
| 235 |
|
} |
| 236 |
+ |
|
| 237 |
|
|
| 238 |
|
|
| 228 |
– |
|
| 229 |
– |
|
| 230 |
– |
|
| 239 |
|
|
| 240 |
|
//fill Hmat |
| 241 |
|
hmat(0, 0)= latticeConstant; |