9 #ifndef PRO_DISTANCE_IN_MOLECULE_H 10 #define PRO_DISTANCE_IN_MOLECULE_H 66 const int index)
override;
136 const Vec<std::pair<ElPtr,ElPtr>> &pairs);
142 virtual void prepare()
override;
151 virtual void finish()
override;
188 int target_moltype_);
ArrayXXd get_distance_array()
Get computed distances between two atoms in each molecule as a two-dimensional array: each row corres...
const ArrayXXd & get_distance2_array()
Get computed squared distances between two atoms in each molecule as a two-dimensional array: each ro...
ShPtr< Element > ElPtr
An alias for a shared pointer of Element class.
Eigen::Array< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > ArrayXXd
ArrayXXd is an alias for a two-dimensional array of float numbers.
virtual void finish() override
Fill distance2_array with values of distance2_traj.
ProDistanceInMolecule computes atom-to-atom distance in each molecule (also computes square of the di...
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
Vec< RowArrayXd > distance2_traj
ProDistanceInMolecule(const ElPtr &mols, const ElPtr &atoms)
Constructor of ProDistanceInMolecule class for a snapshot of simulation.
This file has a definition of Processor class, where an analysis process is programmed.
Processor analyzes data contained in one or more Generator objects.
virtual void run_impl(const int index) override
Implementation of analysis using an element of generators.
void set_moltype(int target_moltype_)
Specify a molecular type. Only molecules whose type property is the specified type are analyzed...
void set_indices(int index1_in_mol_, int index2_in_mol_)
Specify two atoms in a molecule by zero-based index. Distance between the two atoms is computed for e...
virtual void prepare() override
Resize distance2_traj.