60 throw std::domain_error(
"Parameter 'kappa' must be >= 0");
63 throw std::domain_error(
"Parameter 'epsilon1' must be >= 0");
66 throw std::domain_error(
"Parameter 'epsilon2' must be >= 0");
69 throw std::domain_error(
"Parameter 'r_cut' must be >= 0");
98 double const dist)
const {
102 auto fac = 1. / Utils::int_pow<3>(dist) +
B / Utils::int_pow<3>(
r_cut);
114 auto fac = 1. / dist - (
B * dist * dist) / (2. * Utils::int_pow<3>(
r_cut));
116 fac -= (1. -
B / 2.) /
r_cut;
Vector implementation and trait types for boost qvm interoperability.
void set_prefactor(double new_prefactor)
double prefactor
Electrostatics prefactor.
void sanity_checks_charge_neutrality() const
This file contains the defaults for ESPResSo.
Reaction Field parameters.
void on_cell_structure_change() const
double epsilon1
Continuum dielectric constant inside the cavity.
void on_node_grid_change() const
double kappa
Ionic strength.
double r_cut
Interaction cutoff.
ReactionField(double prefactor, double kappa, double epsilon1, double epsilon2, double r_cut)
void on_activation() const
Utils::Vector3d pair_force(double const q1q2, Utils::Vector3d const &d, double const dist) const
Compute the Reaction Field pair force.
void sanity_checks() const
double B
Interaction prefactor.
void on_periodicity_change() const
double pair_energy(double const q1q2, double const dist) const
Compute the Reaction Field pair energy.
double epsilon2
Continuum dielectric constant outside the cavity.
void on_boxl_change() const