Add atoms generation methods

This commit is contained in:
2023-10-29 20:50:54 -03:00
parent 932cffa95c
commit 94da4cd500
10 changed files with 285 additions and 3 deletions

23
src/md/Atom.cpp Normal file
View File

@@ -0,0 +1,23 @@
/**
* @file Atom.cpp
* @author jun <jun@firmwarejun.net>
* @brief Atom definitions
* @version 0.1
* @date 2023-08-05
*
* Copyright (c) 2023 jun <https://git.firmwarejun.net/jun/MolecularDynamics2>
*
*/
#include <iostream>
#include "Atom.hpp"
void printAtom(Atom atom) {
std::cout << "Atom(" << atom.x << ", " << atom.y << ", " << atom.z << ")" << std::endl;
}
void printAtoms(std::vector<Atom> atoms) {
for (auto atom : atoms)
printAtom(atom);
}