ampsci
High-precision calculations for one- and two-valence atomic systems
AtomData::NonRelConfig

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

#include <AtomData.hpp>

+ Inheritance diagram for AtomData::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}.

Member Function Documentation

◆ symbol()

std::string AtomData::NonRelConfig::symbol ( ) const

Returns symbol (e.g., 1s2 or 5p3)

◆ ok()

bool AtomData::NonRelConfig::ok ( ) const

Checks if consistent (l>n etc.)

◆ frac()

double AtomData::NonRelConfig::frac ( ) const

Filling fraction (accounting for spin) = num/[2*(2l+1)].

◆ operator+=()

NonRelConfig & AtomData::NonRelConfig::operator+= ( const NonRelConfig rhs)

Provides addition and subtraction: adds 'num' iff n and l same.

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const NonRelConfig lhs,
const NonRelConfig rhs 
)
friend

Provides comparitor overloads. Compares n first, then l.


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