Space: generate neighboring cells
This commit is contained in:
@@ -24,7 +24,7 @@ int main() {
|
||||
int numberOfCells = 5;
|
||||
double temperature = 300;
|
||||
|
||||
Space space(3 * 1.5);
|
||||
Space space(3);
|
||||
|
||||
std::vector<Atom> atoms = generateFCCAtoms(lattice, numberOfCells, "Ar", 1);
|
||||
initMaxwellBoltzmannVelocities(atoms, temperature);
|
||||
@@ -41,7 +41,8 @@ int main() {
|
||||
std::cout << "Building cells..." << std::endl;
|
||||
space.buildCells();
|
||||
|
||||
space.printCells();
|
||||
std::cout << "Getting neighboring cells of index 0" << std::endl;
|
||||
Cell neighboringCells = space.getNeighboringCells(0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user