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

vibreference ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceCP2K log
idvibreference
nameReference geometry energy
pattern\s+VIB\|.*Total energy:.*
endPattern.*
endPattern2~
repeat*
keepfirst
xml:basescf/vibreference.xml

Input

      VIB| REPLICA Nr.    1- Energy and Forces for particle:    1  coordinate: X + DX
      VIB|                                     Total energy:         -17.220767160541

Output text

xml
<comment class="example.output" id="vibreference">
      <module cmlx:templateRef="vibreference">
        <list cmlx:templateRef="reference">
          <scalar dataType="xsd:double" dictRef="cp2k:referenceEnergy" units="nonsi:hartree">-17.220767160541</scalar>
        </list>
      </module>
    </comment>

Template definition

xml
<record id="reference">\s+VIB\|.*Total energy:\s+&#123;E,cp2k:referenceEnergy&#125;\s*</record>
<transform process="addUnits" xpath=".//cml:scalar" value="nonsi:hartree" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" repeat="2" />