internal
Introduced in 0.99
Synopsis

Construct Hamiltonians of internal interactions.

F = internal(SpinSystem)
F = internal(SpinSystem,iSpins)
Description

This function provides Hamiltonian matrices of internal interaction of the spin system described by the structure SpinSystem. If only SpinSystem is given, all internal interactions are summed up, otherwise only those of the spins indicated by iSpins are returned.

Internal interactions for this function are all interaction of a spin ''with itself'', i.e. all zero field terms of the pure electron and the nuclear quadrupole interaction of all nuclei

[eqn]

Remember that if SpinSystem.D is given, all [eqn] parameters in SpinSystem are ignored!

Examples

For an electron-nuclear system AB, internal(AB,1) returns the electronic zero field interactions and internal(AB,2) the quadrupole term of the nucleus. See also the examples in the sections on zfield and nquad.

See also

eeint, hfine, nquad, sham, zeeman, zfield