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

moments ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceCP2K log
idmoments
nameDipole moment
pattern\s+ELECTRIC/MAGNETIC MOMENTS.*
endPattern\s*X=.*
endOffset1
repeat*
keeplast
xml:baseproperties/moments.xml

Input

       ELECTRIC/MAGNETIC MOMENTS
        Reference Point [Bohr]              0.00000000      0.00000000      0.00000000
        Charges
          Electronic=     -8.00000000    Core=     8.00000000    Total=     0.00000000
        Dipoles are based on the traditional operator.
        Dipole moment [Debye]
          X=  0.7585281E-12 Y=  0.6501670E-11 Z= -0.1831887E+01  Total=      1.8318875

WARNING

Current template has input comments defined but it's output is missing, please notify software developers.

Template definition

xml
<record id="dipole">\s*X=\s+&#123;E,cp2k:dipoleX&#125;\s+Y=\s+&#123;E,cp2k:dipoleY&#125;\s+Z=\s+&#123;E,cp2k:dipoleZ&#125;\s+Total=\s+&#123;E,cp2k:dipoleTotal&#125;\s*</record>
<transform process="addUnits" xpath=".//cml:scalar" value="nonsi2:debye" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" repeat="2" />