.. index:: pair: struct; gpr::AtomsConfiguration .. _doxid-structgpr_1_1_atoms_configuration: struct gpr::AtomsConfiguration ============================== .. toctree:: :hidden: Overview ~~~~~~~~ Stores configurations of all atoms in the system. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct AtomsConfiguration { // fields :ref:`Coord` :ref:`positions`; :ref:`FieldMatrixU8` :ref:`is_frozen`; :ref:`FieldMatrixIdx` :ref:`id`; :ref:`FieldMatrixi` :ref:`atomicNrs`; Eigen::VectorXd :ref:`atomic_masses`; :ref:`FieldMatrixIdx` :ref:`type`; :ref:`AtomsPositionAndType` :ref:`atoms_froz_active`; :ref:`AtomsPositionAndType` :ref:`atoms_froz_inactive`; :ref:`AtomsPositionAndType` :ref:`atoms_mov`; :ref:`FieldMatrixi` :ref:`pairtype`; :ref:`Index_t` :ref:`n_pt` = 0; std::vector<:ref:`Index_t`> :target:`pair_type_parent`; :ref:`Index_t` :ref:`n_base_pt` = 0; double :ref:`cell`[9] = {0., 0., 0., 0., 0., 0., 0., 0., 0.}; double :target:`pair_cutoff` = 0.0; double :ref:`pair_cutoff_width` = 0.0; bool :target:`evict_frozen` = false; :ref:`Index_t` :ref:`nn_frozen` = 0; bool :target:`nn_auto` = true; // methods void :ref:`seedNearestNeighbourFromActive`(); void :ref:`assignFromField`(const :ref:`FieldMatrixd`& field); void :target:`clear`(); void :target:`clearDistribution`(); void :target:`copy`(const AtomsConfiguration& other); :ref:`Index_t` :target:`countMovingAtoms`(); }; .. _details-structgpr_1_1_atoms_configuration: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Stores configurations of all atoms in the system. Fields ------ .. index:: pair: variable; positions .. _doxid-structgpr_1_1_atoms_configuration_1aedde18ff99c6b8606f67bdf8347fdc02: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Coord` positions Positions of all atoms in the system. .. index:: pair: variable; is_frozen .. _doxid-structgpr_1_1_atoms_configuration_1a9438946161c97bf330f6772d39d60631: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`FieldMatrixU8` is_frozen Indicates whether atom is frozen or not. .. index:: pair: variable; id .. _doxid-structgpr_1_1_atoms_configuration_1aaf0c8485baa997ab37cc1ff5b770bc0b: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`FieldMatrixIdx` id ID of each atom (we do not use it). .. index:: pair: variable; atomicNrs .. _doxid-structgpr_1_1_atoms_configuration_1a64c76804a67bc75b71cb679857ed03b7: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`FieldMatrixi` atomicNrs Atomic Number of each atom. .. index:: pair: variable; atomic_masses .. _doxid-structgpr_1_1_atoms_configuration_1aedf047583c194cb4698d483a85478293: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::VectorXd atomic_masses Per-atom input masses; empty selects unit masses. .. index:: pair: variable; type .. _doxid-structgpr_1_1_atoms_configuration_1ae845c507add1f71c297139b2d08db3d3: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`FieldMatrixIdx` type Type of each atom. .. index:: pair: variable; atoms_froz_active .. _doxid-structgpr_1_1_atoms_configuration_1abc6bf5a258279eb1fc013baa3c1a835c: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`AtomsPositionAndType` atoms_froz_active Info on active frozen atoms. .. index:: pair: variable; atoms_froz_inactive .. _doxid-structgpr_1_1_atoms_configuration_1a8427e1c6874c5a6115f62dc1305575b0: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`AtomsPositionAndType` atoms_froz_inactive Info on inactive frozen atoms. .. index:: pair: variable; atoms_mov .. _doxid-structgpr_1_1_atoms_configuration_1ad5da475351a8fea4243178d3288a3d72: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`AtomsPositionAndType` atoms_mov Info on moving atoms. .. index:: pair: variable; pairtype .. _doxid-structgpr_1_1_atoms_configuration_1a8b49e3f4dad7586c4ab24df86eb77af0: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`FieldMatrixi` pairtype Pairtype indices for pairs of atomtypes (n_at x n_at). Active pairtypes are indexed as 0,1,2,...,n_pt-1. Inactive pairtypes are given index -1. .. index:: pair: variable; n_pt .. _doxid-structgpr_1_1_atoms_configuration_1ac2ea26741c3d6a697fbebd6843fd20fb: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Index_t` n_pt = 0 Number of active pairtypes Base pair type of every pair type when the pair types refine a coarser typing (environment sub-types of the element-and-role types); empty when every pair type stands on its own. .. index:: pair: variable; n_base_pt .. _doxid-structgpr_1_1_atoms_configuration_1ad30be1956c2e3f24536df3e54d652ef4: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Index_t` n_base_pt = 0 Number of base pair types (0: none). ASE-style 3x3 cell, row-major lattice vectors a, b, c. All zeros is an isolated molecule: :ref:`Sexpat ` pair vectors stay on the Cartesian difference. A nonzero cell wraps through the LODE minimage mi\_\* ABI. .. index:: pair: variable; cell .. _doxid-structgpr_1_1_atoms_configuration_1a11e5d8f21ab319fbd67e554a8c121fec: .. ref-code-block:: cpp :class: doxyrest-title-code-block double cell[9] = {0., 0., 0., 0., 0., 0., 0., 0., 0.} Zero retains the unbounded inverse-distance kernel. Positive values use a C2 switching shell; zero width selects min(1 A, cutoff / 5). .. index:: pair: variable; pair_cutoff_width .. _doxid-structgpr_1_1_atoms_configuration_1a45658826220ae74c2a5d32453b141889: .. ref-code-block:: cpp :class: doxyrest-title-code-block double pair_cutoff_width = 0.0 Active-frozen-set policy (config options; default monotonic radius). evict_frozen returns active atoms that leave actdist_fro to the inactive set (non-monotonic radius window). nn_frozen, when > 0, keeps the nn_frozen frozen atoms nearest the moving atoms (a fixed-size set) and takes precedence over the radius rule. .. index:: pair: variable; nn_frozen .. _doxid-structgpr_1_1_atoms_configuration_1a47988ee14892f76d330aafe294dcc200: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Index_t` nn_frozen = 0 Default policy: after the initial radius activation, fix the active set at that size and maintain it with the nearest-neighbour rule (seeds nn_frozen from the radius-activated count). Set false for the pure radius rule (monotonic, or eviction when evict_frozen). No effect when there are no frozen atoms (the count is zero) or nn_frozen/evict_frozen are set explicitly. Methods ------- .. index:: pair: function; seedNearestNeighbourFromActive .. _doxid-structgpr_1_1_atoms_configuration_1a54aa501ae3da4961fb960e187bb6832c: .. ref-code-block:: cpp :class: doxyrest-title-code-block void seedNearestNeighbourFromActive() Seed the fixed-N nearest-neighbour set from the current active (radius-activated) frozen count. Call once after the initial radius activation. No-op unless nn_auto is set and neither an explicit nn_frozen nor eviction was requested, and when there are no active frozen atoms (molecular systems). .. index:: pair: function; assignFromField .. _doxid-structgpr_1_1_atoms_configuration_1aa6762b340244102406342c61532ddcc1: .. ref-code-block:: cpp :class: doxyrest-title-code-block void assignFromField(const :ref:`FieldMatrixd`& field) Extract data from a 5-column *field*.