ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
CoulombP3MState< FloatType, Architecture, FFTConfig > Struct Template Reference

Base class for the electrostatics P3M algorithm. More...

#include <p3m.impl.hpp>

Inheritance diagram for CoulombP3MState< FloatType, Architecture, FFTConfig >:
Collaboration diagram for CoulombP3MState< FloatType, Architecture, FFTConfig >:

Public Types

using value_type = FloatType
using ComplexType = std::complex<value_type>
using memory_space = Kokkos::HostSpace
using execution_space = Kokkos::DefaultHostExecutionSpace
using r_space_layout = FFTConfig::r_space_layout
using k_space_layout = FFTConfig::k_space_layout
Public Types inherited from P3MStateCommon< FloatType, Architecture >
using value_type

Public Member Functions

void init_labels ()
Public Member Functions inherited from P3MStateCommon< FloatType, Architecture >
 P3MStateCommon (P3MParameters &&parameters)
void calc_differential_operator ()
 Calculate the Fourier transformed differential operator.

Public Attributes

std::size_t sum_qpart = 0
 number of charged particles.
double sum_q2 = 0.
 Sum of square of charges.
double square_sum_q = 0.
 square of sum of charges.
p3m_interpolation_cache inter_weights
fft::vector< FloatType > rs_charge_density
 charge density in real-space with halo
fft::vector< ComplexType > ks_charge_density
 charge density in k-space without halo
std::array< fft::vector< FloatType >, 3 > rs_E_fields
 electric fields in real-space with halo
std::array< std::span< ComplexType >, 3 > ks_E_fields
 electric fields in k-space without halo
fft::vector< ComplexType > ks_E_fields_batched
std::array< std::span< FloatType >, 3 > rs_E_fields_no_halo
 electric fields in real-space without halo
fft::vector< FloatType > rs_E_fields_no_halo_batched
p3m_send_mesh< FloatType > halo_comm
std::shared_ptr< P3MFFTBackend< FloatType, FFTConfig > > fft
Kokkos::View< FloatType **, r_space_layout, Kokkos::HostSpace > rs_charge_density_kokkos
Public Attributes inherited from P3MStateCommon< FloatType, Architecture >
P3MParameters params
 P3M base parameters.
P3MLocalMesh local_mesh
 Local mesh geometry information for this MPI rank.
std::array< std::vector< int >, 3 > d_op
 Spatial differential operator in k-space.
std::vector< FloatType > g_force
 Force optimised influence function (k-space).
std::vector< FloatType > g_energy
 Energy optimised influence function (k-space).

Detailed Description

template<typename FloatType, Arch Architecture, class FFTConfig>
struct CoulombP3MState< FloatType, Architecture, FFTConfig >

Base class for the electrostatics P3M algorithm.

Contains a handle to the FFT backend, information about the local mesh, the differential operator, and various buffers.

Definition at line 64 of file p3m.impl.hpp.

Member Typedef Documentation

◆ ComplexType

template<typename FloatType, Arch Architecture, class FFTConfig>
using CoulombP3MState< FloatType, Architecture, FFTConfig >::ComplexType = std::complex<value_type>

Definition at line 67 of file p3m.impl.hpp.

◆ execution_space

template<typename FloatType, Arch Architecture, class FFTConfig>
using CoulombP3MState< FloatType, Architecture, FFTConfig >::execution_space = Kokkos::DefaultHostExecutionSpace

Definition at line 69 of file p3m.impl.hpp.

◆ k_space_layout

template<typename FloatType, Arch Architecture, class FFTConfig>
using CoulombP3MState< FloatType, Architecture, FFTConfig >::k_space_layout = FFTConfig::k_space_layout

Definition at line 71 of file p3m.impl.hpp.

◆ memory_space

template<typename FloatType, Arch Architecture, class FFTConfig>
using CoulombP3MState< FloatType, Architecture, FFTConfig >::memory_space = Kokkos::HostSpace

Definition at line 68 of file p3m.impl.hpp.

◆ r_space_layout

template<typename FloatType, Arch Architecture, class FFTConfig>
using CoulombP3MState< FloatType, Architecture, FFTConfig >::r_space_layout = FFTConfig::r_space_layout

Definition at line 70 of file p3m.impl.hpp.

◆ value_type

template<typename FloatType, Arch Architecture, class FFTConfig>
using CoulombP3MState< FloatType, Architecture, FFTConfig >::value_type = FloatType

Definition at line 66 of file p3m.impl.hpp.

Member Function Documentation

