Skip to content

nuclear.repulsion ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceTurbomole log
idnuclear.repulsion
nameNuclear repulsion energies
pattern\s*nuclear\srepulsion\senergy.*$\s*empirical.*
endPattern\s*nuclear\srepulsion\s\+\sdispersion\scorrection.*
endOffset1
repeat*
xml:basenuclear.repulsion.xml

Input ​

 nuclear repulsion energy                  =    4406.824720361
 empirical dispersive energy correction    =      -0.055658060
 nuclear repulsion + dispersion correction =    4406.769062301 

Output text ​

xml
<comment class="example.output" id="nuclear.repulsion">   
        <module cmlx:templateRef="nuclear.repulsion">
            <scalar dataType="xsd:double" dictRef="cc:nucrepener" units="nonsi:hartree">4406.82472036</scalar>
            <scalar dataType="xsd:double" dictRef="t:empdispcorrection" units="nonsi:hartree">-0.055658060</scalar>
        </module>
    </comment>

Template definition ​

xml
<record>\s*nuclear\srepulsion\senergy\s*=&#123;F,cc:nucrepener&#125;</record>
<record>\s*empirical\sdispersive\senergy\scorrection\s*=&#123;F,t:empdispcorrection&#125;</record>
<record repeat="1" />
<transform process="pullup" xpath=".//cml:scalar" />
<transform process="delete" xpath="./cml:list" />
<transform process="addUnits" xpath=".//cml:scalar" value="nonsi:hartree" />