Add doxygen
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
build/
|
||||
doc/
|
||||
2733
doxygen.dox
Normal file
2733
doxygen.dox
Normal file
File diff suppressed because it is too large
Load Diff
@@ -15,7 +15,7 @@
|
||||
#include <vector>
|
||||
|
||||
/**
|
||||
* @brief Atom class
|
||||
* @brief Basic atom class
|
||||
*
|
||||
*/
|
||||
class Atom {
|
||||
@@ -26,8 +26,7 @@ public:
|
||||
std::string name = ""; ///< Name
|
||||
|
||||
Atom(double x, double y, double z, std::string name, double mass)
|
||||
: x(x), y(y), z(z), vx(0), vy(0), vz(0), m(mass), name(name) {
|
||||
}
|
||||
: x(x), y(y), z(z), vx(0), vy(0), vz(0), m(mass), name(name) {}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -13,12 +13,20 @@
|
||||
|
||||
#include <cmath>
|
||||
|
||||
/**
|
||||
* @brief Potential generator base class
|
||||
*
|
||||
*/
|
||||
class Potential {
|
||||
public:
|
||||
virtual double potential(double r) = 0;
|
||||
virtual double force(double r) = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Lennard Jones potential generator
|
||||
*
|
||||
*/
|
||||
class LennardJones : public Potential {
|
||||
public:
|
||||
double potential(double r) override {
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
#include "Atom.hpp"
|
||||
#include "Potentials.hpp"
|
||||
|
||||
/**
|
||||
* @brief System class that aggregates functions and data related to the system
|
||||
*
|
||||
*/
|
||||
class System {
|
||||
private:
|
||||
std::vector<Atom> atoms; ///< Atoms in the system
|
||||
@@ -57,9 +61,7 @@ private:
|
||||
void buildGrid();
|
||||
|
||||
public:
|
||||
explicit System(double timeDelta,
|
||||
double rcut,
|
||||
Potential *potential,
|
||||
explicit System(double timeDelta, double rcut, Potential *potential,
|
||||
std::size_t tableResolution = 1000);
|
||||
|
||||
void step();
|
||||
|
||||
@@ -13,6 +13,10 @@
|
||||
|
||||
#include <boost/mpi.hpp>
|
||||
|
||||
/**
|
||||
* @brief MPI worker class
|
||||
*
|
||||
*/
|
||||
class Worker {
|
||||
public:
|
||||
Worker(boost::mpi::communicator &comm) : m_comm(comm) {}
|
||||
|
||||
Reference in New Issue
Block a user