ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Public interface to the ScaFaCoS context. More...
#include <ScafacosContextBase.hpp>
Public Member Functions | |
ScafacosContextBase ()=default | |
virtual | ~ScafacosContextBase ()=default |
virtual void | update_particle_data ()=0 |
Collect particle data in continuous arrays. | |
virtual void | update_particle_forces () const =0 |
Write forces back to particles. | |
virtual double | long_range_energy ()=0 |
Calculate long-range part of the energy. | |
virtual void | add_long_range_forces ()=0 |
Add long-range part of the forces to particles. | |
virtual void | update_system_params ()=0 |
Reinitialize number of particles, box shape and periodicity. | |
virtual std::string | get_method () const =0 |
virtual std::string | get_parameters () const =0 |
virtual void | sanity_checks () const =0 |
Static Public Member Functions | |
static std::vector< std::string > | available_methods () |
static void | sanity_check_method (std::string const &method_name) |
Public interface to the ScaFaCoS context.
Implementations of this class will store particle positions and charges/dipoles in flat arrays, as required by ScaFaCoS, as well as the output arrays.
Definition at line 47 of file ScafacosContextBase.hpp.
|
default |
|
virtualdefault |
|
pure virtual |
Add long-range part of the forces to particles.
Implemented in CoulombScafacosImpl, and DipolarScafacosImpl.
|
static |
Definition at line 35 of file ScafacosContextBase.cpp.
Referenced by ScriptInterface::Scafacos::available_methods(), and sanity_check_method().
|
pure virtual |
Implemented in ScafacosContext< ScafacosInterface >.
|
pure virtual |
Implemented in ScafacosContext< ScafacosInterface >.
|
pure virtual |
Calculate long-range part of the energy.
Implemented in CoulombScafacosImpl, and DipolarScafacosImpl.
|
static |
Definition at line 39 of file ScafacosContextBase.cpp.
References available_methods().
Referenced by ScriptInterface::Coulomb::CoulombScafacos::do_construct(), and ScriptInterface::Dipoles::DipolarScafacos::do_construct().
|
pure virtual |
Implemented in CoulombScafacos, and DipolarScafacos.
|
pure virtual |
Collect particle data in continuous arrays.
Implemented in CoulombScafacosImpl, and DipolarScafacosImpl.
|
pure virtual |
Write forces back to particles.
Implemented in CoulombScafacosImpl, and DipolarScafacosImpl.
|
pure virtual |
Reinitialize number of particles, box shape and periodicity.
Implemented in ScafacosContext< ScafacosInterface >.
Referenced by CoulombScafacos::on_activation(), DipolarScafacos::on_activation(), CoulombScafacos::on_boxl_change(), DipolarScafacos::on_boxl_change(), CoulombScafacos::on_periodicity_change(), and DipolarScafacos::on_periodicity_change().