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

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" />