You are viewing the documentation of a previous ioChem-BD version (v4, legacy).ioChem-BD v4 legacy docs.Visit the current documentationCurrent docs
Skip to content

forceeval ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceCP2K log
idforceeval
nameTotal FORCE_EVAL energy
pattern\s+ENERGY\|\s+Total FORCE_EVAL.*
endPattern.*
repeat*
keeplast
endPattern2~
xml:basescf/forceeval.xml

Input

      ENERGY| Total FORCE_EVAL ( QS ) energy [hartree]            -17.220471415460047

Input

      ENERGY| Total FORCE_EVAL ( FIST ) energy [hartree]            0.311524968299281

Input

      ENERGY| Total FORCE_EVAL ( QS ) energy [a.u.]:            -2524.814666925021356

Output text

xml
<comment class="example.output" id="forceeval">
      <module cmlx:templateRef="forceeval">
        <list cmlx:templateRef="energy">
          <list>
            <scalar dataType="xsd:string" dictRef="cp2k:method">QS</scalar>
            <scalar dataType="xsd:double" dictRef="cp2k:forceEvalEnergy" units="nonsi:hartree">-17.220471415460047</scalar>
          </list>
        </list>
      </module>
    </comment>

Template definition

xml
<record id="energy">\s+ENERGY\|\s+Total FORCE_EVAL\s+\(\s+&#123;A,cp2k:method&#125;\s+\)\s+energy\s+\[[a-z.]+\]:?\s+&#123;E,cp2k:forceEvalEnergy&#125;\s*</record>
<transform process="addUnits" xpath=".//cml:scalar[@dictRef='cp2k:forceEvalEnergy']" value="nonsi:hartree" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" repeat="2" />