ShapeFunctionMesh

class ase2sprkkr.result_files.definitions.sfn.ShapeFunctionMesh(output, index)[source]

Generated combined view of one radial and one Voronoi mesh block.

Class hierarchy

Inheritance diagram of ase2sprkkr.result_files.definitions.sfn.ShapeFunctionMesh


Constructor

__init__(output, index)[source]
property radial
property voronoi
property idx
property npan
property nr
property jrcut
property radial_mesh

The native, unscaled (r, dr) array stored in the file.

property rmesh
property drmesh
property nsfn
property sfn_lm
property sfn
property rmt
property rmtfill
property vol
property nface
property faces
property face_vertices

Vertices of the Voronoi faces, scaled consistently with rmesh.

property panel_boundaries

Radii at the ends of the radial integration panels.

static _index2lm(index)[source]
static _real_sph_harm(m, l, phi, theta)[source]
_shape_function(x, y, z)[source]
to_3d_grid(n=80)[source]

Rebuild the shape function on a cubic grid.

to_2d_grid(plane='xy', n=200, offset=0.0)[source]

Rebuild a planar section of the shape function.

isosurface(level=0.5, n=64)[source]

Return vertices and triangular faces of a reconstructed isosurface.

isosurfaces(levels=5, n=64)[source]

Return reconstructed isosurfaces as (level, vertices, faces).

plot(what='mesh', **kwargs)[source]

Plot the Voronoi mesh, a shape-function section or radial data.

plot_mesh(axis=None, *, show_rmt=True, show_panels=False, facecolor='tab:blue', alpha=0.22, edgecolor='black', filename=None, show=None, dpi=600, latex=None, figsize=(6, 5))[source]

Plot the Voronoi polyhedron and optional radial boundaries.

plot_shape(axis=None, *, n=None, levels=1, level=None, facecolor=None, cmap='viridis', alpha=0.25, edgecolor='none', filename=None, show=None, dpi=600, latex=None, figsize=(6, 5))[source]

Plot isosurfaces of the reconstructed shape function.

plot_slice(axis=None, *, plane='xy', n=200, offset=0.0, level=0.5, levels=31, cmap='viridis', colorbar=True, show_boundary=True, filename=None, show=None, dpi=600, latex=None, figsize=(6, 5))[source]

Plot a planar section through the reconstructed shape function.

plot_radial(axis=None, *, show_panels=True, legend=True, filename=None, show=None, dpi=600, latex=None, figsize=(7, 4))[source]

Plot the radial spherical-harmonic coefficients.