moalpha ​
Implementation level ​
| Type | Status |
|---|---|
| CML extraction template | |
| HTML5 representation |
Template attributes ​
| Attribute | Value |
|---|---|
| source | CP2K log |
| id | moalpha |
| name | Alpha orbital eigenvalues |
| pattern | \s+MO\|\s+ALPHA EIGENVALUES AND OCCUPATION NUMBERS |
| endPattern | \s+MO\|\s+Band gap:.* |
| endOffset | 1 |
| xml:base | properties/moalpha.xml |
Input
MO| ALPHA EIGENVALUES AND OCCUPATION NUMBERS AFTER SCF STEP 0
MO|
MO| Index Eigenvalue [a.u.] Eigenvalue [eV] Occupation
MO| 1 -1.223033 -33.280428 1.000000
MO| 2 -0.793720 -21.598231 1.000000
MO| 3 -0.549315 -14.947625 1.000000
MO| 4 -0.512893 -13.956540 1.000000
MO| 5 -0.512893 -13.956540 1.000000
MO| 6 -0.270761 -7.367768 1.000000
MO| 7 -0.270761 -7.367768 1.000000
MO| 8 0.094242 2.564451 0.000000
MO| 9 0.394685 10.739933 0.000000
MO| 10 0.438880 11.942543 0.000000
MO| 11 0.438880 11.942543 0.000000
MO| Sum: 7.000000
MO| E(Fermi): -0.270761 a.u. -7.367768 eV
Output text
xml
<comment class="example.output" id="moalpha">
<module cmlx:templateRef="moalpha">
<list cmlx:templateRef="missingID" />
<list cmlx:templateRef="orbital">
<array dataType="xsd:integer" dictRef="cc:serialNumber" size="11">1 2 3 4 5 6 7 8 9 10 11</array>
<array dataType="xsd:double" dictRef="cp2k:eigenvalueAlpha" size="11" units="nonsi:hartree">-1.211909 -0.750937 -0.497177 -0.497177 -0.493182 -0.250993 -0.250993 0.120084 0.435170 0.447927 0.447927</array>
<array dataType="xsd:double" dictRef="cp2k:eigenvalueAlphaEv" size="11" units="nonsi:electronvolt">-32.977726 -20.434027 -13.528882 -13.528882 -13.420153 -6.829871 -6.829871 3.267663 11.841576 12.188706 12.188706</array>
<array dataType="xsd:double" dictRef="cc:occupationAlpha" size="11">1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 0.000000 0.000000 0.000000 0.000000</array>
</list>
<list cmlx:templateRef="sum">
<scalar dataType="xsd:double" dictRef="cp2k:electronSumAlpha">7.000000</scalar>
</list>
<list cmlx:templateRef="fermi">
<list>
<scalar dataType="xsd:double" dictRef="cp2k:fermiEnergyAlpha">-0.250993</scalar>
<scalar dataType="xsd:double" dictRef="cp2k:fermiEnergyAlphaEv">-6.829871</scalar>
</list>
</list>
<list cmlx:templateRef="gap">
<list>
<scalar dataType="xsd:double" dictRef="cp2k:bandGapAlpha">0.371078</scalar>
<scalar dataType="xsd:double" dictRef="cp2k:bandGapAlphaEv">10.097533</scalar>
</list>
</list>
</module>
</comment>Template definition
xml
<record repeat="3" />
<record id="orbital" repeat="*" makeArray="true">\s+MO\|\s+{I,cc:serialNumber}\s+{E,cp2k:eigenvalueAlpha}\s+{E,cp2k:eigenvalueAlphaEv}\s+{E,cc:occupationAlpha}\s*</record>
<record id="sum">\s+MO\|\s+Sum:\s+{E,cp2k:electronSumAlpha}\s*</record>
<record id="fermi">\s+MO\|\s+E\(Fermi\):\s+{E,cp2k:fermiEnergyAlpha}\s+a\.u\.\s+{E,cp2k:fermiEnergyAlphaEv}\s+eV\s*</record>
<record id="gap">\s+MO\|\s+Band gap:\s+{E,cp2k:bandGapAlpha}\s+a\.u\.\s+{E,cp2k:bandGapAlphaEv}\s+eV\s*</record>
<transform process="addUnits" xpath=".//cml:array[@dictRef='cp2k:eigenvalueAlpha']" value="nonsi:hartree" />
<transform process="addUnits" xpath=".//cml:array[@dictRef='cp2k:eigenvalueAlphaEv']" value="nonsi:electronvolt" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" repeat="3" />