![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include <scafacos_impl.hpp>
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. | |
Definition at line 38 of file electrostatics/scafacos_impl.hpp.
Definition at line 40 of file electrostatics/scafacos_impl.hpp.
|
inlineoverridevirtual |
Implements ScafacosContextBase.
Definition at line 53 of file electrostatics/scafacos_impl.hpp.
References Scafacos::Coulomb::run(), update_particle_data(), and update_particle_forces().
|
inlineoverridevirtual |
Implements CoulombScafacos.
Definition at line 71 of file electrostatics/scafacos_impl.hpp.
References Scafacos::Coulomb::get_near_field_delegation().
|
inlineoverridevirtual |
Implements CoulombScafacos.
Definition at line 63 of file electrostatics/scafacos_impl.hpp.
References Scafacos::Coulomb::pair_energy().
|
inlineoverridevirtual |
Implements CoulombScafacos.
Definition at line 59 of file electrostatics/scafacos_impl.hpp.
References Scafacos::Coulomb::pair_force().
|
inlineoverridevirtual |
Implements CoulombScafacos.
Definition at line 75 of file electrostatics/scafacos_impl.hpp.
References Scafacos::Coulomb::r_cut().
|
inlineoverridevirtual |
Implements ScafacosContextBase.
Definition at line 47 of file electrostatics/scafacos_impl.hpp.
References Coulomb::Actor< CoulombScafacos >::prefactor, Scafacos::Coulomb::run(), and update_particle_data().
|
inlineoverridevirtual |
Implements CoulombScafacos.
Definition at line 67 of file electrostatics/scafacos_impl.hpp.
References Scafacos::Coulomb::set_near_field_delegation().
|
overrideprivatevirtual |
Implements CoulombScafacos.
Definition at line 134 of file electrostatics/scafacos_impl.cpp.
References Scafacos::Coulomb::get_near_field_delegation(), System::Leaf< Actor< CoulombScafacos > >::get_system(), Scafacos::Coulomb::r_cut(), Scafacos::Coulomb::tune(), and update_particle_data().
|
overridevirtual |
Implements ScafacosContextBase.
Definition at line 53 of file electrostatics/scafacos_impl.cpp.
References System::Leaf< Actor< CoulombScafacos > >::get_system().
Referenced by add_long_range_forces(), long_range_energy(), and tune_impl().
|
overridevirtual |
Implements ScafacosContextBase.
Definition at line 70 of file electrostatics/scafacos_impl.cpp.
References System::Leaf< Actor< CoulombScafacos > >::get_system(), and Coulomb::Actor< CoulombScafacos >::prefactor.
Referenced by add_long_range_forces().