Add Maxwell-Boltzmann method for velocities
This commit is contained in:
@@ -14,7 +14,9 @@
|
||||
#include "Atom.hpp"
|
||||
|
||||
void printAtom(Atom atom) {
|
||||
std::cout << "Atom(" << atom.x << ", " << atom.y << ", " << atom.z << ")" << std::endl;
|
||||
// Print an atom in XYZ format with extra information
|
||||
std::cout << atom.name << " " << atom.x << " " << atom.y << " " << atom.z << " " << atom.vx << " "
|
||||
<< atom.vy << " " << atom.vz << " " << atom.m << std::endl;
|
||||
}
|
||||
|
||||
void printAtoms(std::vector<Atom> atoms) {
|
||||
|
||||
Reference in New Issue
Block a user