◆ init_labels()

template<typename FloatType, Arch Architecture, class FFTConfig>
void CoulombP3MState< FloatType, Architecture, FFTConfig >::init_labels ( )
inline

Definition at line 101 of file p3m.impl.hpp.

References rs_charge_density, and rs_charge_density_kokkos.

Member Data Documentation

◆ fft

template<typename FloatType, Arch Architecture, class FFTConfig>
std::shared_ptr<P3MFFTBackend<FloatType, FFTConfig> > CoulombP3MState< FloatType, Architecture, FFTConfig >::fft

Definition at line 97 of file p3m.impl.hpp.

◆ halo_comm

template<typename FloatType, Arch Architecture, class FFTConfig>
p3m_send_mesh<FloatType> CoulombP3MState< FloatType, Architecture, FFTConfig >::halo_comm

Definition at line 94 of file p3m.impl.hpp.

◆ inter_weights

template<typename FloatType, Arch Architecture, class FFTConfig>
p3m_interpolation_cache CoulombP3MState< FloatType, Architecture, FFTConfig >::inter_weights

Definition at line 80 of file p3m.impl.hpp.

◆ ks_charge_density

template<typename FloatType, Arch Architecture, class FFTConfig>
fft::vector<ComplexType> CoulombP3MState< FloatType, Architecture, FFTConfig >::ks_charge_density

charge density in k-space without halo

Definition at line 85 of file p3m.impl.hpp.

◆ ks_E_fields

template<typename FloatType, Arch Architecture, class FFTConfig>
std::array<std::span<ComplexType>, 3> CoulombP3MState< FloatType, Architecture, FFTConfig >::ks_E_fields

electric fields in k-space without halo

Definition at line 89 of file p3m.impl.hpp.

◆ ks_E_fields_batched

template<typename FloatType, Arch Architecture, class FFTConfig>
fft::vector<ComplexType> CoulombP3MState< FloatType, Architecture, FFTConfig >::ks_E_fields_batched

Definition at line 90 of file p3m.impl.hpp.

◆ rs_charge_density

template<typename FloatType, Arch Architecture, class FFTConfig>
fft::vector<FloatType> CoulombP3MState< FloatType, Architecture, FFTConfig >::rs_charge_density

charge density in real-space with halo

Definition at line 83 of file p3m.impl.hpp.

Referenced by init_labels().

◆ rs_charge_density_kokkos

template<typename FloatType, Arch Architecture, class FFTConfig>
Kokkos::View<FloatType **, r_space_layout, Kokkos::HostSpace> CoulombP3MState< FloatType, Architecture, FFTConfig >::rs_charge_density_kokkos

Definition at line 99 of file p3m.impl.hpp.

Referenced by init_labels().

◆ rs_E_fields

template<typename FloatType, Arch Architecture, class FFTConfig>
std::array<fft::vector<FloatType>, 3> CoulombP3MState< FloatType, Architecture, FFTConfig >::rs_E_fields

electric fields in real-space with halo

Definition at line 87 of file p3m.impl.hpp.

◆ rs_E_fields_no_halo

template<typename FloatType, Arch Architecture, class FFTConfig>
std::array<std::span<FloatType>, 3> CoulombP3MState< FloatType, Architecture, FFTConfig >::rs_E_fields_no_halo

electric fields in real-space without halo

Definition at line 92 of file p3m.impl.hpp.

◆ rs_E_fields_no_halo_batched

template<typename FloatType, Arch Architecture, class FFTConfig>
fft::vector<FloatType> CoulombP3MState< FloatType, Architecture, FFTConfig >::rs_E_fields_no_halo_batched

Definition at line 93 of file p3m.impl.hpp.

◆ square_sum_q

template<typename FloatType, Arch Architecture, class FFTConfig>
double CoulombP3MState< FloatType, Architecture, FFTConfig >::square_sum_q = 0.

square of sum of charges.

Definition at line 78 of file p3m.impl.hpp.

◆ sum_q2

template<typename FloatType, Arch Architecture, class FFTConfig>
double CoulombP3MState< FloatType, Architecture, FFTConfig >::sum_q2 = 0.

Sum of square of charges.

Definition at line 76 of file p3m.impl.hpp.

◆ sum_qpart

template<typename FloatType, Arch Architecture, class FFTConfig>
std::size_t CoulombP3MState< FloatType, Architecture, FFTConfig >::sum_qpart = 0

number of charged particles.

Definition at line 74 of file p3m.impl.hpp.


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