PSCF v1.4.0

ShiftMove shifts field. More...

#include <ShiftMove.h>

Inheritance diagram for Pscf::Rpc::ShiftMove< D >:
Pscf::Rp::ShiftMove< D, Types< D > >

Public Member Functions

 ShiftMove (McSimulator< D > &simulator)
 Constructor.
Public Member Functions inherited from Pscf::Rp::ShiftMove< D, Types< D > >
void readParameters (std::istream &in) override
 Read body of parameter file block.
void setup () override
 Setup before the beginning of each simulation run.

Protected Member Functions

void shiftFields (IntVec< D > const &shift)
 Compute and store shifted w fields.
Protected Member Functions inherited from Pscf::Rp::ShiftMove< D, Types< D > >
 ShiftMove (typename Types< D >::McSimulator &simulator)
 Constructor.
 ~ShiftMove ()=default
 Destructor.
void attemptMove () override
 Attempt move that translates all w fields.
void shiftField (Array< double > &out, Array< double > const &in, IntVec< D > shift, IntVec< D > dimensions) const
 Compute a shifted version of a field.

Additional Inherited Members

Protected Attributes inherited from Pscf::Rp::ShiftMove< D, Types< D > >
DArray< typename Types< D >::RField > w_
 Shifted field configurations.

Detailed Description

template<int D>
class Pscf::Rpc::ShiftMove< D >

ShiftMove shifts field.

See also
Manual Page.

Definition at line 33 of file /fts/montecarlo/ShiftMove.h.

Constructor & Destructor Documentation

◆ ShiftMove()

template<int D>
Pscf::Rpc::ShiftMove< D >::ShiftMove ( McSimulator< D > & simulator)

Constructor.

Parameters
simulatorparent McSimulator

Definition at line 27 of file ShiftMove.cpp.

Member Function Documentation

◆ shiftFields()

template<int D>
void Pscf::Rpc::ShiftMove< D >::shiftFields ( IntVec< D > const & shift)
protectedvirtual

Compute and store shifted w fields.

On return, shifted values of fields obtained from system().w() for all monomer types are stored in the w_ member array.

Parameters
shiftvector of integer shift values (# of grid points)

Implements Pscf::Rp::ShiftMove< D, Types< D > >.

Definition at line 35 of file ShiftMove.cpp.

References Pscf::Rp::ShiftMove< D, Types< D > >::shiftField(), and Pscf::Rp::ShiftMove< D, Types< D > >::w_.


The documentation for this class was generated from the following files: