matcalc.backend package
Provides various backends of running simulations.
- run_pes_calc(*arg, **kwargs) SimulationResult [source]
Executes the potential energy surface (PES) calculation using the appropriate backend.
This function determines the backend to use for the PES calculation based on the environment variable MATCALC_BACKEND. If the variable is set to “ASE” (case-insensitive) or is not explicitly provided, the ASE backend is used. Otherwise, the LAMMPS backend is selected. The function then forwards the arguments and keyword arguments to the respective backend function for execution.
- Parameters:
arg (tuple) – Variable-length positional arguments passed to the backend calculation function.
kwargs (dict) – Arbitrary keyword arguments passed to the backend calculation function.
- Returns:
The result of the potential energy surface calculation performed by the selected backend.
- Return type:
Submodules
- matcalc.backend._ase module
TrajectoryObserver
TrajectoryObserver.atoms
TrajectoryObserver.potential_energies
TrajectoryObserver.kinetic_energies
TrajectoryObserver.total_energies
TrajectoryObserver.forces
TrajectoryObserver.stresses
TrajectoryObserver.atom_positions
TrajectoryObserver.cells
TrajectoryObserver.atom_positions
TrajectoryObserver.atoms
TrajectoryObserver.cells
TrajectoryObserver.forces
TrajectoryObserver.get_slice()
TrajectoryObserver.kinetic_energies
TrajectoryObserver.potential_energies
TrajectoryObserver.save()
TrajectoryObserver.stresses
TrajectoryObserver.total_energies
get_ase_optimizer()
is_ase_optimizer()
run_ase()
- matcalc.backend._base module
SimulationResult
SimulationResult._asdict()
SimulationResult._field_defaults
SimulationResult._fields
SimulationResult._make()
SimulationResult._replace()
SimulationResult.energy
SimulationResult.forces
SimulationResult.kinetic_energy
SimulationResult.potential_energy
SimulationResult.stress
SimulationResult.structure
- matcalc.backend._lammps module