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

State of the p3m methods, the part which applies to both, electrostatic and dipolar p3m. More...

#include <data_struct.hpp>

Inheritance diagram for P3MStateCommon< FloatType, Architecture >:
Collaboration diagram for P3MStateCommon< FloatType, Architecture >:

Public Types

using value_type = FloatType

Public Member Functions

 P3MStateCommon (P3MParameters &&parameters)
void calc_differential_operator ()
 Calculate the Fourier transformed differential operator.

Public Attributes

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 = Arch::CPU>
struct P3MStateCommon< FloatType, Architecture >

State of the p3m methods, the part which applies to both, electrostatic and dipolar p3m.

Definition at line 43 of file data_struct.hpp.

Member Typedef Documentation

◆ value_type

template<typename FloatType, Arch Architecture = Arch::CPU>
using P3MStateCommon< FloatType, Architecture >::value_type = FloatType

Definition at line 44 of file data_struct.hpp.

Constructor & Destructor Documentation

◆ P3MStateCommon()

template<typename FloatType, Arch Architecture = Arch::CPU>
P3MStateCommon< FloatType, Architecture >::P3MStateCommon ( P3MParameters && parameters)
inlineexplicit

Definition at line 46 of file data_struct.hpp.

References local_mesh, and params.

Member Function Documentation

◆ calc_differential_operator()

template<typename FloatType, Arch Architecture = Arch::CPU>
void P3MStateCommon< FloatType, Architecture >::calc_differential_operator ( )
inline

Calculate the Fourier transformed differential operator.

Remark: This is done on the level of n-vectors and not k-vectors, i.e. the prefactor \( 2i\pi/L \) is missing!

Definition at line 67 of file data_struct.hpp.

References calc_p3m_mesh_shift(), d_op, and params.

Member Data Documentation

◆ d_op

template<typename FloatType, Arch Architecture = Arch::CPU>
std::array<std::vector<int>, 3> P3MStateCommon< FloatType, Architecture >::d_op

Spatial differential operator in k-space.

We use an i*k differentiation. TODO: RW: I think this is not the differential operator but the mapping between index in the GLOBAL mesh and the corresponding k-vector with a few pre-factors missing.

Definition at line 61 of file data_struct.hpp.

Referenced by calc_differential_operator().

◆ g_energy

template<typename FloatType, Arch Architecture = Arch::CPU>
std::vector<FloatType> P3MStateCommon< FloatType, Architecture >::g_energy

Energy optimised influence function (k-space).

Definition at line 74 of file data_struct.hpp.

◆ g_force

template<typename FloatType, Arch Architecture = Arch::CPU>
std::vector<FloatType> P3MStateCommon< FloatType, Architecture >::g_force

Force optimised influence function (k-space).

Definition at line 72 of file data_struct.hpp.

◆ local_mesh

template<typename FloatType, Arch Architecture = Arch::CPU>
P3MLocalMesh P3MStateCommon< FloatType, Architecture >::local_mesh

Local mesh geometry information for this MPI rank.

Definition at line 52 of file data_struct.hpp.

Referenced by DipolarP3MState< FloatType, FFTConfig >::make_fft_instance(), DipolarP3MState< FloatType, FFTConfig >::make_mesh_instance(), and P3MStateCommon().

◆ params

template<typename FloatType, Arch Architecture = Arch::CPU>
P3MParameters P3MStateCommon< FloatType, Architecture >::params

P3M base parameters.

Definition at line 50 of file data_struct.hpp.

Referenced by calc_differential_operator(), and P3MStateCommon().


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