module
Chem::VASP::Locpot
Defined in:
chem/formats/vasp/locpot.crClass Method Summary
-
.read(io : IO) : Spatial::Grid
Returns the local potential from io.
-
.read(path : Path | String) : Spatial::Grid
Returns the local potential from path.
-
.read_info(io : IO) : Spatial::Grid::Info
Returns the grid information from io without reading the data.
-
.read_info(path : Path | String) : Spatial::Grid::Info
Returns the grid information from path without reading the data.
-
.read_structure(io : IO) : Structure
Returns the structure from io without reading the data.
-
.read_structure(path : Path | String) : Structure
Returns the structure from path without reading the data.
-
.write(io : IO, grid : Spatial::Grid, struc : Structure) : Nil
Writes a grid to io.
-
.write(path : Path | String, grid : Spatial::Grid, struc : Structure) : Nil
Writes a grid to path.
Class Method Detail
Returns the local potential from path.
Returns the grid information from io without reading the data.
Returns the grid information from path without reading the data.
Returns the structure from io without reading the data.
Equivalent to Poscar.read.
Returns the structure from path without reading the data.
Equivalent to Poscar.read.
Writes a grid to io.
The structure is written in the header.
Raises ArgumentError if the structure's unit cell does not match the grid bounds.
Writes a grid to path.
The structure is written in the header.
Raises ArgumentError if the structure's unit cell does not match the grid bounds.