porereax.angle

Module for sampling bond angles between bonded atoms.

The module provides AngleSampler to sample bond angle histograms for specified atom structures. It supports filtering by specific A-B-C triplets or sampling all angles formed by the central atom B.

Classes

AngleSampler

Sampler class for angles formed by three atoms.

Module Contents

class porereax.angle.AngleSampler(name_out: str, atoms: list, dimension: str, region, process_id: int, atom_lib: dict, masses: dict, num_frames: int, box: numpy.ndarray, system_properties: dict, num_bins: int, angle: str)[source]

Bases: porereax.meta_sampler.AtomSampler

Sampler class for angles formed by three atoms.

sample(frame_id: int, mol_index: dict, mol_bonds: dict, bond_mask: dict, frame: object, bond_enum: object, positions_transformed: numpy.ndarray)[source]

Sample data for the current frame. Must be implemented by subclasses.

join_samplers(num_cores)[source]

Join sampler data from multiple processes.

Parameters:

num_cores (int) – Number of parallel processes used.