l101.isotope2

Implementation level

Type

Status

CML extraction template

image1

HTML5 representation

image2

Template attributes

Attribute

Value

source

Gaussian log

id

l101.isotope2

pattern

\s*Atom.*$\s*IAtWgt.*

endPattern

\s*Generating.*

endPattern2

\s*$\s*

endPattern3

\s*Leave\sLink.*

endPattern4

~

endPattern5

\s*(NMagM|AtZNuc)\=.*$\s*$\s+((?!Atom).)*

endOffset

1

xml:base

l101/l101.isotope2.xml

Input

                           Isotopes and Nuclear Properties:
(Nuclear quadrupole moments (NQMom) in fm**2, nuclear magnetic moments (NMagM)
 in nuclear magnetons)

 Atom         1           2           3           4           5           6           7           8           9          10
IAtWgt=         103           1          12          16          31          31          16          16          16          12
AtmWgt= 102.9048000   1.0078250  12.0000000  15.9949146  30.9737634  30.9737634  15.9949146  15.9949146  15.9949146  12.0000000
NucSpn=           1           1           0           0           1           1           0           0           0           0
AtZEff=-229.5000000  -1.0000000  -3.9000000  -6.0000000-180.0000000-180.0000000  -6.0000000  -6.0000000  -6.0000000  -3.9000000
NQMom=    0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000
NMagM=   -0.0884000   2.7928460   0.0000000   0.0000000   1.1316000   1.1316000   0.0000000   0.0000000   0.0000000   0.0000000

 Atom        11          12          13          14          15          16          17          18          19          20
IAtWgt=          12           1           1          12          12          12          12          12          12          12
AtmWgt=  12.0000000   1.0078250   1.0078250  12.0000000  12.0000000  12.0000000  12.0000000  12.0000000  12.0000000  12.0000000
NucSpn=           0           1           1           0           0           0           0           0           0           0
AtZEff=  -3.9000000  -1.0000000  -1.0000000  -3.9000000  -3.9000000  -3.9000000  -3.9000000  -3.9000000  -3.9000000  -3.9000000
NQMom=    0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000
NMagM=    0.0000000   2.7928460   2.7928460   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000

 Atom        21          22          23          24          25          26          27          28          29          30
IAtWgt=          12          12          12          12          12          12          12          12          12          12
AtmWgt=  12.0000000  12.0000000  12.0000000  12.0000000  12.0000000  12.0000000  12.0000000  12.0000000  12.0000000  12.0000000
NucSpn=           0           0           0           0           0           0           0           0           0           0
AtZEff=  -3.9000000  -3.9000000  -3.9000000  -3.9000000  -3.9000000  -3.9000000  -3.9000000  -3.9000000  -3.9000000  -3.9000000
NQMom=    0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000
NMagM=    0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000   0.0000000

 Atom        31
IAtWgt=          12
AtmWgt=  12.0000000
NucSpn=           0
AtZEff=  -3.9000000
NQMom=    0.0000000
NMagM=    0.0000000

Output text

 1<comment class="example.output" id="l101.isotope2">
 2      <module cmlx:lineCount="31" cmlx:templateRef="l101.isotope2">
 3           <array dataType="xsd:integer" size="31" dictRef="x:x" cmlx:templateRef="atom">1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31</array>
 4           <array dataType="xsd:integer" size="31" dictRef="x:x" cmlx:templateRef="iatwgt">103 1 12 16 31 31 16 16 16 12 12 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12</array>
 5           <array dataType="xsd:double" size="31" dictRef="x:x" cmlx:templateRef="atmwgt">102.9048 1.007825 12.0 15.9949146 30.9737634 30.9737634 15.9949146 15.9949146 15.9949146 12.0 12.0 1.007825 1.007825 12.0 12.0 12.0 12.0 12.0 12.0 12.0 12.0 12.0 12.0 12.0 12.0 12.0 12.0 12.0 12.0 12.0 12.0</array>
 6           <array dataType="xsd:integer" size="31" dictRef="x:x" cmlx:templateRef="nucspn">1 1 0 0 1 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</array>
 7           <array dataType="xsd:double" size="31" dictRef="x:x" cmlx:templateRef="atzeff">-229.5 -1.0 -3.9 -6.0 -180.0 -180.0 -6.0 -6.0 -6.0 -3.9 -3.9 -1.0 -1.0 -3.9 -3.9 -3.9 -3.9 -3.9 -3.9 -3.9 -3.9 -3.9 -3.9 -3.9 -3.9 -3.9 -3.9 -3.9 -3.9 -3.9 -3.9</array>
 8           <array dataType="xsd:double" size="31" dictRef="x:x" cmlx:templateRef="nqmom">0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0</array>
 9      </module>
10  </comment>

Template definition

 1<templateList>  <template id="l101.isotope2" pattern="\s*Atom.*" repeat="*" endPattern="\s*NMagM\=.*" endOffset="1">    <record id="atom">\s*Atom {1_10I,x:x}</record>    <record id="iatwgt">\s*IAtWgt={1_10I,x:x}</record>    <record id="atmwgt">\s*AtmWgt={1_10F12.7,x:x}</record>    <record id="nucspn">\s*NucSpn={1_10I,x:x}</record>    <record id="atzeff">\s*AtZEff={1_10F12.7,x:x}</record>    <record id="nqmom">\s*NQMom={1_10F12.7,x:x}</record>    <record id="nmagm">\s*NMagM={1_10F12.7,x:x}</record>
 2    </template>
 3  </templateList>
 4<transform process="joinArrays" xpath=".//cml:list[@cmlx:templateRef='atom']/cml:array" />
 5<transform process="joinArrays" xpath=".//cml:list[@cmlx:templateRef='iatwgt']/cml:array" />
 6<transform process="joinArrays" xpath=".//cml:list[@cmlx:templateRef='atmwgt']/cml:array" />
 7<transform process="joinArrays" xpath=".//cml:list[@cmlx:templateRef='nucspn']/cml:array" />
 8<transform process="joinArrays" xpath=".//cml:list[@cmlx:templateRef='atzeff']/cml:array" />
 9<transform process="joinArrays" xpath=".//cml:list[@cmlx:templateRef='nqmom']/cml:array" />
10<transform process="joinArrays" xpath=".//cml:list[@cmlx:templateRef='nmagm']/cml:array" />
11<transform process="pullupSingleton" xpath=".//cml:list" />
12<transform process="delete" xpath=".//cml:module[not(cml:array)]" />
13<transform process="pullup" xpath=".//cml:array" />
14<transform process="delete" xpath=".//cml:module[not(cml:array)]" />
15<transform process="delete" xpath=".//cml:list[count(*)=0]" />
16<transform process="delete" xpath=".//cml:list[count(*)=0]" />