mod_qeq_feature_calculator¶
Implements the QEqFeatureCalculator
Author: Moritz R. Schaefer
Dependencies¶
Module Variables¶
-
QEQ_CHARGE_FILE_NAME: character -
QEQ_FEATURE_DERIVATIVE_FILE_NAME: character -
QEQ_SCALING_FILE_NAME: character -
QEQ_FEAT_NAME: character– Constant for the name of the feature handled by the `QEqFeatureCalculator`.
Derived Types Summary¶
| Name | Description |
|---|---|
QEqFeatureCalculator |
Procedures Summary¶
| Name | Type | Description |
|---|---|---|
constructor_from_file |
Function | |
eval_qeq_feature_calculator |
Subroutine |
Derived Types Details¶
type QEqFeatureCalculator¶
Components
-
feat_name: character– Name of the global feature map that is handled by this `GlobalFeatureCalculator`. – Inherited from GlobalFeatureCalculator -
read_feature: logical– Flag to indicate whether the global features should be read from disk instead of being computed. Handled by the `evaluate` routine. – Inherited from GlobalFeatureCalculator -
read_feature_derivative: logical– Flag to indicate whether the global feature derivatives should be read from disk instead of being computed. Handled by the `evaluate` routine. – Inherited from GlobalFeatureCalculator -
computed_feature: logical– Flag to indicate whether the global features have been computed/read from disk. This is set to `.true.` after the `evaluate` routine has been called and the global features have been computed or read from disk. – Inherited from GlobalFeatureCalculator -
computed_feature_derivative: logical– Flag to indicate whether the global feature derivatives have been computed/read from disk. This is set to `.true.` after the `evaluate` routine has been called and the global feature derivatives have been computed or read from disk. – Inherited from GlobalFeatureCalculator -
atomic_numbers_set: logical– Flag to indicate whether the atomic numbers have been set. – Inherited from GlobalFeatureCalculator -
use_old_scaling: logical– Flag to indicate whether the old scaling method should be used. – Inherited from GlobalFeatureCalculator -
desc: type(GlobalAtomicDescriptor) (dim: (:))– Type which stores the global/extra features and their derivatives for each structure. Dimensions(num_global_feature_maps, num_structures). – Inherited from GlobalFeatureCalculator -
num_features: integer– The number of global features per atom that at are stored/computed/read by this type. – Inherited from GlobalFeatureCalculator -
statistics: type(GlobalFeatureStatistics)– Type holding the scaling_factor and centering_subtrahend. It also provides the necessary routines to compute, store, readn and write the statistics. – Inherited from GlobalFeatureCalculator -
qeq: type(TrainingChargeEquilibrator)
Type-Bound Procedures
| Name | Attributes | Binding |
|---|---|---|
| initialize | public | ⇒ init_global_feature_calculator |
| reset | public | ⇒ reset_global_feature_calculator |
| write_feature_to_file | public | ⇒ write_feature_to_file |
| write_feature_derivative_to_file | public | ⇒ write_feature_derivative_to_file |
| pack | public | ⇒ pack_all⇒ pack_one |
| pack_all | public | ⇒ pack_all |
| pack_one | public | ⇒ pack_one |
| pack_derivatives | public | ⇒ pack_all_deriv⇒ pack_one_deriv |
| pack_all_deriv | public | ⇒ pack_all_deriv |
| pack_one_deriv | public | ⇒ pack_one_deriv |
| read_feature_from_file | public | ⇒ read_feature_from_file |
| read_feature_derivative_from_file | public | ⇒ read_feature_derivative_from_file |
| compute_statistics | public | ⇒ compute_statistics |
| set_features_from_flat_array | public | ⇒ set_features_from_flat_array |
| allocate_atomic_list | public | ⇒ allocate_atomic_list |
| free_feature_derivatives | public | ⇒ free_feature_derivatives |
| prepare_evaluate_parent | public | ⇒ prepare_evaluate_parent |
| get_full_file_path_feature | public | ⇒ get_full_file_path_feature |
| get_full_file_path_feature_derivative | public | ⇒ get_full_file_path_feature_derivative |
| get_atomic_number | public | ⇒ get_atomic_number |
| evaluate | public | ⇒ eval_qeq_feature_calculator |
Inherits
Interface Details¶
interface QEqFeatureCalculator¶
Procedure Details¶
function constructor_from_file¶
function constructor_from_file( &
lines, &
id_committee, &
num_committee_members &
)
Arguments
-
lines: character (dim: (:)) [in] -
id_committee: integer [in] -
num_committee_members: integer [in]
Called By
subroutine eval_qeq_feature_calculator¶
subroutine eval_qeq_feature_calculator( &
self, &
calc_q, &
calc_dq_dr, &
calc_coulomb_matrix, &
struct, &
idx_struct, &
sigma, &
prec, &
total_charge, &
chi, &
dchi_dr, &
dhardness_dr, &
hardness &
)
Arguments
-
self: class(QEqFeatureCalculator) [inout] -
calc_q: logical [in] -
calc_dq_dr: logical [in] -
calc_coulomb_matrix: logical [in] -
struct: type(Structure) [in] -
idx_struct: integer [in] -
sigma: real(DP) (dim: (struct%num_atoms)) [in]– Standard deviation of gaussian charge densities. -
prec: real(DP) [in]– Requested precision for electrostatic properties. -
total_charge: real(DP) [in]– The desired sum of all atomic charges. Must only be given if properties are not read from file or already precomputed. -
chi: real(DP) (dim: (struct%num_atoms)) [in]– Electronegativity of all atoms. Must only be given if properties are not read from file or already precomputed. -
dchi_dr: real(DP) (dim: (3,struct%num_atoms,struct%num_atoms)) [in]– Derivative of the electronegativities `chi` with respect to the atomic positions of all other atoms in the system. -
dhardness_dr: real(DP) (dim: (3,struct%num_atoms,struct%num_atoms)) [in]– Derivative of the hardness with respect to the atomic positions of all other atoms in the system. This is only relevant if the hardness was predicted by an environmnet-dependent model like a HDNN. For an elemental hardness, this term is 0.0 . -
hardness: real(DP) (dim: (struct%num_atoms)) [in]– Hardnesses values for all atoms. Must only be given if properties are not read from file or already precomputed.
Called By