ppap4lmp  0.7.2
py_pro_time_correlation_in_molecule.cpp
Go to the documentation of this file.
1 
9 
11 {
12  py::class_<ProTimeCorrelationInMolecule,PyProcessor<ProTimeCorrelationInMolecule>,Processor,ShPtr<ProTimeCorrelationInMolecule>>(m, "ProTimeCorrelationInMolecule")
13  .def(py::init<const Vec<std::pair<ElPtr,ElPtr>> &>())
14  .def("set_indices", &ProTimeCorrelationInMolecule::set_indices)
15  .def("set_moltype", &ProTimeCorrelationInMolecule::set_moltype)
16  .def(
17  "get_coefficients_array",
19  .def(
20  "get_time_correlation",
22 }
void set_indices(int index1_in_mol_, int index2_in_mol_)
Specify two atoms in a molecule by zero-based index. Time correlation function of a vector between th...
const ArrayXXd & get_coefficients_array()
Get a two-dimensional array containing computed time correlation coefficients of vectors connecting t...
const ArrayXd & get_time_correlation()
Get an averaged time correlation function of atom-to-atom vector; each pair of atoms is in the same m...
void set_moltype(int target_moltype_)
Specify a molecular type. Only molecules whose type property is the specified type are analyzed...
void py_pro_time_correlation_in_molecule(py::module &m)
Bind ProTimeCorrelationInMolecule class to Python.
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
Definition: std.h:27
Processor analyzes data contained in one or more Generator objects.
Definition: processor.h:18
This file is for binding ProTimeCorrelationInMolecule class to Python.
std::shared_ptr< T > ShPtr
ShPtr is an alias for shared pointer.
Definition: std.h:16