|
| | DirectSum (Force &force, double deltaT, FileHandler::outputFormat outputFormat, bool gravityOn, std::array< double, 3 > g={}) |
| | Construct a new Direct Sum model. More...
|
| |
| void | step (int iteration) override |
| | Perform one time step in the direct sum model. More...
|
| |
| void | initializeForces () override |
| | Calculate forces at the beginning of the simulation that the old force is not 0. More...
|
| |
| virtual | ~Model ()=default |
| | Virtual default constructor to guarantee appropriate memory clean up. More...
|
| |
| void | plot (int iteration, std::string &baseName) |
| | Write current state of the model to a file. More...
|
| |
| void | addCuboid (const std::array< double, 3 > &position, unsigned N1, unsigned N2, unsigned N3, double h, double mass, const std::array< double, 3 > &initVelocity, int dimensions, double brownianMotionAverageVelocity, double epsilon=5, double sigma=1, bool fixed=false) |
| | Add a cuboid structure to this model. More...
|
| |
| void | addDisc (const std::array< double, 3 > ¢er, const std::array< double, 3 > &initVelocity, int N, double h, double mass, int dimensions, double brownianMotionAverageVelocity, double epsilon=5, double sigma=1, bool fixed=false) |
| | Add a 2D disc structure to this model. More...
|
| |
| void | addSphere (const std::array< double, 3 > ¢er, const std::array< double, 3 > &initVelocity, int N, double h, double mass, int dimensions, double brownianMotionAverageVelocity, double epsilon=5, double sigma=1, bool fixed=false) |
| | Add a 3D sphere structure to this model. More...
|
| |
| void | addParticle (Particle &p) |
| | Add a single particle to this model. More...
|
| |
| void | addViaFile (std::string &filepath, FileHandler::inputFormat inputFormat) |
| | Add new particles / particle structures to the model via a file. More...
|
| |
| void | saveState () |
| | Export the current state of all molecules to a txt file for using them in a new simulation. More...
|
| |
| void | updateForces () const |
| | Helper method to calculate the force between all particles. More...
|
| |
| ParticleContainer & | getParticles () const |
| | Get the Particles of this model. More...
|
| |
Model that implements the direct sum algorithm.