thermostat ​
Implementation level ​
| Type | Status |
|---|---|
| CML extraction template | |
| HTML5 representation |
Template attributes ​
| Attribute | Value |
|---|---|
| source | CP2K log |
| id | thermostat |
| name | Thermostat |
| pattern | \s+THERMOSTAT\|\s+Thermostat information.* |
| endPattern | \s+THERMOSTAT\|\s+End of thermostat.* |
| endOffset | 1 |
| repeat | * |
| keep | first |
| xml:base | md/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+{X,cp2k:thermostatType}\s*</record>
<transform process="delete" xpath=".//cml:list[count(*)=0]" repeat="2" />