ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
dipolar_direct_sum_kernels.hpp File Reference
#include <config/config.hpp>
#include <utils/Vector.hpp>
#include <cmath>
+ Include dependency graph for dipolar_direct_sum_kernels.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PairForce
 Force and torque of one pair interaction. More...
 

Functions

PairForce pair_force (Utils::Vector3d const &d, Utils::Vector3d const &m1, Utils::Vector3d const &m2)
 Pair force of two interacting dipoles (see dipolar_direct_sum.cpp).
 
double pair_potential (Utils::Vector3d const &d, Utils::Vector3d const &m1, Utils::Vector3d const &m2)
 Pair potential for two interacting dipoles.
 
Utils::Vector3d dipole_field (Utils::Vector3d const &d, Utils::Vector3d const &m1)
 Dipole field contribution from a dipole m1 at distance d.
 

Function Documentation

◆ dipole_field()

Utils::Vector3d dipole_field ( Utils::Vector3d const d,
Utils::Vector3d const m1 
)
inline

Dipole field contribution from a dipole m1 at distance d.

Definition at line 84 of file dipolar_direct_sum_kernels.hpp.

References stream.

Referenced by DipolarDirectSum::dipole_field_at_part_cpu().

◆ pair_force()

PairForce pair_force ( Utils::Vector3d const d,
Utils::Vector3d const m1,
Utils::Vector3d const m2 
)
inline

Pair force of two interacting dipoles (see dipolar_direct_sum.cpp).

Definition at line 45 of file dipolar_direct_sum_kernels.hpp.

References Utils::Vector< T, N >::norm2(), stream, and vector_product().

Referenced by DipolarDirectSum::add_long_range_forces_cpu(), calc_bonded_virial_pressure_tensor(), and DipolarDirectSum::long_range_pressure().

◆ pair_potential()

double pair_potential ( Utils::Vector3d const d,
Utils::Vector3d const m1,
Utils::Vector3d const m2 
)
inline

Pair potential for two interacting dipoles.

Definition at line 67 of file dipolar_direct_sum_kernels.hpp.

References stream.

Referenced by DipolarDirectSum::long_range_energy_cpu().