ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
CoulombScafacosImpl Struct Reference

#include <scafacos_impl.hpp>

Inheritance diagram for CoulombScafacosImpl:
Collaboration diagram for CoulombScafacosImpl:

Public Types

using ScafacosContext = ScafacosContextScafacosContext<::Scafacos::Coulomb>

Public Member Functions

void update_particle_data () override
void update_particle_forces () const override
double long_range_energy () override
void add_long_range_forces () override
double get_pair_force (double dist) const override
double get_pair_energy (double dist) const override
void set_near_field_delegation (bool delegate) override
bool get_near_field_delegation () const override
double get_r_cut () const override
Public Member Functions inherited from CoulombScafacos
 ~CoulombScafacos () override=default
void on_activation ()
void on_boxl_change ()
 Recalculate all box-length-dependent parameters.
void on_node_grid_change () const
void on_periodicity_change ()
void on_cell_structure_change () const
void init () const
void sanity_checks () const override
bool is_tuned () const
void tune ()
Utils::Vector3d pair_force (double q1q2, Utils::Vector3d const &d, double dist) const
 Calculate near-field pair force.
double pair_energy (double q1q2, double dist) const
 Calculate near-field pair energy.
Public Member Functions inherited from ScafacosContextBase
 ScafacosContextBase ()=default
virtual ~ScafacosContextBase ()=default
Public Member Functions inherited from Coulomb::Actor< CoulombScafacos >
void set_prefactor (double new_prefactor)
void sanity_checks_charge_neutrality () const
Public Member Functions inherited from System::Leaf< Actor< CoulombScafacos > >
void bind_system (std::shared_ptr< System > const &system)
void detach_system (std::shared_ptr< System > const &system)
Public Member Functions inherited from ScafacosContext<::Scafacos::Coulomb >
void update_system_params () override
std::string get_method () const override
std::string get_parameters () const override
 ScafacosContextBase ()=default
Public Member Functions inherited from Scafacos::Coulomb
 Coulomb (MPI_Comm comm, std::string method, std::string parameters)
void set_runtime_parameters (double const *box_l, int const *periodicity, int total_particles)
 Set box geometry and number of particles.
void run (std::vector< double > &charges, std::vector< double > &positions, std::vector< double > &fields, std::vector< double > &potentials)
 Calculate the fields and potentials for charges.
void set_near_field_delegation (bool delegate)
 Delegate the short-range calculation.
bool get_near_field_delegation () const
double pair_force (double dist) const
 Calculate short-range pair force.
double pair_energy (double dist) const
 Calculate short-range pair energy.
void tune (std::vector< double > &charges, std::vector< double > &positions)
 Tune parameters.
double r_cut () const
 Get short-range cutoff (0.0 if not supported by the method).
void set_r_cut (double r_cut)
 Set short-range cutoff.
Public Member Functions inherited from Scafacos::Scafacos
 Scafacos (MPI_Comm comm, std::string method, std::string parameters)
 ~Scafacos ()
std::string get_parameters () const
 Get the parameters from the library.
std::string get_method () const
 Get active method name.
void set_runtime_parameters (double const *box_l, int const *periodicity, int total_particles, int near_field_flag)
 Set box geometry, number of particles and calculation type.

Private Member Functions

void tune_impl () override

Additional Inherited Members

Static Public Member Functions inherited from ScafacosContextBase
static std::vector< std::string > available_methods ()
static void sanity_check_method (std::string const &method_name)
Static Public Member Functions inherited from Scafacos::Scafacos
static std::vector< std::string > available_methods ()
 Get a list of methods supported by the library.
Public Attributes inherited from Coulomb::Actor< CoulombScafacos >
double prefactor
 Electrostatics prefactor.
double charge_neutrality_tolerance
 Relative tolerance for the charge excess during neutrality checks.
Static Public Attributes inherited from Coulomb::Actor< CoulombScafacos >
static auto constexpr charge_neutrality_tolerance_default
Protected Member Functions inherited from System::Leaf< Actor< CoulombScafacos > >
auto & get_system ()
Protected Attributes inherited from System::Leaf< Actor< CoulombScafacos > >
std::weak_ptr< System > m_system
Protected Attributes inherited from Scafacos::Scafacos
FCS m_handle
 Handle from the library.

Detailed Description

Definition at line 38 of file electrostatics/scafacos_impl.hpp.

Member Typedef Documentation

◆ ScafacosContext

Member Function Documentation

◆ add_long_range_forces()

void CoulombScafacosImpl::add_long_range_forces ( )
inlineoverridevirtual

◆ get_near_field_delegation()

bool CoulombScafacosImpl::get_near_field_delegation ( ) const
inlineoverridevirtual

◆ get_pair_energy()

double CoulombScafacosImpl::get_pair_energy ( double dist) const
inlineoverridevirtual

Implements CoulombScafacos.

Definition at line 63 of file electrostatics/scafacos_impl.hpp.

References Scafacos::Coulomb::pair_energy().

◆ get_pair_force()

double CoulombScafacosImpl::get_pair_force ( double dist) const
inlineoverridevirtual

Implements CoulombScafacos.

Definition at line 59 of file electrostatics/scafacos_impl.hpp.

References Scafacos::Coulomb::pair_force().

◆ get_r_cut()

double CoulombScafacosImpl::get_r_cut ( ) const
inlineoverridevirtual

Implements CoulombScafacos.

Definition at line 75 of file electrostatics/scafacos_impl.hpp.

References Scafacos::Coulomb::r_cut().

◆ long_range_energy()

double CoulombScafacosImpl::long_range_energy ( )
inlineoverridevirtual

◆ set_near_field_delegation()

void CoulombScafacosImpl::set_near_field_delegation ( bool delegate)
inlineoverridevirtual

◆ tune_impl()

◆ update_particle_data()

void CoulombScafacosImpl::update_particle_data ( )
overridevirtual

◆ update_particle_forces()

void CoulombScafacosImpl::update_particle_forces ( ) const
overridevirtual

The documentation for this struct was generated from the following files: