You are viewing the pre-release documentation of the upcoming ioChem-BD v5 release.ioChem-BD v5 pre-release docs.What's newWhat's newยทVisit the v4 legacy documentationv4 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" />