Utilities#
- directupsampling.utils.chunks(iterable: Iterable, n: int, fill_none: bool = False) list[source]#
Yield n chunks from an iterable.
- directupsampling.utils.set_volume(atoms: Atoms, volume: float) Atoms[source]#
Set the volume of an Atoms object, keeping the shape of the cell.
Parameters#
- atomsAtoms
ASE Atoms object.
- volumefloat
Volume of the simulation cell.
Returns#
Atoms
- class directupsampling.plot_tools.ExactPhononsPlot(phonons: BasePhonons)[source]#
Bases:
PhononsPlot
- class directupsampling.plot_tools.FEContribPlot(free_energy_contrib: FreeEnergyContrib, max_lines: int = 20)[source]#
Bases:
object
- class directupsampling.plot_tools.FreeEnergySurfacePlot(free_energy_surface: FreeEnergySurface)[source]#
Bases:
object
- class directupsampling.plot_tools.MeshPhononsPlot(phonons: BasePhonons)[source]#
Bases:
PhononsPlot
- class directupsampling.plot_tools.PhononsPlot(phonons: BasePhonons)[source]#
Bases:
object
- class directupsampling.plot_tools.ThermoIntFitPlot(tifit: ThermoIntFit)[source]#
Bases:
object
- directupsampling.plot_tools.plot(obj, **kwargs)[source]#
Plot a directupsampling object.
Returns#
matplotlib.pyplot
- class directupsampling.parallel.MPI[source]#
Bases:
objectWrapper for MPI world object.
Decides at runtime (after all imports) which one to use:
MPI4Py
a dummy implementation for serial runs
- directupsampling.parallel.parcall(function, *args, comm=None, **kwargs)[source]#
Call only on comm master rank.
kwarg :comm: is reserved and not passed to :function:, otherwise args and kwargs are passed.