Files
MolecularDynamics2/src/md/Atom.cpp
2023-10-29 21:05:29 -03:00

25 lines
607 B
C++

/**
* @file Atom.cpp
* @author marisa <marisa@fwmari.net>
* @brief Atom definitions
* @version 0.1
* @date 2023-08-05
*
* Copyright (c) 2023 marisa <https://git.fwmari.net/marisa/MolecularDynamics2>
*
*/
#include <iostream>
#include "Atom.hpp"
void printAtom(Atom atom) {
// 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) {
for (auto atom : atoms)
printAtom(atom);
}