10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-04 21:24:00 +01:00

Add singulet and triplet eexcitation type

This commit is contained in:
Mickaël Véril 2020-01-07 11:42:44 +01:00
parent 705bc731bc
commit 1e143b9d16

View File

@ -5,6 +5,8 @@ class excitationTypes {
static get nPis() { return new excitationType(1 << 3, String.raw`n \rightarrow \pi^\star`) }
static get Single() { return new excitationType(1 << 4, "S") }
static get Double() { return new excitationType(1 << 5, "D") }
static get Singulet() { return new excitationType(1 << 6, "1") }
static get Triplet() { return new excitationType(1 << 7, "3") }
// Max bit shifts is 31 because int are int32 So 1 << 31 are -2147483648
static get Others() { return new excitationType(1 << 31, String.raw`\mathrm{Others}`) }
static get All() {
@ -140,6 +142,14 @@ class excitationBase {
}
}
}
switch (final.multiplicity) {
case 1:
this.type.Value=this.type|excitationTypes.Singulet
break;
case 3:
this.type.Value=this.type|excitationTypes.Triplet
break;
}
if (this.type.Value==0) {
this.type.Value=excitationTypes.Others.Value;
}