Skip to content

parameters ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceADF log
idparameters
nameModel parameters
pattern\s*DENSITY\sFUNCTIONAL\sPOTENTIAL.*
endPattern\s*$\s*
endPattern2\s*SOLVATION\s*
endOffset0
repeat*
xml:baseinit/modelparameters/parameters.xml

Input ​

 DENSITY FUNCTIONAL POTENTIAL (scf)
    LDA:                               VWN                                      
    Gradient Corrections:              Becke88 Perdew86                        == Not Default ==

 SPIN  (restricted / unrestr.)
    Molecule:                          Restricted                               

 OTHER ASPECTS
    Relativistic Corrections:          scalar (ZORA,SAPA)                       *** SPECIAL ***

    Nuclear Charge Density Model:      Point Charge Nuclei                                                                                                                                                                                     
    Core Treatment:                    Frozen Orbital(s)                        

    Electric Field:                    ---                                      

    Hyperfine or Zeeman Interaction:   ---                                          

Output text ​

xml
<comment class="example.output" id="parameters">       
        <module cmlx:lineCount="17" cmlx:templateRef="parameters">
          <scalar id="method" dictRef="cc:method" dataType="xsd:string">DFT</scalar>
          <list cmlx:lineCount="3" cmlx:templateRef="scf">
            <scalar dataType="xsd:string" dictRef="cc:functional">VWN</scalar>
            <scalar dataType="xsd:string" dictRef="cc:functional">Becke88 Perdew86</scalar>
          </list>
          <list cmlx:lineCount="3" cmlx:templateRef="spin">
            <scalar dataType="xsd:string" dictRef="cc:spinMolecule">Restricted</scalar>
            <scalar dataType="xsd:string" dictRef="cc:spinFragments">Restricted</scalar>
          </list>
          <list cmlx:lineCount="9" cmlx:templateRef="other"> OTHER ASPECTS 
            <scalar dataType="xsd:string" dictRef="a:relcor">scalar (ZORA,SAPA)</scalar>
            <scalar dataType="xsd:string" dictRef="a:densityMode">Point Charge Nuclei</scalar>
            <scalar dataType="xsd:string" dictRef="a:coretreat">Frozen Orbital(s)</scalar>
           </list>           
        </module>
    </comment>

Template definition ​

xml
<templateList>  <template id="scf" pattern="\s*DENSITY\sFUNCTIONAL\sPOTENTIAL\s\(scf\).*" endPattern="\s*">    <record repeat="1" />    <record id="functional">.*:&#123;X,cc:functional&#125;</record>    <record id="gradient">\s*Gradient\sCorrections:\s+&#123;X,cc:functional&#125;\s*\=\=\s*Not Default\s*\=\=\s*</record>    <transform process="addChild" xpath="." position="1" elementName="cml:scalar" id="method" dictRef="cc:method" value="DFT" />
        </template>  <template id="spin" pattern="\s*SPIN.*" endPattern="\s*" endPattern2="~">    <record repeat="1" />    <record id="molecule">\s*Molecule:\s*&#123;A,cc:spinMolecule&#125;.*</record>    <templateList>      <template pattern="\s*Fragments:.*" endPattern=".*" endPattern2="~">        <record id="fragments">\s*Fragments:\s*&#123;A,cc:spinFragments&#125;.*</record>
                </template>           
            </templateList>    <transform process="pullup" xpath=".//cml:scalar[@dictRef='cc:spinFragments']" />
        </template>  <template id="other" pattern="\s*OTHER\sASPECTS.*" endPattern="~">    <templateList>      <template pattern="\s*Relativistic\sCorrections.*" endPattern=".*" endPattern2="~">        <record>\s*Relativistic\sCorrections:&#123;X,a:relcor&#125;\*\*\*\s*SPECIAL\s*\*\*\*\s*</record>
                 </template>      <template pattern="\s*Nuclear\sCharge\sDensity\sModel.*" endPattern=".*" endPattern2="~">        <record>\s*Nuclear\sCharge\sDensity\sModel:&#123;X,a:densityMode&#125;</record>
                 </template>      <template pattern="\s*Core\sTreatment.*" endPattern=".*" endPattern2="~">        <record>\s*Core\sTreatment:&#123;X,a:coretreat&#125;</record>
                 </template>      <template pattern="\s*Electric\sField.*" endPattern=".*" endPattern2="~">        <record>\s*Electric\sField:&#123;X,a:electricField&#125;</record>
                 </template>      <template pattern="\s*Hyperfine\sor\sZeeman\sInteraction.*" endPattern=".*" endPattern2="~">        <record>\s*Hyperfine\sor\sZeeman\sInteraction:&#123;X,a:zeeman&#125;</record>
                 </template>
            </templateList>
        </template>           
    </templateList>
<transform process="moveRelative" xpath=".//cml:scalar[@dictRef='cc:method']" to=".//cml:list" />
<transform process="pullup" xpath=".//cml:scalar" />
<transform process="pullup" xpath=".//cml:module[@cmlx:templateRef='other']/cml:module/cml:scalar" />
<transform process="delete" xpath=".//cml:scalar[text()='---']" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" />
<transform process="delete" xpath=".//cml:module[count(*)=0]" />
<transform process="createList" xpath=".//cml:module" />