ppap4lmp
0.7.2
|
AddBondAngle adds angle
property to bond-angles, each of them is defined by three consecutive atoms.
More...
#include <add_bond_angle.h>
Public Member Functions | |
AddBondAngle (const ElPtr &elem) | |
Constructor of AddBondAngle class. More... | |
![]() | |
Updater ()=default | |
Constructor of Updater class. More... | |
![]() | |
Updater ()=default | |
Constructor of Updater class. More... | |
void | compute (const ElPtr &elem, const int elementid, Json &data) |
Managing computation to update Element::data. More... | |
void | remove_from_skippable_elementids (const int elementid) |
Remove Element::elementid from skippable_elementids. More... | |
const ShPtr< Generator > & | get_ext_generator () |
Get ext_generator of this object. More... | |
Protected Member Functions | |
virtual void | compute_impl (Json &data, JsonToVoidFunc check_required_keys, JsonToBoolFunc check_optional_keys) override |
This method overrides Updater::compute_impl. More... | |
![]() | |
virtual void | compute_body (const ElPtr &elem, Json &data) override |
Compute properties and add them to Element::data given as a mutable reference. More... | |
![]() | |
virtual void | compute_common (const ElPtr &elem, Json &data) |
Common part of compute_body. More... | |
Additional Inherited Members | |
![]() | |
ShPtr< Generator > | ext_generator |
AddBondAngle adds angle
property to bond-angles, each of them is defined by three consecutive atoms.
An object of this class computes angles defined by three consecutive atoms, (in other words, angles between two adjacent bonds), and then adds these angles (in degree) to the bond-angles as their angle
property. The object of this class takes an Element object for atoms as ext_generator, and is appended to an Element object for bond- angles using its Element::append_updater.
About usage in Python, please see pybind::py_add_bond_angle.
Definition at line 28 of file add_bond_angle.h.
AddBondAngle::AddBondAngle | ( | const ElPtr & | elem | ) |
Constructor of AddBondAngle class.
elem | An Element object containing atoms data. This parameter is assigned to ext_generator.
|
Definition at line 18 of file add_bond_angle.cpp.
|
overrideprotectedvirtual |
This method overrides Updater::compute_impl.
angle
: float atom1-id
: integeratom2-id
: integeratom3-id
: integer Implements Updater.
Definition at line 26 of file add_bond_angle.cpp.