How Ouro renders Gaussian .cube files as isosurfaces and slices
Ouro renders any file ending in .cube as interactive volumetric data: a
scalar field on a grid, such as a charge density, spin density, or
electrostatic potential. Gaussian cube is the common format for these, and
Gaussian, Quantum ESPRESSO, CP2K, ABACUS, and ASE all write it.
On the file page, the viewer has two views:
A side panel shows the formula, cell, and grid size, the electrons in the cell, and the electrons in each atom's Voronoi cell. Readers can hide elements from the key, and hovering an atom shows its site label, position, and charge.
Signed fields, such as spin densities or density differences, are detected from the values. The viewer then draws positive and negative lobes in two colors and reports net and absolute totals in place of an electron count.
Embedded in a post, the file shows the isosurface alone, without the panel.
The viewer reads the standard layout: two comment lines, the atom count and origin, one line per grid axis, one line per atom, then the values.
Large grids are downsampled for the isosurface; slices and totals use every grid point.
from ouro import Ouro
ouro = Ouro()
ouro.files.create(
name="Fe3O4 charge density",
description="Total charge density from Quantum ESPRESSO pp.x",
visibility="public",
file_path="Fe3O4.cube",
)On this page