sisl.Orbital
- class sisl.Orbital(R, q0=0.0, tag='')
Bases:
object
Base class for orbital information.
The orbital class is still in an experimental stage and will probably evolve over some time.
- Parameters
Examples
>>> orb = Orbital(1) >>> orb_tag = Orbital(2, tag='range=2') >>> orb.R == orb_tag.R / 2 True >>> orbq = Orbital(2, 1) >>> orbq.q0 1.
Methods
copy
()Create an exact copy of this object
equal
(other[, psi, radial])Compare two orbitals by comparing their radius, and possibly the radial and psi functions
name
([tex])Return a named specification of the orbital (
tag
)psi
(r, *args, **kwargs)Calculate \(\phi(\mathbf R)\) for Cartesian coordinates
psi_spher
(r, theta, phi, *args, **kwargs)Calculate \(\phi(|\mathbf R|, \theta, \phi)\) for spherical coordinates
radial
(r, *args, **kwargs)Calculate the radial part of the wavefunction \(f(\mathbf R)\)
scale
(scale)Scale the orbital by extending R by
scale
spher
(theta, phi, *args, **kwargs)Calculate the spherical harmonics of this orbital at a given point (in spherical coordinates)
toGrid
([precision, c, R, dtype, atom])Create a Grid with only this orbital wavefunction on it
toSphere
([center])Return a sphere with radius equal to the orbital size
Maxmimum radius of orbital
Initial charge
Named tag of orbital
- property R
Maxmimum radius of orbital
- equal(other, psi=False, radial=False)[source]
Compare two orbitals by comparing their radius, and possibly the radial and psi functions
When comparing two orbital radius they are considered equal with a precision of 1e-4 Ang.
- psi_spher(r, theta, phi, *args, **kwargs)[source]
Calculate \(\phi(|\mathbf R|, \theta, \phi)\) for spherical coordinates
- property q0
Initial charge
- spher(theta, phi, *args, **kwargs)[source]
Calculate the spherical harmonics of this orbital at a given point (in spherical coordinates)
- property tag
Named tag of orbital
- toGrid(precision=0.05, c=1.0, R=None, dtype=<class 'numpy.float64'>, atom=1)[source]
Create a Grid with only this orbital wavefunction on it
- Parameters
precision (float, optional) – used separation in the
Grid
between voxels (in Ang)c (float or complex, optional) – coefficient for the orbital
R (float, optional) – box size of the grid (default to the orbital range)
dtype (numpy.dtype, optional) – the used separation in the
Grid
between voxelsatom (optional) – atom associated with the grid; either an atom instance or something that
Atom(atom)
would convert to a proper atom.