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
TrajectoryObserverTrajectoryObserver.atomsTrajectoryObserver.potential_energiesTrajectoryObserver.kinetic_energiesTrajectoryObserver.total_energiesTrajectoryObserver.forcesTrajectoryObserver.stressesTrajectoryObserver.atom_positionsTrajectoryObserver.cellsTrajectoryObserver.atom_positionsTrajectoryObserver.atomsTrajectoryObserver.cellsTrajectoryObserver.forcesTrajectoryObserver.get_slice()TrajectoryObserver.kinetic_energiesTrajectoryObserver.potential_energiesTrajectoryObserver.save()TrajectoryObserver.stressesTrajectoryObserver.total_energies
get_ase_optimizer()is_ase_optimizer()run_ase()
- matcalc.backend._base module
SimulationResultSimulationResult._asdict()SimulationResult._field_defaultsSimulationResult._fieldsSimulationResult._make()SimulationResult._replace()SimulationResult.energySimulationResult.forcesSimulationResult.kinetic_energySimulationResult.potential_energySimulationResult.stressSimulationResult.structure
- matcalc.backend._lammps module