ampsci
c++ program for high-precision atomic structure calculations of single-valence systems
Public Member Functions | Public Attributes | Friends | List of all members
AtomData::NonRelConfig

Stores non-relativistic single-electron config: {n, l, number}. More...

#include <AtomData.hpp>

Inherits qip::Comparison< NonRelConfig >, and qip::Arithmetic< NonRelConfig >.

Public Member Functions

constexpr NonRelConfig (int in_n=0, int in_l=-1, int in_num=0)
 
std::string symbol () const
 Returns symbol (e.g., 1s2 or 5p3)
 
bool ok () const
 Checks if consistent (l>n etc.)
 
double frac () const
 Filling fraction (accounting for spin) = num/[2*(2l+1)].
 
NonRelConfigoperator+= (const NonRelConfig &rhs)
 Provides addition and subtraction: adds 'num' iff n and l same.
 
NonRelConfigoperator-= (const NonRelConfig &rhs)
 

Public Attributes

int n
 
int l
 
int num
 

Friends

bool operator== (const NonRelConfig &lhs, const NonRelConfig &rhs)
 Provides comparitor overloads. Compares n first, then l.
 
bool operator< (const NonRelConfig &lhs, const NonRelConfig &rhs)
 

Detailed Description

Stores non-relativistic single-electron config: {n, l, number}.


The documentation for this struct was generated from the following files: