Skip to content

energy3 ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceVASP outcar
idenergy3
nameEnergy section 3
pattern\s*E-fermi\s:.*
endPattern.*
repeat*
xml:baseenergy3.xml

Input ​

 E-fermi :  -0.1238     XC(G=0):  -6.5267     alpha+bet : -6.4535       

Output text ​

xml
<comment class="example.output" id="energy2">
        <module cmlx:templateRef="energy3" id="energy3">
            <scalar dataType="xsd:double" dictRef="v:efermi" units="nonsi:electronvolt">-0.1238</scalar>
        </module> 
    </comment>

Template definition ​

xml
<record>\s*E\-fermi\s:&#123;F,v:efermi&#125;.*</record>
<transform process="pullup" xpath=".//cml:scalar" />
<transform process="delete" xpath=".//cml:list" />
<transform process="addUnits" xpath=".//cml:scalar[@dictRef='v:efermi']" value="nonsi:electronvolt" />