9 #ifndef PRO_MEAN_SQUARE_DISPLACEMENT_H 10 #define PRO_MEAN_SQUARE_DISPLACEMENT_H 95 const int index)
override;
127 virtual void prepare()
override;
138 virtual void finish()
override;
185 bool without_drift_correction_ =
true);
virtual void run_impl(const int index) override
Implementation of analysis using an element of generators.
void without_drift_correction(bool without_drift_correction_=true)
Disable to correct a drift of center of mass of the simulation system.
ArrayXd mean_square_displacement
void extract_positions(ArrayXXd &positions, const ElPtr &elem)
Extract position vectors from an Element object.
ShPtr< Element > ElPtr
An alias for a shared pointer of Element class.
ProMeanSquareDisplacement(const Vec< ElPtr > &elems)
Constructor of ProMeanSquareDisplacement class.
Eigen::Array< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > ArrayXXd
ArrayXXd is an alias for a two-dimensional array of float numbers.
ArrayXXd displacement2_array
const ArrayXd & get_mean_square_displacement()
Get time series of the mean square displacement as a one-dimensional array. Each element of the array...
virtual void finish() override
Fill displacement2_array with values of displacement2_traj, and calculate mean_square_displacement by...
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
void set_dimension(bool include_x, bool include_y, bool include_z)
Specify dimensions to be considered. By default, the mean square displacement is computed in three di...
This file has a definition of Processor class, where an analysis process is programmed.
Processor analyzes data contained in one or more Generator objects.
ProMeanSquareDisplacement computes mean square displacement (MSD).
Eigen::Array< double, Eigen::Dynamic, 1 > ArrayXd
ArrayXd is an alias for a column array of float numbers.
const ArrayXXd & get_displacement2_array()
Get computed time series of squared displacements from initial position for each target as a two-dime...
Vec< RowArrayXd > displacement2_traj
virtual void prepare() override
Set initial positions and resize displacement2_traj.