Space: generate neighboring cells

This commit is contained in:
jun
2023-10-02 10:03:25 -03:00
parent 51b0def9e6
commit 1b99330bf3
3 changed files with 61 additions and 4 deletions

View File

@@ -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;
}