v2DM-DOCI  1.0
CheMPS2::Irreps Class Reference

#include <Irreps.h>

Public Member Functions

 Irreps ()
 Constructor. More...
 
 Irreps (const int nGroup)
 Constructor 2. More...
 
virtual ~Irreps ()
 Destructor. More...
 
bool setGroup (const int nGroup)
 Set the group. More...
 
bool getIsActivated () const
 Whether the group number is already activated. More...
 
int getGroupNumber () const
 Get the group number. More...
 
string getGroupName () const
 Get the name of the group. More...
 
int getNumberOfIrreps () const
 Get the number of irreps for the currently activated group. More...
 
string getIrrepName (const int irrepNumber) const
 Get the name of the irrep with number irrepNumber of the activated group. The irrep with number 0 is always the trivial irrep. More...
 

Static Public Member Functions

static string getGroupName (const int nGroup)
 Get the name of the group corresponding to nGroup. More...
 
static int directProd (const int Irrep1, const int Irrep2)
 Get the direct product of the irreps with numbers Irrep1 and Irrep2: a bitwise XOR for Psi4's conventions. More...
 
static void printAll ()
 Print all info contained in this class. More...
 

Static Private Member Functions

static string getGroupNamePrivate (const int nGroup)
 
static int getNumberOfIrrepsPrivate (const int nGroup)
 
static string getIrrepNamePrivate (const int nGroup, const int nIrrep)
 

Private Attributes

bool isActivated
 
int groupNumber
 
int nIrreps
 

Detailed Description

Irreps class.

Author
Sebastian Wouters sebas.nosp@m.tian.nosp@m.woute.nosp@m.rs@g.nosp@m.mail..nosp@m.com
Date
February 7, 2013

Class containing the irrep conventions and multiplication tables. The program requires Abelian point groups with real character tables, with hence \(I_{\alpha} \otimes I_{\alpha} = I_{trivial}\).

Irrep conventions

The same conventions as in Psi4 (beta5) are used. For convenience, they are listed below:

Symmetry Conventions Irrep Number & Name
Group Number & Name 0 1 2 3 4 5 6 7
0: c1 A
1: ci Ag Au
2: c2 A B
3: cs A' A''
4: d2 A B1 B2 B3
5: c2v A1 A2 B1 B2
6: c2h Ag Bg Au Bu
7: d2h Ag B1g B2g B3g Au B1u B2u B3u

Definition at line 68 of file Irreps.h.

Constructor & Destructor Documentation

CheMPS2::Irreps::Irreps ( )

Constructor.

Definition at line 30 of file Irreps.cpp.

CheMPS2::Irreps::Irreps ( const int  nGroup)

Constructor 2.

Parameters
nGroupThe group number (0 <= nGroup <= 7; else isActivated remains false)

Definition at line 36 of file Irreps.cpp.

CheMPS2::Irreps::~Irreps ( )
virtual

Destructor.

Definition at line 48 of file Irreps.cpp.

Member Function Documentation

static int CheMPS2::Irreps::directProd ( const int  Irrep1,
const int  Irrep2 
)
inlinestatic

Get the direct product of the irreps with numbers Irrep1 and Irrep2: a bitwise XOR for Psi4's conventions.

Parameters
Irrep1The number of the first irrep
Irrep2The number of the second irrep
Returns
The direct product of I1 and I2

Definition at line 117 of file Irreps.h.

+ Here is the caller graph for this function:

string CheMPS2::Irreps::getGroupName ( ) const

Get the name of the group.

Returns
The group name ("error" means not activated)

Definition at line 68 of file Irreps.cpp.

string CheMPS2::Irreps::getGroupName ( const int  nGroup)
static

Get the name of the group corresponding to nGroup.

Parameters
nGroupGroup number
Returns
The group name corresponding to nGroup

Definition at line 74 of file Irreps.cpp.

string CheMPS2::Irreps::getGroupNamePrivate ( const int  nGroup)
staticprivate

Definition at line 80 of file Irreps.cpp.

int CheMPS2::Irreps::getGroupNumber ( ) const

Get the group number.

Returns
The group number (-1 means not activated)

Definition at line 66 of file Irreps.cpp.

+ Here is the caller graph for this function:

string CheMPS2::Irreps::getIrrepName ( const int  irrepNumber) const

Get the name of the irrep with number irrepNumber of the activated group. The irrep with number 0 is always the trivial irrep.

Parameters
irrepNumberThe irrep number
Returns
The irrep name (not activated returns "error1"; wrong number returns "error2")

Definition at line 109 of file Irreps.cpp.

string CheMPS2::Irreps::getIrrepNamePrivate ( const int  nGroup,
const int  nIrrep 
)
staticprivate

Definition at line 119 of file Irreps.cpp.

bool CheMPS2::Irreps::getIsActivated ( ) const

Whether the group number is already activated.

Returns
Whether the group number is already activated

Definition at line 64 of file Irreps.cpp.

int CheMPS2::Irreps::getNumberOfIrreps ( ) const

Get the number of irreps for the currently activated group.

Returns
The number of irreps for the currently activated group (-1 means not activated)

Definition at line 94 of file Irreps.cpp.

+ Here is the caller graph for this function:

int CheMPS2::Irreps::getNumberOfIrrepsPrivate ( const int  nGroup)
staticprivate

Definition at line 100 of file Irreps.cpp.

void CheMPS2::Irreps::printAll ( )
static

Print all info contained in this class.

Definition at line 176 of file Irreps.cpp.

bool CheMPS2::Irreps::setGroup ( const int  nGroup)

Set the group.

Parameters
nGroupNumber from 0 to 7 (7 included)
Returns
Validity of the group number (error returns false)

Definition at line 50 of file Irreps.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

int CheMPS2::Irreps::groupNumber
private

Definition at line 128 of file Irreps.h.

bool CheMPS2::Irreps::isActivated
private

Definition at line 125 of file Irreps.h.

int CheMPS2::Irreps::nIrreps
private

Definition at line 131 of file Irreps.h.


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