ppap4lmp  0.7.2
py_pro_mean_square_displacement.cpp
Go to the documentation of this file.
1 
8 #include "py_pro_mean_square_displacement.h"
9 
11 {
12  py::class_<ProMeanSquareDisplacement,PyProcessor<ProMeanSquareDisplacement>,Processor,ShPtr<ProMeanSquareDisplacement>>(m, "ProMeanSquareDisplacement")
13  .def(py::init<const Vec<ElPtr> &>())
14  .def("set_dimension", &ProMeanSquareDisplacement::set_dimension)
15  .def(
16  "without_drift_correction", &ProMeanSquareDisplacement::without_drift_correction,
17  py::arg("without_drift_correction_") = false)
18  .def(
19  "get_displacement2_array",
21  .def(
22  "get_mean_square_displacement",
24 }
void without_drift_correction(bool without_drift_correction_=true)
Disable to correct a drift of center of mass of the simulation system.
const ArrayXd & get_mean_square_displacement()
Get time series of the mean square displacement as a one-dimensional array. Each element of the array...
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
Definition: std.h:27
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...
Processor analyzes data contained in one or more Generator objects.
Definition: processor.h:18
void py_pro_mean_square_displacement(py::module &m)
Bind ProMeanSquareDisplacement class to Python.
std::shared_ptr< T > ShPtr
ShPtr is an alias for shared pointer.
Definition: std.h:16
const ArrayXXd & get_displacement2_array()
Get computed time series of squared displacements from initial position for each target as a two-dime...