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

thermostat ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceCP2K log
idthermostat
nameThermostat
pattern\s+THERMOSTAT\|\s+Thermostat information.*
endPattern\s+THERMOSTAT\|\s+End of thermostat.*
endOffset1
repeat*
keepfirst
xml:basemd/thermostat.xml

Input

      THERMOSTAT| Thermostat information for PARTICLES
      THERMOSTAT| Type of thermostat            Canonical Sampling/Velocity Rescaling
      THERMOSTAT| CSVR time constant [fs]                                   50.000000
      THERMOSTAT| Initial kinetic energy                           0.000000000000E+00
      THERMOSTAT| End of thermostat information for PARTICLES

Output text

xml
<comment class="example.output" id="thermostat">
      <module cmlx:templateRef="thermostat">
        <list cmlx:templateRef="type">
          <scalar dataType="xsd:string" dictRef="cp2k:thermostatType">Canonical Sampling/Velocity Rescaling</scalar>
        </list>
      </module>
    </comment>

Template definition

xml
<record id="type">\s+THERMOSTAT\|\s+Type of thermostat\s+&#123;X,cp2k:thermostatType&#125;\s*</record>
<transform process="delete" xpath=".//cml:list[count(*)=0]" repeat="2" />