ppap4lmp
0.7.2
|
AddGyrationRadius adds gyration radius to an Element object. More...
#include <add_gyration_radius.h>
Public Member Functions | |
ShPtr< AddGyrationRadius > | with_sqrted (bool add_sqrted_=true) |
Enable to compute gyration radius (by default, only square of gyration radius is computed). 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... | |
Private Attributes | |
bool | add_sqrted = false |
Additional Inherited Members | |
![]() | |
ShPtr< Generator > | ext_generator |
AddGyrationRadius adds gyration radius to an Element object.
This class computes radius of gyration of an Element object (such as one containing data for molecules) from its inertia moment.
About usage in Python, please see pybind::py_add_gyration_radius.
Definition at line 23 of file add_gyration_radius.h.
|
overrideprotectedvirtual |
This method overrides Updater::compute_impl.
Rg^2
: floatRg^2(y+z)
: floatRg^2(z+x)
: floatRg^2(x+y)
: floatRg^2(x)
: floatRg^2(y)
: floatRg^2(z)
: floatRg
: float (optional)Rg(y+z)
: float (optional)Rg(z+x)
: float (optional)Rg(x+y)
: float (optional)Rg(x)
: float (optional)Rg(y)
: float (optional)Rg(z)
: float (optional) mass
: floatI_xx
: floatI_yy
: floatI_zz
: float Implements Updater.
Definition at line 13 of file add_gyration_radius.cpp.
ShPtr< AddGyrationRadius > AddGyrationRadius::with_sqrted | ( | bool | add_sqrted_ = true | ) |
Enable to compute gyration radius (by default, only square of gyration radius is computed).
add_sqrted_ | A boolean, whether gyration radius is computed or not (default is true ). |
Please be careful not to call this method in a multithreading context because it is thread-unsafe.
Definition at line 53 of file add_gyration_radius.cpp.
|
private |
Whether gyration radius (not squared) is computed (default is false
). Note that an average gyration radius should be computed by square rooting an averaged square of the gyration radius, not averaging the gyration radius itself.
Definition at line 30 of file add_gyration_radius.h.