diff --git a/manual/v1.1.0/en/cif2x-usersguide.pdf b/manual/v1.1.0/en/cif2x-usersguide.pdf new file mode 100644 index 0000000..05cef9b Binary files /dev/null and b/manual/v1.1.0/en/cif2x-usersguide.pdf differ diff --git a/manual/v1.1.0/en/html/.buildinfo b/manual/v1.1.0/en/html/.buildinfo new file mode 100644 index 0000000..273e637 --- /dev/null +++ b/manual/v1.1.0/en/html/.buildinfo @@ -0,0 +1,4 @@ +# Sphinx build info version 1 +# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. +config: b6e3d37f03c1ca0af00ddc6b7d2e3c74 +tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/manual/v1.1.0/en/html/_sources/cif2x/about/index.rst.txt b/manual/v1.1.0/en/html/_sources/cif2x/about/index.rst.txt new file mode 100644 index 0000000..2c8d16a --- /dev/null +++ b/manual/v1.1.0/en/html/_sources/cif2x/about/index.rst.txt @@ -0,0 +1,86 @@ +**************************************************************** +Introduction +**************************************************************** + +What is cif2x? +---------------------------------------------------------------- + +In recent years, the use of machine learning for predicting material properties and designing substances (known as materials informatics) has gained considerable attention. +The accuracy of machine learning depends heavily on the preparation of appropriate training data. +Therefore, the development of tools and environments for the rapid generation of training data is expected to contribute significantly to the advancement of research in materials informatics. + +Cif2x is a tool that generates input files for first-principles calculations from cif files. +It constructs parts that vary depending on the type of material and computational conditions from crystal structure data, using input parameters as a template. +It is capable of generating multiple input files tailored to specific computational conditions. +Currently, it supports `VASP `_, `Quantum ESPRESSO `_, `OpenMX `_, and `AkaiKKR `_. + +License +---------------------------------------------------------------- + +The distribution of the program package and the source codes for cif2x follow GNU General Public License version 3 (GPL v3) or later. + +Contributors +---------------------------------------------------------------- + +This software was developed by the following contributors. + + - Developers + + - Kazuyoshi Yoshimi (The Instutite for Solid State Physics, The University of Tokyo) + + - Tatsumi Aoyama (The Instutite for Solid State Physics, The University of Tokyo) + + - Yuichi Motoyama (The Instutite for Solid State Physics, The University of Tokyo) + + - Masahiro Fukuda (The Instutite for Solid State Physics, The University of Tokyo) + + - Kota Ido (The Instutite for Solid State Physics, The University of Tokyo) + + - Tetsuya Fukushima (The National Institute of Advanced Industrial Science and Technology (AIST)) + + - Shusuke Kasamatsu (Yamagata University) + + - Takashi Koretsune (Tohoku University) + + - Project Corrdinator + + - Taisuke Ozaki (The Instutite for Solid State Physics, The University of Tokyo) + +Release history +---------------------------------------------------------------- + + ver.1.1.0 + Released on 2024/09/14 + + ver.1.0.1 + Released on 2024/03/31 + + ver.1.0.0 + Released on 2024/03/19 + + ver.1.0-alpha + Released on 2023/12/28 + +Copyright +---------------------------------------------------------------- + +.. only:: html + + |copy| *2023- The University of Tokyo. All rights reserved.* + + .. |copy| unicode:: 0xA9 .. copyright sign + +.. only:: latex + + :math:`\copyright` *2023- The University of Tokyo. All rights reserved.* + + +This software was developed with the support of "Project for advancement of software usability in materials science" of The Institute for Solid State Physics, The University of Tokyo. + +Operating environment +---------------------------------------------------------------- + +This tool was tested on the following platforms: + +- Ubuntu Linux + python3 + diff --git a/manual/v1.1.0/en/html/_sources/cif2x/appendix/index.rst.txt b/manual/v1.1.0/en/html/_sources/cif2x/appendix/index.rst.txt new file mode 100644 index 0000000..9aabd23 --- /dev/null +++ b/manual/v1.1.0/en/html/_sources/cif2x/appendix/index.rst.txt @@ -0,0 +1,47 @@ +.. _sec-cif2x-appendix: + +================================================================ +Extension guide +================================================================ + +Adding modes of Quantum ESPRESSO +---------------------------------------------------------------- + +In order to add supports to modes of Quantum ESPRESSO, the mapping between the modes and the transformation classes should be added to ``create_modeproc()`` function in ``src/cif2x/qe/calc_mode.py``. + +.. code-block:: python + + def create_modeproc(mode, qe): + if mode in ["scf", "nscf"]: + modeproc = QEmode_pw(qe) + else: + modeproc = QEmode_generic(qe) + return modeproc + + +The transformation functionality for each mode is provided as a derived class of ``QEmode_base`` class. This class implements methods ``update_namelist()`` for updating the namelist block, and ``update_cards()`` for generating data of card blocks. +In the current version, two classes are provided: ``QEmode_pw`` class for scf and nscf calculations of pw.x, and ``QEmode_generic`` class for generating output as-is. + +.. code-block:: python + + class QEmode_base: + def __init__(self, qe): + def update_namelist(self, content): + def update_cards(self, content): + + +For the namelist, the transformation class generates values for blank entries from crystal structure data and other sources. It may also force to set values such as the lattice parameters that are determined from the crystal structure data, or those that must be specified consistently with other parameters. The functions are provided for each mode separately. + +For card blocks, a function is provided for each card, and the mapping between the card type and the function is given in the ``card_table`` variable. +The method ``update_cards()`` in the base class picks up and runs the function associated to the card, and updates the content of the card. Of course, a new ``update_cards()`` function may be defined. + +.. code-block:: python + + self.card_table = { + 'CELL_PARAMETERS': generate_cell_parameters, + 'ATOMIC_SPECIES': generate_atomic_species, + 'ATOMIC_POSITIONS': generate_atomic_positions, + 'K_POINTS': generate_k_points, + } + +The functions for cards are gathered in ``src/cif2x/qe/cards.py`` with the function names as ``generate_{card name}``. These functions takes parameters for card blocks as argument, and returns a dictionary containing the card name, the options, and the data field. diff --git a/manual/v1.1.0/en/html/_sources/cif2x/basic-usage.rst.txt b/manual/v1.1.0/en/html/_sources/cif2x/basic-usage.rst.txt new file mode 100644 index 0000000..b30186f --- /dev/null +++ b/manual/v1.1.0/en/html/_sources/cif2x/basic-usage.rst.txt @@ -0,0 +1,123 @@ +Installation and basic usage +================================================================ + +**Prerequisite** + + Input file generator for first-principles calculation ``cif2x`` included in HTP-tools requires the following programs and libraries: + + - python 3.x + - pymatgen module + - ruamel.yaml module + - f90nml module + - qe-tools module + - numpy module + - pandas module + - monty module + - OpenBabel module (optional) + - AkaiKKRPythonUtil module + + For A tool to retrieve crystallographic data from databases ``getcif``, the additional library is required: + + - mp-api module + + +**Official pages** + + - `GitHub repository `_ + +**Downloads** + + cif2x can be downloaded by the following command with git: + + .. code-block:: bash + + $ git clone https://github.com/issp-center-dev/cif2x.git + +**Installation** + + Once the source files are obtained, you can install cif2x by running the following command. The required libraries will also be installed automatically at the same time. + + .. code-block:: bash + + $ cd ./cif2x + $ python3 -m pip install . + + The executable files ``cif2x`` and ``getcif`` will be installed. + You may need to add ``--user`` option next to ``install`` keyword above in case you are not allowed to install packages system-wide. + + AkaiKKRPythonUtil module need to be installed separately. The source package is available from `the repository `_. Then follow the steps below to install the module along with the required seaborn module: + + .. code-block:: bash + + $ git clone https://github.com/AkaiKKRteam/AkaiKKRPythonUtil.git + $ cd ./AkaiKKRPythonUtil/library/PyAkaiKKR + $ python3 -m pip install . + $ python3 -m pip install seaborn + + +**Directory structure** + + :: + + . + |-- LICENSE + |-- README.md + |-- pyproject.toml + |-- docs/ + | |-- ja/ + | |-- en/ + | |-- tutorial/ + |-- src/ + | |-- cif2x/ + | |-- __init__.py + | |-- main.py + | |-- cif2struct.py + | |-- struct2qe.py + | |-- qe/ + | | |-- __init__.py + | | |-- calc_mode.py + | | |-- cards.py + | | |-- content.py + | | |-- qeutils.py + | | |-- tools.py + | |-- struct2vasp.py + | |-- struct2openmx.py + | |-- openmx/ + | | |-- __init__.py + | | |-- vps_table.py + | |-- struct2akaikkr.py + | |-- akaikkr/ + | | |-- make_input.py + | | |-- read_input.py + | | |-- run_cif2kkr.py + | |-- utils.py + | |-- getcif/ + | |-- __init__.py + | |-- main.py + |-- sample/ + + +**Basic usage** + + ``cif2x`` is a tool to generate a set of input files for first-principles calculation software. It takes an input parameter file as a template, and generates parameter items that may vary by materials and calculation conditions from crystallographic data. In the present version, ``cif2x`` supports Quantum ESPRESSO, VASP, OpenMX, and AkaiKKR. + + #. Prepare input parameter file + + First, you need to create an input parameter file in YAML format that describes contents of the input file to be generated for the first-principles calculation software. + + #. Prepare crystal structure files and pseudo-potential files + + The crystal structure data need to be prepared for the target materials. The file format is CIF, POSCAR, xfs, or those supported by pymatgen. + + For Quantum ESPRESSO, the pseudo-potential files and the index file in CSV format need to be placed. Their locations are specified in the input parameter file. + + For VASP, the location of the pseudo-potential files will be specified in a file ``~/.config/.pmgrc.yaml`` or by an environment variable. It may be specified in the input parameter file. + + #. Run command + + Run ``cif2x`` command with the input parameter file and the crystal structure data as arguments. To generate input files for Quantum ESPRESSO, the target option ``-t QE`` should be specified. The option turns to ``-t VASP`` for VASP, ``-t OpenMX`` for OpenMX, and ``-t AkaiKKR`` for AkaiKKR. + + .. code-block:: bash + + $ cif2x -t QE input.yaml material.cif + diff --git a/manual/v1.1.0/en/html/_sources/cif2x/command/index.rst.txt b/manual/v1.1.0/en/html/_sources/cif2x/command/index.rst.txt new file mode 100644 index 0000000..2aa37a0 --- /dev/null +++ b/manual/v1.1.0/en/html/_sources/cif2x/command/index.rst.txt @@ -0,0 +1,56 @@ +Command reference +================================================================ + +cif2x +---------------------------------------------------------------- + + Generate input files for first-principles calculation software + +SYNOPSIS: + + .. code-block:: bash + + cif2x [-v][-q] -t target input_yaml material.cif + cif2x -h + cif2x --version + +DESCRIPTION: + + This program reads an input parameter file specified by ``input_yaml`` and a crystal data file specified by ``material.cif``, and generates a set of input files for first-principles calculation software. In the current version, the supported software includes Quantum ESPRESSO, VASP, and OpenMX. + It takes the following command line options. + + - ``-v`` + + increases verbosity of the runtime messages. When specified multiple times, the program becomes more verbose. + + - ``-q`` + + decreases verbosity of the runtime messages. It cancels the effect of ``-v`` option, and when specified multiple times, the program becomes more quiet. + + - ``-t`` *target* + + specifies the target first-principles calculation software. The supported software for *target* is listed as follows: + + - ``QE``, ``espresso``, ``quantum_espresso``: generates input files for Quantum ESPRESSO. + + - ``VASP``: generates input files for VASP. + + - ``OpenMX``: generates input files for OpenMX. + + - ``AkaiKKR``: generates input files for AkaiKKR. + + - ``input_yaml`` + + specifies an input parameter file in YAML format. + + - ``material.cif`` + + specifies crystal structure data file. It is in CIF (Crystallographic Information Framework) format, or other format supported by pymatgen. + + - ``-h`` + + displays help and exits. + + - ``--version`` + + displays version information. diff --git a/manual/v1.1.0/en/html/_sources/cif2x/filespec/index.rst.txt b/manual/v1.1.0/en/html/_sources/cif2x/filespec/index.rst.txt new file mode 100644 index 0000000..c99d2c5 --- /dev/null +++ b/manual/v1.1.0/en/html/_sources/cif2x/filespec/index.rst.txt @@ -0,0 +1,300 @@ +.. _sec-cif2x-fileformat: + +====================== +File format +====================== + +Input parameter file +====================== + +An input parameter file describes information necessary to generate input files for first-principles calculation software by ``cif2x``. It should be given in YAML format, and consist of the following sections. + + 1. structure section: describes how to handle crystal structure data. + + 2. optional section: describes pseudo-potential files, and symbol definitions for reference feature of YAML. + + 3. tasks section: describes contents of input files. + + +structure +--------- + + ``use_ibrav`` (default value: ``false``) + + This parameter specifies whether ``ibrav`` parameter is used for Quantum ESPRESSO as the input of the crystal structure. When it is set to ``true``, the lattice is transformed to match the convention of Quantum ESPRESSO, and the lattice parameters ``a``, ``b``, ``c``, ``cosab``, ``cosac``, and ``cosbc`` are written to the input file as needed. + + ``tolerance`` (default value: 0.01) + + This parameter specifies the tolerance in the difference between the reconstructed Structure data and the original data when ``use_ibrav`` is set to ``true``. + + ``supercell`` (default value: none) + + This parameter specifies the size of supercell, when it is adopted, in the form of [:math:`n_x`, :math:`n_y`, :math:`n_z`]. + + +optional +-------- +This section contains global settings needed for the first-principles calculation software. The available parameters are described in the corresponding sections below. + +tasks +----- +This section defines contents of the input files. It is organized as a list of blocks, each corresponding to an input file, to allow for generating a set of input files for an input. The terms described in each block are explained in the following. + + + ``mode`` (Quantum ESPRESSO) + + This parameter specifies the type of calculation. In the current version, the supported mode includes ``scf`` and ``nscf`` for pw.x of Quantum ESPRESSO. If an unsupported mode is specified, the settings in ``content`` will be exported as is. + + ``output_file`` (Quantum ESPRESSO) + + This parameter specifies the file name of the output. + + ``output_dir`` + + This parameter specifies the directory name of the output. The default value is the current directory. + + ``content`` + + This parameter describes the content of the output. + For Quantum ESPRESSO, it contains the namelist data (blocks starting from ``&system``, ``&control``, etc.) in ``namelist`` block, and other card data (such as ``K_POINTS``) as individual blocks. Some card data may take parameters. + + ``template`` (Quantum ESPRESSO) + + ``template_dir`` (VASP) + + These parameters specifies the template file and the template directory for the input files, respectively. If they are not given, templates will not be used. The content of the template file is merged with those of ``content``. The entries in the template file will be superseded by those of ``content`` if the entries of the same keys appear both. + + +Specifying parameter set +---------------------------------------- +An input parameter may be given a list or range of parameters. In this case, a separate directory is created for every combination of parameters to store the generated input files. A special syntax ``${...}`` is used to specify the parameter set as follows: + +- a list: ``${[ A, B, ... ]}`` + + a set of parameter values is described as a Python list. Each entry may be a scalar value, or a list of values. + +- a range: ``${range(N)}``, ``${range(start, end, step)}`` + + a range of parameter is given by the keyword ``range``. The former specifies the values from ``0`` to ``N-1``, and the latter from ``start`` to ``end`` with every ``step``. (If ``step`` is omitted, it is assumed to be ``1``.) + + +Parameters for Quantum ESPRESSO +=============================== + +The entries of ``optional`` section and ``content`` part of the ``tasks`` section specific to Quantum ESPRESSO are explained below. +In the current version, ``scf`` mode and ``nscf`` mode of ``pw.x`` are supported. + +optional section +------------------ + + ``pp_file`` + + This parameter specifies the index file in CSV format that relates the element type and the pseudo-potential file. This file contains the following columns: element name, type of pseudo-potential, nexclude, orbitals. An example line is given as: + + .. code-block:: + + Fe,pbe-spn-rrkjus_psl.0.2.1,4,spd + + The name of the pseudo-potential file corresponding to the above example reads + Fe.pbe-spn-rrkjus_psl.0.2.1.UPF . + + ``cutoff_file`` + + This parameter specifies the index file in CSV format that relates the pseudo-potential file and the cutoff values. This file contains the following columns: name of pseudo-potential file, ``ecutwfc`` value, ``ecutrho`` value. + + ``pseudo_dir`` + + This parameter specifies the name of the directory that holds pseudo-potential files. It is used when the cutoff values are obtained from the pseudo-potential files. + It is indenepent from the ``pseudo_dir`` parameter in the input files for Quantum ESPRESSO. + + +content +-------- + + **namelist** + + - The lattice specifications in ``&system`` block will be superseded according to ``use_ibrav`` parameter in the ``structure`` section. + + - ``use_ibrav = false``: + ``ibrav`` is set to ``0``, and the lattice parameters including ``a``, ``b``, ``c``, ``cosab``, ``cosac``, ``cosbc``, ``celldm`` are removed. + + - ``use_ibrav = true``: + ``ibrab`` is set to the index of Bravais lattices obtained from the crystal structure data. The Structure data will be reconstructed to match the convention of Quantum ESPRESSO. + + - ``nat`` (the number of atoms) and ``ntyp`` (the number of element types) will be superseded by the values obtained from the crystal structure data. + + - The cutoff values ``ecutwfc`` and ``ecutrho`` are obtained from the pseudo-potential files if these parameters are left blank. + + **CELL_PARAMETERS** + + - This block will not be generated if ``use_ibrav`` is set to ``true``. Otherwise, the lattice vectors are exported in units of angstrom. + + - The information of the lattice vectors are obtained from the crystal structure data. When the ``data`` field is defined and contains a 3x3 matrix, that value will be used for the set of lattice vectors instead. + + **ATOMIC_SPECIES** + + - This block exports a list of atom species, atomic mass, and the file name of the pseudo-potential data. + + - The information of the atoms are obtained from the crystal structure data. The file names of the pseudo-potential data are referred from the CSV-formatted index file specified by ``pp_list`` parameter. + + - When the ``data`` field is defined and contains the required data, these values will be used instead. + + **ATOMIC_POSITIONS** + + - This block exports the atomic species and their fractional coordinates. + + - When ``ignore_species`` is given to specify an atomic species or a list of species, the values of ``if_pos`` for these species will be set to ``0``. It is used for MD or structure relaxations. + + - When the ``data`` field is defined and contains the required data, these values will be used instead. + + **K_POINTS** + + - This block exports the information of k points. The type of the output is specified by the ``option`` parameter that takes one of the following: + + - ``gamma``: uses :math:`\Gamma` point. + + - ``crystal``: generates a list of k points in mesh pattern. The mesh width is given by the ``grid`` parameter, or derived from the ``vol_density`` or ``k_resolution`` parameters. + + - ``automatic``: generates a mesh of k points. It is given by the ``grid`` parameter, or derived from the ``vol_density`` or ``k_resolution`` parameters. The shift is obtained from the ``kshifts`` parameter. + + - The mesh width is determined in the following order: + + - the ``grid`` parameter, specified by a list of :math:`n_x, n_y, n_z`, or a scalar value :math:`n`. For the latter, :math:`n_x = n_y = n_z = n` is assumed. + - derived from the ``vol_density`` parameter. + - derived from the ``k_resolution`` parameter, whose default value is 0.15. + + - When the ``data`` field is defined and contains the required data, these values will be used. + + +Parameters for VASP +=============================== + +The entries of ``optional`` section and ``content`` part of the ``tasks`` section specific to VASP are explained below. + +optional +-------- + +The type and the location of pseudo-potential files are specified. + +According to pymatgen, the pseudo-potential files are obtained from +``PMG_VASP_PSP_DIR``/*functional*/POTCAR.{element}(.gz) or +``PMG_VASP_PSP_DIR``/*functional*/{element}/POTCAR, +where +``PMG_VASP_PSP_DIR`` points to the directory and it is given in the configuration file +``~/.config/.pmgrc.yaml`` or by the environment variable of the same name. +*functional* refers to the type of the pseudo-potential, whose value is predefined as +``POT_GGA_PAW_PBE``, ``POT_LDA_PAW``, etc. + + + ``pseudo_functional`` + + This parameter specifies the type of the pseudo-potential. The relation to the *functional* value above is defined in the table of pymatgen, for example, by ``PBE`` to ``POT_GGA_PAW_PBE``, or by ``LDA`` to ``POT_LDA_PAW``, or in a similar manner. + + +When the ``pseudo_dir`` parameter is specified, it is used as the directory that holds the pseudo-potential files, ignoring the convention of pymatgen. + + ``psuedo_dir`` + + This parameter specifies the directory that holds the pseudo-potential files. The paths to the pseudo-potential file turn to ``pseudo_dir``/POTCAR.{element}(.gz), or ``pseudo_dir``/{element}/POTCAR. + +tasks +----- + +The template files are assumed to be placed in the directory specified by the ``template_dir`` parameter by the names ``INCAR``, ``KPOINTS``, ``POSCAR``, and ``POTCAR``. The missing files will be ignored. + + + +content +------- + + **incar** + + - This block contains parameters described in the INCAR file + + **kpoints** + + - ``type`` + + The ``type`` parameter describes how KPOINTS are specified. The following values are allowed, with some types accepting parameters. See pymatgen.io.vasp manual for further details. + + - ``automatic`` + + parameter: ``grid`` + + - ``gamma_automatic`` + + parameter: ``grid``, ``shift`` + + - ``monkhorst_automatic`` + + parameter: ``grid``, ``shift`` + + - ``automatic_density`` + + parameter: ``kppa``, ``force_gamma`` + + - ``automatic_gamma_density`` + + parameter: ``grid_density`` + + - ``automatic_density_by_vol`` + + parameter: ``grid_density``, ``force_gamma`` + + - ``automatic_density_by_lengths`` + + parameter: ``length_density``, ``force_gamma`` + + - ``automatic_linemode`` + + parameter: ``division``, ``path_type`` (corresponding to the ``path_type`` parameter of HighSymmKpath.) + + +Parameters for OpenMX +=============================== + +The entries of ``optional`` section and ``content`` part of the ``tasks`` section specific to OpenMX are explained below. + +optional +-------- + + ``data_path`` + + This parameter specifies the name of directory that holds files for pseudo-atomic orbitals and pseudo-potentials. It corresponds to the ``DATA.PATH`` parameter. + +content +-------- + + ``precision`` + + This parameter specifies the set of pseudo-atomic orbitals listed in Tables 1 and 2 of Section 10.6 of the OpenMX manual. It is one of ``quick``, ``standard``, or ``precise``. The default value is ``quick``. + +Parameters for AkaiKKR +=============================== + +The entries of ``optional`` section and ``content`` part of the ``tasks`` section specific to AkaiKKR are explained below. + +optional +-------- + + ``workdir`` + + This parameter specifies the directory in which temporal files are stored. If it is not given, ``/tmp`` or the value of the environment variable ``TMPDIR`` is used. + + +content +-------- + +The ``content`` part contains the input parameters of AkaiKKR. +A blank is written to the input file for an unspecified parameter, to which the default value defined in AkaiKKR will be assumed. +The parameter values listed below are replaced by the values obtained from the crystal structure data. + +- ``brvtyp``, except when it is set to ``aux`` (or a string that contains ``aux``). + +- lattice parameters, ``a``, ``c/a``, ``b/a``, ``alpha``, ``beta``, ``gamma``, ``r1``, ``r2``, ``r3``. + +- type information, ``ntyp``, ``type``, ``ncmp``, ``rmt``, ``field``, ``mxl``, ``anclr``, ``conc``. + +- element information, ``natm``, ``atmicx``, ``atmtyp``. + +For ``rmt`` and ``field``, the values specified in the input parameter file will be used only when they are lists having the same number of elements as ``ntyp``. diff --git a/manual/v1.1.0/en/html/_sources/cif2x/index.rst.txt b/manual/v1.1.0/en/html/_sources/cif2x/index.rst.txt new file mode 100644 index 0000000..b43528b --- /dev/null +++ b/manual/v1.1.0/en/html/_sources/cif2x/index.rst.txt @@ -0,0 +1,16 @@ +**************************************************************** +Input file generator for first-principles calculations (cif2x) +**************************************************************** + + +.. toctree:: + :maxdepth: 2 + :numbered: 2 + + about/index + basic-usage + tutorial/index + command/index + filespec/index + appendix/index + ../getcif/index diff --git a/manual/v1.1.0/en/html/_sources/cif2x/tutorial/index.rst.txt b/manual/v1.1.0/en/html/_sources/cif2x/tutorial/index.rst.txt new file mode 100644 index 0000000..5abdf05 --- /dev/null +++ b/manual/v1.1.0/en/html/_sources/cif2x/tutorial/index.rst.txt @@ -0,0 +1,67 @@ +.. _sec-cif2x-tutorial: + +Tutorial +================================================================ + +The procedure to use the input file generator ``cif2x`` for first-principles calculation software consists of preparing an input parameter file, crystal structure data, and pseudo-potential files, and running the program ``cif2x``. +In the current version, the supported software includes Quantum ESPRESSO, VASP, OpenMX, and AkaiKKR. +In this tutorial, we will explain the steps along a sample for Quantum ESPRESSO in ``docs/tutorial/cif2x``. + + +Prepare an input parameter file +---------------------------------------------------------------- + +An input parameter file describes the content of input files for the first-principles calculation software. +An example is presented below. It is a text file in YAML format that contains options to crystal structure data, and contents of the input file used as an input for the first-principle calculation. See :ref:`file format ` section for the details of specification. + +In YAML format, parameters are given in dictionary form as ``keyword: value``, where ``value`` is a scalar such as a number or a string, or a set of values enclosed in ``[ ]`` or listed in itemized form, or a nested dictionary. + +.. literalinclude:: ../../../../tutorial/cif2x/input.yaml + :language: yaml + + +The input parameter file consists of ``structure``, ``optional``, and ``tasks`` sections. +The ``structure`` section specifies options to the crystal structure data. +The ``optional`` section holds global settings concerning the pseudo-potentials. + +The ``tasks`` section describes inputs for the first-principles calculations. In case of generating multiple files for a series of calculations, the ``tasks`` section takes a list of parameter sets. +For each set, the calculation type is specified by the ``mode`` parameter: ``scf`` and ``nscf`` are supported as modes, as well as arbitrary modes for generic output. + +The content of the output is given in ``content`` section. +The input files of Quantum ESPRESSO are composed of the parts in namelist format of Fortran90 starting from ``&keyword``, and the blocks called cards that start with keywords such as ``K_POINTS`` and end with blank lines. The ``content`` block holds namelist and cards in a form of nested dictionary. +Basically, the specified items are written to the input files as-is, except for several cases. If a keyword is left blank, its value will be obtained form the crystal structure data or other sources. + +Besides, templates of the input files can be used. The content of the file given by the ``template`` keyword is considered as input data along with the entries in ``content`` block. When the entries of the same keywords appear both, those of the input parameter files will be used. Therefore, it is possible to use template files and overwrite some entries by the input parameter file as needed. +In the present example, the file (``scf.in_tmpl``) shown below is read as a template, and the entries on cutoff parameters as well as cards of CELL_PARAMETER, ATOMIC_SPECIES, ATOMIC_POSITIONS, K_POINTS are generated from the crystal structure data and pseudo-potential files. It is noted that the values of ``ecutwfc`` and ``ecutrho`` are overwritten by the empty lines. + +.. literalinclude:: ../../../../tutorial/cif2x/scf.in_tmpl + :language: fortran + + +Generating input files +---------------------------------------------------------------- + +The program ``cif2x`` is executed with the input parameter file (``input.yaml``) and crystal structure data (``Co3SnS2_nosym.cif``) as follows. + +.. code-block:: bash + + $ cif2x -t QE input.yaml Co3SnS2_nosym.cif + +The required pseudo-potential files should be placed in the directory ``./pseudo``, and the index file for the pseudo-potential should be prepared as ``./psudo/pp_psl_pbe_rrkjus.csv``. + +Run ``cif2x`` and a set of input files for Quantum ESPRESSO will be created. The output file is specified by ``output_file`` parameter of the input parameter file, and stored in the directory given by ``output_dir``. In this example, the input file for SCF calculation is created as ``./scf/scf.in``. + + +Specifying parameter sets +---------------------------------------------------------------- + +In some cases, a series of input files should be generated with varying their parameter values. For example, the convergence is examined by modifying the cutoff values or grid resolution of k points. The input parameter can be given a list or a range of values, and the input files for every combination from the choices of parameter values are generated and stored in separate directories. To specify parameter set, a special syntax ``${...}`` is adopted. + +.. code-block:: yaml + + content: + K_POINTS: + option: automatic + grid: ${ [ [4,4,4], [8,8,8], [12,12,12] ] } + +When ``K_POINTS`` is given as above, the input files having the ``grid`` value to be ``[4,4,4]``, ``[8,8,8]``, ``[12,12,12]`` will be generated in the sub-directories, ``4x4x4/``, ``8x8x8/``, ``12x12x12/``, respectively. diff --git a/manual/v1.1.0/en/html/_sources/getcif/about/index.rst.txt b/manual/v1.1.0/en/html/_sources/getcif/about/index.rst.txt new file mode 100644 index 0000000..1f6249f --- /dev/null +++ b/manual/v1.1.0/en/html/_sources/getcif/about/index.rst.txt @@ -0,0 +1,5 @@ +**************************************************************** +Introduction +**************************************************************** + +``getcif`` is a tool to retrieve crystallographic information and other properties of materials from databases. The latest version of getcif provides access to Materials Project database. Users can search database and obtain information by specifying symmetry, composition, or physical properties of materials. diff --git a/manual/v1.1.0/en/html/_sources/getcif/appendix/index.rst.txt b/manual/v1.1.0/en/html/_sources/getcif/appendix/index.rst.txt new file mode 100644 index 0000000..7959517 --- /dev/null +++ b/manual/v1.1.0/en/html/_sources/getcif/appendix/index.rst.txt @@ -0,0 +1,320 @@ +================================================================ +Parameter List +================================================================ + +Search conditions (properties) +---------------------------------------------------------------- + +Table :ref:`getcif-cond-table` summarizes condition terms available in the properties section. + +``getcif`` uses the ``mp-api`` library provided by Materials Project as a client for accessing the database via Materials Project API. The condition terms correspond to the parameters for the ``materials.summary.search`` method of MPRester class in ``mp-api``. (The content of the table is taken and reformatted from the comments of the source file in ``mpi-api``.) + +The types of the parameter values denote as follows: + +- ``str``: a string +- ``List[str]``: a list of strings +- ``str | List[str]``: a string or a list of strings +- ``int``: an integer +- ``bool``: a boolean value (``true`` or ``false``) +- ``Tuple[float,float]``: a pair of two floating point numbers (as a list) +- ``Tuple[int,int]``: a pair of two integers (as a list) +- ``CrystalSystem``: a string representing the crystal system, one of the following: Triclinic, Monoclinic, Orthorhombic, Tetragonal, Trigonal, Hexagonal, Cubic +- ``List[HasProps]``: a list of strings representing the properties defined in ``emmet.core.summary``. The available terms include: + + absorption, + bandstructure, + charge_density, + chemenv, + dielectric, + dos, + elasticity, + electronic_structure, + eos, + grain_boundaries, + insertion_electrodes, + magnetism, + materials, + oxi_states, + phonon, + piezoelectric, + provenance, + substrates, + surface_properties, + thermo, + xas + +- ``Ordering``: a string representing the magnetic ordering, one of the following: FM, AFM, FiM, NM + +A list of the values is described in an indented style or in a comma-separated bracketted style in YAML notation. It is also available that it is described as a space-separated list. + +A ``Tuple`` is used to denote a range of values by ``min`` and ``max``. It is described by a list of two numbers, as well as by a space-separated list as ``min max``. +The following notation is also available: + + ``< max`` + less than or equal to ``max`` + + ``> min`` + more than or equal to ``min`` + + ``min ~ max`` + between ``min`` and ``max`` + + +.. _getcif-cond-table: + +.. list-table:: Search criteria + :widths: 30 20 60 + :header-rows: 1 + + * - Keyword + - Type + - Description + * - band_gap + - Tuple[float,float] + - Minimum and maximum band gap in eV to consider. + * - chemsys + - str | List[str] + - A chemical system, list of chemical systems (e.g., Li-Fe-O, Si-\*, [Si-O, Li-Fe-P]), or single formula (e.g., Fe2O3, Si\*). + * - crystal_system + - CrystalSystem + - Crystal system of material. + * - density + - Tuple[float,float] + - Minimum and maximum density to consider. + * - deprecated + - bool + - Whether the material is tagged as deprecated. + * - e_electronic + - Tuple[float,float] + - Minimum and maximum electronic dielectric constant to consider. + * - e_ionic + - Tuple[float,float] + - Minimum and maximum ionic dielectric constant to consider. + * - e_total + - Tuple[float,float] + - Minimum and maximum total dielectric constant to consider. + * - efermi + - Tuple[float,float] + - Minimum and maximum fermi energy in eV to consider. + * - elastic_anisotropy + - Tuple[float,float] + - Minimum and maximum value to consider for the elastic anisotropy. + * - elements + - List[str] + - A list of elements. + * - energy_above_hull + - Tuple[int,int] + - Minimum and maximum energy above the hull in eV/atom to consider. + * - equilibrium_reaction_energy + - Tuple[float,float] + - Minimum and maximum equilibrium reaction energy in eV/atom to consider. + * - exclude_elements + - List[str] + - List of elements to exclude. + * - formation_energy + - Tuple[int,int] + - Minimum and maximum formation energy in eV/atom to consider. + * - formula + - str | List[str] + - A formula including anonymized formula or wild cards (e.g., Fe2O3, ABO3, Si\*). A list of chemical formulas can also be passed (e.g., [Fe2O3, ABO3]). + * - g_reuss + - Tuple[float,float] + - Minimum and maximum value in GPa to consider for the Reuss average of the shear modulus. + * - g_voigt + - Tuple[float,float] + - Minimum and maximum value in GPa to consider for the Voigt average of the shear modulus. + * - g_vrh + - Tuple[float,float] + - Minimum and maximum value in GPa to consider for the Voigt-Reuss-Hill average of the shear modulus. + * - has_props + - List[HasProps] + - The calculated properties available for the material. + * - has_reconstructed + - bool + - Whether the entry has any reconstructed surfaces. + * - is_gap_direct + - bool + - Whether the material has a direct band gap. + * - is_metal + - bool + - Whether the material is considered a metal. + * - is_stable + - bool + - Whether the material lies on the convex energy hull. + * - k_reuss + - Tuple[float,float] + - Minimum and maximum value in GPa to consider for the Reuss average of the bulk modulus. + * - k_voigt + - Tuple[float,float] + - Minimum and maximum value in GPa to consider for the Voigt average of the bulk modulus. + * - k_vrh + - Tuple[float,float] + - Minimum and maximum value in GPa to consider for the Voigt-Reuss-Hill average of the bulk modulus. + * - magnetic_ordering + - Ordering + - Magnetic ordering of the material. + * - material_ids + - List[str] + - List of Materials Project IDs to return data for. + * - n + - Tuple[float,float] + - Minimum and maximum refractive index to consider. + * - num_elements + - Tuple[int,int] + - Minimum and maximum number of elements to consider. + * - num_sites + - Tuple[int,int] + - Minimum and maximum number of sites to consider. + * - num_magnetic_sites + - Tuple[int,int] + - Minimum and maximum number of magnetic sites to consider. + * - num_unique_magnetic_sites + - Tuple[int,int] + - Minimum and maximum number of unique magnetic sites to consider. + * - piezoelectric_modulus + - Tuple[float,float] + - Minimum and maximum piezoelectric modulus to consider. + * - poisson_ratio + - Tuple[float,float] + - Minimum and maximum value to consider for Poisson's ratio. + * - possible_species + - List[str] + - List of element symbols appended with oxidation states. (e.g. Cr2+,O2-) + * - shape_factor + - Tuple[float,float] + - Minimum and maximum shape factor values to consider. + * - spacegroup_number + - int + - Space group number of material. + * - spacegroup_symbol + - str + - Space group symbol of the material in international short symbol notation. + * - surface_energy_anisotropy + - Tuple[float,float] + - Minimum and maximum surface energy anisotropy values to consider. + * - theoretical + - bool + - Whether the material is theoretical. + * - total_energy + - Tuple[int,int] + - Minimum and maximum corrected total energy in eV/atom to consider. + * - total_magnetization + - Tuple[float,float] + - Minimum and maximum total magnetization values to consider. + * - total_magnetization_normalized_formula_units + - Tuple[float,float] + - Minimum and maximum total magnetization values normalized by formula units to consider. + * - total_magnetization_normalized_vol + - Tuple[float,float] + - Minimum and maximum total magnetization values normalized by volume to consider. + * - uncorrected_energy + - Tuple[int,int] + - Minimum and maximum uncorrected total energy in eV/atom to consider. + * - volume + - Tuple[float,float] + - Minimum and maximum volume to consider. + * - weighted_surface_energy + - Tuple[float,float] + - Minimum and maximum weighted surface energy in J/:math:`m^2` to consider. + * - weighted_work_function + - Tuple[float,float] + - Minimum and maximum weighted work function in eV to consider. + +.. +.. .. list-table:: Unsupported search criteria for the properties section +.. :widths: 30 20 60 +.. :header-rows: 1 +.. +.. * - Keyword +.. - Type +.. - Description +.. * - num_chunks +.. - int +.. - Maximum number of chunks of data to yield. None will yield all possible. +.. * - chunk_size +.. - int +.. - Number of data entries per chunk. +.. * - all_fields +.. - bool +.. - Whether to return all fields in the document. Defaults to True. +.. * - fields +.. - List[str] +.. - List of fields in SearchDoc to return data for. Default is material_id if all_fields is False. +.. + +Data to retrive (fields) +---------------------------------------------------------------- + +The items available for the ``fields`` section for retrieving from the database are listed below. + +.. code:: text + + band_gap + bandstructure + builder_meta + bulk_modulus + cbm + chemsys + composition + composition_reduced + database_IDs + decomposes_to + density + density_atomic + deprecated + deprecation_reasons + dos + dos_energy_down + dos_energy_up + e_electronic + e_ij_max + e_ionic + e_total + efermi + elements + energy_above_hull + energy_per_atom + equilibrium_reaction_energy_per_atom + es_source_calc_id + formation_energy_per_atom + formula_anonymous + formula_pretty + grain_boundaries + has_props + has_reconstructed + homogeneous_poisson + is_gap_direct + is_magnetic + is_metal + is_stable + last_updated + material_id + n + nelements + nsites + num_magnetic_sites + num_unique_magnetic_sites + ordering + origins + possible_species + property_name + shape_factor + shear_modulus + structure + surface_anisotropy + symmetry + task_ids + theoretical + total_magnetization + total_magnetization_normalized_formula_units + total_magnetization_normalized_vol + types_of_magnetic_species + uncorrected_energy_per_atom + universal_anisotropy + vbm + volume + warnings + weighted_surface_energy + weighted_surface_energy_EV_PER_ANG2 + weighted_work_function + xas diff --git a/manual/v1.1.0/en/html/_sources/getcif/command/index.rst.txt b/manual/v1.1.0/en/html/_sources/getcif/command/index.rst.txt new file mode 100644 index 0000000..48ee973 --- /dev/null +++ b/manual/v1.1.0/en/html/_sources/getcif/command/index.rst.txt @@ -0,0 +1,44 @@ +Command reference +================================================================ + +getcif +---------------------------------------------------------------- + + Retrieve crystallographic and other data from databases. + +SYNOPSIS: + + .. code-block:: bash + + getcif [-v][-q] [--dry-run] input_yaml + getcif -h + getcif --version + +DESCRIPTION: + + This program reads an input parameter file specified by ``input_yaml``, and connects to the database to submit a query and obtain the crystallographic data of materials. + It takes the following command line options. + + - ``input_yaml`` + + specifies an input parameter file in YAML format. + + - ``-v`` + + increases verbosity of the runtime messages. When specified multiple times, the program becomes more verbose. + + - ``-q`` + + decreases verbosity of the runtime messages. It cancels the effect of ``-v`` option, and when specified multiple times, the program becomes more quiet. + + - ``--dry-run`` + + displays search parameters and exits without connecting to the database. It allows to confirm the search conditions. This option supersedes the ``dry_run`` parameter in the input file. + + - ``-h`` + + displays help and exits. + + - ``--version`` + + displays version information. diff --git a/manual/v1.1.0/en/html/_sources/getcif/filespec/index.rst.txt b/manual/v1.1.0/en/html/_sources/getcif/filespec/index.rst.txt new file mode 100644 index 0000000..4ae408b --- /dev/null +++ b/manual/v1.1.0/en/html/_sources/getcif/filespec/index.rst.txt @@ -0,0 +1,137 @@ +.. _sec-getcif-fileformat: + +================================ +File format +================================ + +Input parameter file +================================ + +An input parameter file describes information to search for crystallographic and other data from Materials Project database by getcif. It should be given in YAML format, and consist of the following sections. + + #. database section: describes information on the database to connect. + + #. option section: describes output directory and other parameters for command execution. + + #. properties section: describes search conditions. + + #. fields section: describes types of data to be retrieved. + + +database +-------------------------------- + +``target`` + + This parameter specifies the database to connected to. At present this parameter is ignored. + +``api_key_file`` (default value: ``materials_project.key``) + + This parameter specifies a name of a file that contains the API key to access to the database. + The suffix of the file name must be ``.key``. + If the file does not exist or it does not contain a valid value, the API key is obtained from the environment variable ``MP_API_KEY``, or from the parameter ``PMG_MAPI_KEY`` of the pymatgen configuration file in ``~/.config/.pmgrc``. + + The API key file is a text file. A line starting with ``#`` is regarded as a comment. The heading and trailing spaces are ignored. When the file contains more than one line, the API key is taken from the first valid line. + + +option +-------------------------------- + +This section contains global settings needed for the first-principles calculation software. The available parameters are described in the corresponding sections below. + +``output_dir`` (default value: ``""``) + + This parameter specifies the directory name to store the data. The retrieved data are placed in this directory under the subdirectories by the material ID for each material. The default value is the current directory. + +``dry_run`` (default value: ``False``) + + When this parameter is set to True, getcif prints the search conditions and exists without connecting to the database. It is useful to check the content of the query. + +``symprec`` (default value: 0.1) + + This parameter specifies the tolerance in calculating the symmetry of a crystal structure when the structure data are written to a CIF file. By default, 0.1 is specified. When ``symprec`` is set to 0.0, it is treated as if ``symprec`` is unspecified, in which case a CIF file is generated without considering symmetry. + + ``symprec`` is a parameter that specifies the tolerance used to determine the symmetry of a crystal structure. When calculating the symmetry of a crystal structure, it is essential to consider the slight displacements of atomic positions and the precision of numerical calculations. ``symprec`` controls the allowable range of these displacements and serves as a threshold for deciding whether a symmetry operation should be applied. + + If ``symprec`` is set to a smaller value (e.g., 0.01), the symmetry determination becomes more stringent, and even minor displacements in the crystal structure may prevent the application of symmetry operations. This can result in the identification of a lower-symmetry space group. Conversely, if ``symprec`` is set to a larger value (e.g., 1.0), the symmetry determination is more lenient, allowing small displacements to be ignored, which may lead to the recognition of a higher-symmetry space group. + + When the ``symmetry`` field is specified in the fields section, the symmetry information determined using the default ``symprec=0.1`` in the Materials Project is obtained and written to a text file (``symmetry``). + + +properties +-------------------------------- + +This section defines the search conditions. +The conditions such as the element types, the crystal symmetry, or the values of physical properties are specified in the ``keyword: value`` format. They are treated as AND condition. +The available terms, based on the Materials Project API, conform to the parameters of +the ``materials.summary.search`` method in the mp-api library. The list of terms are summarized in the Appendix, and can be seen by ``getcif --help``. + +The format of the parameter values is shown below. It follows the YAML specification with several extension for brief description. + +- a number, a string + + describe as-is. + +- a boolean value + + describe as ``true`` or ``false``. + +- a list of numbers or strings + + describe in the indented style (block style) or in the comma-separated list enclosed by the bracket (flow style) in YAML notation. + It is also available that it is described as a space-separated list, for example: + + .. code:: yaml + + element: Sr Ti + +- a range of numerical value + + described as a list of two numbers such as ``[ min, max ]``, or a pair of two numbers separated by a space as ``min max``. The following formats are also available. + + ``<= max`` + less than or equal to ``max``. + + ``< max`` + less than ``max``. (For a real number, it is equivalent to ``<= max``. For an integer, it is treated as ``<= max-1``.) + + ``>= min`` + more than or equal to ``min``. + + ``> min`` + more than ``min``. (For a real number, it is equivalent to ``>= min``. For an integer, it is treated as ``>= min+1``.) + + ``min ~ max`` + between ``min`` and ``max``. + + N.B.: + + - A space must be placed between the symbol and the number. + + - Due to the YAML syntax that the symbol ``">"`` at the beginning of a term is treated as a special character, ``> min`` and ``>= min`` should be enclosed by quotes as ``"> min"`` and ``">= min"``, respectively. + + - In list notations, ``<= max`` and ``>= min`` are denoted as ``[ None, max ]`` and ``[ min, None ]``, respectively. + + +- wild card symbols + + The term ``formula`` accepts wild card symbols ``*`` for elements. In this case, the whole value is enclosed by ``" "``. For example, + + .. code:: yaml + + formula: "**O3" + + for :math:`ABO_3`-type materials. + + +fields +-------------------------------- + +This section defines the types of data to be retrieved. +A list of types is described in the YAML format, or as a space-sparated strings. In the latter format, it can be given in multiple-line format using the "|" notation of YAML. + +The available types of data conform to the ``field`` parameter of the Materials Project API. They are listed in the Appendix, and can be viewd by ``getcif --help``. + +The types ``material_id`` and ``formula_pretty`` are retrieved automatically. + +The obtained data are placed in the directory specified by ``output_dir`` parameter under the subdirectories of the material_id for each material. Each item is stored as a separate file of the item name. The crystal structure data (``structure``) is stored in a file ``structure.cif`` in CIF format. diff --git a/manual/v1.1.0/en/html/_sources/getcif/index.rst.txt b/manual/v1.1.0/en/html/_sources/getcif/index.rst.txt new file mode 100644 index 0000000..30bd063 --- /dev/null +++ b/manual/v1.1.0/en/html/_sources/getcif/index.rst.txt @@ -0,0 +1,14 @@ +**************************************************************** +A tool to retrieve crystallographic data from databases (getcif) +**************************************************************** + + +.. toctree:: + :maxdepth: 2 + :numbered: 2 + + about/index + tutorial/index + command/index + filespec/index + appendix/index diff --git a/manual/v1.1.0/en/html/_sources/getcif/tutorial/index.rst.txt b/manual/v1.1.0/en/html/_sources/getcif/tutorial/index.rst.txt new file mode 100644 index 0000000..b595f21 --- /dev/null +++ b/manual/v1.1.0/en/html/_sources/getcif/tutorial/index.rst.txt @@ -0,0 +1,114 @@ +.. _sec-getcif-tutorial: + +Tutorial +================================================================ + +In this tutorial, the procedure to use the database query tool ``getcif`` is described for searching and obtaining crystallographic information from databases for the materials science. +It consists of getting an API key, preparing an input parameter file, and running the getcif program. +We will explain the steps along an example of searching and obtaining information for ABO3-type materials provided in the ``docs/tutorial/getcif`` directory. + +Getting an API key +---------------------------------------------------------------- + +In order to access the Materials Project database via API, users need to register to the Materials Project and obtain an API key. +Visit the Materials Project website `https://next-gen.materialsproject.org `_, create an account and do Login. An API key is automatically generated on registration and shown in the user dashboard. The API key should be kept safe and not shared with others. + +The API key is made available to getcif by one of the following ways: + + (a) storing in the pymatgen configuration file by typing in as follows: + + .. code:: bash + + $ pmg config --add PMG_MAPI_KEY + + or editing the file ``~/.config/.pmgrc`` to include the following: + + .. code:: bash + + PMG_MAPI_KEY: + + (b) setting to an environment variable by: + + .. code:: bash + + $ MP_API_KEY="" + $ export MP_API_KEY + + (c) storing the API key to a file located in the directory where getcif is run. + The default value of the file name is ``materials_project.key``. Otherwise, it is given in the input parameter file. The file name must end with ``.key``. + + .. code:: yaml + + database: + api_key_file: materials_project.key + + Comment: it will be recommended to exclude files with ``.key`` as a suffix from version control system. (e.g. for Git, add ``*.key`` in ``.gitignore`` file.) + + +Prepare an input parameter file +---------------------------------------------------------------- + +An input parameter file describes search conditions and data items to retrieve from databases. + +An example is presented below. It is a text file in YAML format that contains information for accessing the database, search conditions, and types of data to obtain. +See :ref:`file format ` section for the details of specification. + +In YAML format, parameters are given in dictionary form as ``keyword: value``, where ``value`` is a scalar such as a number or a string, or a set of values enclosed in ``[ ]`` or listed in itemized form, or a nested dictionary. +For the search conditions and data fields, a list may be given by a space-separated items without brackets as a special notation. + +.. literalinclude:: ../../../../tutorial/getcif/input.yaml + :language: yaml + +The input parameter file consists of ``database``, ``option``, ``properties``, and ``fields`` sections. +The ``database`` section describes settings about connecting to databases. +In the example, ``target`` is set to Materials Project, though this term is not considered at present. ``api_key`` can be used to set the API key. The key may also be set in the pymatgen configuration file or in the environment variable. The latter is assumed in the tutorial. + +The ``option`` section describes optional settings for the command execution. +``output_dir`` specifies the directory to place the obtained data. The default is the current directory. If ``dry_run`` is set to ``true``, getcif does not connect to the database; instead, it just prints the search conditions and exits. ``dry_run`` may be specified in the command-line option. + +The ``properties`` section describes search conditions. They are given in the form of ``keyword: value`` and treated as AND conditions. +In the example, the search condition is specified to find materials with band gap less than or equal to 1.0, stable insulator, having composition formula of ABO3 (where A and B are arbitrary species), that belong to the space group ``Pm-3m`` (perovskite). +The ``band_gap`` takes a pair of values for the lower and upper limits, as well as the description such as ``< 1.0``. +The available terms for specifying search conditions are listed in the Appendix. + +The ``fields`` section describes the data items to obtain. It is given as a YAML list, or a space-sparated list. +``structure`` specifies the crystal structure data that will be stored in CIF format. +``band_gap`` specifies the value of band gap, and ``symmetry`` specifies the information on the symmetry. ``material_id`` that refers to the index of material data in the Materials Project, and ``formula_pretty`` that refers to the composition formula are automatically obtained. +The available items are listed in the Appendix, or can be found in the help message of getcif command. + +Obtaining data +---------------------------------------------------------------- + +The program ``getcif`` is executed with the input parameter file (``input.yaml``) as follows. + +.. code-block:: bash + + $ getcif input.yaml + +Then it connects to the Materials Project database, and obtains the data that match the specified conditions. +The summary including the material IDs, the composition formulas, and other data items is printed to the standard output as follows. + +.. literalinclude:: ../../../../tutorial/getcif/output_log.txt + :language: text + +The obtained data are placed in the directory specified by ``output_dir`` with the subdirectories of the material ID for each material. +In this example, seven subdirectories with names from mp-3163 to mp-977455 are created within ``result`` directory, and each subdirectory contains the following files: + + - band_gap + the value of band gap + + - formula + the composition formula (that corresponds to the field ``formula_pretty``) + + - structure.cif + the crystal structure data in CIF format + + - symmetry + the information about symmetry + +If an option ``--dry-run`` is added as a command-line option to ``getcif``, +the program prints the search condition as follows, and exits. +It will be useful for checking the search parameters. + +.. literalinclude:: ../../../../tutorial/getcif/output_dryrun.txt + :language: text diff --git a/manual/v1.1.0/en/html/_sources/index.rst.txt b/manual/v1.1.0/en/html/_sources/index.rst.txt new file mode 100644 index 0000000..0176a5c --- /dev/null +++ b/manual/v1.1.0/en/html/_sources/index.rst.txt @@ -0,0 +1,20 @@ +.. HTP-tools documentation master file, created by + sphinx-quickstart on Fri Jun 30 11:02:31 2023. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +Cif2x Users Guide +===================================== + +.. toctree:: + :maxdepth: 2 + :caption: Contents: + + cif2x/index + +.. Indices and tables +.. ================== + +.. * :ref:`genindex` +.. * :ref:`modindex` +.. * :ref:`search` diff --git a/manual/v1.1.0/en/html/_static/alabaster.css b/manual/v1.1.0/en/html/_static/alabaster.css new file mode 100644 index 0000000..55f9cb1 --- /dev/null +++ b/manual/v1.1.0/en/html/_static/alabaster.css @@ -0,0 +1,708 @@ +@import url("basic.css"); + +/* -- page layout ----------------------------------------------------------- */ + +body { + font-family: Georgia; + font-size: 17px; + background-color: #fff; + color: #000; + margin: 0; + padding: 0; +} + + +div.document { + width: 940px; + margin: 30px auto 0 auto; +} + +div.documentwrapper { + float: left; + width: 100%; +} + +div.bodywrapper { + margin: 0 0 0 220px; +} + +div.sphinxsidebar { + width: 220px; + font-size: 14px; + line-height: 1.5; +} + +hr { + border: 1px solid #B1B4B6; +} + +div.body { + background-color: #fff; + color: #3E4349; + padding: 0 30px 0 30px; +} + +div.body > .section { + text-align: left; +} + +div.footer { + width: 940px; + margin: 20px auto 30px auto; + font-size: 14px; + color: #888; + text-align: right; +} + +div.footer a { + color: #888; +} + +p.caption { + font-family: inherit; + font-size: inherit; +} + + +div.relations { + display: none; +} + + +div.sphinxsidebar { + max-height: 100%; + overflow-y: auto; +} + +div.sphinxsidebar a { + color: #444; + text-decoration: none; + border-bottom: 1px dotted #999; +} + +div.sphinxsidebar a:hover { + border-bottom: 1px solid #999; +} + +div.sphinxsidebarwrapper { + padding: 18px 10px; +} + +div.sphinxsidebarwrapper p.logo { + padding: 0; + margin: -10px 0 0 0px; + text-align: center; +} + +div.sphinxsidebarwrapper h1.logo { + margin-top: -10px; + text-align: center; + margin-bottom: 5px; + text-align: left; +} + +div.sphinxsidebarwrapper h1.logo-name { + margin-top: 0px; +} + +div.sphinxsidebarwrapper p.blurb { + margin-top: 0; + font-style: normal; +} + +div.sphinxsidebar h3, +div.sphinxsidebar h4 { + font-family: Georgia; + color: #444; + font-size: 24px; + font-weight: normal; + margin: 0 0 5px 0; + padding: 0; +} + +div.sphinxsidebar h4 { + font-size: 20px; +} + +div.sphinxsidebar h3 a { + color: #444; +} + +div.sphinxsidebar p.logo a, +div.sphinxsidebar h3 a, +div.sphinxsidebar p.logo a:hover, +div.sphinxsidebar h3 a:hover { + border: none; +} + +div.sphinxsidebar p { + color: #555; + margin: 10px 0; +} + +div.sphinxsidebar ul { + margin: 10px 0; + padding: 0; + color: #000; +} + +div.sphinxsidebar ul li.toctree-l1 > a { + font-size: 120%; +} + +div.sphinxsidebar ul li.toctree-l2 > a { + font-size: 110%; +} + +div.sphinxsidebar input { + border: 1px solid #CCC; + font-family: Georgia; + font-size: 1em; +} + +div.sphinxsidebar #searchbox input[type="text"] { + width: 160px; +} + +div.sphinxsidebar .search > div { + display: table-cell; +} + +div.sphinxsidebar hr { + border: none; + height: 1px; + color: #AAA; + background: #AAA; + + text-align: left; + margin-left: 0; + width: 50%; +} + +div.sphinxsidebar .badge { + border-bottom: none; +} + +div.sphinxsidebar .badge:hover { + border-bottom: none; +} + +/* To address an issue with donation coming after search */ +div.sphinxsidebar h3.donation { + margin-top: 10px; +} + +/* -- body styles ----------------------------------------------------------- */ + +a { + color: #004B6B; + text-decoration: underline; +} + +a:hover { + color: #6D4100; + text-decoration: underline; +} + +div.body h1, +div.body h2, +div.body h3, +div.body h4, +div.body h5, +div.body h6 { + font-family: Georgia; + font-weight: normal; + margin: 30px 0px 10px 0px; + padding: 0; +} + +div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; } +div.body h2 { font-size: 180%; } +div.body h3 { font-size: 150%; } +div.body h4 { font-size: 130%; } +div.body h5 { font-size: 100%; } +div.body h6 { font-size: 100%; } + +a.headerlink { + color: #DDD; + padding: 0 4px; + text-decoration: none; +} + +a.headerlink:hover { + color: #444; + background: #EAEAEA; +} + +div.body p, div.body dd, div.body li { + line-height: 1.4em; +} + +div.admonition { + margin: 20px 0px; + padding: 10px 30px; + background-color: #EEE; + border: 1px solid #CCC; +} + +div.admonition tt.xref, div.admonition code.xref, div.admonition a tt { + background-color: #FBFBFB; + border-bottom: 1px solid #fafafa; +} + +div.admonition p.admonition-title { + font-family: Georgia; + font-weight: normal; + font-size: 24px; + margin: 0 0 10px 0; + padding: 0; + line-height: 1; +} + +div.admonition p.last { + margin-bottom: 0; +} + +div.highlight { + background-color: #fff; +} + +dt:target, .highlight { + background: #FAF3E8; +} + +div.warning { + background-color: #FCC; + border: 1px solid #FAA; +} + +div.danger { + background-color: #FCC; + border: 1px solid #FAA; + -moz-box-shadow: 2px 2px 4px #D52C2C; + -webkit-box-shadow: 2px 2px 4px #D52C2C; + box-shadow: 2px 2px 4px #D52C2C; +} + +div.error { + background-color: #FCC; + border: 1px solid #FAA; + -moz-box-shadow: 2px 2px 4px #D52C2C; + -webkit-box-shadow: 2px 2px 4px #D52C2C; + box-shadow: 2px 2px 4px #D52C2C; +} + +div.caution { + background-color: #FCC; + border: 1px solid #FAA; +} + +div.attention { + background-color: #FCC; + border: 1px solid #FAA; +} + +div.important { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.note { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.tip { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.hint { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.seealso { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.topic { + background-color: #EEE; +} + +p.admonition-title { + display: inline; +} + +p.admonition-title:after { + content: ":"; +} + +pre, tt, code { + font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; + font-size: 0.9em; +} + +.hll { + background-color: #FFC; + margin: 0 -12px; + padding: 0 12px; + display: block; +} + +img.screenshot { +} + +tt.descname, tt.descclassname, code.descname, code.descclassname { + font-size: 0.95em; +} + +tt.descname, code.descname { + padding-right: 0.08em; +} + +img.screenshot { + -moz-box-shadow: 2px 2px 4px #EEE; + -webkit-box-shadow: 2px 2px 4px #EEE; + box-shadow: 2px 2px 4px #EEE; +} + +table.docutils { + border: 1px solid #888; + -moz-box-shadow: 2px 2px 4px #EEE; + -webkit-box-shadow: 2px 2px 4px #EEE; + box-shadow: 2px 2px 4px #EEE; +} + +table.docutils td, table.docutils th { + border: 1px solid #888; + padding: 0.25em 0.7em; +} + +table.field-list, table.footnote { + border: none; + -moz-box-shadow: none; + -webkit-box-shadow: none; + box-shadow: none; +} + +table.footnote { + margin: 15px 0; + width: 100%; + border: 1px solid #EEE; + background: #FDFDFD; + font-size: 0.9em; +} + +table.footnote + table.footnote { + margin-top: -15px; + border-top: none; +} + +table.field-list th { + padding: 0 0.8em 0 0; +} + +table.field-list td { + padding: 0; +} + +table.field-list p { + margin-bottom: 0.8em; +} + +/* Cloned from + * https://github.com/sphinx-doc/sphinx/commit/ef60dbfce09286b20b7385333d63a60321784e68 + */ +.field-name { + -moz-hyphens: manual; + -ms-hyphens: manual; + -webkit-hyphens: manual; + hyphens: manual; +} + +table.footnote td.label { + width: .1px; + padding: 0.3em 0 0.3em 0.5em; +} + +table.footnote td { + padding: 0.3em 0.5em; +} + +dl { + margin-left: 0; + margin-right: 0; + margin-top: 0; + padding: 0; +} + +dl dd { + margin-left: 30px; +} + +blockquote { + margin: 0 0 0 30px; + padding: 0; +} + +ul, ol { + /* Matches the 30px from the narrow-screen "li > ul" selector below */ + margin: 10px 0 10px 30px; + padding: 0; +} + +pre { + background: #EEE; + padding: 7px 30px; + margin: 15px 0px; + line-height: 1.3em; +} + +div.viewcode-block:target { + background: #ffd; +} + +dl pre, blockquote pre, li pre { + margin-left: 0; + padding-left: 30px; +} + +tt, code { + background-color: #ecf0f3; + color: #222; + /* padding: 1px 2px; */ +} + +tt.xref, code.xref, a tt { + background-color: #FBFBFB; + border-bottom: 1px solid #fff; +} + +a.reference { + text-decoration: none; + border-bottom: 1px dotted #004B6B; +} + +/* Don't put an underline on images */ +a.image-reference, a.image-reference:hover { + border-bottom: none; +} + +a.reference:hover { + border-bottom: 1px solid #6D4100; +} + +a.footnote-reference { + text-decoration: none; + font-size: 0.7em; + vertical-align: top; + border-bottom: 1px dotted #004B6B; +} + +a.footnote-reference:hover { + border-bottom: 1px solid #6D4100; +} + +a:hover tt, a:hover code { + background: #EEE; +} + + +@media screen and (max-width: 870px) { + + div.sphinxsidebar { + display: none; + } + + div.document { + width: 100%; + + } + + div.documentwrapper { + margin-left: 0; + margin-top: 0; + margin-right: 0; + margin-bottom: 0; + } + + div.bodywrapper { + margin-top: 0; + margin-right: 0; + margin-bottom: 0; + margin-left: 0; + } + + ul { + margin-left: 0; + } + + li > ul { + /* Matches the 30px from the "ul, ol" selector above */ + margin-left: 30px; + } + + .document { + width: auto; + } + + .footer { + width: auto; + } + + .bodywrapper { + margin: 0; + } + + .footer { + width: auto; + } + + .github { + display: none; + } + + + +} + + + +@media screen and (max-width: 875px) { + + body { + margin: 0; + padding: 20px 30px; + } + + div.documentwrapper { + float: none; + background: #fff; + } + + div.sphinxsidebar { + display: block; + float: none; + width: 102.5%; + margin: 50px -30px -20px -30px; + padding: 10px 20px; + background: #333; + color: #FFF; + } + + div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p, + div.sphinxsidebar h3 a { + color: #fff; + } + + div.sphinxsidebar a { + color: #AAA; + } + + div.sphinxsidebar p.logo { + display: none; + } + + div.document { + width: 100%; + margin: 0; + } + + div.footer { + display: none; + } + + div.bodywrapper { + margin: 0; + } + + div.body { + min-height: 0; + padding: 0; + } + + .rtd_doc_footer { + display: none; + } + + .document { + width: auto; + } + + .footer { + width: auto; + } + + .footer { + width: auto; + } + + .github { + display: none; + } +} + + +/* misc. */ + +.revsys-inline { + display: none!important; +} + +/* Hide ugly table cell borders in ..bibliography:: directive output */ +table.docutils.citation, table.docutils.citation td, table.docutils.citation th { + border: none; + /* Below needed in some edge cases; if not applied, bottom shadows appear */ + -moz-box-shadow: none; + -webkit-box-shadow: none; + box-shadow: none; +} + + +/* relbar */ + +.related { + line-height: 30px; + width: 100%; + font-size: 0.9rem; +} + +.related.top { + border-bottom: 1px solid #EEE; + margin-bottom: 20px; +} + +.related.bottom { + border-top: 1px solid #EEE; +} + +.related ul { + padding: 0; + margin: 0; + list-style: none; +} + +.related li { + display: inline; +} + +nav#rellinks { + float: right; +} + +nav#rellinks li+li:before { + content: "|"; +} + +nav#breadcrumbs li+li:before { + content: "\00BB"; +} + +/* Hide certain items when printing */ +@media print { + div.related { + display: none; + } +} \ No newline at end of file diff --git a/manual/v1.1.0/en/html/_static/basic.css b/manual/v1.1.0/en/html/_static/basic.css new file mode 100644 index 0000000..e5179b7 --- /dev/null +++ b/manual/v1.1.0/en/html/_static/basic.css @@ -0,0 +1,925 @@ +/* + * basic.css + * ~~~~~~~~~ + * + * Sphinx stylesheet -- basic theme. + * + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +/* -- main layout ----------------------------------------------------------- */ + +div.clearer { + clear: both; +} + +div.section::after { + display: block; + content: ''; + clear: left; +} + +/* -- relbar ---------------------------------------------------------------- */ + +div.related { + width: 100%; + font-size: 90%; +} + +div.related h3 { + display: none; +} + +div.related ul { + margin: 0; + padding: 0 0 0 10px; + list-style: none; +} + +div.related li { + display: inline; +} + +div.related li.right { + float: right; + margin-right: 5px; +} + +/* -- sidebar --------------------------------------------------------------- */ + +div.sphinxsidebarwrapper { + padding: 10px 5px 0 10px; +} + +div.sphinxsidebar { + float: left; + width: 230px; + margin-left: -100%; + font-size: 90%; + word-wrap: break-word; + overflow-wrap : break-word; +} + +div.sphinxsidebar ul { + list-style: none; +} + +div.sphinxsidebar ul ul, +div.sphinxsidebar ul.want-points { + margin-left: 20px; + list-style: square; +} + +div.sphinxsidebar ul ul { + margin-top: 0; + margin-bottom: 0; +} + +div.sphinxsidebar form { + margin-top: 10px; +} + +div.sphinxsidebar input { + border: 1px solid #98dbcc; + font-family: sans-serif; + font-size: 1em; +} + +div.sphinxsidebar #searchbox form.search { + overflow: hidden; +} + +div.sphinxsidebar #searchbox input[type="text"] { + float: left; + width: 80%; + padding: 0.25em; + box-sizing: border-box; +} + +div.sphinxsidebar #searchbox input[type="submit"] { + float: left; + width: 20%; + border-left: none; + padding: 0.25em; + box-sizing: border-box; +} + + +img { + border: 0; + max-width: 100%; +} + +/* -- search page ----------------------------------------------------------- */ + +ul.search { + margin: 10px 0 0 20px; + padding: 0; +} + +ul.search li { + padding: 5px 0 5px 20px; + background-image: url(file.png); + background-repeat: no-repeat; + background-position: 0 7px; +} + +ul.search li a { + font-weight: bold; +} + +ul.search li p.context { + color: #888; + margin: 2px 0 0 30px; + text-align: left; +} + +ul.keywordmatches li.goodmatch a { + font-weight: bold; +} + +/* -- index page ------------------------------------------------------------ */ + +table.contentstable { + width: 90%; + margin-left: auto; + margin-right: auto; +} + +table.contentstable p.biglink { + line-height: 150%; +} + +a.biglink { + font-size: 1.3em; +} + +span.linkdescr { + font-style: italic; + padding-top: 5px; + font-size: 90%; +} + +/* -- general index --------------------------------------------------------- */ + +table.indextable { + width: 100%; +} + +table.indextable td { + text-align: left; + vertical-align: top; +} + +table.indextable ul { + margin-top: 0; + margin-bottom: 0; + list-style-type: none; +} + +table.indextable > tbody > tr > td > ul { + padding-left: 0em; +} + +table.indextable tr.pcap { + height: 10px; +} + +table.indextable tr.cap { + margin-top: 10px; + background-color: #f2f2f2; +} + +img.toggler { + margin-right: 3px; + margin-top: 3px; + cursor: pointer; +} + +div.modindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +div.genindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +/* -- domain module index --------------------------------------------------- */ + +table.modindextable td { + padding: 2px; + border-collapse: collapse; +} + +/* -- general body styles --------------------------------------------------- */ + +div.body { + min-width: inherit; + max-width: 800px; +} + +div.body p, div.body dd, div.body li, div.body blockquote { + -moz-hyphens: auto; + -ms-hyphens: auto; + -webkit-hyphens: auto; + hyphens: auto; +} + +a.headerlink { + visibility: hidden; +} + +a:visited { + color: #551A8B; +} + +h1:hover > a.headerlink, +h2:hover > a.headerlink, +h3:hover > a.headerlink, +h4:hover > a.headerlink, +h5:hover > a.headerlink, +h6:hover > a.headerlink, +dt:hover > a.headerlink, +caption:hover > a.headerlink, +p.caption:hover > a.headerlink, +div.code-block-caption:hover > a.headerlink { + visibility: visible; +} + +div.body p.caption { + text-align: inherit; +} + +div.body td { + text-align: left; +} + +.first { + margin-top: 0 !important; +} + +p.rubric { + margin-top: 30px; + font-weight: bold; +} + +img.align-left, figure.align-left, .figure.align-left, object.align-left { + clear: left; + float: left; + margin-right: 1em; +} + +img.align-right, figure.align-right, .figure.align-right, object.align-right { + clear: right; + float: right; + margin-left: 1em; +} + +img.align-center, figure.align-center, .figure.align-center, object.align-center { + display: block; + margin-left: auto; + margin-right: auto; +} + +img.align-default, figure.align-default, .figure.align-default { + display: block; + margin-left: auto; + margin-right: auto; +} + +.align-left { + text-align: left; +} + +.align-center { + text-align: center; +} + +.align-default { + text-align: center; +} + +.align-right { + text-align: right; +} + +/* -- sidebars -------------------------------------------------------------- */ + +div.sidebar, +aside.sidebar { + margin: 0 0 0.5em 1em; + border: 1px solid #ddb; + padding: 7px; + background-color: #ffe; + width: 40%; + float: right; + clear: right; + overflow-x: auto; +} + +p.sidebar-title { + font-weight: bold; +} + +nav.contents, +aside.topic, +div.admonition, div.topic, blockquote { + clear: left; +} + +/* -- topics ---------------------------------------------------------------- */ + +nav.contents, +aside.topic, +div.topic { + border: 1px solid #ccc; + padding: 7px; + margin: 10px 0 10px 0; +} + +p.topic-title { + font-size: 1.1em; + font-weight: bold; + margin-top: 10px; +} + +/* -- admonitions ----------------------------------------------------------- */ + +div.admonition { + margin-top: 10px; + margin-bottom: 10px; + padding: 7px; +} + +div.admonition dt { + font-weight: bold; +} + +p.admonition-title { + margin: 0px 10px 5px 0px; + font-weight: bold; +} + +div.body p.centered { + text-align: center; + margin-top: 25px; +} + +/* -- content of sidebars/topics/admonitions -------------------------------- */ + +div.sidebar > :last-child, +aside.sidebar > :last-child, +nav.contents > :last-child, +aside.topic > :last-child, +div.topic > :last-child, +div.admonition > :last-child { + margin-bottom: 0; +} + +div.sidebar::after, +aside.sidebar::after, +nav.contents::after, +aside.topic::after, +div.topic::after, +div.admonition::after, +blockquote::after { + display: block; + content: ''; + clear: both; +} + +/* -- tables ---------------------------------------------------------------- */ + +table.docutils { + margin-top: 10px; + margin-bottom: 10px; + border: 0; + border-collapse: collapse; +} + +table.align-center { + margin-left: auto; + margin-right: auto; +} + +table.align-default { + margin-left: auto; + margin-right: auto; +} + +table caption span.caption-number { + font-style: italic; +} + +table caption span.caption-text { +} + +table.docutils td, table.docutils th { + padding: 1px 8px 1px 5px; + border-top: 0; + border-left: 0; + border-right: 0; + border-bottom: 1px solid #aaa; +} + +th { + text-align: left; + padding-right: 5px; +} + +table.citation { + border-left: solid 1px gray; + margin-left: 1px; +} + +table.citation td { + border-bottom: none; +} + +th > :first-child, +td > :first-child { + margin-top: 0px; +} + +th > :last-child, +td > :last-child { + margin-bottom: 0px; +} + +/* -- figures --------------------------------------------------------------- */ + +div.figure, figure { + margin: 0.5em; + padding: 0.5em; +} + +div.figure p.caption, figcaption { + padding: 0.3em; +} + +div.figure p.caption span.caption-number, +figcaption span.caption-number { + font-style: italic; +} + +div.figure p.caption span.caption-text, +figcaption span.caption-text { +} + +/* -- field list styles ----------------------------------------------------- */ + +table.field-list td, table.field-list th { + border: 0 !important; +} + +.field-list ul { + margin: 0; + padding-left: 1em; +} + +.field-list p { + margin: 0; +} + +.field-name { + -moz-hyphens: manual; + -ms-hyphens: manual; + -webkit-hyphens: manual; + hyphens: manual; +} + +/* -- hlist styles ---------------------------------------------------------- */ + +table.hlist { + margin: 1em 0; +} + +table.hlist td { + vertical-align: top; +} + +/* -- object description styles --------------------------------------------- */ + +.sig { + font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; +} + +.sig-name, code.descname { + background-color: transparent; + font-weight: bold; +} + +.sig-name { + font-size: 1.1em; +} + +code.descname { + font-size: 1.2em; +} + +.sig-prename, code.descclassname { + background-color: transparent; +} + +.optional { + font-size: 1.3em; +} + +.sig-paren { + font-size: larger; +} + +.sig-param.n { + font-style: italic; +} + +/* C++ specific styling */ + +.sig-inline.c-texpr, +.sig-inline.cpp-texpr { + font-family: unset; +} + +.sig.c .k, .sig.c .kt, +.sig.cpp .k, .sig.cpp .kt { + color: #0033B3; +} + +.sig.c .m, +.sig.cpp .m { + color: #1750EB; +} + +.sig.c .s, .sig.c .sc, +.sig.cpp .s, .sig.cpp .sc { + color: #067D17; +} + + +/* -- other body styles ----------------------------------------------------- */ + +ol.arabic { + list-style: decimal; +} + +ol.loweralpha { + list-style: lower-alpha; +} + +ol.upperalpha { + list-style: upper-alpha; +} + +ol.lowerroman { + list-style: lower-roman; +} + +ol.upperroman { + list-style: upper-roman; +} + +:not(li) > ol > li:first-child > :first-child, +:not(li) > ul > li:first-child > :first-child { + margin-top: 0px; +} + +:not(li) > ol > li:last-child > :last-child, +:not(li) > ul > li:last-child > :last-child { + margin-bottom: 0px; +} + +ol.simple ol p, +ol.simple ul p, +ul.simple ol p, +ul.simple ul p { + margin-top: 0; +} + +ol.simple > li:not(:first-child) > p, +ul.simple > li:not(:first-child) > p { + margin-top: 0; +} + +ol.simple p, +ul.simple p { + margin-bottom: 0; +} + +aside.footnote > span, +div.citation > span { + float: left; +} +aside.footnote > span:last-of-type, +div.citation > span:last-of-type { + padding-right: 0.5em; +} +aside.footnote > p { + margin-left: 2em; +} +div.citation > p { + margin-left: 4em; +} +aside.footnote > p:last-of-type, +div.citation > p:last-of-type { + margin-bottom: 0em; +} +aside.footnote > p:last-of-type:after, +div.citation > p:last-of-type:after { + content: ""; + clear: both; +} + +dl.field-list { + display: grid; + grid-template-columns: fit-content(30%) auto; +} + +dl.field-list > dt { + font-weight: bold; + word-break: break-word; + padding-left: 0.5em; + padding-right: 5px; +} + +dl.field-list > dd { + padding-left: 0.5em; + margin-top: 0em; + margin-left: 0em; + margin-bottom: 0em; +} + +dl { + margin-bottom: 15px; +} + +dd > :first-child { + margin-top: 0px; +} + +dd ul, dd table { + margin-bottom: 10px; +} + +dd { + margin-top: 3px; + margin-bottom: 10px; + margin-left: 30px; +} + +.sig dd { + margin-top: 0px; + margin-bottom: 0px; +} + +.sig dl { + margin-top: 0px; + margin-bottom: 0px; +} + +dl > dd:last-child, +dl > dd:last-child > :last-child { + margin-bottom: 0; +} + +dt:target, span.highlighted { + background-color: #fbe54e; +} + +rect.highlighted { + fill: #fbe54e; +} + +dl.glossary dt { + font-weight: bold; + font-size: 1.1em; +} + +.versionmodified { + font-style: italic; +} + +.system-message { + background-color: #fda; + padding: 5px; + border: 3px solid red; +} + +.footnote:target { + background-color: #ffa; +} + +.line-block { + display: block; + margin-top: 1em; + margin-bottom: 1em; +} + +.line-block .line-block { + margin-top: 0; + margin-bottom: 0; + margin-left: 1.5em; +} + +.guilabel, .menuselection { + font-family: sans-serif; +} + +.accelerator { + text-decoration: underline; +} + +.classifier { + font-style: oblique; +} + +.classifier:before { + font-style: normal; + margin: 0 0.5em; + content: ":"; + display: inline-block; +} + +abbr, acronym { + border-bottom: dotted 1px; + cursor: help; +} + +.translated { + background-color: rgba(207, 255, 207, 0.2) +} + +.untranslated { + background-color: rgba(255, 207, 207, 0.2) +} + +/* -- code displays --------------------------------------------------------- */ + +pre { + overflow: auto; + overflow-y: hidden; /* fixes display issues on Chrome browsers */ +} + +pre, div[class*="highlight-"] { + clear: both; +} + +span.pre { + -moz-hyphens: none; + -ms-hyphens: none; + -webkit-hyphens: none; + hyphens: none; + white-space: nowrap; +} + +div[class*="highlight-"] { + margin: 1em 0; +} + +td.linenos pre { + border: 0; + background-color: transparent; + color: #aaa; +} + +table.highlighttable { + display: block; +} + +table.highlighttable tbody { + display: block; +} + +table.highlighttable tr { + display: flex; +} + +table.highlighttable td { + margin: 0; + padding: 0; +} + +table.highlighttable td.linenos { + padding-right: 0.5em; +} + +table.highlighttable td.code { + flex: 1; + overflow: hidden; +} + +.highlight .hll { + display: block; +} + +div.highlight pre, +table.highlighttable pre { + margin: 0; +} + +div.code-block-caption + div { + margin-top: 0; +} + +div.code-block-caption { + margin-top: 1em; + padding: 2px 5px; + font-size: small; +} + +div.code-block-caption code { + background-color: transparent; +} + +table.highlighttable td.linenos, +span.linenos, +div.highlight span.gp { /* gp: Generic.Prompt */ + user-select: none; + -webkit-user-select: text; /* Safari fallback only */ + -webkit-user-select: none; /* Chrome/Safari */ + -moz-user-select: none; /* Firefox */ + -ms-user-select: none; /* IE10+ */ +} + +div.code-block-caption span.caption-number { + padding: 0.1em 0.3em; + font-style: italic; +} + +div.code-block-caption span.caption-text { +} + +div.literal-block-wrapper { + margin: 1em 0; +} + +code.xref, a code { + background-color: transparent; + font-weight: bold; +} + +h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { + background-color: transparent; +} + +.viewcode-link { + float: right; +} + +.viewcode-back { + float: right; + font-family: sans-serif; +} + +div.viewcode-block:target { + margin: -1px -10px; + padding: 0 10px; +} + +/* -- math display ---------------------------------------------------------- */ + +img.math { + vertical-align: middle; +} + +div.body div.math p { + text-align: center; +} + +span.eqno { + float: right; +} + +span.eqno a.headerlink { + position: absolute; + z-index: 1; +} + +div.math:hover a.headerlink { + visibility: visible; +} + +/* -- printout stylesheet --------------------------------------------------- */ + +@media print { + div.document, + div.documentwrapper, + div.bodywrapper { + margin: 0 !important; + width: 100%; + } + + div.sphinxsidebar, + div.related, + div.footer, + #top-link { + display: none; + } +} \ No newline at end of file diff --git a/manual/v1.1.0/en/html/_static/custom.css b/manual/v1.1.0/en/html/_static/custom.css new file mode 100644 index 0000000..2a924f1 --- /dev/null +++ b/manual/v1.1.0/en/html/_static/custom.css @@ -0,0 +1 @@ +/* This file intentionally left blank. */ diff --git a/manual/v1.1.0/en/html/_static/doctools.js b/manual/v1.1.0/en/html/_static/doctools.js new file mode 100644 index 0000000..4d67807 --- /dev/null +++ b/manual/v1.1.0/en/html/_static/doctools.js @@ -0,0 +1,156 @@ +/* + * doctools.js + * ~~~~~~~~~~~ + * + * Base JavaScript utilities for all Sphinx HTML documentation. + * + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ +"use strict"; + +const BLACKLISTED_KEY_CONTROL_ELEMENTS = new Set([ + "TEXTAREA", + "INPUT", + "SELECT", + "BUTTON", +]); + +const _ready = (callback) => { + if (document.readyState !== "loading") { + callback(); + } else { + document.addEventListener("DOMContentLoaded", callback); + } +}; + +/** + * Small JavaScript module for the documentation. + */ +const Documentation = { + init: () => { + Documentation.initDomainIndexTable(); + Documentation.initOnKeyListeners(); + }, + + /** + * i18n support + */ + TRANSLATIONS: {}, + PLURAL_EXPR: (n) => (n === 1 ? 0 : 1), + LOCALE: "unknown", + + // gettext and ngettext don't access this so that the functions + // can safely bound to a different name (_ = Documentation.gettext) + gettext: (string) => { + const translated = Documentation.TRANSLATIONS[string]; + switch (typeof translated) { + case "undefined": + return string; // no translation + case "string": + return translated; // translation exists + default: + return translated[0]; // (singular, plural) translation tuple exists + } + }, + + ngettext: (singular, plural, n) => { + const translated = Documentation.TRANSLATIONS[singular]; + if (typeof translated !== "undefined") + return translated[Documentation.PLURAL_EXPR(n)]; + return n === 1 ? singular : plural; + }, + + addTranslations: (catalog) => { + Object.assign(Documentation.TRANSLATIONS, catalog.messages); + Documentation.PLURAL_EXPR = new Function( + "n", + `return (${catalog.plural_expr})` + ); + Documentation.LOCALE = catalog.locale; + }, + + /** + * helper function to focus on search bar + */ + focusSearchBar: () => { + document.querySelectorAll("input[name=q]")[0]?.focus(); + }, + + /** + * Initialise the domain index toggle buttons + */ + initDomainIndexTable: () => { + const toggler = (el) => { + const idNumber = el.id.substr(7); + const toggledRows = document.querySelectorAll(`tr.cg-${idNumber}`); + if (el.src.substr(-9) === "minus.png") { + el.src = `${el.src.substr(0, el.src.length - 9)}plus.png`; + toggledRows.forEach((el) => (el.style.display = "none")); + } else { + el.src = `${el.src.substr(0, el.src.length - 8)}minus.png`; + toggledRows.forEach((el) => (el.style.display = "")); + } + }; + + const togglerElements = document.querySelectorAll("img.toggler"); + togglerElements.forEach((el) => + el.addEventListener("click", (event) => toggler(event.currentTarget)) + ); + togglerElements.forEach((el) => (el.style.display = "")); + if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) togglerElements.forEach(toggler); + }, + + initOnKeyListeners: () => { + // only install a listener if it is really needed + if ( + !DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS && + !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS + ) + return; + + document.addEventListener("keydown", (event) => { + // bail for input elements + if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return; + // bail with special keys + if (event.altKey || event.ctrlKey || event.metaKey) return; + + if (!event.shiftKey) { + switch (event.key) { + case "ArrowLeft": + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; + + const prevLink = document.querySelector('link[rel="prev"]'); + if (prevLink && prevLink.href) { + window.location.href = prevLink.href; + event.preventDefault(); + } + break; + case "ArrowRight": + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; + + const nextLink = document.querySelector('link[rel="next"]'); + if (nextLink && nextLink.href) { + window.location.href = nextLink.href; + event.preventDefault(); + } + break; + } + } + + // some keyboard layouts may need Shift to get / + switch (event.key) { + case "/": + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break; + Documentation.focusSearchBar(); + event.preventDefault(); + } + }); + }, +}; + +// quick alias for translations +const _ = Documentation.gettext; + +_ready(Documentation.init); diff --git a/manual/v1.1.0/en/html/_static/documentation_options.js b/manual/v1.1.0/en/html/_static/documentation_options.js new file mode 100644 index 0000000..c891ba6 --- /dev/null +++ b/manual/v1.1.0/en/html/_static/documentation_options.js @@ -0,0 +1,13 @@ +const DOCUMENTATION_OPTIONS = { + VERSION: '1.1.0', + LANGUAGE: 'en', + COLLAPSE_INDEX: false, + BUILDER: 'html', + FILE_SUFFIX: '.html', + LINK_SUFFIX: '.html', + HAS_SOURCE: true, + SOURCELINK_SUFFIX: '.txt', + NAVIGATION_WITH_KEYS: false, + SHOW_SEARCH_SUMMARY: true, + ENABLE_SEARCH_SHORTCUTS: true, +}; \ No newline at end of file diff --git a/manual/v1.1.0/en/html/_static/file.png b/manual/v1.1.0/en/html/_static/file.png new file mode 100644 index 0000000..a858a41 Binary files /dev/null and b/manual/v1.1.0/en/html/_static/file.png differ diff --git a/manual/v1.1.0/en/html/_static/language_data.js b/manual/v1.1.0/en/html/_static/language_data.js new file mode 100644 index 0000000..367b8ed --- /dev/null +++ b/manual/v1.1.0/en/html/_static/language_data.js @@ -0,0 +1,199 @@ +/* + * language_data.js + * ~~~~~~~~~~~~~~~~ + * + * This script contains the language-specific data used by searchtools.js, + * namely the list of stopwords, stemmer, scorer and splitter. + * + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"]; + + +/* Non-minified version is copied as a separate JS file, if available */ + +/** + * Porter Stemmer + */ +var Stemmer = function() { + + var step2list = { + ational: 'ate', + tional: 'tion', + enci: 'ence', + anci: 'ance', + izer: 'ize', + bli: 'ble', + alli: 'al', + entli: 'ent', + eli: 'e', + ousli: 'ous', + ization: 'ize', + ation: 'ate', + ator: 'ate', + alism: 'al', + iveness: 'ive', + fulness: 'ful', + ousness: 'ous', + aliti: 'al', + iviti: 'ive', + biliti: 'ble', + logi: 'log' + }; + + var step3list = { + icate: 'ic', + ative: '', + alize: 'al', + iciti: 'ic', + ical: 'ic', + ful: '', + ness: '' + }; + + var c = "[^aeiou]"; // consonant + var v = "[aeiouy]"; // vowel + var C = c + "[^aeiouy]*"; // consonant sequence + var V = v + "[aeiou]*"; // vowel sequence + + var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0 + var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1 + var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1 + var s_v = "^(" + C + ")?" + v; // vowel in stem + + this.stemWord = function (w) { + var stem; + var suffix; + var firstch; + var origword = w; + + if (w.length < 3) + return w; + + var re; + var re2; + var re3; + var re4; + + firstch = w.substr(0,1); + if (firstch == "y") + w = firstch.toUpperCase() + w.substr(1); + + // Step 1a + re = /^(.+?)(ss|i)es$/; + re2 = /^(.+?)([^s])s$/; + + if (re.test(w)) + w = w.replace(re,"$1$2"); + else if (re2.test(w)) + w = w.replace(re2,"$1$2"); + + // Step 1b + re = /^(.+?)eed$/; + re2 = /^(.+?)(ed|ing)$/; + if (re.test(w)) { + var fp = re.exec(w); + re = new RegExp(mgr0); + if (re.test(fp[1])) { + re = /.$/; + w = w.replace(re,""); + } + } + else if (re2.test(w)) { + var fp = re2.exec(w); + stem = fp[1]; + re2 = new RegExp(s_v); + if (re2.test(stem)) { + w = stem; + re2 = /(at|bl|iz)$/; + re3 = new RegExp("([^aeiouylsz])\\1$"); + re4 = new RegExp("^" + C + v + "[^aeiouwxy]$"); + if (re2.test(w)) + w = w + "e"; + else if (re3.test(w)) { + re = /.$/; + w = w.replace(re,""); + } + else if (re4.test(w)) + w = w + "e"; + } + } + + // Step 1c + re = /^(.+?)y$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(s_v); + if (re.test(stem)) + w = stem + "i"; + } + + // Step 2 + re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + suffix = fp[2]; + re = new RegExp(mgr0); + if (re.test(stem)) + w = stem + step2list[suffix]; + } + + // Step 3 + re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + suffix = fp[2]; + re = new RegExp(mgr0); + if (re.test(stem)) + w = stem + step3list[suffix]; + } + + // Step 4 + re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/; + re2 = /^(.+?)(s|t)(ion)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(mgr1); + if (re.test(stem)) + w = stem; + } + else if (re2.test(w)) { + var fp = re2.exec(w); + stem = fp[1] + fp[2]; + re2 = new RegExp(mgr1); + if (re2.test(stem)) + w = stem; + } + + // Step 5 + re = /^(.+?)e$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(mgr1); + re2 = new RegExp(meq1); + re3 = new RegExp("^" + C + v + "[^aeiouwxy]$"); + if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) + w = stem; + } + re = /ll$/; + re2 = new RegExp(mgr1); + if (re.test(w) && re2.test(w)) { + re = /.$/; + w = w.replace(re,""); + } + + // and turn initial Y back to y + if (firstch == "y") + w = firstch.toLowerCase() + w.substr(1); + return w; + } +} + diff --git a/manual/v1.1.0/en/html/_static/minus.png b/manual/v1.1.0/en/html/_static/minus.png new file mode 100644 index 0000000..d96755f Binary files /dev/null and b/manual/v1.1.0/en/html/_static/minus.png differ diff --git a/manual/v1.1.0/en/html/_static/plus.png b/manual/v1.1.0/en/html/_static/plus.png new file mode 100644 index 0000000..7107cec Binary files /dev/null and b/manual/v1.1.0/en/html/_static/plus.png differ diff --git a/manual/v1.1.0/en/html/_static/pygments.css b/manual/v1.1.0/en/html/_static/pygments.css new file mode 100644 index 0000000..0d49244 --- /dev/null +++ b/manual/v1.1.0/en/html/_static/pygments.css @@ -0,0 +1,75 @@ +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #eeffcc; } +.highlight .c { color: #408090; font-style: italic } /* Comment */ +.highlight .err { border: 1px solid #FF0000 } /* Error */ +.highlight .k { color: #007020; font-weight: bold } /* Keyword */ +.highlight .o { color: #666666 } /* Operator */ +.highlight .ch { color: #408090; font-style: italic } /* Comment.Hashbang */ +.highlight .cm { color: #408090; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #007020 } /* Comment.Preproc */ +.highlight .cpf { color: #408090; font-style: italic } /* Comment.PreprocFile */ +.highlight .c1 { color: #408090; font-style: italic } /* Comment.Single */ +.highlight .cs { color: #408090; background-color: #fff0f0 } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #333333 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #007020 } /* Keyword.Pseudo */ +.highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #902000 } /* Keyword.Type */ +.highlight .m { color: #208050 } /* Literal.Number */ +.highlight .s { color: #4070a0 } /* Literal.String */ +.highlight .na { color: #4070a0 } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #0e84b5; font-weight: bold } /* Name.Class */ +.highlight .no { color: #60add5 } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #d55537; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #007020 } /* Name.Exception */ +.highlight .nf { color: #06287e } /* Name.Function */ +.highlight .nl { color: #002070; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */ +.highlight .nv { color: #bb60d5 } /* Name.Variable */ +.highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #208050 } /* Literal.Number.Bin */ +.highlight .mf { color: #208050 } /* Literal.Number.Float */ +.highlight .mh { color: #208050 } /* Literal.Number.Hex */ +.highlight .mi { color: #208050 } /* Literal.Number.Integer */ +.highlight .mo { color: #208050 } /* Literal.Number.Oct */ +.highlight .sa { color: #4070a0 } /* Literal.String.Affix */ +.highlight .sb { color: #4070a0 } /* Literal.String.Backtick */ +.highlight .sc { color: #4070a0 } /* Literal.String.Char */ +.highlight .dl { color: #4070a0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */ +.highlight .s2 { color: #4070a0 } /* Literal.String.Double */ +.highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */ +.highlight .sh { color: #4070a0 } /* Literal.String.Heredoc */ +.highlight .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */ +.highlight .sx { color: #c65d09 } /* Literal.String.Other */ +.highlight .sr { color: #235388 } /* Literal.String.Regex */ +.highlight .s1 { color: #4070a0 } /* Literal.String.Single */ +.highlight .ss { color: #517918 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #06287e } /* Name.Function.Magic */ +.highlight .vc { color: #bb60d5 } /* Name.Variable.Class */ +.highlight .vg { color: #bb60d5 } /* Name.Variable.Global */ +.highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */ +.highlight .vm { color: #bb60d5 } /* Name.Variable.Magic */ +.highlight .il { color: #208050 } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/manual/v1.1.0/en/html/_static/searchtools.js b/manual/v1.1.0/en/html/_static/searchtools.js new file mode 100644 index 0000000..b08d58c --- /dev/null +++ b/manual/v1.1.0/en/html/_static/searchtools.js @@ -0,0 +1,620 @@ +/* + * searchtools.js + * ~~~~~~~~~~~~~~~~ + * + * Sphinx JavaScript utilities for the full-text search. + * + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ +"use strict"; + +/** + * Simple result scoring code. + */ +if (typeof Scorer === "undefined") { + var Scorer = { + // Implement the following function to further tweak the score for each result + // The function takes a result array [docname, title, anchor, descr, score, filename] + // and returns the new score. + /* + score: result => { + const [docname, title, anchor, descr, score, filename] = result + return score + }, + */ + + // query matches the full name of an object + objNameMatch: 11, + // or matches in the last dotted part of the object name + objPartialMatch: 6, + // Additive scores depending on the priority of the object + objPrio: { + 0: 15, // used to be importantResults + 1: 5, // used to be objectResults + 2: -5, // used to be unimportantResults + }, + // Used when the priority is not in the mapping. + objPrioDefault: 0, + + // query found in title + title: 15, + partialTitle: 7, + // query found in terms + term: 5, + partialTerm: 2, + }; +} + +const _removeChildren = (element) => { + while (element && element.lastChild) element.removeChild(element.lastChild); +}; + +/** + * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping + */ +const _escapeRegExp = (string) => + string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string + +const _displayItem = (item, searchTerms, highlightTerms) => { + const docBuilder = DOCUMENTATION_OPTIONS.BUILDER; + const docFileSuffix = DOCUMENTATION_OPTIONS.FILE_SUFFIX; + const docLinkSuffix = DOCUMENTATION_OPTIONS.LINK_SUFFIX; + const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY; + const contentRoot = document.documentElement.dataset.content_root; + + const [docName, title, anchor, descr, score, _filename] = item; + + let listItem = document.createElement("li"); + let requestUrl; + let linkUrl; + if (docBuilder === "dirhtml") { + // dirhtml builder + let dirname = docName + "/"; + if (dirname.match(/\/index\/$/)) + dirname = dirname.substring(0, dirname.length - 6); + else if (dirname === "index/") dirname = ""; + requestUrl = contentRoot + dirname; + linkUrl = requestUrl; + } else { + // normal html builders + requestUrl = contentRoot + docName + docFileSuffix; + linkUrl = docName + docLinkSuffix; + } + let linkEl = listItem.appendChild(document.createElement("a")); + linkEl.href = linkUrl + anchor; + linkEl.dataset.score = score; + linkEl.innerHTML = title; + if (descr) { + listItem.appendChild(document.createElement("span")).innerHTML = + " (" + descr + ")"; + // highlight search terms in the description + if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js + highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted")); + } + else if (showSearchSummary) + fetch(requestUrl) + .then((responseData) => responseData.text()) + .then((data) => { + if (data) + listItem.appendChild( + Search.makeSearchSummary(data, searchTerms, anchor) + ); + // highlight search terms in the summary + if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js + highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted")); + }); + Search.output.appendChild(listItem); +}; +const _finishSearch = (resultCount) => { + Search.stopPulse(); + Search.title.innerText = _("Search Results"); + if (!resultCount) + Search.status.innerText = Documentation.gettext( + "Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories." + ); + else + Search.status.innerText = _( + "Search finished, found ${resultCount} page(s) matching the search query." + ).replace('${resultCount}', resultCount); +}; +const _displayNextItem = ( + results, + resultCount, + searchTerms, + highlightTerms, +) => { + // results left, load the summary and display it + // this is intended to be dynamic (don't sub resultsCount) + if (results.length) { + _displayItem(results.pop(), searchTerms, highlightTerms); + setTimeout( + () => _displayNextItem(results, resultCount, searchTerms, highlightTerms), + 5 + ); + } + // search finished, update title and status message + else _finishSearch(resultCount); +}; +// Helper function used by query() to order search results. +// Each input is an array of [docname, title, anchor, descr, score, filename]. +// Order the results by score (in opposite order of appearance, since the +// `_displayNextItem` function uses pop() to retrieve items) and then alphabetically. +const _orderResultsByScoreThenName = (a, b) => { + const leftScore = a[4]; + const rightScore = b[4]; + if (leftScore === rightScore) { + // same score: sort alphabetically + const leftTitle = a[1].toLowerCase(); + const rightTitle = b[1].toLowerCase(); + if (leftTitle === rightTitle) return 0; + return leftTitle > rightTitle ? -1 : 1; // inverted is intentional + } + return leftScore > rightScore ? 1 : -1; +}; + +/** + * Default splitQuery function. Can be overridden in ``sphinx.search`` with a + * custom function per language. + * + * The regular expression works by splitting the string on consecutive characters + * that are not Unicode letters, numbers, underscores, or emoji characters. + * This is the same as ``\W+`` in Python, preserving the surrogate pair area. + */ +if (typeof splitQuery === "undefined") { + var splitQuery = (query) => query + .split(/[^\p{Letter}\p{Number}_\p{Emoji_Presentation}]+/gu) + .filter(term => term) // remove remaining empty strings +} + +/** + * Search Module + */ +const Search = { + _index: null, + _queued_query: null, + _pulse_status: -1, + + htmlToText: (htmlString, anchor) => { + const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html'); + for (const removalQuery of [".headerlink", "script", "style"]) { + htmlElement.querySelectorAll(removalQuery).forEach((el) => { el.remove() }); + } + if (anchor) { + const anchorContent = htmlElement.querySelector(`[role="main"] ${anchor}`); + if (anchorContent) return anchorContent.textContent; + + console.warn( + `Anchored content block not found. Sphinx search tries to obtain it via DOM query '[role=main] ${anchor}'. Check your theme or template.` + ); + } + + // if anchor not specified or not found, fall back to main content + const docContent = htmlElement.querySelector('[role="main"]'); + if (docContent) return docContent.textContent; + + console.warn( + "Content block not found. Sphinx search tries to obtain it via DOM query '[role=main]'. Check your theme or template." + ); + return ""; + }, + + init: () => { + const query = new URLSearchParams(window.location.search).get("q"); + document + .querySelectorAll('input[name="q"]') + .forEach((el) => (el.value = query)); + if (query) Search.performSearch(query); + }, + + loadIndex: (url) => + (document.body.appendChild(document.createElement("script")).src = url), + + setIndex: (index) => { + Search._index = index; + if (Search._queued_query !== null) { + const query = Search._queued_query; + Search._queued_query = null; + Search.query(query); + } + }, + + hasIndex: () => Search._index !== null, + + deferQuery: (query) => (Search._queued_query = query), + + stopPulse: () => (Search._pulse_status = -1), + + startPulse: () => { + if (Search._pulse_status >= 0) return; + + const pulse = () => { + Search._pulse_status = (Search._pulse_status + 1) % 4; + Search.dots.innerText = ".".repeat(Search._pulse_status); + if (Search._pulse_status >= 0) window.setTimeout(pulse, 500); + }; + pulse(); + }, + + /** + * perform a search for something (or wait until index is loaded) + */ + performSearch: (query) => { + // create the required interface elements + const searchText = document.createElement("h2"); + searchText.textContent = _("Searching"); + const searchSummary = document.createElement("p"); + searchSummary.classList.add("search-summary"); + searchSummary.innerText = ""; + const searchList = document.createElement("ul"); + searchList.classList.add("search"); + + const out = document.getElementById("search-results"); + Search.title = out.appendChild(searchText); + Search.dots = Search.title.appendChild(document.createElement("span")); + Search.status = out.appendChild(searchSummary); + Search.output = out.appendChild(searchList); + + const searchProgress = document.getElementById("search-progress"); + // Some themes don't use the search progress node + if (searchProgress) { + searchProgress.innerText = _("Preparing search..."); + } + Search.startPulse(); + + // index already loaded, the browser was quick! + if (Search.hasIndex()) Search.query(query); + else Search.deferQuery(query); + }, + + _parseQuery: (query) => { + // stem the search terms and add them to the correct list + const stemmer = new Stemmer(); + const searchTerms = new Set(); + const excludedTerms = new Set(); + const highlightTerms = new Set(); + const objectTerms = new Set(splitQuery(query.toLowerCase().trim())); + splitQuery(query.trim()).forEach((queryTerm) => { + const queryTermLower = queryTerm.toLowerCase(); + + // maybe skip this "word" + // stopwords array is from language_data.js + if ( + stopwords.indexOf(queryTermLower) !== -1 || + queryTerm.match(/^\d+$/) + ) + return; + + // stem the word + let word = stemmer.stemWord(queryTermLower); + // select the correct list + if (word[0] === "-") excludedTerms.add(word.substr(1)); + else { + searchTerms.add(word); + highlightTerms.add(queryTermLower); + } + }); + + if (SPHINX_HIGHLIGHT_ENABLED) { // set in sphinx_highlight.js + localStorage.setItem("sphinx_highlight_terms", [...highlightTerms].join(" ")) + } + + // console.debug("SEARCH: searching for:"); + // console.info("required: ", [...searchTerms]); + // console.info("excluded: ", [...excludedTerms]); + + return [query, searchTerms, excludedTerms, highlightTerms, objectTerms]; + }, + + /** + * execute search (requires search index to be loaded) + */ + _performSearch: (query, searchTerms, excludedTerms, highlightTerms, objectTerms) => { + const filenames = Search._index.filenames; + const docNames = Search._index.docnames; + const titles = Search._index.titles; + const allTitles = Search._index.alltitles; + const indexEntries = Search._index.indexentries; + + // Collect multiple result groups to be sorted separately and then ordered. + // Each is an array of [docname, title, anchor, descr, score, filename]. + const normalResults = []; + const nonMainIndexResults = []; + + _removeChildren(document.getElementById("search-progress")); + + const queryLower = query.toLowerCase().trim(); + for (const [title, foundTitles] of Object.entries(allTitles)) { + if (title.toLowerCase().trim().includes(queryLower) && (queryLower.length >= title.length/2)) { + for (const [file, id] of foundTitles) { + const score = Math.round(Scorer.title * queryLower.length / title.length); + const boost = titles[file] === title ? 1 : 0; // add a boost for document titles + normalResults.push([ + docNames[file], + titles[file] !== title ? `${titles[file]} > ${title}` : title, + id !== null ? "#" + id : "", + null, + score + boost, + filenames[file], + ]); + } + } + } + + // search for explicit entries in index directives + for (const [entry, foundEntries] of Object.entries(indexEntries)) { + if (entry.includes(queryLower) && (queryLower.length >= entry.length/2)) { + for (const [file, id, isMain] of foundEntries) { + const score = Math.round(100 * queryLower.length / entry.length); + const result = [ + docNames[file], + titles[file], + id ? "#" + id : "", + null, + score, + filenames[file], + ]; + if (isMain) { + normalResults.push(result); + } else { + nonMainIndexResults.push(result); + } + } + } + } + + // lookup as object + objectTerms.forEach((term) => + normalResults.push(...Search.performObjectSearch(term, objectTerms)) + ); + + // lookup as search terms in fulltext + normalResults.push(...Search.performTermsSearch(searchTerms, excludedTerms)); + + // let the scorer override scores with a custom scoring function + if (Scorer.score) { + normalResults.forEach((item) => (item[4] = Scorer.score(item))); + nonMainIndexResults.forEach((item) => (item[4] = Scorer.score(item))); + } + + // Sort each group of results by score and then alphabetically by name. + normalResults.sort(_orderResultsByScoreThenName); + nonMainIndexResults.sort(_orderResultsByScoreThenName); + + // Combine the result groups in (reverse) order. + // Non-main index entries are typically arbitrary cross-references, + // so display them after other results. + let results = [...nonMainIndexResults, ...normalResults]; + + // remove duplicate search results + // note the reversing of results, so that in the case of duplicates, the highest-scoring entry is kept + let seen = new Set(); + results = results.reverse().reduce((acc, result) => { + let resultStr = result.slice(0, 4).concat([result[5]]).map(v => String(v)).join(','); + if (!seen.has(resultStr)) { + acc.push(result); + seen.add(resultStr); + } + return acc; + }, []); + + return results.reverse(); + }, + + query: (query) => { + const [searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms] = Search._parseQuery(query); + const results = Search._performSearch(searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms); + + // for debugging + //Search.lastresults = results.slice(); // a copy + // console.info("search results:", Search.lastresults); + + // print the results + _displayNextItem(results, results.length, searchTerms, highlightTerms); + }, + + /** + * search for object names + */ + performObjectSearch: (object, objectTerms) => { + const filenames = Search._index.filenames; + const docNames = Search._index.docnames; + const objects = Search._index.objects; + const objNames = Search._index.objnames; + const titles = Search._index.titles; + + const results = []; + + const objectSearchCallback = (prefix, match) => { + const name = match[4] + const fullname = (prefix ? prefix + "." : "") + name; + const fullnameLower = fullname.toLowerCase(); + if (fullnameLower.indexOf(object) < 0) return; + + let score = 0; + const parts = fullnameLower.split("."); + + // check for different match types: exact matches of full name or + // "last name" (i.e. last dotted part) + if (fullnameLower === object || parts.slice(-1)[0] === object) + score += Scorer.objNameMatch; + else if (parts.slice(-1)[0].indexOf(object) > -1) + score += Scorer.objPartialMatch; // matches in last name + + const objName = objNames[match[1]][2]; + const title = titles[match[0]]; + + // If more than one term searched for, we require other words to be + // found in the name/title/description + const otherTerms = new Set(objectTerms); + otherTerms.delete(object); + if (otherTerms.size > 0) { + const haystack = `${prefix} ${name} ${objName} ${title}`.toLowerCase(); + if ( + [...otherTerms].some((otherTerm) => haystack.indexOf(otherTerm) < 0) + ) + return; + } + + let anchor = match[3]; + if (anchor === "") anchor = fullname; + else if (anchor === "-") anchor = objNames[match[1]][1] + "-" + fullname; + + const descr = objName + _(", in ") + title; + + // add custom score for some objects according to scorer + if (Scorer.objPrio.hasOwnProperty(match[2])) + score += Scorer.objPrio[match[2]]; + else score += Scorer.objPrioDefault; + + results.push([ + docNames[match[0]], + fullname, + "#" + anchor, + descr, + score, + filenames[match[0]], + ]); + }; + Object.keys(objects).forEach((prefix) => + objects[prefix].forEach((array) => + objectSearchCallback(prefix, array) + ) + ); + return results; + }, + + /** + * search for full-text terms in the index + */ + performTermsSearch: (searchTerms, excludedTerms) => { + // prepare search + const terms = Search._index.terms; + const titleTerms = Search._index.titleterms; + const filenames = Search._index.filenames; + const docNames = Search._index.docnames; + const titles = Search._index.titles; + + const scoreMap = new Map(); + const fileMap = new Map(); + + // perform the search on the required terms + searchTerms.forEach((word) => { + const files = []; + const arr = [ + { files: terms[word], score: Scorer.term }, + { files: titleTerms[word], score: Scorer.title }, + ]; + // add support for partial matches + if (word.length > 2) { + const escapedWord = _escapeRegExp(word); + if (!terms.hasOwnProperty(word)) { + Object.keys(terms).forEach((term) => { + if (term.match(escapedWord)) + arr.push({ files: terms[term], score: Scorer.partialTerm }); + }); + } + if (!titleTerms.hasOwnProperty(word)) { + Object.keys(titleTerms).forEach((term) => { + if (term.match(escapedWord)) + arr.push({ files: titleTerms[term], score: Scorer.partialTitle }); + }); + } + } + + // no match but word was a required one + if (arr.every((record) => record.files === undefined)) return; + + // found search word in contents + arr.forEach((record) => { + if (record.files === undefined) return; + + let recordFiles = record.files; + if (recordFiles.length === undefined) recordFiles = [recordFiles]; + files.push(...recordFiles); + + // set score for the word in each file + recordFiles.forEach((file) => { + if (!scoreMap.has(file)) scoreMap.set(file, {}); + scoreMap.get(file)[word] = record.score; + }); + }); + + // create the mapping + files.forEach((file) => { + if (!fileMap.has(file)) fileMap.set(file, [word]); + else if (fileMap.get(file).indexOf(word) === -1) fileMap.get(file).push(word); + }); + }); + + // now check if the files don't contain excluded terms + const results = []; + for (const [file, wordList] of fileMap) { + // check if all requirements are matched + + // as search terms with length < 3 are discarded + const filteredTermCount = [...searchTerms].filter( + (term) => term.length > 2 + ).length; + if ( + wordList.length !== searchTerms.size && + wordList.length !== filteredTermCount + ) + continue; + + // ensure that none of the excluded terms is in the search result + if ( + [...excludedTerms].some( + (term) => + terms[term] === file || + titleTerms[term] === file || + (terms[term] || []).includes(file) || + (titleTerms[term] || []).includes(file) + ) + ) + break; + + // select one (max) score for the file. + const score = Math.max(...wordList.map((w) => scoreMap.get(file)[w])); + // add result to the result list + results.push([ + docNames[file], + titles[file], + "", + null, + score, + filenames[file], + ]); + } + return results; + }, + + /** + * helper function to return a node containing the + * search summary for a given text. keywords is a list + * of stemmed words. + */ + makeSearchSummary: (htmlText, keywords, anchor) => { + const text = Search.htmlToText(htmlText, anchor); + if (text === "") return null; + + const textLower = text.toLowerCase(); + const actualStartPosition = [...keywords] + .map((k) => textLower.indexOf(k.toLowerCase())) + .filter((i) => i > -1) + .slice(-1)[0]; + const startWithContext = Math.max(actualStartPosition - 120, 0); + + const top = startWithContext === 0 ? "" : "..."; + const tail = startWithContext + 240 < text.length ? "..." : ""; + + let summary = document.createElement("p"); + summary.classList.add("context"); + summary.textContent = top + text.substr(startWithContext, 240).trim() + tail; + + return summary; + }, +}; + +_ready(Search.init); diff --git a/manual/v1.1.0/en/html/_static/sphinx_highlight.js b/manual/v1.1.0/en/html/_static/sphinx_highlight.js new file mode 100644 index 0000000..8a96c69 --- /dev/null +++ b/manual/v1.1.0/en/html/_static/sphinx_highlight.js @@ -0,0 +1,154 @@ +/* Highlighting utilities for Sphinx HTML documentation. */ +"use strict"; + +const SPHINX_HIGHLIGHT_ENABLED = true + +/** + * highlight a given string on a node by wrapping it in + * span elements with the given class name. + */ +const _highlight = (node, addItems, text, className) => { + if (node.nodeType === Node.TEXT_NODE) { + const val = node.nodeValue; + const parent = node.parentNode; + const pos = val.toLowerCase().indexOf(text); + if ( + pos >= 0 && + !parent.classList.contains(className) && + !parent.classList.contains("nohighlight") + ) { + let span; + + const closestNode = parent.closest("body, svg, foreignObject"); + const isInSVG = closestNode && closestNode.matches("svg"); + if (isInSVG) { + span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); + } else { + span = document.createElement("span"); + span.classList.add(className); + } + + span.appendChild(document.createTextNode(val.substr(pos, text.length))); + const rest = document.createTextNode(val.substr(pos + text.length)); + parent.insertBefore( + span, + parent.insertBefore( + rest, + node.nextSibling + ) + ); + node.nodeValue = val.substr(0, pos); + /* There may be more occurrences of search term in this node. So call this + * function recursively on the remaining fragment. + */ + _highlight(rest, addItems, text, className); + + if (isInSVG) { + const rect = document.createElementNS( + "http://www.w3.org/2000/svg", + "rect" + ); + const bbox = parent.getBBox(); + rect.x.baseVal.value = bbox.x; + rect.y.baseVal.value = bbox.y; + rect.width.baseVal.value = bbox.width; + rect.height.baseVal.value = bbox.height; + rect.setAttribute("class", className); + addItems.push({ parent: parent, target: rect }); + } + } + } else if (node.matches && !node.matches("button, select, textarea")) { + node.childNodes.forEach((el) => _highlight(el, addItems, text, className)); + } +}; +const _highlightText = (thisNode, text, className) => { + let addItems = []; + _highlight(thisNode, addItems, text, className); + addItems.forEach((obj) => + obj.parent.insertAdjacentElement("beforebegin", obj.target) + ); +}; + +/** + * Small JavaScript module for the documentation. + */ +const SphinxHighlight = { + + /** + * highlight the search words provided in localstorage in the text + */ + highlightSearchWords: () => { + if (!SPHINX_HIGHLIGHT_ENABLED) return; // bail if no highlight + + // get and clear terms from localstorage + const url = new URL(window.location); + const highlight = + localStorage.getItem("sphinx_highlight_terms") + || url.searchParams.get("highlight") + || ""; + localStorage.removeItem("sphinx_highlight_terms") + url.searchParams.delete("highlight"); + window.history.replaceState({}, "", url); + + // get individual terms from highlight string + const terms = highlight.toLowerCase().split(/\s+/).filter(x => x); + if (terms.length === 0) return; // nothing to do + + // There should never be more than one element matching "div.body" + const divBody = document.querySelectorAll("div.body"); + const body = divBody.length ? divBody[0] : document.querySelector("body"); + window.setTimeout(() => { + terms.forEach((term) => _highlightText(body, term, "highlighted")); + }, 10); + + const searchBox = document.getElementById("searchbox"); + if (searchBox === null) return; + searchBox.appendChild( + document + .createRange() + .createContextualFragment( + '" + ) + ); + }, + + /** + * helper function to hide the search marks again + */ + hideSearchWords: () => { + document + .querySelectorAll("#searchbox .highlight-link") + .forEach((el) => el.remove()); + document + .querySelectorAll("span.highlighted") + .forEach((el) => el.classList.remove("highlighted")); + localStorage.removeItem("sphinx_highlight_terms") + }, + + initEscapeListener: () => { + // only install a listener if it is really needed + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) return; + + document.addEventListener("keydown", (event) => { + // bail for input elements + if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return; + // bail with special keys + if (event.shiftKey || event.altKey || event.ctrlKey || event.metaKey) return; + if (DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS && (event.key === "Escape")) { + SphinxHighlight.hideSearchWords(); + event.preventDefault(); + } + }); + }, +}; + +_ready(() => { + /* Do not call highlightSearchWords() when we are on the search page. + * It will highlight words from the *previous* search query. + */ + if (typeof Search === "undefined") SphinxHighlight.highlightSearchWords(); + SphinxHighlight.initEscapeListener(); +}); diff --git a/manual/v1.1.0/en/html/cif2x/about/index.html b/manual/v1.1.0/en/html/cif2x/about/index.html new file mode 100644 index 0000000..f9b5b71 --- /dev/null +++ b/manual/v1.1.0/en/html/cif2x/about/index.html @@ -0,0 +1,186 @@ + + + + + + + + 1. Introduction — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

1. Introduction

+
+

1.1. What is cif2x?

+

In recent years, the use of machine learning for predicting material properties and designing substances (known as materials informatics) has gained considerable attention. +The accuracy of machine learning depends heavily on the preparation of appropriate training data. +Therefore, the development of tools and environments for the rapid generation of training data is expected to contribute significantly to the advancement of research in materials informatics.

+

Cif2x is a tool that generates input files for first-principles calculations from cif files. +It constructs parts that vary depending on the type of material and computational conditions from crystal structure data, using input parameters as a template. +It is capable of generating multiple input files tailored to specific computational conditions. +Currently, it supports VASP, Quantum ESPRESSO, OpenMX, and AkaiKKR.

+
+
+

1.2. License

+

The distribution of the program package and the source codes for cif2x follow GNU General Public License version 3 (GPL v3) or later.

+
+
+

1.3. Contributors

+

This software was developed by the following contributors.

+
+
    +
  • Developers

    +
      +
    • Kazuyoshi Yoshimi (The Instutite for Solid State Physics, The University of Tokyo)

    • +
    • Tatsumi Aoyama (The Instutite for Solid State Physics, The University of Tokyo)

    • +
    • Yuichi Motoyama (The Instutite for Solid State Physics, The University of Tokyo)

    • +
    • Masahiro Fukuda (The Instutite for Solid State Physics, The University of Tokyo)

    • +
    • Kota Ido (The Instutite for Solid State Physics, The University of Tokyo)

    • +
    • Tetsuya Fukushima (The National Institute of Advanced Industrial Science and Technology (AIST))

    • +
    • Shusuke Kasamatsu (Yamagata University)

    • +
    • Takashi Koretsune (Tohoku University)

    • +
    +
  • +
  • Project Corrdinator

    +
      +
    • Taisuke Ozaki (The Instutite for Solid State Physics, The University of Tokyo)

    • +
    +
  • +
+
+
+
+

1.4. Release history

+
+
+
ver.1.1.0

Released on 2024/09/14

+
+
ver.1.0.1

Released on 2024/03/31

+
+
ver.1.0.0

Released on 2024/03/19

+
+
ver.1.0-alpha

Released on 2023/12/28

+
+
+
+
+ +
+

1.6. Operating environment

+

This tool was tested on the following platforms:

+
    +
  • Ubuntu Linux + python3

  • +
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/cif2x/appendix/index.html b/manual/v1.1.0/en/html/cif2x/appendix/index.html new file mode 100644 index 0000000..056fb92 --- /dev/null +++ b/manual/v1.1.0/en/html/cif2x/appendix/index.html @@ -0,0 +1,151 @@ + + + + + + + + 6. Extension guide — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

6. Extension guide

+
+

6.1. Adding modes of Quantum ESPRESSO

+

In order to add supports to modes of Quantum ESPRESSO, the mapping between the modes and the transformation classes should be added to create_modeproc() function in src/cif2x/qe/calc_mode.py.

+
def create_modeproc(mode, qe):
+    if mode in ["scf", "nscf"]:
+        modeproc = QEmode_pw(qe)
+    else:
+        modeproc = QEmode_generic(qe)
+    return modeproc
+
+
+

The transformation functionality for each mode is provided as a derived class of QEmode_base class. This class implements methods update_namelist() for updating the namelist block, and update_cards() for generating data of card blocks. +In the current version, two classes are provided: QEmode_pw class for scf and nscf calculations of pw.x, and QEmode_generic class for generating output as-is.

+
class QEmode_base:
+    def __init__(self, qe):
+    def update_namelist(self, content):
+    def update_cards(self, content):
+
+
+

For the namelist, the transformation class generates values for blank entries from crystal structure data and other sources. It may also force to set values such as the lattice parameters that are determined from the crystal structure data, or those that must be specified consistently with other parameters. The functions are provided for each mode separately.

+

For card blocks, a function is provided for each card, and the mapping between the card type and the function is given in the card_table variable. +The method update_cards() in the base class picks up and runs the function associated to the card, and updates the content of the card. Of course, a new update_cards() function may be defined.

+
self.card_table = {
+    'CELL_PARAMETERS': generate_cell_parameters,
+    'ATOMIC_SPECIES': generate_atomic_species,
+    'ATOMIC_POSITIONS': generate_atomic_positions,
+    'K_POINTS': generate_k_points,
+}
+
+
+

The functions for cards are gathered in src/cif2x/qe/cards.py with the function names as generate_{card name}. These functions takes parameters for card blocks as argument, and returns a dictionary containing the card name, the options, and the data field.

+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/cif2x/basic-usage.html b/manual/v1.1.0/en/html/cif2x/basic-usage.html new file mode 100644 index 0000000..9f8fa31 --- /dev/null +++ b/manual/v1.1.0/en/html/cif2x/basic-usage.html @@ -0,0 +1,236 @@ + + + + + + + + 2. Installation and basic usage — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

2. Installation and basic usage

+

Prerequisite

+
+

Input file generator for first-principles calculation cif2x included in HTP-tools requires the following programs and libraries:

+
    +
  • python 3.x

  • +
  • pymatgen module

  • +
  • ruamel.yaml module

  • +
  • f90nml module

  • +
  • qe-tools module

  • +
  • numpy module

  • +
  • pandas module

  • +
  • monty module

  • +
  • OpenBabel module (optional)

  • +
  • AkaiKKRPythonUtil module

  • +
+

For A tool to retrieve crystallographic data from databases getcif, the additional library is required:

+
    +
  • mp-api module

  • +
+
+

Official pages

+
+
+

Downloads

+
+

cif2x can be downloaded by the following command with git:

+
$ git clone https://github.com/issp-center-dev/cif2x.git
+
+
+
+

Installation

+
+

Once the source files are obtained, you can install cif2x by running the following command. The required libraries will also be installed automatically at the same time.

+
$ cd ./cif2x
+$ python3 -m pip install .
+
+
+

The executable files cif2x and getcif will be installed. +You may need to add --user option next to install keyword above in case you are not allowed to install packages system-wide.

+

AkaiKKRPythonUtil module need to be installed separately. The source package is available from the repository. Then follow the steps below to install the module along with the required seaborn module:

+
$ git clone https://github.com/AkaiKKRteam/AkaiKKRPythonUtil.git
+$ cd ./AkaiKKRPythonUtil/library/PyAkaiKKR
+$ python3 -m pip install .
+$ python3 -m pip install seaborn
+
+
+
+

Directory structure

+
+
.
+|-- LICENSE
+|-- README.md
+|-- pyproject.toml
+|-- docs/
+|   |-- ja/
+|   |-- en/
+|   |-- tutorial/
+|-- src/
+|   |-- cif2x/
+|       |-- __init__.py
+|       |-- main.py
+|       |-- cif2struct.py
+|       |-- struct2qe.py
+|       |-- qe/
+|       |   |-- __init__.py
+|       |   |-- calc_mode.py
+|       |   |-- cards.py
+|       |   |-- content.py
+|       |   |-- qeutils.py
+|       |   |-- tools.py
+|       |-- struct2vasp.py
+|       |-- struct2openmx.py
+|       |-- openmx/
+|       |   |-- __init__.py
+|       |   |-- vps_table.py
+|       |-- struct2akaikkr.py
+|       |-- akaikkr/
+|       |   |-- make_input.py
+|       |   |-- read_input.py
+|       |   |-- run_cif2kkr.py
+|       |-- utils.py
+|   |-- getcif/
+|       |-- __init__.py
+|       |-- main.py
+|-- sample/
+
+
+
+

Basic usage

+
+

cif2x is a tool to generate a set of input files for first-principles calculation software. It takes an input parameter file as a template, and generates parameter items that may vary by materials and calculation conditions from crystallographic data. In the present version, cif2x supports Quantum ESPRESSO, VASP, OpenMX, and AkaiKKR.

+
    +
  1. Prepare input parameter file

    +
    +

    First, you need to create an input parameter file in YAML format that describes contents of the input file to be generated for the first-principles calculation software.

    +
    +
  2. +
  3. Prepare crystal structure files and pseudo-potential files

    +
    +

    The crystal structure data need to be prepared for the target materials. The file format is CIF, POSCAR, xfs, or those supported by pymatgen.

    +

    For Quantum ESPRESSO, the pseudo-potential files and the index file in CSV format need to be placed. Their locations are specified in the input parameter file.

    +

    For VASP, the location of the pseudo-potential files will be specified in a file ~/.config/.pmgrc.yaml or by an environment variable. It may be specified in the input parameter file.

    +
    +
  4. +
  5. Run command

    +
    +

    Run cif2x command with the input parameter file and the crystal structure data as arguments. To generate input files for Quantum ESPRESSO, the target option -t QE should be specified. The option turns to -t VASP for VASP, -t OpenMX for OpenMX, and -t AkaiKKR for AkaiKKR.

    +
    $ cif2x -t QE input.yaml material.cif
    +
    +
    +
    +
  6. +
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/cif2x/command/index.html b/manual/v1.1.0/en/html/cif2x/command/index.html new file mode 100644 index 0000000..71dc92a --- /dev/null +++ b/manual/v1.1.0/en/html/cif2x/command/index.html @@ -0,0 +1,167 @@ + + + + + + + + 4. Command reference — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

4. Command reference

+
+

4.1. cif2x

+
+

Generate input files for first-principles calculation software

+
+

SYNOPSIS:

+
+
cif2x [-v][-q] -t target input_yaml material.cif
+cif2x -h
+cif2x --version
+
+
+
+

DESCRIPTION:

+
+

This program reads an input parameter file specified by input_yaml and a crystal data file specified by material.cif, and generates a set of input files for first-principles calculation software. In the current version, the supported software includes Quantum ESPRESSO, VASP, and OpenMX. +It takes the following command line options.

+
    +
  • -v

    +

    increases verbosity of the runtime messages. When specified multiple times, the program becomes more verbose.

    +
  • +
  • -q

    +

    decreases verbosity of the runtime messages. It cancels the effect of -v option, and when specified multiple times, the program becomes more quiet.

    +
  • +
  • -t target

    +

    specifies the target first-principles calculation software. The supported software for target is listed as follows:

    +
      +
    • QE, espresso, quantum_espresso: generates input files for Quantum ESPRESSO.

    • +
    • VASP: generates input files for VASP.

    • +
    • OpenMX: generates input files for OpenMX.

    • +
    • AkaiKKR: generates input files for AkaiKKR.

    • +
    +
  • +
  • input_yaml

    +

    specifies an input parameter file in YAML format.

    +
  • +
  • material.cif

    +

    specifies crystal structure data file. It is in CIF (Crystallographic Information Framework) format, or other format supported by pymatgen.

    +
  • +
  • -h

    +

    displays help and exits.

    +
  • +
  • --version

    +

    displays version information.

    +
  • +
+
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/cif2x/filespec/index.html b/manual/v1.1.0/en/html/cif2x/filespec/index.html new file mode 100644 index 0000000..426ba00 --- /dev/null +++ b/manual/v1.1.0/en/html/cif2x/filespec/index.html @@ -0,0 +1,395 @@ + + + + + + + + 5. File format — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

5. File format

+
+

5.1. Input parameter file

+

An input parameter file describes information necessary to generate input files for first-principles calculation software by cif2x. It should be given in YAML format, and consist of the following sections.

+
+
    +
  1. structure section: describes how to handle crystal structure data.

  2. +
  3. optional section: describes pseudo-potential files, and symbol definitions for reference feature of YAML.

  4. +
  5. tasks section: describes contents of input files.

  6. +
+
+
+

structure

+
+

use_ibrav (default value: false)

+
+

This parameter specifies whether ibrav parameter is used for Quantum ESPRESSO as the input of the crystal structure. When it is set to true, the lattice is transformed to match the convention of Quantum ESPRESSO, and the lattice parameters a, b, c, cosab, cosac, and cosbc are written to the input file as needed.

+
+

tolerance (default value: 0.01)

+
+

This parameter specifies the tolerance in the difference between the reconstructed Structure data and the original data when use_ibrav is set to true.

+
+

supercell (default value: none)

+
+

This parameter specifies the size of supercell, when it is adopted, in the form of [\(n_x\), \(n_y\), \(n_z\)].

+
+
+
+
+

optional

+

This section contains global settings needed for the first-principles calculation software. The available parameters are described in the corresponding sections below.

+
+
+

tasks

+

This section defines contents of the input files. It is organized as a list of blocks, each corresponding to an input file, to allow for generating a set of input files for an input. The terms described in each block are explained in the following.

+
+

mode (Quantum ESPRESSO)

+
+

This parameter specifies the type of calculation. In the current version, the supported mode includes scf and nscf for pw.x of Quantum ESPRESSO. If an unsupported mode is specified, the settings in content will be exported as is.

+
+

output_file (Quantum ESPRESSO)

+
+

This parameter specifies the file name of the output.

+
+

output_dir

+
+

This parameter specifies the directory name of the output. The default value is the current directory.

+
+

content

+
+

This parameter describes the content of the output. +For Quantum ESPRESSO, it contains the namelist data (blocks starting from &system, &control, etc.) in namelist block, and other card data (such as K_POINTS) as individual blocks. Some card data may take parameters.

+
+

template (Quantum ESPRESSO)

+

template_dir (VASP)

+
+

These parameters specifies the template file and the template directory for the input files, respectively. If they are not given, templates will not be used. The content of the template file is merged with those of content. The entries in the template file will be superseded by those of content if the entries of the same keys appear both.

+
+
+
+
+

Specifying parameter set

+

An input parameter may be given a list or range of parameters. In this case, a separate directory is created for every combination of parameters to store the generated input files. A special syntax ${...} is used to specify the parameter set as follows:

+
    +
  • a list: ${[ A, B, ... ]}

    +

    a set of parameter values is described as a Python list. Each entry may be a scalar value, or a list of values.

    +
  • +
  • a range: ${range(N)}, ${range(start, end, step)}

    +

    a range of parameter is given by the keyword range. The former specifies the values from 0 to N-1, and the latter from start to end with every step. (If step is omitted, it is assumed to be 1.)

    +
  • +
+
+
+
+

5.2. Parameters for Quantum ESPRESSO

+

The entries of optional section and content part of the tasks section specific to Quantum ESPRESSO are explained below. +In the current version, scf mode and nscf mode of pw.x are supported.

+
+

optional section

+
+

pp_file

+
+

This parameter specifies the index file in CSV format that relates the element type and the pseudo-potential file. This file contains the following columns: element name, type of pseudo-potential, nexclude, orbitals. An example line is given as:

+
Fe,pbe-spn-rrkjus_psl.0.2.1,4,spd
+
+
+

The name of the pseudo-potential file corresponding to the above example reads +Fe.pbe-spn-rrkjus_psl.0.2.1.UPF .

+
+

cutoff_file

+
+

This parameter specifies the index file in CSV format that relates the pseudo-potential file and the cutoff values. This file contains the following columns: name of pseudo-potential file, ecutwfc value, ecutrho value.

+
+

pseudo_dir

+
+

This parameter specifies the name of the directory that holds pseudo-potential files. It is used when the cutoff values are obtained from the pseudo-potential files. +It is indenepent from the pseudo_dir parameter in the input files for Quantum ESPRESSO.

+
+
+
+
+

content

+
+

namelist

+
    +
  • The lattice specifications in &system block will be superseded according to use_ibrav parameter in the structure section.

    +
      +
    • use_ibrav = false: +ibrav is set to 0, and the lattice parameters including a, b, c, cosab, cosac, cosbc, celldm are removed.

    • +
    • use_ibrav = true: +ibrab is set to the index of Bravais lattices obtained from the crystal structure data. The Structure data will be reconstructed to match the convention of Quantum ESPRESSO.

    • +
    +
  • +
  • nat (the number of atoms) and ntyp (the number of element types) will be superseded by the values obtained from the crystal structure data.

  • +
  • The cutoff values ecutwfc and ecutrho are obtained from the pseudo-potential files if these parameters are left blank.

  • +
+

CELL_PARAMETERS

+
    +
  • This block will not be generated if use_ibrav is set to true. Otherwise, the lattice vectors are exported in units of angstrom.

  • +
  • The information of the lattice vectors are obtained from the crystal structure data. When the data field is defined and contains a 3x3 matrix, that value will be used for the set of lattice vectors instead.

  • +
+

ATOMIC_SPECIES

+
    +
  • This block exports a list of atom species, atomic mass, and the file name of the pseudo-potential data.

  • +
  • The information of the atoms are obtained from the crystal structure data. The file names of the pseudo-potential data are referred from the CSV-formatted index file specified by pp_list parameter.

  • +
  • When the data field is defined and contains the required data, these values will be used instead.

  • +
+

ATOMIC_POSITIONS

+
    +
  • This block exports the atomic species and their fractional coordinates.

  • +
  • When ignore_species is given to specify an atomic species or a list of species, the values of if_pos for these species will be set to 0. It is used for MD or structure relaxations.

  • +
  • When the data field is defined and contains the required data, these values will be used instead.

  • +
+

K_POINTS

+
    +
  • This block exports the information of k points. The type of the output is specified by the option parameter that takes one of the following:

    +
      +
    • gamma: uses \(\Gamma\) point.

    • +
    • crystal: generates a list of k points in mesh pattern. The mesh width is given by the grid parameter, or derived from the vol_density or k_resolution parameters.

    • +
    • automatic: generates a mesh of k points. It is given by the grid parameter, or derived from the vol_density or k_resolution parameters. The shift is obtained from the kshifts parameter.

    • +
    +
  • +
  • The mesh width is determined in the following order:

    +
      +
    • the grid parameter, specified by a list of \(n_x, n_y, n_z\), or a scalar value \(n\). For the latter, \(n_x = n_y = n_z = n\) is assumed.

    • +
    • derived from the vol_density parameter.

    • +
    • derived from the k_resolution parameter, whose default value is 0.15.

    • +
    +
  • +
  • When the data field is defined and contains the required data, these values will be used.

  • +
+
+
+
+
+

5.3. Parameters for VASP

+

The entries of optional section and content part of the tasks section specific to VASP are explained below.

+
+

optional

+

The type and the location of pseudo-potential files are specified.

+

According to pymatgen, the pseudo-potential files are obtained from +PMG_VASP_PSP_DIR/functional/POTCAR.{element}(.gz) or +PMG_VASP_PSP_DIR/functional/{element}/POTCAR, +where +PMG_VASP_PSP_DIR points to the directory and it is given in the configuration file +~/.config/.pmgrc.yaml or by the environment variable of the same name. +functional refers to the type of the pseudo-potential, whose value is predefined as +POT_GGA_PAW_PBE, POT_LDA_PAW, etc.

+
+

pseudo_functional

+
+

This parameter specifies the type of the pseudo-potential. The relation to the functional value above is defined in the table of pymatgen, for example, by PBE to POT_GGA_PAW_PBE, or by LDA to POT_LDA_PAW, or in a similar manner.

+
+
+

When the pseudo_dir parameter is specified, it is used as the directory that holds the pseudo-potential files, ignoring the convention of pymatgen.

+
+

psuedo_dir

+
+

This parameter specifies the directory that holds the pseudo-potential files. The paths to the pseudo-potential file turn to pseudo_dir/POTCAR.{element}(.gz), or pseudo_dir/{element}/POTCAR.

+
+
+
+
+

tasks

+

The template files are assumed to be placed in the directory specified by the template_dir parameter by the names INCAR, KPOINTS, POSCAR, and POTCAR. The missing files will be ignored.

+
+
+

content

+
+

incar

+
    +
  • This block contains parameters described in the INCAR file

  • +
+

kpoints

+
    +
  • type

    +

    The type parameter describes how KPOINTS are specified. The following values are allowed, with some types accepting parameters. See pymatgen.io.vasp manual for further details.

    +
      +
    • automatic

      +

      parameter: grid

      +
    • +
    • gamma_automatic

      +

      parameter: grid, shift

      +
    • +
    • monkhorst_automatic

      +

      parameter: grid, shift

      +
    • +
    • automatic_density

      +

      parameter: kppa, force_gamma

      +
    • +
    • automatic_gamma_density

      +

      parameter: grid_density

      +
    • +
    • automatic_density_by_vol

      +

      parameter: grid_density, force_gamma

      +
    • +
    • automatic_density_by_lengths

      +

      parameter: length_density, force_gamma

      +
    • +
    • automatic_linemode

      +

      parameter: division, path_type (corresponding to the path_type parameter of HighSymmKpath.)

      +
    • +
    +
  • +
+
+
+
+
+

5.4. Parameters for OpenMX

+

The entries of optional section and content part of the tasks section specific to OpenMX are explained below.

+
+

optional

+
+

data_path

+
+

This parameter specifies the name of directory that holds files for pseudo-atomic orbitals and pseudo-potentials. It corresponds to the DATA.PATH parameter.

+
+
+
+
+

content

+
+

precision

+
+

This parameter specifies the set of pseudo-atomic orbitals listed in Tables 1 and 2 of Section 10.6 of the OpenMX manual. It is one of quick, standard, or precise. The default value is quick.

+
+
+
+
+
+

5.5. Parameters for AkaiKKR

+

The entries of optional section and content part of the tasks section specific to AkaiKKR are explained below.

+
+

optional

+
+

workdir

+
+

This parameter specifies the directory in which temporal files are stored. If it is not given, /tmp or the value of the environment variable TMPDIR is used.

+
+
+
+
+

content

+

The content part contains the input parameters of AkaiKKR. +A blank is written to the input file for an unspecified parameter, to which the default value defined in AkaiKKR will be assumed. +The parameter values listed below are replaced by the values obtained from the crystal structure data.

+
    +
  • brvtyp, except when it is set to aux (or a string that contains aux).

  • +
  • lattice parameters, a, c/a, b/a, alpha, beta, gamma, r1, r2, r3.

  • +
  • type information, ntyp, type, ncmp, rmt, field, mxl, anclr, conc.

  • +
  • element information, natm, atmicx, atmtyp.

  • +
+

For rmt and field, the values specified in the input parameter file will be used only when they are lists having the same number of elements as ntyp.

+
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/cif2x/index.html b/manual/v1.1.0/en/html/cif2x/index.html new file mode 100644 index 0000000..0f85458 --- /dev/null +++ b/manual/v1.1.0/en/html/cif2x/index.html @@ -0,0 +1,162 @@ + + + + + + + + Input file generator for first-principles calculations (cif2x) — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/cif2x/tutorial/index.html b/manual/v1.1.0/en/html/cif2x/tutorial/index.html new file mode 100644 index 0000000..84e1a57 --- /dev/null +++ b/manual/v1.1.0/en/html/cif2x/tutorial/index.html @@ -0,0 +1,217 @@ + + + + + + + + 3. Tutorial — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

3. Tutorial

+

The procedure to use the input file generator cif2x for first-principles calculation software consists of preparing an input parameter file, crystal structure data, and pseudo-potential files, and running the program cif2x. +In the current version, the supported software includes Quantum ESPRESSO, VASP, OpenMX, and AkaiKKR. +In this tutorial, we will explain the steps along a sample for Quantum ESPRESSO in docs/tutorial/cif2x.

+
+

3.1. Prepare an input parameter file

+

An input parameter file describes the content of input files for the first-principles calculation software. +An example is presented below. It is a text file in YAML format that contains options to crystal structure data, and contents of the input file used as an input for the first-principle calculation. See file format section for the details of specification.

+

In YAML format, parameters are given in dictionary form as keyword: value, where value is a scalar such as a number or a string, or a set of values enclosed in [ ] or listed in itemized form, or a nested dictionary.

+
structure:
+  use_ibrav: false
+  tolerance: 0.05
+
+optional:
+  pseudo_dir: ./pseudo
+  pp_file: ./pseudo/pp_psl_pbe_rrkjus.csv
+
+tasks:
+  - mode: scf
+    output_file: scf.in
+    output_dir: scf
+    template: scf.in_tmpl
+    content:
+      namelist:
+        control:
+          prefix: pwscf
+          pseudo_dir:
+          outdir: ./work
+        system:
+          ecutwfc:
+          ecutrho:
+      CELL_PARAMETERS:
+      ATOMIC_SPECIES:
+      ATOMIC_POSITIONS:
+        option: crystal
+      K_POINTS:
+        option: automatic
+        grid: [8,8,8]
+
+
+

The input parameter file consists of structure, optional, and tasks sections. +The structure section specifies options to the crystal structure data. +The optional section holds global settings concerning the pseudo-potentials.

+

The tasks section describes inputs for the first-principles calculations. In case of generating multiple files for a series of calculations, the tasks section takes a list of parameter sets. +For each set, the calculation type is specified by the mode parameter: scf and nscf are supported as modes, as well as arbitrary modes for generic output.

+

The content of the output is given in content section. +The input files of Quantum ESPRESSO are composed of the parts in namelist format of Fortran90 starting from &keyword, and the blocks called cards that start with keywords such as K_POINTS and end with blank lines. The content block holds namelist and cards in a form of nested dictionary. +Basically, the specified items are written to the input files as-is, except for several cases. If a keyword is left blank, its value will be obtained form the crystal structure data or other sources.

+

Besides, templates of the input files can be used. The content of the file given by the template keyword is considered as input data along with the entries in content block. When the entries of the same keywords appear both, those of the input parameter files will be used. Therefore, it is possible to use template files and overwrite some entries by the input parameter file as needed. +In the present example, the file (scf.in_tmpl) shown below is read as a template, and the entries on cutoff parameters as well as cards of CELL_PARAMETER, ATOMIC_SPECIES, ATOMIC_POSITIONS, K_POINTS are generated from the crystal structure data and pseudo-potential files. It is noted that the values of ecutwfc and ecutrho are overwritten by the empty lines.

+
&control
+    calculation = 'scf'
+    prefix = 'pwscf'
+    pseudo_dir = './pseudo'
+    outdir = './work'
+    tstress = .true.
+    tprnfor = .true.
+/
+
+&system
+    ibrav = 0
+    nat = 7
+    ntyp = 3
+    ecutwfc = 36.0
+    ecutrho = 180.0
+    occupations = 'smearing'
+    smearing = 'm-p'
+    degauss = 0.01
+    noncolin = .true.
+    nspin = 2
+/
+
+&electrons
+    missing_beta = 0.1
+    conv_thr = 1e-08
+/
+
+
+
+
+

3.2. Generating input files

+

The program cif2x is executed with the input parameter file (input.yaml) and crystal structure data (Co3SnS2_nosym.cif) as follows.

+
$ cif2x -t QE input.yaml Co3SnS2_nosym.cif
+
+
+

The required pseudo-potential files should be placed in the directory ./pseudo, and the index file for the pseudo-potential should be prepared as ./psudo/pp_psl_pbe_rrkjus.csv.

+

Run cif2x and a set of input files for Quantum ESPRESSO will be created. The output file is specified by output_file parameter of the input parameter file, and stored in the directory given by output_dir. In this example, the input file for SCF calculation is created as ./scf/scf.in.

+
+
+

3.3. Specifying parameter sets

+

In some cases, a series of input files should be generated with varying their parameter values. For example, the convergence is examined by modifying the cutoff values or grid resolution of k points. The input parameter can be given a list or a range of values, and the input files for every combination from the choices of parameter values are generated and stored in separate directories. To specify parameter set, a special syntax ${...} is adopted.

+
content:
+  K_POINTS:
+    option: automatic
+    grid:   ${ [ [4,4,4], [8,8,8], [12,12,12] ] }
+
+
+

When K_POINTS is given as above, the input files having the grid value to be [4,4,4], [8,8,8], [12,12,12] will be generated in the sub-directories, 4x4x4/, 8x8x8/, 12x12x12/, respectively.

+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/genindex.html b/manual/v1.1.0/en/html/genindex.html new file mode 100644 index 0000000..68ca9f9 --- /dev/null +++ b/manual/v1.1.0/en/html/genindex.html @@ -0,0 +1,103 @@ + + + + + + + Index — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ + +

Index

+ +
+ +
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/getcif/about/index.html b/manual/v1.1.0/en/html/getcif/about/index.html new file mode 100644 index 0000000..5b4f17a --- /dev/null +++ b/manual/v1.1.0/en/html/getcif/about/index.html @@ -0,0 +1,122 @@ + + + + + + + + 1. Introduction — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

1. Introduction

+

getcif is a tool to retrieve crystallographic information and other properties of materials from databases. The latest version of getcif provides access to Materials Project database. Users can search database and obtain information by specifying symmetry, composition, or physical properties of materials.

+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/getcif/appendix/index.html b/manual/v1.1.0/en/html/getcif/appendix/index.html new file mode 100644 index 0000000..98961d0 --- /dev/null +++ b/manual/v1.1.0/en/html/getcif/appendix/index.html @@ -0,0 +1,466 @@ + + + + + + + + 5. Parameter List — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

5. Parameter List

+
+

5.1. Search conditions (properties)

+

Table Search criteria summarizes condition terms available in the properties section.

+

getcif uses the mp-api library provided by Materials Project as a client for accessing the database via Materials Project API. The condition terms correspond to the parameters for the materials.summary.search method of MPRester class in mp-api. (The content of the table is taken and reformatted from the comments of the source file in mpi-api.)

+

The types of the parameter values denote as follows:

+
    +
  • str: a string

  • +
  • List[str]: a list of strings

  • +
  • str | List[str]: a string or a list of strings

  • +
  • int: an integer

  • +
  • bool: a boolean value (true or false)

  • +
  • Tuple[float,float]: a pair of two floating point numbers (as a list)

  • +
  • Tuple[int,int]: a pair of two integers (as a list)

  • +
  • CrystalSystem: a string representing the crystal system, one of the following: Triclinic, Monoclinic, Orthorhombic, Tetragonal, Trigonal, Hexagonal, Cubic

  • +
  • List[HasProps]: a list of strings representing the properties defined in emmet.core.summary. The available terms include:

    +
    +

    absorption, +bandstructure, +charge_density, +chemenv, +dielectric, +dos, +elasticity, +electronic_structure, +eos, +grain_boundaries, +insertion_electrodes, +magnetism, +materials, +oxi_states, +phonon, +piezoelectric, +provenance, +substrates, +surface_properties, +thermo, +xas

    +
    +
  • +
  • Ordering: a string representing the magnetic ordering, one of the following: FM, AFM, FiM, NM

  • +
+

A list of the values is described in an indented style or in a comma-separated bracketted style in YAML notation. It is also available that it is described as a space-separated list.

+

A Tuple is used to denote a range of values by min and max. It is described by a list of two numbers, as well as by a space-separated list as min max. +The following notation is also available:

+
+
+
< max

less than or equal to max

+
+
> min

more than or equal to min

+
+
min ~ max

between min and max

+
+
+
+ + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5.1 Search criteria

Keyword

Type

Description

band_gap

Tuple[float,float]

Minimum and maximum band gap in eV to consider.

chemsys

str | List[str]

A chemical system, list of chemical systems (e.g., Li-Fe-O, Si-*, [Si-O, Li-Fe-P]), or single formula (e.g., Fe2O3, Si*).

crystal_system

CrystalSystem

Crystal system of material.

density

Tuple[float,float]

Minimum and maximum density to consider.

deprecated

bool

Whether the material is tagged as deprecated.

e_electronic

Tuple[float,float]

Minimum and maximum electronic dielectric constant to consider.

e_ionic

Tuple[float,float]

Minimum and maximum ionic dielectric constant to consider.

e_total

Tuple[float,float]

Minimum and maximum total dielectric constant to consider.

efermi

Tuple[float,float]

Minimum and maximum fermi energy in eV to consider.

elastic_anisotropy

Tuple[float,float]

Minimum and maximum value to consider for the elastic anisotropy.

elements

List[str]

A list of elements.

energy_above_hull

Tuple[int,int]

Minimum and maximum energy above the hull in eV/atom to consider.

equilibrium_reaction_energy

Tuple[float,float]

Minimum and maximum equilibrium reaction energy in eV/atom to consider.

exclude_elements

List[str]

List of elements to exclude.

formation_energy

Tuple[int,int]

Minimum and maximum formation energy in eV/atom to consider.

formula

str | List[str]

A formula including anonymized formula or wild cards (e.g., Fe2O3, ABO3, Si*). A list of chemical formulas can also be passed (e.g., [Fe2O3, ABO3]).

g_reuss

Tuple[float,float]

Minimum and maximum value in GPa to consider for the Reuss average of the shear modulus.

g_voigt

Tuple[float,float]

Minimum and maximum value in GPa to consider for the Voigt average of the shear modulus.

g_vrh

Tuple[float,float]

Minimum and maximum value in GPa to consider for the Voigt-Reuss-Hill average of the shear modulus.

has_props

List[HasProps]

The calculated properties available for the material.

has_reconstructed

bool

Whether the entry has any reconstructed surfaces.

is_gap_direct

bool

Whether the material has a direct band gap.

is_metal

bool

Whether the material is considered a metal.

is_stable

bool

Whether the material lies on the convex energy hull.

k_reuss

Tuple[float,float]

Minimum and maximum value in GPa to consider for the Reuss average of the bulk modulus.

k_voigt

Tuple[float,float]

Minimum and maximum value in GPa to consider for the Voigt average of the bulk modulus.

k_vrh

Tuple[float,float]

Minimum and maximum value in GPa to consider for the Voigt-Reuss-Hill average of the bulk modulus.

magnetic_ordering

Ordering

Magnetic ordering of the material.

material_ids

List[str]

List of Materials Project IDs to return data for.

n

Tuple[float,float]

Minimum and maximum refractive index to consider.

num_elements

Tuple[int,int]

Minimum and maximum number of elements to consider.

num_sites

Tuple[int,int]

Minimum and maximum number of sites to consider.

num_magnetic_sites

Tuple[int,int]

Minimum and maximum number of magnetic sites to consider.

num_unique_magnetic_sites

Tuple[int,int]

Minimum and maximum number of unique magnetic sites to consider.

piezoelectric_modulus

Tuple[float,float]

Minimum and maximum piezoelectric modulus to consider.

poisson_ratio

Tuple[float,float]

Minimum and maximum value to consider for Poisson’s ratio.

possible_species

List[str]

List of element symbols appended with oxidation states. (e.g. Cr2+,O2-)

shape_factor

Tuple[float,float]

Minimum and maximum shape factor values to consider.

spacegroup_number

int

Space group number of material.

spacegroup_symbol

str

Space group symbol of the material in international short symbol notation.

surface_energy_anisotropy

Tuple[float,float]

Minimum and maximum surface energy anisotropy values to consider.

theoretical

bool

Whether the material is theoretical.

total_energy

Tuple[int,int]

Minimum and maximum corrected total energy in eV/atom to consider.

total_magnetization

Tuple[float,float]

Minimum and maximum total magnetization values to consider.

total_magnetization_normalized_formula_units

Tuple[float,float]

Minimum and maximum total magnetization values normalized by formula units to consider.

total_magnetization_normalized_vol

Tuple[float,float]

Minimum and maximum total magnetization values normalized by volume to consider.

uncorrected_energy

Tuple[int,int]

Minimum and maximum uncorrected total energy in eV/atom to consider.

volume

Tuple[float,float]

Minimum and maximum volume to consider.

weighted_surface_energy

Tuple[float,float]

Minimum and maximum weighted surface energy in J/\(m^2\) to consider.

weighted_work_function

Tuple[float,float]

Minimum and maximum weighted work function in eV to consider.

+
+
+

5.2. Data to retrive (fields)

+

The items available for the fields section for retrieving from the database are listed below.

+
band_gap
+bandstructure
+builder_meta
+bulk_modulus
+cbm
+chemsys
+composition
+composition_reduced
+database_IDs
+decomposes_to
+density
+density_atomic
+deprecated
+deprecation_reasons
+dos
+dos_energy_down
+dos_energy_up
+e_electronic
+e_ij_max
+e_ionic
+e_total
+efermi
+elements
+energy_above_hull
+energy_per_atom
+equilibrium_reaction_energy_per_atom
+es_source_calc_id
+formation_energy_per_atom
+formula_anonymous
+formula_pretty
+grain_boundaries
+has_props
+has_reconstructed
+homogeneous_poisson
+is_gap_direct
+is_magnetic
+is_metal
+is_stable
+last_updated
+material_id
+n
+nelements
+nsites
+num_magnetic_sites
+num_unique_magnetic_sites
+ordering
+origins
+possible_species
+property_name
+shape_factor
+shear_modulus
+structure
+surface_anisotropy
+symmetry
+task_ids
+theoretical
+total_magnetization
+total_magnetization_normalized_formula_units
+total_magnetization_normalized_vol
+types_of_magnetic_species
+uncorrected_energy_per_atom
+universal_anisotropy
+vbm
+volume
+warnings
+weighted_surface_energy
+weighted_surface_energy_EV_PER_ANG2
+weighted_work_function
+xas
+
+
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/getcif/command/index.html b/manual/v1.1.0/en/html/getcif/command/index.html new file mode 100644 index 0000000..074fee6 --- /dev/null +++ b/manual/v1.1.0/en/html/getcif/command/index.html @@ -0,0 +1,160 @@ + + + + + + + + 3. Command reference — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

3. Command reference

+
+

3.1. getcif

+
+

Retrieve crystallographic and other data from databases.

+
+

SYNOPSIS:

+
+
getcif [-v][-q] [--dry-run] input_yaml
+getcif -h
+getcif --version
+
+
+
+

DESCRIPTION:

+
+

This program reads an input parameter file specified by input_yaml, and connects to the database to submit a query and obtain the crystallographic data of materials. +It takes the following command line options.

+
    +
  • input_yaml

    +

    specifies an input parameter file in YAML format.

    +
  • +
  • -v

    +

    increases verbosity of the runtime messages. When specified multiple times, the program becomes more verbose.

    +
  • +
  • -q

    +

    decreases verbosity of the runtime messages. It cancels the effect of -v option, and when specified multiple times, the program becomes more quiet.

    +
  • +
  • --dry-run

    +

    displays search parameters and exits without connecting to the database. It allows to confirm the search conditions. This option supersedes the dry_run parameter in the input file.

    +
  • +
  • -h

    +

    displays help and exits.

    +
  • +
  • --version

    +

    displays version information.

    +
  • +
+
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/getcif/filespec/index.html b/manual/v1.1.0/en/html/getcif/filespec/index.html new file mode 100644 index 0000000..84acb16 --- /dev/null +++ b/manual/v1.1.0/en/html/getcif/filespec/index.html @@ -0,0 +1,238 @@ + + + + + + + + 4. File format — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

4. File format

+
+

4.1. Input parameter file

+

An input parameter file describes information to search for crystallographic and other data from Materials Project database by getcif. It should be given in YAML format, and consist of the following sections.

+
+
    +
  1. database section: describes information on the database to connect.

  2. +
  3. option section: describes output directory and other parameters for command execution.

  4. +
  5. properties section: describes search conditions.

  6. +
  7. fields section: describes types of data to be retrieved.

  8. +
+
+
+

database

+

target

+
+

This parameter specifies the database to connected to. At present this parameter is ignored.

+
+

api_key_file (default value: materials_project.key)

+
+

This parameter specifies a name of a file that contains the API key to access to the database. +The suffix of the file name must be .key. +If the file does not exist or it does not contain a valid value, the API key is obtained from the environment variable MP_API_KEY, or from the parameter PMG_MAPI_KEY of the pymatgen configuration file in ~/.config/.pmgrc.

+

The API key file is a text file. A line starting with # is regarded as a comment. The heading and trailing spaces are ignored. When the file contains more than one line, the API key is taken from the first valid line.

+
+
+
+

option

+

This section contains global settings needed for the first-principles calculation software. The available parameters are described in the corresponding sections below.

+

output_dir (default value: "")

+
+

This parameter specifies the directory name to store the data. The retrieved data are placed in this directory under the subdirectories by the material ID for each material. The default value is the current directory.

+
+

dry_run (default value: False)

+
+

When this parameter is set to True, getcif prints the search conditions and exists without connecting to the database. It is useful to check the content of the query.

+
+

symprec (default value: 0.1)

+
+

This parameter specifies the tolerance in calculating the symmetry of a crystal structure when the structure data are written to a CIF file. By default, 0.1 is specified. When symprec is set to 0.0, it is treated as if symprec is unspecified, in which case a CIF file is generated without considering symmetry.

+

symprec is a parameter that specifies the tolerance used to determine the symmetry of a crystal structure. When calculating the symmetry of a crystal structure, it is essential to consider the slight displacements of atomic positions and the precision of numerical calculations. symprec controls the allowable range of these displacements and serves as a threshold for deciding whether a symmetry operation should be applied.

+

If symprec is set to a smaller value (e.g., 0.01), the symmetry determination becomes more stringent, and even minor displacements in the crystal structure may prevent the application of symmetry operations. This can result in the identification of a lower-symmetry space group. Conversely, if symprec is set to a larger value (e.g., 1.0), the symmetry determination is more lenient, allowing small displacements to be ignored, which may lead to the recognition of a higher-symmetry space group.

+

When the symmetry field is specified in the fields section, the symmetry information determined using the default symprec=0.1 in the Materials Project is obtained and written to a text file (symmetry).

+
+
+
+

properties

+

This section defines the search conditions. +The conditions such as the element types, the crystal symmetry, or the values of physical properties are specified in the keyword: value format. They are treated as AND condition. +The available terms, based on the Materials Project API, conform to the parameters of +the materials.summary.search method in the mp-api library. The list of terms are summarized in the Appendix, and can be seen by getcif --help.

+

The format of the parameter values is shown below. It follows the YAML specification with several extension for brief description.

+
    +
  • a number, a string

    +
    +

    describe as-is.

    +
    +
  • +
  • a boolean value

    +
    +

    describe as true or false.

    +
    +
  • +
  • a list of numbers or strings

    +
    +

    describe in the indented style (block style) or in the comma-separated list enclosed by the bracket (flow style) in YAML notation. +It is also available that it is described as a space-separated list, for example:

    +
    element: Sr Ti
    +
    +
    +
    +
  • +
  • a range of numerical value

    +
    +

    described as a list of two numbers such as [ min, max ], or a pair of two numbers separated by a space as min max. The following formats are also available.

    +
    +
    <= max

    less than or equal to max.

    +
    +
    < max

    less than max. (For a real number, it is equivalent to <= max. For an integer, it is treated as <= max-1.)

    +
    +
    >= min

    more than or equal to min.

    +
    +
    > min

    more than min. (For a real number, it is equivalent to >= min. For an integer, it is treated as >= min+1.)

    +
    +
    min ~ max

    between min and max.

    +
    +
    +

    N.B.:

    +
    +
      +
    • A space must be placed between the symbol and the number.

    • +
    • Due to the YAML syntax that the symbol ">" at the beginning of a term is treated as a special character, > min and >= min should be enclosed by quotes as "> min" and ">= min", respectively.

    • +
    • In list notations, <= max and >= min are denoted as [ None, max ] and [ min, None ], respectively.

    • +
    +
    +
    +
  • +
  • wild card symbols

    +
    +

    The term formula accepts wild card symbols * for elements. In this case, the whole value is enclosed by " ". For example,

    +
    formula: "**O3"
    +
    +
    +

    for \(ABO_3\)-type materials.

    +
    +
  • +
+
+
+

fields

+

This section defines the types of data to be retrieved. +A list of types is described in the YAML format, or as a space-sparated strings. In the latter format, it can be given in multiple-line format using the “|” notation of YAML.

+

The available types of data conform to the field parameter of the Materials Project API. They are listed in the Appendix, and can be viewd by getcif --help.

+

The types material_id and formula_pretty are retrieved automatically.

+

The obtained data are placed in the directory specified by output_dir parameter under the subdirectories of the material_id for each material. Each item is stored as a separate file of the item name. The crystal structure data (structure) is stored in a file structure.cif in CIF format.

+
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/getcif/index.html b/manual/v1.1.0/en/html/getcif/index.html new file mode 100644 index 0000000..cfbab79 --- /dev/null +++ b/manual/v1.1.0/en/html/getcif/index.html @@ -0,0 +1,144 @@ + + + + + + + + A tool to retrieve crystallographic data from databases (getcif) — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/getcif/tutorial/index.html b/manual/v1.1.0/en/html/getcif/tutorial/index.html new file mode 100644 index 0000000..48c65f2 --- /dev/null +++ b/manual/v1.1.0/en/html/getcif/tutorial/index.html @@ -0,0 +1,258 @@ + + + + + + + + 2. Tutorial — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

2. Tutorial

+

In this tutorial, the procedure to use the database query tool getcif is described for searching and obtaining crystallographic information from databases for the materials science. +It consists of getting an API key, preparing an input parameter file, and running the getcif program. +We will explain the steps along an example of searching and obtaining information for ABO3-type materials provided in the docs/tutorial/getcif directory.

+
+

2.1. Getting an API key

+

In order to access the Materials Project database via API, users need to register to the Materials Project and obtain an API key. +Visit the Materials Project website https://next-gen.materialsproject.org, create an account and do Login. An API key is automatically generated on registration and shown in the user dashboard. The API key should be kept safe and not shared with others.

+

The API key is made available to getcif by one of the following ways:

+
+
    +
  1. storing in the pymatgen configuration file by typing in as follows:

    +
    +
    $ pmg config --add PMG_MAPI_KEY <API_KEY>
    +
    +
    +
    +

    or editing the file ~/.config/.pmgrc to include the following:

    +
    +
    PMG_MAPI_KEY: <API_KEY>
    +
    +
    +
    +
  2. +
  3. setting to an environment variable by:

    +
    +
    $ MP_API_KEY="<API_KEY>"
    +$ export MP_API_KEY
    +
    +
    +
    +
  4. +
  5. storing the API key to a file located in the directory where getcif is run. +The default value of the file name is materials_project.key. Otherwise, it is given in the input parameter file. The file name must end with .key.

    +
    +
    database:
    +  api_key_file: materials_project.key
    +
    +
    +
    +

    Comment: it will be recommended to exclude files with .key as a suffix from version control system. (e.g. for Git, add *.key in .gitignore file.)

    +
  6. +
+
+
+
+

2.2. Prepare an input parameter file

+

An input parameter file describes search conditions and data items to retrieve from databases.

+

An example is presented below. It is a text file in YAML format that contains information for accessing the database, search conditions, and types of data to obtain. +See file format section for the details of specification.

+

In YAML format, parameters are given in dictionary form as keyword: value, where value is a scalar such as a number or a string, or a set of values enclosed in [ ] or listed in itemized form, or a nested dictionary. +For the search conditions and data fields, a list may be given by a space-separated items without brackets as a special notation.

+
database:
+  target: materials project
+
+option:
+  output_dir: result
+  # dry_run: false
+
+properties:
+  band_gap: < 1.0
+  is_stable: true
+  is_metal: false
+  formula: "**O3"
+  spacegroup_symbol: Pm-3m
+
+fields: |
+  structure
+  band_gap
+  symmetry
+
+
+

The input parameter file consists of database, option, properties, and fields sections. +The database section describes settings about connecting to databases. +In the example, target is set to Materials Project, though this term is not considered at present. api_key can be used to set the API key. The key may also be set in the pymatgen configuration file or in the environment variable. The latter is assumed in the tutorial.

+

The option section describes optional settings for the command execution. +output_dir specifies the directory to place the obtained data. The default is the current directory. If dry_run is set to true, getcif does not connect to the database; instead, it just prints the search conditions and exits. dry_run may be specified in the command-line option.

+

The properties section describes search conditions. They are given in the form of keyword: value and treated as AND conditions. +In the example, the search condition is specified to find materials with band gap less than or equal to 1.0, stable insulator, having composition formula of ABO3 (where A and B are arbitrary species), that belong to the space group Pm-3m (perovskite). +The band_gap takes a pair of values for the lower and upper limits, as well as the description such as < 1.0. +The available terms for specifying search conditions are listed in the Appendix.

+

The fields section describes the data items to obtain. It is given as a YAML list, or a space-sparated list. +structure specifies the crystal structure data that will be stored in CIF format. +band_gap specifies the value of band gap, and symmetry specifies the information on the symmetry. material_id that refers to the index of material data in the Materials Project, and formula_pretty that refers to the composition formula are automatically obtained. +The available items are listed in the Appendix, or can be found in the help message of getcif command.

+
+
+

2.3. Obtaining data

+

The program getcif is executed with the input parameter file (input.yaml) as follows.

+
$ getcif input.yaml
+
+
+

Then it connects to the Materials Project database, and obtains the data that match the specified conditions. +The summary including the material IDs, the composition formulas, and other data items is printed to the standard output as follows.

+
material_id  formula  band_gap  symmetry  formula_pretty
+mp-861502  AcFeO3  0.9887999999999995  crystal_system=<CrystalSystem.cubic: 'Cubic'> symbol='Pm-3m' number=221 point_group='m-3m' symprec=0.1 version='2.0.2'  AcFeO3
+mp-977455  PaAgO3  0.915  crystal_system=<CrystalSystem.cubic: 'Cubic'> symbol='Pm-3m' number=221 point_group='m-3m' symprec=0.1 version='2.0.2'  PaAgO3
+mp-11775  RbUO3  0.45420000000000016  crystal_system=<CrystalSystem.cubic: 'Cubic'> symbol='Pm-3m' number=221 point_group='m-3m' symprec=0.1 version='2.0.2'  RbUO3
+mp-3163  BaSnO3  0.37239999999999984  crystal_system=<CrystalSystem.cubic: 'Cubic'> symbol='Pm-3m' number=221 point_group='m-3m' symprec=0.1 version='2.0.2'  BaSnO3
+mp-4126  KUO3  0.44540000000000024  crystal_system=<CrystalSystem.cubic: 'Cubic'> symbol='Pm-3m' number=221 point_group='m-3m' symprec=0.1 version='2.0.2'  KUO3
+mp-865322  UTlO3  0.27360000000000007  crystal_system=<CrystalSystem.cubic: 'Cubic'> symbol='Pm-3m' number=221 point_group='m-3m' symprec=0.1 version='2.0.2'  UTlO3
+mp-753781  EuHfO3  0.4795999999999996  crystal_system=<CrystalSystem.cubic: 'Cubic'> symbol='Pm-3m' number=221 point_group='m-3m' symprec=0.1 version='2.0.2'  EuHfO3
+
+
+

The obtained data are placed in the directory specified by output_dir with the subdirectories of the material ID for each material. +In this example, seven subdirectories with names from mp-3163 to mp-977455 are created within result directory, and each subdirectory contains the following files:

+
+
    +
  • +
    band_gap

    the value of band gap

    +
    +
    +
  • +
  • +
    formula

    the composition formula (that corresponds to the field formula_pretty)

    +
    +
    +
  • +
  • +
    structure.cif

    the crystal structure data in CIF format

    +
    +
    +
  • +
  • +
    symmetry

    the information about symmetry

    +
    +
    +
  • +
+
+

If an option --dry-run is added as a command-line option to getcif, +the program prints the search condition as follows, and exits. +It will be useful for checking the search parameters.

+
$ getcif --dry-run input.yaml
+{'band_gap': (None, 1.0), 'is_stable': True, 'is_metal': False, 'formula': '**O3', 'spacegroup_symbol': 'Pm-3m', 'fields': ['structure', 'band_gap', 'symmetry', 'material_id', 'formula_pretty']}
+
+
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/index.html b/manual/v1.1.0/en/html/index.html new file mode 100644 index 0000000..784bdb8 --- /dev/null +++ b/manual/v1.1.0/en/html/index.html @@ -0,0 +1,122 @@ + + + + + + + + Cif2x Users Guide — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + + + +
+ + +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/objects.inv b/manual/v1.1.0/en/html/objects.inv new file mode 100644 index 0000000..024ac7b Binary files /dev/null and b/manual/v1.1.0/en/html/objects.inv differ diff --git a/manual/v1.1.0/en/html/search.html b/manual/v1.1.0/en/html/search.html new file mode 100644 index 0000000..5bbb528 --- /dev/null +++ b/manual/v1.1.0/en/html/search.html @@ -0,0 +1,120 @@ + + + + + + + Search — cif2x Users Guide 1.1.0 documentation + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Search

+ + + + +

+ Searching for multiple words only shows matches that contain + all words. +

+ + +
+ + + +
+ + +
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/en/html/searchindex.js b/manual/v1.1.0/en/html/searchindex.js new file mode 100644 index 0000000..dc2c869 --- /dev/null +++ b/manual/v1.1.0/en/html/searchindex.js @@ -0,0 +1 @@ +Search.setIndex({"alltitles": {"A tool to retrieve crystallographic data from databases (getcif)": [[11, null]], "Adding modes of Quantum ESPRESSO": [[1, "adding-modes-of-quantum-espresso"]], "Cif2x Users Guide": [[13, null]], "Command reference": [[3, null], [9, null]], "Contents:": [[13, null]], "Contributors": [[0, "contributors"]], "Copyright": [[0, "copyright"]], "Data to retrive (fields)": [[8, "data-to-retrive-fields"]], "Extension guide": [[1, null]], "File format": [[4, null], [10, null]], "Generating input files": [[6, "generating-input-files"]], "Getting an API key": [[12, "getting-an-api-key"]], "Input file generator for first-principles calculations (cif2x)": [[5, null]], "Input parameter file": [[4, "input-parameter-file"], [10, "input-parameter-file"]], "Installation and basic usage": [[2, null]], "Introduction": [[0, null], [7, null]], "License": [[0, "license"]], "Obtaining data": [[12, "obtaining-data"]], "Operating environment": [[0, "operating-environment"]], "Parameter List": [[8, null]], "Parameters for AkaiKKR": [[4, "parameters-for-akaikkr"]], "Parameters for OpenMX": [[4, "parameters-for-openmx"]], "Parameters for Quantum ESPRESSO": [[4, "parameters-for-quantum-espresso"]], "Parameters for VASP": [[4, "parameters-for-vasp"]], "Prepare an input parameter file": [[6, "prepare-an-input-parameter-file"], [12, "prepare-an-input-parameter-file"]], "Release history": [[0, "release-history"]], "Search conditions (properties)": [[8, "search-conditions-properties"]], "Search criteria": [[8, "id1"]], "Specifying parameter set": [[4, "specifying-parameter-set"]], "Specifying parameter sets": [[6, "specifying-parameter-sets"]], "Tutorial": [[6, null], [12, null]], "What is cif2x?": [[0, "what-is-cif2x"]], "cif2x": [[3, "cif2x"]], "content": [[4, "content"], [4, "id3"], [4, "id5"], [4, "id7"]], "database": [[10, "database"]], "fields": [[10, "fields"]], "getcif": [[9, "getcif"]], "option": [[10, "option"]], "optional": [[4, "optional"], [4, "id1"], [4, "id4"], [4, "id6"]], "optional section": [[4, "optional-section"]], "properties": [[10, "properties"]], "structure": [[4, "structure"]], "tasks": [[4, "tasks"], [4, "id2"]]}, "docnames": ["cif2x/about/index", "cif2x/appendix/index", "cif2x/basic-usage", "cif2x/command/index", "cif2x/filespec/index", "cif2x/index", "cif2x/tutorial/index", "getcif/about/index", "getcif/appendix/index", "getcif/command/index", "getcif/filespec/index", "getcif/index", "getcif/tutorial/index", "index"], "envversion": {"sphinx": 62, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2}, "filenames": ["cif2x/about/index.rst", "cif2x/appendix/index.rst", "cif2x/basic-usage.rst", "cif2x/command/index.rst", "cif2x/filespec/index.rst", "cif2x/index.rst", "cif2x/tutorial/index.rst", "getcif/about/index.rst", "getcif/appendix/index.rst", "getcif/command/index.rst", "getcif/filespec/index.rst", "getcif/index.rst", "getcif/tutorial/index.rst", "index.rst"], "indexentries": {}, "objects": {}, "objnames": {}, "objtypes": {}, "terms": {"": 8, "0": [0, 4, 6, 10, 12], "01": [4, 6, 10], "03": 0, "05": 6, "08": 6, "09": 0, "1": [0, 4, 6, 10, 12], "10": 4, "11775": 12, "12": [0, 6], "12x12x12": 6, "14": 0, "15": 4, "180": 6, "19": 0, "1e": 6, "2": [4, 6, 8, 12], "2023": 0, "2024": 0, "221": 12, "27360000000000007": 12, "28": 0, "3": [0, 2, 6], "31": 0, "3163": 12, "36": 6, "37239999999999984": 12, "3m": 12, "3x3": 4, "4": [4, 6], "4126": 12, "44540000000000024": 12, "45420000000000016": 12, "4795999999999996": 12, "4x4x4": 6, "6": 4, "7": 6, "753781": 12, "8": 6, "861502": 12, "865322": 12, "8x8x8": 6, "915": 12, "977455": 12, "9887999999999995": 12, "A": [2, 4, 5, 8, 10, 12, 13], "AND": [10, 12], "At": 10, "By": 10, "For": [1, 2, 4, 6, 10, 12], "If": [4, 6, 10, 12], "In": [0, 1, 2, 3, 4, 6, 10, 12], "It": [0, 1, 2, 3, 4, 6, 8, 9, 10, 12], "Of": 1, "The": [0, 1, 2, 3, 4, 6, 7, 8, 10, 12], "Their": 2, "Then": [2, 12], "These": [1, 4], "To": [2, 6], "__init__": [1, 2], "abo3": [8, 12], "abo_3": 10, "about": 12, "abov": [2, 4, 6, 8], "absorpt": 8, "accept": [4, 10], "access": [7, 8, 10, 12], "accord": 4, "account": 12, "accuraci": 0, "acfeo3": 12, "ad": [5, 12], "add": [1, 2, 12], "addit": 2, "adopt": [4, 6], "advanc": 0, "afm": 8, "aist": 0, "akaikkr": [0, 2, 3, 5, 6], "akaikkrpythonutil": 2, "akaikkrteam": 2, "all": 0, "allow": [2, 4, 9, 10], "along": [2, 6, 12], "alpha": [0, 4], "also": [1, 2, 8, 10, 12], "an": [2, 3, 4, 5, 8, 9, 10, 11], "anclr": 4, "angstrom": 4, "ani": 8, "anisotropi": 8, "anonym": 8, "aoyama": 0, "api": [2, 8, 10, 11], "api_kei": 12, "api_key_fil": [10, 12], "appear": [4, 6], "append": 8, "appendix": [10, 12], "appli": 10, "applic": 10, "appropri": 0, "ar": [1, 2, 4, 6, 8, 10, 12], "arbitrari": [6, 12], "argument": [1, 2], "associ": 1, "assum": [4, 12], "atmicx": 4, "atmtyp": 4, "atom": [4, 8, 10], "atomic_posit": [1, 4, 6], "atomic_speci": [1, 4, 6], "attent": 0, "automat": [2, 4, 6, 10, 12], "automatic_dens": 4, "automatic_density_by_length": 4, "automatic_density_by_vol": 4, "automatic_gamma_dens": 4, "automatic_linemod": 4, "aux": 4, "avail": [2, 4, 8, 10, 12], "averag": 8, "b": [4, 10, 12], "band": [8, 12], "band_gap": [8, 12], "bandstructur": 8, "base": [1, 10], "basic": [5, 6, 13], "basno3": 12, "becom": [3, 9, 10], "begin": 10, "belong": 12, "below": [2, 4, 6, 8, 10, 12], "besid": 6, "beta": 4, "between": [1, 4, 8, 10], "blank": [1, 4, 6], "block": [1, 4, 6, 10], "bool": 8, "boolean": [8, 10], "both": [4, 6], "bracket": [8, 10, 12], "bravai": 4, "brief": 10, "brvtyp": 4, "builder_meta": 8, "bulk": 8, "bulk_modulu": 8, "c": 4, "calc_mod": [1, 2], "calcul": [0, 1, 2, 3, 4, 6, 8, 10, 13], "call": 6, "can": [2, 6, 7, 8, 10, 12], "cancel": [3, 9], "capabl": 0, "card": [1, 2, 4, 6, 8, 10], "card_tabl": 1, "case": [2, 4, 6, 10], "cbm": 8, "cd": 2, "cell_paramet": [1, 4, 6], "celldm": 4, "center": 2, "charact": 10, "charge_dens": 8, "check": [10, 12], "chemenv": 8, "chemic": 8, "chemsi": 8, "choic": 6, "cif": [0, 2, 3, 6, 10, 12], "cif2struct": 2, "cif2x": [1, 2, 4, 6], "class": [1, 8], "client": 8, "clone": 2, "co3sns2_nosym": 6, "code": 0, "column": 4, "com": 2, "combin": [4, 6], "comma": [8, 10], "command": [2, 5, 10, 11, 12, 13], "comment": [8, 10, 12], "compos": 6, "composit": [7, 8, 12], "composition_reduc": 8, "comput": 0, "conc": 4, "concern": 6, "condit": [0, 2, 9, 10, 11, 12], "config": [2, 4, 10, 12], "configur": [4, 10, 12], "confirm": 9, "conform": 10, "connect": [9, 10, 12], "consid": [6, 8, 10, 12], "consider": 0, "consist": [1, 4, 6, 10, 12], "constant": 8, "construct": 0, "contain": [1, 4, 6, 10, 12], "content": [1, 2, 6, 8, 10], "contribut": 0, "contributor": 5, "control": [4, 6, 10, 12], "conv_thr": 6, "convent": 4, "converg": 6, "convers": 10, "convex": 8, "coordin": 4, "copyright": 5, "core": 8, "corrdin": 0, "correct": 8, "correspond": [4, 8, 10, 12], "cosab": 4, "cosac": 4, "cosbc": 4, "cours": 1, "cr2": 8, "creat": [2, 4, 6, 12], "create_modeproc": 1, "crystal": [0, 1, 2, 3, 4, 6, 8, 10, 12], "crystal_system": [8, 12], "crystallograph": [2, 3, 5, 7, 9, 10, 12, 13], "crystalsystem": [8, 12], "csv": [2, 4, 6], "cubic": [8, 12], "current": [0, 1, 3, 4, 6, 10, 12], "cutoff": [4, 6], "cutoff_fil": 4, "dashboard": 12, "data": [0, 1, 2, 3, 4, 5, 6, 9, 10, 13], "data_path": 4, "databas": [2, 5, 7, 8, 9, 12, 13], "database_id": 8, "decid": 10, "decomposes_to": 8, "decreas": [3, 9], "def": 1, "default": [4, 10, 12], "defin": [1, 4, 8, 10], "definit": 4, "degauss": 6, "denot": [8, 10], "densiti": 8, "density_atom": 8, "depend": 0, "deprec": 8, "deprecation_reason": 8, "deriv": [1, 4], "describ": [2, 4, 6, 8, 10, 12], "descript": [3, 8, 9, 10, 12], "design": 0, "detail": [4, 6, 12], "determin": [1, 4, 10], "dev": 2, "develop": 0, "dictionari": [1, 6, 12], "dielectr": 8, "differ": 4, "direct": 8, "directori": [2, 4, 6, 10, 12], "displac": 10, "displai": [3, 9], "distribut": 0, "divis": 4, "do": [8, 12], "doc": [2, 6, 12], "doe": [10, 12], "dos_energy_down": 8, "dos_energy_up": 8, "download": 2, "dry": [9, 12], "dry_run": [9, 10, 12], "due": 10, "e": [8, 10, 12], "e_electron": 8, "e_ij_max": 8, "e_ion": 8, "e_tot": 8, "each": [1, 4, 6, 10, 12], "ecutrho": [4, 6], "ecutwfc": [4, 6], "edit": 12, "efermi": 8, "effect": [3, 9], "elast": 8, "elastic_anisotropi": 8, "electron": [6, 8], "electronic_structur": 8, "element": [4, 8, 10], "els": 1, "emmet": 8, "empti": 6, "en": 2, "enclos": [6, 10, 12], "end": [4, 6, 12], "energi": 8, "energy_above_hul": 8, "energy_per_atom": 8, "entri": [1, 4, 6, 8], "environ": [2, 4, 5, 10, 12], "eo": 8, "equal": [8, 10, 12], "equilibrium": 8, "equilibrium_reaction_energi": 8, "equilibrium_reaction_energy_per_atom": 8, "equival": 10, "es_source_calc_id": 8, "espresso": [0, 2, 3, 5, 6], "essenti": 10, "etc": 4, "euhfo3": 12, "ev": 8, "even": 10, "everi": [4, 6], "examin": 6, "exampl": [4, 6, 10, 12], "except": [4, 6], "exclud": [8, 12], "exclude_el": 8, "execut": [2, 6, 10, 12], "exist": 10, "exit": [3, 9, 12], "expect": 0, "explain": [4, 6, 12], "export": [4, 12], "extens": [5, 10, 13], "f90nml": 2, "factor": 8, "fals": [4, 6, 8, 10, 12], "fe": [4, 8], "fe2o3": 8, "featur": 4, "fermi": 8, "field": [1, 4, 11, 12], "file": [0, 2, 3, 8, 9, 11, 13], "fim": 8, "find": 12, "first": [0, 2, 3, 4, 6, 10, 13], "float": 8, "flow": 10, "fm": 8, "follow": [0, 2, 3, 4, 6, 8, 9, 10, 12], "forc": 1, "force_gamma": 4, "form": [4, 6, 12], "format": [2, 3, 5, 6, 8, 9, 11, 12, 13], "formation_energi": 8, "formation_energy_per_atom": 8, "former": 4, "formula": [8, 10, 12], "formula_anonym": 8, "formula_pretti": [8, 10, 12], "fortran90": 6, "found": 12, "fraction": 4, "framework": 3, "from": [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 12, 13], "fukuda": 0, "fukushima": 0, "function": [1, 4, 8], "further": 4, "g": [8, 10, 12], "g_reuss": 8, "g_voigt": 8, "g_vrh": 8, "gain": 0, "gamma": 4, "gamma_automat": 4, "gap": [8, 12], "gather": 1, "gen": 12, "gener": [0, 1, 2, 3, 4, 10, 12, 13], "generate_": 1, "generate_atomic_posit": 1, "generate_atomic_speci": 1, "generate_cell_paramet": 1, "generate_k_point": 1, "get": 11, "getcif": [2, 5, 7, 8, 10, 12, 13], "git": [2, 12], "github": 2, "gitignor": 12, "given": [1, 4, 6, 10, 12], "global": [4, 6, 10], "gnu": 0, "gpa": 8, "gpl": 0, "grain_boundari": 8, "grid": [4, 6], "grid_dens": 4, "group": [8, 10, 12], "guid": 5, "gz": 4, "h": [3, 9], "ha": [0, 8], "handl": 4, "has_prop": 8, "has_reconstruct": 8, "hasprop": 8, "have": [4, 6, 12], "head": 10, "heavili": 0, "help": [3, 9, 10, 12], "hexagon": 8, "higher": 10, "highsymmkpath": 4, "hill": 8, "histori": 5, "hold": [4, 6], "homogeneous_poisson": 8, "how": 4, "htp": 2, "http": [2, 12], "hull": 8, "i": [1, 2, 3, 4, 5, 6, 7, 8, 10, 12], "ibrab": 4, "ibrav": [4, 6], "id": [8, 10, 12], "identif": 10, "ido": 0, "if_po": 4, "ignor": [4, 10], "ignore_speci": 4, "implement": 1, "in_tmpl": 6, "incar": 4, "includ": [2, 3, 4, 6, 8, 12], "increas": [3, 9], "indenep": 4, "indent": [8, 10], "index": [2, 4, 6, 8, 12], "individu": 4, "industri": 0, "inform": [3, 4, 7, 9, 10, 12], "informat": 0, "input": [0, 2, 3, 9, 11, 13], "input_yaml": [3, 9], "insertion_electrod": 8, "instal": [5, 13], "instead": [4, 12], "institut": 0, "instutit": 0, "insul": 12, "int": 8, "integ": [8, 10], "intern": 8, "introduct": [5, 11, 13], "io": 4, "ionic": 8, "is_gap_direct": 8, "is_magnet": 8, "is_met": [8, 12], "is_stabl": [8, 12], "issp": 2, "item": [2, 6, 8, 10, 12], "its": 6, "j": 8, "ja": 2, "just": 12, "k": [4, 6], "k_point": [1, 4, 6], "k_resolut": 4, "k_reuss": 8, "k_voigt": 8, "k_vrh": 8, "kasamatsu": 0, "kazuyoshi": 0, "kei": [4, 10, 11], "kept": 12, "keyword": [2, 4, 6, 8, 10, 12], "known": 0, "koretsun": 0, "kota": 0, "kpoint": 4, "kppa": 4, "kshift": 4, "kuo3": 12, "larger": 10, "last_upd": 8, "later": 0, "latest": 7, "latter": [4, 10, 12], "lattic": [1, 4], "lda": 4, "lead": 10, "learn": 0, "left": [4, 6], "length_dens": 4, "lenient": 10, "less": [8, 10, 12], "li": 8, "librari": [2, 8, 10], "licens": [2, 5], "limit": 12, "line": [3, 4, 6, 9, 10, 12], "linux": 0, "list": [3, 4, 5, 6, 10, 11, 12], "locat": [2, 4, 12], "login": 12, "lower": [10, 12], "m": [2, 6, 8, 12], "machin": 0, "made": 12, "magnet": 8, "magnetic_ord": 8, "mai": [1, 2, 4, 10, 12], "main": 2, "make_input": 2, "manner": 4, "manual": 4, "map": 1, "masahiro": 0, "mass": 4, "match": [4, 12], "materi": [0, 2, 3, 7, 8, 9, 10, 12], "material_id": [8, 10, 12], "materials_project": [10, 12], "materialsproject": 12, "matrix": 4, "max": [8, 10], "maximum": 8, "md": [2, 4], "merg": 4, "mesh": 4, "messag": [3, 9, 12], "metal": 8, "method": [1, 8, 10], "min": [8, 10], "minimum": 8, "minor": 10, "miss": 4, "missing_beta": 6, "mode": [4, 5, 6], "modeproc": 1, "modifi": 6, "modul": 2, "modulu": 8, "monkhorst_automat": 4, "monoclin": 8, "monti": 2, "more": [3, 8, 9, 10], "motoyama": 0, "mp": [2, 8, 10, 12], "mp_api_kei": [10, 12], "mpi": 8, "mprester": 8, "multipl": [0, 3, 6, 9, 10], "must": [1, 10, 12], "mxl": 4, "n": [4, 8, 10], "n_x": 4, "n_y": 4, "n_z": 4, "name": [1, 4, 10, 12], "namelist": [1, 4, 6], "nat": [4, 6], "nation": 0, "natm": 4, "ncmp": 4, "necessari": 4, "need": [2, 4, 6, 10, 12], "nelement": 8, "nest": [6, 12], "new": 1, "nexclud": 4, "next": [2, 12], "nm": 8, "noncolin": 6, "none": [4, 10, 12], "normal": 8, "notat": [8, 10, 12], "note": 6, "nscf": [1, 4, 6], "nsite": 8, "nspin": 6, "ntyp": [4, 6], "num_el": 8, "num_magnetic_sit": 8, "num_sit": 8, "num_unique_magnetic_sit": 8, "number": [4, 6, 8, 10, 12], "numer": 10, "numpi": 2, "o": 8, "o2": 8, "o3": [10, 12], "obtain": [2, 4, 6, 7, 9, 10, 11], "occup": 6, "offici": 2, "omit": 4, "onc": 2, "one": [4, 8, 10, 12], "onli": 4, "openbabel": 2, "openmx": [0, 2, 3, 5, 6], "oper": [5, 10], "option": [1, 2, 3, 6, 9, 12], "orbit": 4, "order": [1, 4, 8, 12], "org": 12, "organ": 4, "origin": [4, 8], "orthorhomb": 8, "other": [1, 3, 4, 6, 7, 9, 10, 12], "otherwis": [4, 12], "outdir": 6, "output": [1, 4, 6, 10, 12], "output_dir": [4, 6, 10, 12], "output_fil": [4, 6], "overwrit": 6, "overwritten": 6, "oxi_st": 8, "oxid": 8, "ozaki": 0, "p": [6, 8], "paago3": 12, "packag": [0, 2], "page": 2, "pair": [8, 10, 12], "panda": 2, "paramet": [0, 1, 2, 3, 5, 9, 11], "part": [0, 4, 6], "pass": 8, "path": 4, "path_typ": 4, "pattern": 4, "pbe": 4, "perovskit": 12, "phonon": 8, "physic": [0, 7, 10], "pick": 1, "piezoelectr": 8, "piezoelectric_modulu": 8, "pip": 2, "place": [2, 4, 6, 10, 12], "platform": 0, "pm": 12, "pmg": 12, "pmg_mapi_kei": [10, 12], "pmg_vasp_psp_dir": 4, "pmgrc": [2, 4, 10, 12], "point": [4, 6, 8], "point_group": 12, "poisson": 8, "poisson_ratio": 8, "poscar": [2, 4], "posit": 10, "possibl": 6, "possible_speci": 8, "pot_gga_paw_pb": 4, "pot_lda_paw": 4, "potcar": 4, "potenti": [2, 4, 6], "pp_file": [4, 6], "pp_list": 4, "pp_psl_pbe_rrkju": 6, "precis": [4, 10], "predefin": 4, "predict": 0, "prefix": 6, "prepar": [0, 2, 5, 11], "prerequisit": 2, "present": [2, 6, 10, 12], "prevent": 10, "principl": [0, 2, 3, 4, 6, 10, 13], "print": [10, 12], "procedur": [6, 12], "program": [0, 2, 3, 6, 9, 12], "project": [0, 7, 8, 10, 12], "properti": [0, 7, 11, 12], "property_nam": 8, "proven": 8, "provid": [1, 7, 8, 12], "pseudo": [2, 4, 6], "pseudo_dir": [4, 6], "pseudo_funct": 4, "psudo": 6, "psuedo_dir": 4, "public": 0, "pw": [1, 4], "pwscf": 6, "py": [1, 2], "pyakaikkr": 2, "pymatgen": [2, 3, 4, 10, 12], "pyproject": 2, "python": [2, 4], "python3": [0, 2], "q": [3, 9], "qe": [1, 2, 3, 6], "qemode_bas": 1, "qemode_gener": 1, "qemode_pw": 1, "qeutil": 2, "quantum": [0, 2, 3, 5, 6], "quantum_espresso": 3, "queri": [9, 10, 12], "quick": 4, "quiet": [3, 9], "quot": 10, "r1": 4, "r2": 4, "r3": 4, "rang": [4, 6, 8, 10], "rapid": 0, "ratio": 8, "rbuo3": 12, "reaction": 8, "read": [3, 4, 6, 9], "read_input": 2, "readm": 2, "real": 10, "recent": 0, "recognit": 10, "recommend": 12, "reconstruct": [4, 8], "refer": [4, 5, 11, 12, 13], "reformat": 8, "refract": 8, "regard": 10, "regist": 12, "registr": 12, "relat": 4, "relax": 4, "releas": 5, "remov": 4, "replac": 4, "repositori": 2, "repres": 8, "requir": [2, 4, 6], "research": 0, "reserv": 0, "resolut": 6, "respect": [4, 6, 10], "result": [10, 12], "retriev": [2, 5, 7, 8, 9, 10, 12, 13], "retriv": 11, "return": [1, 8], "reuss": 8, "right": 0, "rmt": 4, "rrkjus_psl": 4, "ruamel": 2, "run": [1, 2, 6, 9, 12], "run_cif2kkr": 2, "runtim": [3, 9], "safe": 12, "same": [2, 4, 6], "sampl": [2, 6], "scalar": [4, 6, 12], "scf": [1, 4, 6], "scienc": [0, 12], "seaborn": 2, "search": [7, 9, 10, 11, 12], "section": [6, 8, 10, 12], "see": [4, 6, 12], "seen": 10, "self": 1, "separ": [1, 2, 4, 6, 8, 10, 12], "seri": 6, "serv": 10, "set": [1, 2, 3, 5, 10, 12], "seven": 12, "sever": [6, 10], "shape": 8, "shape_factor": 8, "share": 12, "shear": 8, "shear_modulu": 8, "shift": 4, "short": 8, "should": [1, 2, 4, 6, 10, 12], "shown": [6, 10, 12], "shusuk": 0, "si": 8, "significantli": 0, "similar": 4, "singl": 8, "site": 8, "size": 4, "slight": 10, "small": 10, "smaller": 10, "smear": 6, "softwar": [0, 2, 3, 4, 6, 10], "solid": 0, "some": [4, 6], "sourc": [0, 1, 2, 6, 8], "space": [8, 10, 12], "spacegroup_numb": 8, "spacegroup_symbol": [8, 12], "sparat": [10, 12], "spd": 4, "speci": [4, 12], "special": [4, 6, 10, 12], "specif": [0, 4, 6, 10, 12], "specifi": [1, 2, 3, 5, 7, 9, 10, 12], "spn": 4, "sr": 10, "src": [1, 2], "stabl": 12, "standard": [4, 12], "start": [4, 6, 10], "state": [0, 8], "step": [2, 4, 6, 12], "store": [4, 6, 10, 12], "str": 8, "string": [4, 6, 8, 10, 12], "stringent": 10, "struct2akaikkr": 2, "struct2openmx": 2, "struct2q": 2, "struct2vasp": 2, "structur": [0, 1, 2, 3, 6, 8, 10, 12], "style": [8, 10], "sub": 6, "subdirectori": [10, 12], "submit": 9, "substanc": 0, "substrat": 8, "suffix": [10, 12], "summar": [8, 10], "summari": [8, 10, 12], "supercel": 4, "supersed": [4, 9], "support": [0, 1, 2, 3, 4, 6], "surfac": 8, "surface_anisotropi": 8, "surface_energy_anisotropi": 8, "surface_properti": 8, "symbol": [4, 8, 10, 12], "symmetri": [7, 8, 10, 12], "symprec": [10, 12], "synopsi": [3, 9], "syntax": [4, 6, 10], "system": [2, 4, 6, 8, 12], "t": [2, 3, 6], "tabl": [4, 8], "tag": 8, "tailor": 0, "taisuk": 0, "takashi": 0, "take": [1, 2, 3, 4, 6, 9, 12], "taken": [8, 10], "target": [2, 3, 10, 12], "task": 6, "task_id": 8, "tatsumi": 0, "technologi": 0, "templat": [0, 2, 4, 6], "template_dir": 4, "tempor": 4, "term": [4, 8, 10, 12], "test": 0, "tetragon": 8, "tetsuya": 0, "text": [6, 10, 12], "than": [8, 10, 12], "thei": [4, 10, 12], "theoret": 8, "therefor": [0, 6], "thermo": 8, "thi": [0, 1, 3, 4, 6, 9, 10, 12], "those": [1, 2, 4, 6], "though": 12, "threshold": 10, "ti": 10, "time": [2, 3, 9], "tmp": 4, "tmpdir": 4, "tohoku": 0, "tokyo": 0, "toler": [4, 6, 10], "toml": 2, "tool": [0, 2, 5, 7, 12, 13], "total": 8, "total_energi": 8, "total_magnet": 8, "total_magnetization_normalized_formula_unit": 8, "total_magnetization_normalized_vol": 8, "tprnfor": 6, "trail": 10, "train": 0, "transform": [1, 4], "treat": [10, 12], "triclin": 8, "trigon": 8, "true": [4, 6, 8, 10, 12], "tstress": 6, "tupl": 8, "turn": [2, 4], "tutori": [2, 5, 11, 13], "two": [1, 8, 10], "type": [0, 1, 4, 6, 8, 10, 12], "types_of_magnetic_speci": 8, "ubuntu": 0, "uncorrect": 8, "uncorrected_energi": 8, "uncorrected_energy_per_atom": 8, "under": 10, "uniqu": 8, "unit": [4, 8], "univers": 0, "universal_anisotropi": 8, "unspecifi": [4, 10], "unsupport": 4, "up": 1, "updat": 1, "update_card": 1, "update_namelist": 1, "upf": 4, "upper": 12, "us": [0, 4, 6, 8, 10, 12], "usabl": 0, "usag": [5, 13], "use_ibrav": [4, 6], "user": [2, 7, 12], "util": 2, "utlo3": 12, "v": [3, 9], "v3": 0, "valid": 10, "valu": [1, 4, 6, 8, 10, 12], "vari": [0, 2, 6], "variabl": [1, 2, 4, 10, 12], "vasp": [0, 2, 3, 5, 6], "vbm": 8, "vector": 4, "ver": 0, "verbos": [3, 9], "version": [0, 1, 2, 3, 4, 6, 7, 9, 12], "via": [8, 12], "viewd": 10, "visit": 12, "voigt": 8, "vol_dens": 4, "volum": 8, "vps_tabl": 2, "wa": 0, "wai": 12, "warn": 8, "we": [6, 12], "websit": 12, "weight": 8, "weighted_surface_energi": 8, "weighted_surface_energy_ev_per_ang2": 8, "weighted_work_funct": 8, "well": [6, 8, 12], "what": 5, "when": [3, 4, 6, 9, 10], "where": [4, 6, 12], "whether": [4, 8, 10], "which": [4, 10], "whole": 10, "whose": 4, "wide": 2, "width": 4, "wild": [8, 10], "within": 12, "without": [9, 10, 12], "work": [6, 8], "workdir": 4, "written": [4, 6, 10], "x": [1, 2, 4], "xa": 8, "xf": 2, "yamagata": 0, "yaml": [2, 3, 4, 6, 8, 9, 10, 12], "year": 0, "yoshimi": 0, "you": 2, "yuichi": 0}, "titles": ["1. Introduction", "6. Extension guide", "2. Installation and basic usage", "4. Command reference", "5. File format", "Input file generator for first-principles calculations (cif2x)", "3. Tutorial", "1. Introduction", "5. Parameter List", "3. Command reference", "4. File format", "A tool to retrieve crystallographic data from databases (getcif)", "2. Tutorial", "Cif2x Users Guide"], "titleterms": {"A": 11, "ad": 1, "akaikkr": 4, "an": [6, 12], "api": 12, "basic": 2, "calcul": 5, "cif2x": [0, 3, 5, 13], "command": [3, 9], "condit": 8, "content": [4, 13], "contributor": 0, "copyright": 0, "criteria": 8, "crystallograph": 11, "data": [8, 11, 12], "databas": [10, 11], "environ": 0, "espresso": [1, 4], "extens": 1, "field": [8, 10], "file": [4, 5, 6, 10, 12], "first": 5, "format": [4, 10], "from": 11, "gener": [5, 6], "get": 12, "getcif": [9, 11], "guid": [1, 13], "histori": 0, "i": 0, "input": [4, 5, 6, 10, 12], "instal": 2, "introduct": [0, 7], "kei": 12, "licens": 0, "list": 8, "mode": 1, "obtain": 12, "openmx": 4, "oper": 0, "option": [4, 10], "paramet": [4, 6, 8, 10, 12], "prepar": [6, 12], "principl": 5, "properti": [8, 10], "quantum": [1, 4], "refer": [3, 9], "releas": 0, "retriev": 11, "retriv": 8, "search": 8, "section": 4, "set": [4, 6], "specifi": [4, 6], "structur": 4, "task": 4, "tool": 11, "tutori": [6, 12], "usag": 2, "user": 13, "vasp": 4, "what": 0}}) \ No newline at end of file diff --git a/manual/v1.1.0/ja/cif2x-usersguide.pdf b/manual/v1.1.0/ja/cif2x-usersguide.pdf new file mode 100644 index 0000000..2fc5f9e Binary files /dev/null and b/manual/v1.1.0/ja/cif2x-usersguide.pdf differ diff --git a/manual/v1.1.0/ja/html/.buildinfo b/manual/v1.1.0/ja/html/.buildinfo new file mode 100644 index 0000000..a5390ba --- /dev/null +++ b/manual/v1.1.0/ja/html/.buildinfo @@ -0,0 +1,4 @@ +# Sphinx build info version 1 +# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. +config: 32b7f512823781dd94847adfef1b729f +tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/manual/v1.1.0/ja/html/_sources/cif2x/about/index.rst.txt b/manual/v1.1.0/ja/html/_sources/cif2x/about/index.rst.txt new file mode 100644 index 0000000..5f07233 --- /dev/null +++ b/manual/v1.1.0/ja/html/_sources/cif2x/about/index.rst.txt @@ -0,0 +1,93 @@ +**************************************************************** +概要 +**************************************************************** + +cif2xとは? +---------------------------------------------------------------- + +近年、機械学習を活用した物性予測や物質設計(マテリアルズインフォマティクス)が注目されています。 +機械学習の精度は、適切な教師データの準備に大きく依存しています。 +そのため、迅速に教師データを生成するためのツールや環境の整備は、 +マテリアルズインフォマティクスの研究進展に大きく貢献すると期待されます。 + +cif2xは、cifファイルから第一原理計算用の入力ファイルを生成するツールです。 +入力パラメータを雛形として、物質の種類や計算条件によって変わる箇所を結晶構造データなどから構成します。 +特定の計算条件に応じた複数の入力ファイルを生成することが可能です。 +現在は、 +`VASP `_, `Quantum ESPRESSO `_, `OpenMX `_, `AkaiKKR `_ に対応しています。 + +付属プログラムとして、物質材料データベースから結晶構造データ等を取得するツール getcif を用意しています。現在は Materials Project からのデータ取得に対応しています。物質の組成や対称性、バンドギャップなどの物性値をもとにデータベースを検索し、データを取得することができます。 + + +ライセンス +---------------------------------------------------------------- + +本ソフトウェアのプログラムパッケージおよびソースコード一式はGNU General Public License version 3 (GPL v3) に準じて配布されています。 + +開発貢献者 +---------------------------------------------------------------- + +本ソフトウェアは以下の開発貢献者により開発されています。 + + - 開発者 + + - 吉見 一慶 (東京大学 物性研究所) + + - 青山 龍美 (東京大学 物性研究所) + + - 本山 裕一 (東京大学 物性研究所) + + - 福田 将大 (東京大学 物性研究所) + + - 井戸 康太 (東京大学 物性研究所) + + - 福島 鉄也 (産業技術総合研究所) + + - 笠松 秀輔 (山形大学 学術研究院(理学部主担当)) + + - 是常 隆  (東北大学大学院理学研究科) + + - プロジェクトコーディネーター + + - 尾崎 泰助 (東京大学 物性研究所) + + +バージョン履歴 +---------------------------------------------------------------- + + ver.1.1.0 + 2024/09/14 リリース + + ver.1.0.1 + 2024/03/31 リリース + + ver.1.0.0 + 2024/03/19 リリース + + ver.1.0-alpha + 2023/12/28 リリース + + +コピーライト +---------------------------------------------------------------- + +.. only:: html + + |copy| *2023- The University of Tokyo. All rights reserved.* + + .. |copy| unicode:: 0xA9 .. copyright sign + +.. only:: latex + + :math:`\copyright` *2023- The University of Tokyo. All rights reserved.* + + +本ソフトウェアは2023年度 東京大学物性研究所 ソフトウェア高度化プロジェクトの支援を受け開発されており、その著作権は東京大学が所持しています。 + +動作環境 +---------------------------------------------------------------- + +以下の環境で動作することを確認しています。 + +- Ubuntu Linux + python3 + diff --git a/manual/v1.1.0/ja/html/_sources/cif2x/appendix/index.rst.txt b/manual/v1.1.0/ja/html/_sources/cif2x/appendix/index.rst.txt new file mode 100644 index 0000000..1355827 --- /dev/null +++ b/manual/v1.1.0/ja/html/_sources/cif2x/appendix/index.rst.txt @@ -0,0 +1,50 @@ +.. _sec-cif2x-appendix: + +================================================================ +拡張ガイド +================================================================ + +Quantum ESPRESSO の mode を追加する +---------------------------------------------------------------- + +Quantum ESPRESSO の計算モードへの対応を追加するには、 ``src/cif2x/qe/calc_mode.py`` の ``create_modeproc()`` 関数に mode と変換クラスの対応付けを記述します。 + +.. code-block:: python + + def create_modeproc(mode, qe): + if mode in ["scf", "nscf"]: + modeproc = QEmode_pw(qe) + else: + modeproc = QEmode_generic(qe) + return modeproc + + +modeごとの変換機能は ``QEmode_base`` の派生クラスとしてまとめられています。 +このクラスは +``update_namelist()`` で namelist ブロックの更新と、 +``update_cards()`` で cards ブロックのデータ生成を行います。 +現在は pw.x の scf および nscf に対応する ``QEmode_pw`` クラスと、変換せずそのまま出力する ``QEmode_generic`` クラスが用意されています。 + +.. code-block:: python + + class QEmode_base: + def __init__(self, qe): + def update_namelist(self, content): + def update_cards(self, content): + + +namelist については、空欄の値を結晶構造データ等から生成して代入するほか、格子パラメータなど Structure から決まる値や、他のパラメータとの整合性をとる必要のある値を強制的にセットする場合があります。処理内容はモードごとに個別に対応します。 + +cards ブロックについては、card の種類ごとに関数を用意し、card名と関数の対応付けを ``card_table`` 変数に列挙します。 +基底クラスの ``update_cards()`` では、card名から対応する関数を取得して実行し、card の情報を更新します。もちろん、全く独自に ``update_cards()`` 関数を作成することもできます。 + +.. code-block:: python + + self.card_table = { + 'CELL_PARAMETERS': generate_cell_parameters, + 'ATOMIC_SPECIES': generate_atomic_species, + 'ATOMIC_POSITIONS': generate_atomic_positions, + 'K_POINTS': generate_k_points, + } + +cardごとの関数は ``scr/cif2x/qe/cards.py`` にまとめられており、関数名は ``generate_{card名}`` としています。この関数は card ブロックのパラメータを引数に取り、card名、option、dataフィールドからなる辞書データを返します。 diff --git a/manual/v1.1.0/ja/html/_sources/cif2x/basic-usage.rst.txt b/manual/v1.1.0/ja/html/_sources/cif2x/basic-usage.rst.txt new file mode 100644 index 0000000..79b7b90 --- /dev/null +++ b/manual/v1.1.0/ja/html/_sources/cif2x/basic-usage.rst.txt @@ -0,0 +1,121 @@ +インストールと基本的な使い方 +================================================================ + +**必要なライブラリ・環境** + + HTP-tools に含まれる第一原理計算入力ファイル生成ツール cif2x を利用するには、以下のプログラムとライブラリが必要です。 + + - python 3.x + - pymatgen モジュール + - ruamel.yaml モジュール + - f90nml モジュール + - qe-tools モジュール + - numpy モジュール + - pandas モジュール + - monty モジュール + - OpenBabel モジュール (オプション) + - AkaiKKRPythonUtil モジュール + + CIFデータ取得ツール getcif を利用するには、上記に加えて以下のライブラリが必要です。 + + - mp-api モジュール + +**ソースコード配布サイト** + + - `GitHubリポジトリ `_ + +**ダウンロード方法** + + gitを利用できる場合は、以下のコマンドでcif2xをダウンロードできます。 + + .. code-block:: bash + + $ git clone https://github.com/issp-center-dev/cif2x.git + +**インストール方法** + + cif2xをダウンロード後、以下のコマンドを実行してインストールします。cif2xが利用するライブラリも必要に応じてインストールされます。 + + .. code-block:: bash + + $ cd ./cif2x + $ python3 -m pip install . + + 実行プログラム ``cif2x``, ``getcif`` がインストールされます。 + + なお、AkaiKKRPythonUtil モジュールは別途インストールが必要です。 + 以下の手順で `配布サイト `_ からソースコードを取得しインストールします。また、必要な seaborn モジュールもインストールしておきます。 + + .. code-block:: bash + + $ git clone https://github.com/AkaiKKRteam/AkaiKKRPythonUtil.git + $ cd ./AkaiKKRPythonUtil/library/PyAkaiKKR + $ python3 -m pip install . + $ python3 -m pip install seaborn + + +**ディレクトリ構成** + + :: + + . + |-- LICENSE + |-- README.md + |-- pyproject.toml + |-- docs/ + | |-- ja/ + | |-- tutorial/ + |-- src/ + | |-- cif2x/ + | |-- __init__.py + | |-- main.py + | |-- cif2struct.py + | |-- struct2qe.py + | |-- qe/ + | | |-- __init__.py + | | |-- calc_mode.py + | | |-- cards.py + | | |-- content.py + | | |-- qeutils.py + | | |-- tools.py + | |-- struct2vasp.py + | |-- struct2openmx.py + | |-- openmx/ + | | |-- __init__.py + | | |-- vps_table.py + | |-- struct2akaikkr.py + | |-- akaikkr/ + | | |-- make_input.py + | | |-- read_input.py + | | |-- run_cif2kkr.py + | |-- utils.py + | |-- getcif/ + | |-- __init__.py + | |-- main.py + |-- sample/ + + +**基本的な使用方法** + + cif2xは第一原理計算プログラムのための入力ファイルを生成するツールです。入力パラメータを雛形として、物質の種類や計算条件によって変わる箇所を結晶構造データなどから構成します。現在は Quantum ESPRESSO, VASP, OpenMX, および AkaiKKR の入力ファイル形式に対応しています。 + + #. 入力パラメータファイルの作成 + + cif2xを使用するには、まず、生成する入力ファイルの内容を記述したパラメータファイルをYAML形式で作成します。詳細についてはファイルフォーマットの章を参照してください。 + + #. 結晶構造ファイルと擬ポテンシャルファイルの配置 + + 対象となる物質の結晶構造を記述したファイルを用意します。ファイル形式は CIF または pymatgen が扱える POSCAR や xfs 形式に対応しています。 + + Quantum ESPRESSO の場合、利用する擬ポテンシャルファイルと、CSV形式のインデックスファイルを配置します。擬ポテンシャルファイルの配置先などは入力パラメータファイル内に指定します。 + + VASP の場合、擬ポテンシャルファイルの格納場所を ``~/.config/.pmgrc.yaml`` ファイルに記述するか環境変数にセットします。入力パラメータファイル内で指定することもできます。 + + #. コマンドの実行 + + 作成した入力パラメータファイルおよび結晶構造データファイルを入力としてcif2xプログラムを実行します。Quantum ESPRESSO用の入力ファイルを生成する場合はターゲットオプションに ``-t QE`` を指定します。VASPの場合は ``-t VASP``, OpenMX の場合は ``-t OpenMX``, AkaiKKR の場合は ``-t akaikkr`` を指定します。 + + .. code-block:: bash + + $ cif2x -t QE input.yaml material.cif + diff --git a/manual/v1.1.0/ja/html/_sources/cif2x/command/index.rst.txt b/manual/v1.1.0/ja/html/_sources/cif2x/command/index.rst.txt new file mode 100644 index 0000000..c414ad9 --- /dev/null +++ b/manual/v1.1.0/ja/html/_sources/cif2x/command/index.rst.txt @@ -0,0 +1,57 @@ +コマンドリファレンス +================================================================ + +cif2x +---------------------------------------------------------------- + + 第一原理計算のための入力ファイルを生成する + +書式: + + .. code-block:: bash + + cif2x [-v][-q] -t target input_yaml material.cif + cif2x -h + cif2x --version + +説明: + + input_yaml に指定した入力パラメータファイルと material.cif に指定した結晶構造データを読み込み、第一原理計算プログラム用の入力ファイルを生成します。現在は Quantum ESPRESSO, VASP, OpenMX に対応しています。 + 以下のオプションを受け付けます。 + + - ``-v`` + + 実行時に表示されるメッセージを冗長にします。複数回指定すると冗長度が上がります。 + + - ``-q`` + + 実行時に表示されるメッセージの冗長度を下げます。 ``-v`` の効果を打ち消します。複数回の指定が可能です。 + + - ``-t`` *target* + + 対象となる第一原理計算プログラムを指定します。 *target* として指定可能な値は以下のとおりです。大文字小文字は区別しません。 + + - ``QE``, ``espresso``, ``quantum_espresso``: Quantum ESPRESSO向け入力ファイルを生成します。 + + - ``VASP``: VASP向け入力ファイルを生成します。 + + - ``OpenMX``: OpenMX向け入力ファイルを生成します。 + + - ``AkaiKKR``: AkaiKKR向け入力ファイルを生成します。 + + - ``input_yaml`` + + 入力パラメータファイルを指定します。形式は YAML format です。 + + - ``material.cif`` + + 結晶構造データファイルを指定します。形式は CIF の他、pymatgen で扱える形式のファイルを指定できます。 + + - ``-h`` + + ヘルプを表示します。 + + - ``--version`` + + バージョン情報を表示します。 + diff --git a/manual/v1.1.0/ja/html/_sources/cif2x/filespec/index.rst.txt b/manual/v1.1.0/ja/html/_sources/cif2x/filespec/index.rst.txt new file mode 100644 index 0000000..67557fe --- /dev/null +++ b/manual/v1.1.0/ja/html/_sources/cif2x/filespec/index.rst.txt @@ -0,0 +1,291 @@ +.. _sec-cif2x-fileformat: + +====================== + ファイルフォーマット +====================== + +入力パラメータファイル +====================== + +入力パラメータファイルでは、cif2x で第一原理計算入力ファイルを生成するための設定情報を YAML形式で記述します。本ファイルは以下の部分から構成されます。 + + 1. structureセクション: 結晶構造データの扱いについてのオプションを記述します。 + + 2. optionalセクション: 擬ポテンシャルファイルの指定や、YAMLの参照機能を利用する場合のシンボル定義を行います。 + + 3. tasksセクション: 入力ファイルの内容を記述します。 + + +structure +--------- + + ``use_ibrav`` (デフォルト値: ``false``) + + 結晶構造の入力に Quantum ESPRESSO の ``ibrav`` パラメータを利用します。 ``true`` の場合、格子のとり方を Quantum ESPRESSO の convention に合うように変換します。入力ファイルにはあわせて格子に関するパラメータ ``a``, ``b``, ``c``, ``cosab``, ``cosac``, ``cosbc`` が(必要に応じて)書き出されます。 + + ``tolerance`` (デフォルト値: 0.01) + + ``use_ibrav = true`` の場合に、再構成した Structure データと元データとの一致を評価する際の許容度を指定します。 + + ``supercell`` (デフォルト値: なし) + + supercell を設定する場合に supercell のサイズを [:math:`n_x`, :math:`n_y`, :math:`n_z`] で指定します。 + +optional +-------- +第一原理計算プログラムごとに必要な global な設定を行います。記述する内容は以下の各節に記述します。 + +tasks +----- +入力ファイルの内容を記述します。複数の入力ファイルに対応するため、 ``tasks`` には各入力ファイルごとのブロックからなるリスト形式をとります。各ブロックに記述する項目は以下のとおりです。 + + ``mode`` (Quantum ESPRESSO) + + 入力ファイルの計算内容を指定します。 + 現時点では Quantum ESPRESSO の pw.x 向けに ``scf`` と ``nscf`` に対応しています。対応していない mode については、 ``content`` の内容をそのまま出力します。 + + ``output_file`` (Quantum ESPRESSO) + + 出力ファイル名を指定します。 + + ``output_dir`` + + 出力先のディレクトリ名を指定します。デフォルト値はカレントディレクトリです。 + + ``content`` + + 出力内容を指定します。Quantum ESPRESSO の場合は ``namelist`` ブロックに namelist データ (``&system`` や ``&control`` など) を記述し、 ``K_POINTS`` 等の card データを個別のブロックとして記述します。card データはパラメータをとるものがあります。 + + ``template`` (Quantum ESPRESSO) + + ``template_dir`` (VASP) + + 出力内容のテンプレートファイルを指定します。指定がない場合はテンプレートを利用しません。 + このファイルの内容を ``content`` に追加します。同じデータがある場合は後者を優先します。 + +パラメータセット指定 +-------------------- +入力パラメータには値のリストや範囲を指定することができ、値の組み合わせごとに個別のディレクトリを作成して入力ファイルを生成します。パラメータセットの指定には特別な構文 ``${...}`` を用います。 +指定方法は次の通りです: + +- リスト ``${[ A, B, ... ]}`` + + パラメータセットを Python のリストとして列挙します。各項目はスカラー値やリストを指定できます。 + +- 範囲指定 ``${range(N)}``, ``${range(start, end, step)}`` + + パラメータの範囲を指定します。それぞれ 0〜N-1, start〜end を step 刻み (step を省略した場合は 1) です。 ``N``, ``start``, ``end``, ``step`` は int または float です。 + +Quantum ESPRESSO 向けパラメータ +=============================== + +``optional`` セクションおよび ``tasks`` セクションの ``content`` に記載する内容について、Quantum ESPRESSO 固有の内容を記述します。 +現時点では pw.x の ``scf`` および ``nscf`` に対応しています。 + +optionalセクション +------------------ + + ``pp_file`` + + 元素種と擬ポテンシャルを対応付けるCSV形式のインデックスファイルを指定します。 + ファイルの書式は、元素種、擬ポテンシャルファイルのタイプ、nexclude、orbitals です。例: + + .. code-block:: + + Fe,pbe-spn-rrkjus_psl.0.2.1,4,spd + + 擬ポテンシャルファイルのファイル名は Fe.pbe-spn-rrkjus_psl.0.2.1.UPF に対応します。 + + ``cutoff_file`` + + 擬ポテンシャルファイルとカットオフを対応付けるCSV形式のインデックスファイルを指定します。 + ファイルの書式は、擬ポテンシャルファイル、ecutwfcの値、ecutrhoの値 です。 + + ``pseudo_dir`` + + 擬ポテンシャルファイルを格納するディレクトリ名を指定します。カットオフの値を擬ポテンシャルファイルから取得する場合に使用します。Quantum ESPRESSO の ``pseudo_dir`` パラメータとは独立に指定します。 + + +content +-------- + + **namelist** + + - ``structure`` セクションの ``use_ibrav`` パラメータに応じて、 ``&system`` の格子情報の指定が上書きされます。 + + - ``use_ibrav = false``: + ``ibrav`` は 0 にセットされます。また、格子パラメータに関する ``a``, ``b``, ``c``, ``cosab``, ``cosac``, ``cosbc``, ``celldm`` は削除されます。 + + - ``use_ibrav = true``: + ``ibrav`` は結晶構造データから取得された Bravais 格子のインデックスがセットされます。また、Structure データは基本格子のとり方など Quantum ESPRESSO の convention に合わせて再構成されます。 + + - ``nat`` (原子数) および ``ntyp`` (元素種の数)は結晶構造データから取得される値で上書きされます。 + + - カットオフ ``ecutwfc`` および ``ecutrho`` の情報は、パラメータの値が空欄の場合は擬ポテンシャルファイルから取得します。 + + **CELL_PARAMETERS** + + - ``structure`` セクションの ``use_ibrav`` パラメータが true の場合は出力されません。false の場合は格子ベクトルが出力されます。単位は angstrom です。 + + - 格子ベクトルの情報は結晶構造データから取得されます。 ``data`` フィールドに 3x3 の行列を直接指定した場合はその値が用いられます。 + + **ATOMIC_SPECIES** + + - 原子種・原子量・擬ポテンシャルファイル名のリストを出力します。 + + - 原子種の情報は結晶構造データから取得されます。擬ポテンシャルのファイル名は ``pp_list`` で指定するCSV形式のインデックスファイルを参照します。 + + - ``data`` フィールドに必要なデータを指定した場合はその値が用いられます。 + + **ATOMIC_POSITIONS** + + - 原子種と原子座標(fractional coordinate)のリストを出力します。 + + - ``ignore_species`` に原子種または原子種のリストを指定した場合、その原子種については ``if_pos`` の値が 0 にセットされます。MDや構造最適化の際に使われます。 + + - ``data`` フィールドに必要なデータを指定した場合はその値が用いられます。 + + **K_POINTS** + + - k点の情報を出力します。 ``option`` に出力タイプを指定します。 + + - ``gamma``: :math:`\Gamma` 点を用います。 + + - ``crystal``: メッシュ状の k点のリストを出力します。メッシュの指定は ``grid`` パラメータまたは ``vol_density`` や ``k_resolution`` から導出される値が用いられます。 + + - ``automatic``: k点のメッシュを指定します。メッシュの指定は ``grid`` パラメータまたは ``vol_density`` や ``k_resolution`` から導出される値が用いられます。 シフトの指定は ``kshifts`` パラメータを参照します。 + + - メッシュの指定は以下の順序で決定されます。 + + - ``grid`` パラメータの指定。grid の値は :math:`n_x, n_y, n_z` の配列またはスカラー値 :math:`n` です。後者の場合は :math:`n_x = n_y = n_z = n` と仮定します。 + - ``vol_density`` パラメータから自動導出。 + - ``k_resolution`` パラメータから自動導出。``k_resolution`` のデフォルトは 0.15 です。 + + - ``data`` フィールドに必要なデータを指定した場合はその値が用いられます。 + + +VASP 向けパラメータ +=============================== + +``optional`` セクションおよび ``tasks`` セクションの ``content`` に記載する内容について、VASP 固有の内容を記述します。 + +optional +-------- + +擬ポテンシャルのタイプや格納場所を指定します。 + +pymatgen では、擬ポテンシャルファイルを +``PMG_VASP_PSP_DIR``/*functional*/POTCAR. *element* (.gz) または +``PMG_VASP_PSP_DIR``/*functional*/ *element* /POTCAR から取得します。 +``PMG_VASP_PSP_DIR`` はディレクトリの指定で、設定ファイル ``~/.config/.pmgrc.yaml`` に記載するか、同名の環境変数に指定します。また、 *functional* は擬ポテンシャルのタイプで、 ``POT_GGA_PAW_PBE`` や ``POT_LDA_PAW`` などが決められています。 + + ``pseudo_functional`` + + 擬ポテンシャルのタイプを指定します。タイプの指定と上記の *functional* の対応は pymatgen 内のテーブルに定義され、 ``PBE`` → ``POT_GGA_PAW_PBE``,  ``LDA`` → ``POT_LDA_PAW`` などのようになっています。 + +以下の ``pseudo_dir`` を指定した場合は pymatgen の流儀を無視して擬ポテンシャルの格納ディレクトリを探します。 + + ``psuedo_dir`` + + 擬ポテンシャルの格納ディレクトリを指定します。擬ポテンシャルファイルのファイル名は ``pseudo_dir``/POTCAR. *element* (.gz) または ``pseudo_dir``/*element*/POTCAR です。 + + +tasks +----- + +テンプレートファイルは、 ``template_dir`` で指定するディレクトリ内に ``INCAR``, ``KPOINTS``, ``POSCAR``, ``POTCAR`` ファイルを配置します。ファイルがない項目は無視されます。 + +content +------- + + **incar** + + - INCAR ファイルに記述するパラメータを列挙します。 + + **kpoints** + + - ``type`` + + KPOINTS の指定方法を記述します。以下の値に対応しています。タイプによりパラメータが指定可能なものがあります。詳細は pymatgen.io.vasp のマニュアルを参照してください。 + + - ``automatic`` + + parameter: ``grid`` + + - ``gamma_automatic`` + + parameter: ``grid``, ``shift`` + + - ``monkhorst_automatic`` + + parameter: ``grid``, ``shift`` + + - ``automatic_density`` + + parameter: ``kppa``, ``force_gamma`` + + - ``automatic_gamma_density`` + + parameter: ``grid_density`` + + - ``automatic_density_by_vol`` + + parameter: ``grid_density``, ``force_gamma`` + + - ``automatic_density_by_lengths`` + + parameter: ``length_density``, ``force_gamma`` + + - ``automatic_linemode`` + + parameter: ``division``, ``path_type`` (HighSymmKpath の path_type に対応) + + +OpenMX 向けパラメータ +=============================== + +``optional`` セクションおよび ``tasks`` セクションの ``content`` に記載する内容について、OpenMX 固有の内容を記述します。 + +optional +-------- + + ``data_path`` + + 擬原子軌道および擬ポテンシャルのファイルを格納するディレクトリを指定します。入力ファイルの ``DATA.PATH`` パラメータに対応します。 + +content +-------- + + ``precision`` + + 擬原子軌道を OpenMXマニュアル 10.6 章の Table 1, 2 にしたがって選択します。 ``quick``, ``standard``, ``precise`` のいずれかの値を取ります。デフォルト値は ``quick`` です。 + +AkaiKKR 向けパラメータ +=============================== + +``optional`` セクションおよび ``tasks`` セクションの ``content`` に記載する内容について、AkaiKKR 固有の内容を記述します。 + +optional +-------- + + ``workdir`` + + 一時ファイルの出力先を指定します。指定しない場合は ``/tmp`` または ``TMPDIR`` 環境変数の値を利用します。 + + +content +-------- + +``content`` には AkaiKKR の入力パラメータの内容を記述します。指定のない項目は空欄が出力され、AkaiKKR内部のデフォルト値が使われます。 +以下のパラメータは結晶構造データから決まる値で置き換えられます。 + +- ``brvtyp``: + ただし、 ``brvtyp`` に ``aux`` (を含む)値が指定されている場合は上書きされません。 + +- 格子パラメータ: ``a``, ``c/a``, ``b/a``, ``alpha``, ``beta``, ``gamma``, ``r1``, ``r2``, ``r3`` + +- タイプ情報: ``ntyp``, ``type``, ``ncmp``, ``rmt``, ``field``, ``mxl``, ``anclr``, ``conc`` + +- 元素種の情報: ``natm``, ``atmicx``, ``atmtyp`` + +なお、 ``rmt`` と ``field`` の値は、入力パラメータファイル内で ``ntyp`` 個の要素からなるリストとして指定されている場合のみ、入力パラメータファイルの値が使われます。 diff --git a/manual/v1.1.0/ja/html/_sources/cif2x/index.rst.txt b/manual/v1.1.0/ja/html/_sources/cif2x/index.rst.txt new file mode 100644 index 0000000..008f70a --- /dev/null +++ b/manual/v1.1.0/ja/html/_sources/cif2x/index.rst.txt @@ -0,0 +1,16 @@ +**************************************************************** +第一原理計算入力ファイル生成ツール (cif2x) +**************************************************************** + + +.. toctree:: + :maxdepth: 2 + :numbered: 2 + + about/index + basic-usage + tutorial/index + command/index + filespec/index + appendix/index + ../getcif/index diff --git a/manual/v1.1.0/ja/html/_sources/cif2x/tutorial/index.rst.txt b/manual/v1.1.0/ja/html/_sources/cif2x/tutorial/index.rst.txt new file mode 100644 index 0000000..6a20ee7 --- /dev/null +++ b/manual/v1.1.0/ja/html/_sources/cif2x/tutorial/index.rst.txt @@ -0,0 +1,65 @@ +.. _sec-cif2x-tutorial: + +チュートリアル +================================================================ + +第一原理計算入力ファイル生成ツール cif2x を使うには、入力パラメータファイルと結晶構造データおよび擬ポテンシャルファイルを用意した後、プログラム cif2x を実行します。現在は Quantum ESPRESSO, VASP, OpenMX, AkaiKKR の入力ファイル生成に対応しています。以下では、 ``docs/tutorial/cif2x`` ディレクトリにある Quantum ESPRESSO 向けサンプルを例にチュートリアルを実施します。 + +入力パラメータファイルを作成する +---------------------------------------------------------------- + +入力パラメータファイルには、第一原理計算プログラムに与える入力ファイルの内容を記述します。 + +以下に入力パラメータファイルのサンプルを記載します。このファイルは YAML形式のテキストファイルで、結晶構造データに対するオプションの指定や、出力する第一原理計算入力ファイルの内容を記述します。仕様の詳細については :ref:`ファイルフォーマット ` の章を参照してください。 + +YAMLフォーマットでは、 ``keyword: value`` の辞書形式でパラメータを記述します。 ``value`` には数値や文字列などのスカラー値や、複数の値を ``[ ]`` または箇条書きの形式で列挙するリスト型、または辞書型を入れ子にすることができます。 + +.. literalinclude:: ../../../../tutorial/cif2x/input.yaml + :language: yaml + + +入力パラメータファイルは ``structure``, ``optional``, ``tasks`` のブロックから構成されます。 +``structure`` は結晶構造データに関するオプションを指定します。 +``optional`` は擬ポテンシャルに関する global な設定などを行います。 + +``tasks`` は出力する第一原理計算入力ファイルの内容を指定します。一連の計算に対応して複数のファイルを生成できるよう、tasks は配列の値を取ります。 +各出力について、計算内容は ``mode`` パラメータで指定します。SCF計算の ``scf`` や NSCF計算の ``nscf`` に対応するほか、一般的な出力を行う任意の出力モードを指定できます。 +ファイルは ``output_dir`` および ``output_file`` で指定するファイルに書き出されます。 + +出力内容は ``content`` に記載します。 +Quantum ESPRESSO の入力ファイルは、 ``&keyword`` で始まる Fortran90 の namelist 形式と、 ``K_POINTS`` などのキーワードで始まり空行で分割される cards と呼ばれるブロックからなります。 ``content`` には namelist と cards を入れ子の辞書形式で指定します。 +いくつかの例外を除いて、指定された内容が基本的にはそのまま入力ファイルに書き出されます。値が空欄のキーワードは、結晶構造データなどから求めた値が代入されます。 + +また、template として入力ファイルの雛形を指定することもできます。 ``template`` に指定したファイルの内容と ``content`` のデータを合わせたものを入力データとして扱います。同じキーワードのデータが存在する場合は ``content`` の指定が優先されます。従って、既存の入力ファイルを元に必要な箇所を入力パラメータファイルで上書きする使い方が可能です。上記の例では次のファイル(``scf.in_tmpl``)を template として取り込み、カットオフと CELL_PARAMETER, ATOMIC_SPECIES, ATOMIC_POSITIONS, K_POINT の箇所を結晶構造等から決めます。 ``ecutwfc`` と ``ecutrho`` が空欄で上書きされていることに留意してください。 + +.. literalinclude:: ../../../../tutorial/cif2x/scf.in_tmpl + :language: fortran + + +第一原理計算入力ファイルを生成する +---------------------------------------------------------------- + +入力パラメータファイル(input.yaml)と結晶構造データ(Co3SnS2_nosym.cif)を入力として cif2x を実行します。 + +.. code-block:: bash + + $ cif2x -t QE input.yaml Co3SnS2_nosym.cif + +予め必要な擬ポテンシャルのファイルを ``./pseudo`` ディレクトリに配置し、擬ポテンシャルのインデックスファイルを ``./pseudo/pp_psl_pbe_rrkjus.csv`` に作成しておきます。 + +``cif2x`` を実行すると Quantum ESPRESSO用の入力ファイルが生成され出力されます。出力先は入力パラメータファイル内のパラメータで指定するディレクトリ(``output_dir``)およびファイル(``output_file``)です。この例では ``./scf/scf.in`` に SCF計算用の入力ファイルが書き出されます。 + +パラメータセットを指定する +---------------------------------------------------------------- + +入力パラメータ内の値をいくつか変えながら一連の入力ファイルを生成したいことがあります。例えばカットオフの値やk点の数を変えて収束性を評価するなどの場合です。入力パラメータには値のリストや範囲を指定することができ、値の組み合わせごとに個別のディレクトリを作成して入力ファイルを生成します。 +パラメータセットの指定は特別な構文 ``${...}`` を用います。 + +.. code-block:: yaml + + content: + K_POINTS: + option: automatic + grid: ${ [ [4,4,4], [8,8,8], [12,12,12] ] } + +例えば上記のように ``K_POINTS`` を指定すると、 ``grid`` の値が ``[4,4,4]``, ``[8,8,8]``, ``[12,12,12]`` の入力ファイルがそれぞれ ``4x4x4/``, ``8x8x8/``, ``12x12x12/`` サブディレクトリ内に作成されます。 diff --git a/manual/v1.1.0/ja/html/_sources/getcif/about/index.rst.txt b/manual/v1.1.0/ja/html/_sources/getcif/about/index.rst.txt new file mode 100644 index 0000000..49a517f --- /dev/null +++ b/manual/v1.1.0/ja/html/_sources/getcif/about/index.rst.txt @@ -0,0 +1,5 @@ +**************************************************************** +概要 +**************************************************************** + +getcifは物質材料データベースから結晶構造データ等を取得するツールです。現在は Materials Project からのデータ取得に対応しています。物質の組成や対称性、バンドギャップなどの物性値をもとにデータベースを検索し、データを取得することができます。 diff --git a/manual/v1.1.0/ja/html/_sources/getcif/appendix/index.rst.txt b/manual/v1.1.0/ja/html/_sources/getcif/appendix/index.rst.txt new file mode 100644 index 0000000..fc235ea --- /dev/null +++ b/manual/v1.1.0/ja/html/_sources/getcif/appendix/index.rst.txt @@ -0,0 +1,322 @@ +================================================================ +パラメータリスト +================================================================ + +検索条件 (properties) +---------------------------------------------------------------- + +properties に指定できる項目と、その項目がどのような値を取るかを以下にまとめます。 + +Materials Project API のクライアントアプリケーションの一つとして mp-api パッケージが Materials Project から公開されており、getcif はこのライブラリを利用してデータベースへの接続を行います。 +以下は MPRester クラスの materials.summary.search メソッドのパラメータに対応します。 +(以下の表は materials.summary.search のソースコードのコメントから転記しました。) + +値の型の表記は次のとおりです。 + +- ``str``: 文字列型 +- ``List[str]``: 文字列型のリスト +- ``str | List[str]``: 単一の文字列、または、文字列型のリスト +- ``int``: 整数型 +- ``bool``: 真偽値 (true または false) +- ``Tuple[float,float]``: 実数値 2つからなる組 (リスト) +- ``Tuple[int,int]``: 整数値 2つからなる組 (リスト) +- ``CrystalSystem``: 結晶のタイプを表す文字列。Triclinic, Monoclinic, Orthorhombic, Tetragonal, Trigonal, Hexagonal, Cubic のいずれか。 +- ``List[HasProps]``: 特性値のタイプを表す文字列のリスト。特性値は emmet.core.summary に定義されている。以下のいずれかの値を取る。 + + absorption, + bandstructure, + charge_density, + chemenv, + dielectric, + dos, + elasticity, + electronic_structure, + eos, + grain_boundaries, + insertion_electrodes, + magnetism, + materials, + oxi_states, + phonon, + piezoelectric, + provenance, + substrates, + surface_properties, + thermo, + xas + +- ``Ordering``: 磁気秩序を表す文字列。FM, AFM, FiM, NM のいずれか。 + +値のリストは、YAML形式の箇条書きおよび ``[ ... ]`` にカンマ区切りで記述するほか、空白区切りで列挙する記法も可能です。 + +``Tuple`` で表される型は値の範囲 (min, max) の指定に使われます。値のリストとして記述するほか、空白区切りで ``min max`` のように記述することもできます。また、以下の表記も可能です。 + + ``<= max`` : max 以下 + + ``< max`` : max より小さい + + ``>= min`` : min 以上 + + ``> min`` : min より大きい + + ``min ~ max`` : min 以上 max 以下 + +.. _getcif-cond-table: + +.. list-table:: 検索条件のキーワード + :widths: 30 20 60 + :header-rows: 1 + + * - Keyword + - Type + - Description + * - band_gap + - Tuple[float,float] + - Minimum and maximum band gap in eV to consider. + * - chemsys + - str | List[str] + - A chemical system, list of chemical systems (e.g., Li-Fe-O, Si-\*, [Si-O, Li-Fe-P]), or single formula (e.g., Fe2O3, Si\*). + * - crystal_system + - CrystalSystem + - Crystal system of material. + * - density + - Tuple[float,float] + - Minimum and maximum density to consider. + * - deprecated + - bool + - Whether the material is tagged as deprecated. + * - e_electronic + - Tuple[float,float] + - Minimum and maximum electronic dielectric constant to consider. + * - e_ionic + - Tuple[float,float] + - Minimum and maximum ionic dielectric constant to consider. + * - e_total + - Tuple[float,float] + - Minimum and maximum total dielectric constant to consider. + * - efermi + - Tuple[float,float] + - Minimum and maximum fermi energy in eV to consider. + * - elastic_anisotropy + - Tuple[float,float] + - Minimum and maximum value to consider for the elastic anisotropy. + * - elements + - List[str] + - A list of elements. + * - energy_above_hull + - Tuple[int,int] + - Minimum and maximum energy above the hull in eV/atom to consider. + * - equilibrium_reaction_energy + - Tuple[float,float] + - Minimum and maximum equilibrium reaction energy in eV/atom to consider. + * - exclude_elements + - List[str] + - List of elements to exclude. + * - formation_energy + - Tuple[int,int] + - Minimum and maximum formation energy in eV/atom to consider. + * - formula + - str | List[str] + - A formula including anonymized formula or wild cards (e.g., Fe2O3, ABO3, Si\*). A list of chemical formulas can also be passed (e.g., [Fe2O3, ABO3]). + * - g_reuss + - Tuple[float,float] + - Minimum and maximum value in GPa to consider for the Reuss average of the shear modulus. + * - g_voigt + - Tuple[float,float] + - Minimum and maximum value in GPa to consider for the Voigt average of the shear modulus. + * - g_vrh + - Tuple[float,float] + - Minimum and maximum value in GPa to consider for the Voigt-Reuss-Hill average of the shear modulus. + * - has_props + - List[HasProps] + - The calculated properties available for the material. + * - has_reconstructed + - bool + - Whether the entry has any reconstructed surfaces. + * - is_gap_direct + - bool + - Whether the material has a direct band gap. + * - is_metal + - bool + - Whether the material is considered a metal. + * - is_stable + - bool + - Whether the material lies on the convex energy hull. + * - k_reuss + - Tuple[float,float] + - Minimum and maximum value in GPa to consider for the Reuss average of the bulk modulus. + * - k_voigt + - Tuple[float,float] + - Minimum and maximum value in GPa to consider for the Voigt average of the bulk modulus. + * - k_vrh + - Tuple[float,float] + - Minimum and maximum value in GPa to consider for the Voigt-Reuss-Hill average of the bulk modulus. + * - magnetic_ordering + - Ordering + - Magnetic ordering of the material. + * - material_ids + - List[str] + - List of Materials Project IDs to return data for. + * - n + - Tuple[float,float] + - Minimum and maximum refractive index to consider. + * - num_elements + - Tuple[int,int] + - Minimum and maximum number of elements to consider. + * - num_sites + - Tuple[int,int] + - Minimum and maximum number of sites to consider. + * - num_magnetic_sites + - Tuple[int,int] + - Minimum and maximum number of magnetic sites to consider. + * - num_unique_magnetic_sites + - Tuple[int,int] + - Minimum and maximum number of unique magnetic sites to consider. + * - piezoelectric_modulus + - Tuple[float,float] + - Minimum and maximum piezoelectric modulus to consider. + * - poisson_ratio + - Tuple[float,float] + - Minimum and maximum value to consider for Poisson's ratio. + * - possible_species + - List[str] + - List of element symbols appended with oxidation states. (e.g. Cr2+,O2-) + * - shape_factor + - Tuple[float,float] + - Minimum and maximum shape factor values to consider. + * - spacegroup_number + - int + - Space group number of material. + * - spacegroup_symbol + - str + - Space group symbol of the material in international short symbol notation. + * - surface_energy_anisotropy + - Tuple[float,float] + - Minimum and maximum surface energy anisotropy values to consider. + * - theoretical + - bool + - Whether the material is theoretical. + * - total_energy + - Tuple[int,int] + - Minimum and maximum corrected total energy in eV/atom to consider. + * - total_magnetization + - Tuple[float,float] + - Minimum and maximum total magnetization values to consider. + * - total_magnetization_normalized_formula_units + - Tuple[float,float] + - Minimum and maximum total magnetization values normalized by formula units to consider. + * - total_magnetization_normalized_vol + - Tuple[float,float] + - Minimum and maximum total magnetization values normalized by volume to consider. + * - uncorrected_energy + - Tuple[int,int] + - Minimum and maximum uncorrected total energy in eV/atom to consider. + * - volume + - Tuple[float,float] + - Minimum and maximum volume to consider. + * - weighted_surface_energy + - Tuple[float,float] + - Minimum and maximum weighted surface energy in J/:math:`m^2` to consider. + * - weighted_work_function + - Tuple[float,float] + - Minimum and maximum weighted work function in eV to consider. + +.. +.. .. list-table:: Unsupported search criteria for the properties section +.. :widths: 30 20 60 +.. :header-rows: 1 +.. +.. * - Keyword +.. - Type +.. - Description +.. * - num_chunks +.. - int +.. - Maximum number of chunks of data to yield. None will yield all possible. +.. * - chunk_size +.. - int +.. - Number of data entries per chunk. +.. * - all_fields +.. - bool +.. - Whether to return all fields in the document. Defaults to True. +.. * - fields +.. - List[str] +.. - List of fields in SearchDoc to return data for. Default is material_id if all_fields is False. +.. + + +出力項目 (fields) +---------------------------------------------------------------- + +fields に指定できる項目を以下に列挙します。 + +.. code:: text + + band_gap + bandstructure + builder_meta + bulk_modulus + cbm + chemsys + composition + composition_reduced + database_IDs + decomposes_to + density + density_atomic + deprecated + deprecation_reasons + dos + dos_energy_down + dos_energy_up + e_electronic + e_ij_max + e_ionic + e_total + efermi + elements + energy_above_hull + energy_per_atom + equilibrium_reaction_energy_per_atom + es_source_calc_id + formation_energy_per_atom + formula_anonymous + formula_pretty + grain_boundaries + has_props + has_reconstructed + homogeneous_poisson + is_gap_direct + is_magnetic + is_metal + is_stable + last_updated + material_id + n + nelements + nsites + num_magnetic_sites + num_unique_magnetic_sites + ordering + origins + possible_species + property_name + shape_factor + shear_modulus + structure + surface_anisotropy + symmetry + task_ids + theoretical + total_magnetization + total_magnetization_normalized_formula_units + total_magnetization_normalized_vol + types_of_magnetic_species + uncorrected_energy_per_atom + universal_anisotropy + vbm + volume + warnings + weighted_surface_energy + weighted_surface_energy_EV_PER_ANG2 + weighted_work_function + xas diff --git a/manual/v1.1.0/ja/html/_sources/getcif/command/index.rst.txt b/manual/v1.1.0/ja/html/_sources/getcif/command/index.rst.txt new file mode 100644 index 0000000..4077042 --- /dev/null +++ b/manual/v1.1.0/ja/html/_sources/getcif/command/index.rst.txt @@ -0,0 +1,45 @@ +コマンドリファレンス +================================================================ + +getcif +---------------------------------------------------------------- + + 結晶構造データをデータベースから取得する + +書式: + + .. code-block:: bash + + getcif [-v][-q] [--dry-run] input_yaml + getcif -h + getcif --version + +説明: + + input_yaml に指定した入力パラメータファイルを読み込み、データベースを検索して結晶構造等のデータを取得します。 + 以下のオプションを受け付けます。 + + - ``-v`` + + 実行時に表示されるメッセージを冗長にします。複数回指定すると冗長度が上がります。 + + - ``-q`` + + 実行時に表示されるメッセージの冗長度を下げます。 ``-v`` の効果を打ち消します。複数回の指定が可能です。 + + - ``--dry-run`` + + 検索パラメータを出力し、データベースへの接続をせずに終了します。検索条件を確認することができます。入力パラメータファイルの ``dry_run`` の指定より優先します。 + + - ``input_yaml`` + + 入力パラメータファイルを指定します。ファイルフォーマットはYAML形式です。 + + - ``-h``, ``--help`` + + ヘルプを表示します。指定可能な検索条件 (properties) と取得データ (fields) の一覧も表示されます。 + + - ``--version`` + + バージョン情報を表示します。 + diff --git a/manual/v1.1.0/ja/html/_sources/getcif/filespec/index.rst.txt b/manual/v1.1.0/ja/html/_sources/getcif/filespec/index.rst.txt new file mode 100644 index 0000000..3313c51 --- /dev/null +++ b/manual/v1.1.0/ja/html/_sources/getcif/filespec/index.rst.txt @@ -0,0 +1,126 @@ +.. _sec-getcif-fileformat: + +====================== +ファイルフォーマット +====================== + +入力パラメータファイル +====================== + +入力パラメータファイルでは、getcif で Materials Project の物質材料データベースから結晶構造等のデータを取得するための設定情報を YAML形式で記述します。本ファイルは以下の部分から構成されます。 + + #. databaseセクション: 接続するデータベースについての情報を記述します。 + + #. optionセクション: 出力先のディレクトリや実行条件などを記述します。 + + #. propertiesセクション: 検索条件を記述します。 + + #. fieldsセクション: 取得データの種類を記述します。 + +database +-------------------------------- + + ``target`` + + 接続先のデータベースを指定します。現在はこの項目は無視されます。 + + ``api_key_file`` (デフォルト値: ``materials_project.key``) + + データベースに接続する際の APIキーを格納したファイルのファイル名を指定します。ファイル名の拡張子は ``.key`` とします。 + ファイルが存在しない、または有効なAPIキーが見つからない場合は、環境変数 ``MP_API_KEY`` または pymatgen の設定ファイル ``~/.config/.pmgrc`` の ``PMG_MAPI_KEY`` からAPIキーを取得します。 + + APIキーファイルはテキスト形式です。 ``#`` から始まる行はコメントとして扱われます。前後の空白は無視されます。複数行からなる場合は最初の有効な行からキーを取得します。 + + +option +-------------------------------- + + ``output_dir`` (デフォルト値: ``""``) + + 取得データを格納するディレクトリを指定します。データは ``output_dir`` 以下に、material ID をディレクトリ名としたディレクトリに出力されます。指定がない場合はカレントディレクトリです。 + + ``dry_run`` (デフォルト値: ``False``) + + データベースへの接続は行わず、検索条件を出力して終了します。検索内容の確認を行うことができます。 + + ``symprec`` (デフォルト値: 0.1) + + 結晶構造データをCIFファイルに出力する際の対称性を判定する許容精度を指定します。デフォルトは 0.1 です。 ``symprec`` に 0.0 を指定した場合は ``symprec`` を指定しないものとして扱い、対称性を考慮しないCIFファイルが生成されます。 + + ``symprec`` は、結晶構造における対称性を判定する際の許容精度(tolerance)を指定するパラメータです。対称性の計算においては、原子位置の微細なずれや数値計算の精度の影響を考慮する必要があります。``symprec`` はこのずれの許容範囲を制御し、対称操作が適用されるかどうかを決定する際の閾値として機能します。 + + ``symprec`` を小さく設定する(例: 0.01)と、対称性の判定がより厳密になり、結晶構造のわずかなずれでも対称操作が適用されない可能性が高まります。その結果、より低い対称性の空間群が得られることがあります。逆に、``symprec`` を大きく設定する(例: 1.0)と、対称性の判定が緩やかになり、わずかなずれが無視され、より高い対称性が認められることがあります。 + + なお、 ``fields`` セクションで ``symmetry`` を指定すると、Materials Project でデフォルトの ``symprec=0.1`` で判定された対称性の情報を取得し、テキストファイル(symmetry)に出力します。 + + +properties +-------------------------------- +検索条件を記述します。 +元素組成や結晶の対称性、物性値の範囲などの項目を、「項目名: 値」の形式で指定します。これらの条件は AND で扱われます。 +指定できる項目は Materials Project の API に定義されていますが、指定方法は mp-api ライブラリの ``materials.summary.search`` のパラメータに準拠します。項目のリストは Appendix を参照してください。また、 ``getcif --help`` で一覧を見ることができます。 + +値の指定方法は次のとおりです。YAML形式に準拠しますが、一部に簡便な記法を用意しています。 + +- 数値、文字列 + + そのまま記述します。 + +- 真偽値 + + true または false を記述します + +- 数値や文字列のリスト + + YAML形式の箇条書きおよび ``[ ... ]`` にカンマ区切りで記述するほか、空白区切りで列挙する記法も可能です。例: + + .. code:: yaml + + element: Sr Ti + +- 数値の範囲 + + 上限・下限のリストとして ``[ min, max ]`` のように記述するほか、空白区切りで ``min max`` のように記述することもできます。また、以下の記法も可能です。 + + ``<= max`` + max 以下 + + ``< max`` + max より小さい (実数の場合は ``<=`` と同等。整数の場合は ``<= max-1`` として扱われる) + + ``>= min`` + min 以上 + + ``> min`` + min より大きい (実数の場合は ``>=`` と同等。整数の場合は ``>= min+1`` として扱われる) + + ``min ~ max`` + min 以上 max 以下 + + 注記: + + - 記号と数値の間は空白を置きます。 + + - YAML記法では ``>`` は特殊文字として扱われるため、 ``>= min``, ``> min`` はそれぞれ ``">= min"``, ``"> min"`` のように ``" "`` で囲む必要があります。 + + - リストで記述する場合、 ``<= max``, ``>= min`` はそれぞれ ``[ None, max ]``, ``[ min, None ]`` のように表記します。 + +- ワイルドカード + + ``formula`` には元素種にワイルドカード ``*`` を指定できます。その場合は値を ``" "`` で囲みます。例: + .. code:: yaml + + formula: "**O3" + + :math:`ABO_3` 系の物質を指定します。 + +fields +-------------------------------- +取得するデータの種類を記述します。 +項目のリストを YAML形式で列挙するほか、空白区切りの文字列として記述することもできます。文字列は YAML記法 ``|`` を用いて複数行で書くこともできます。 +指定できる項目は Materials Project の API の ``fields`` パラメータに準拠します。項目のリストは Appendix を参照してください。また、 ``getcif --help`` で一覧を見ることができます。 + +``material_id`` と ``formula_pretty`` は暗黙的に取得します。 + +取得したデータは、 ``option`` セクションの ``output_dir`` で指定したディレクトリ内に、物質ごとに ``material_id`` をディレクトリ名とするディレクトリを作成し、その中に格納されます。 +項目ごとに、項目名をファイル名としたファイルに保存されます。但し、結晶構造データ (``structure``) は ``structure.cif`` というファイル名で CIF形式で書き出されます。 diff --git a/manual/v1.1.0/ja/html/_sources/getcif/index.rst.txt b/manual/v1.1.0/ja/html/_sources/getcif/index.rst.txt new file mode 100644 index 0000000..550bc75 --- /dev/null +++ b/manual/v1.1.0/ja/html/_sources/getcif/index.rst.txt @@ -0,0 +1,13 @@ +**************************************************************** +CIFデータ取得ツール (getcif) +**************************************************************** + +.. toctree:: + :maxdepth: 2 + :numbered: 2 + + about/index + tutorial/index + command/index + filespec/index + appendix/index diff --git a/manual/v1.1.0/ja/html/_sources/getcif/tutorial/index.rst.txt b/manual/v1.1.0/ja/html/_sources/getcif/tutorial/index.rst.txt new file mode 100644 index 0000000..514c785 --- /dev/null +++ b/manual/v1.1.0/ja/html/_sources/getcif/tutorial/index.rst.txt @@ -0,0 +1,109 @@ +.. _sec-getcif-tutorial: + +チュートリアル +================================================================ + +結晶構造などのデータを物質材料データベースから取得するツール getcif を使うには、検索条件と取得するデータを記述した入力パラメータファイルを作成し、プログラム getcif を実行します。現在は Materials Project が公開しているデータベースに対応しています。以下では ``docs/tutorial/getcif`` ディレクトリにある ABO3 系の物質を検索・取得するサンプルを例にチュートリアルを実施します。 + +APIキーを取得する +---------------------------------------------------------------- + +Materials Project のデータベースをプログラムから検索するには、あらかじめ Materials Project にユーザ登録し、APIキーを取得する必要があります。 +Materials Project の公式サイト `https://next-gen.materialsproject.org `_ にアクセスし、Login します。APIキーはユーザ登録時に自動的生成され、ユーザのダッシュボードから確認できます。取得した APIキーは安全に保管し、他人に知られないようにしましょう。 + +APIキーを getcif にセットするには、以下のいずれかを実行します。 + + (a) pymatgen の設定ファイルに登録する + + .. code:: bash + + $ pmg config --add PMG_MAPI_KEY + + を実行するか、設定ファイル ``~/.config/.pmgrc`` に + + .. code:: bash + + PMG_MAPI_KEY: + + を書き込みます。 + + (b) 環境変数にセットする + + .. code:: bash + + $ MP_API_KEY="" + $ export MP_API_KEY + + を実行します。 + + (c) ファイルに格納する + + APIキーをファイルに書き込み、getcif を実行するディレクトリに配置します。ファイル名のデフォルトは ``materials_project.key`` です。異なるファイル名を使う場合は、入力パラメータファイル (input.yaml) の api_key_file にファイル名を指定します。ファイル名は ``.key`` の拡張子が必要です。 + + .. code:: yaml + + database: + api_key_file: materials_project.key + + 註: バージョン管理ツールを使っている場合は、 ``.key`` の拡張子を持つファイルを管理から除外するとよいでしょう。(Git の場合は ``.gitignore`` ファイルに ``*.key`` を追加します。) + + +入力パラメータファイルを作成する +---------------------------------------------------------------- + +入力パラメータファイルにはデータベース検索および出力についての設定を記述します。 + +以下に入力パラメータファイルのサンプルを記載します。このファイルは YAML形式のテキストファイルで、データベースへの接続に必要な情報や、検索条件、取得するデータの種類などの内容を記述します。仕様の詳細については :ref:`ファイルフォーマット ` の章を参照してください。 + +YAMLフォーマットでは、 ``keyword: value`` の辞書形式でパラメータを記述します。 ``value`` には数値や文字列などのスカラー値や、複数の値を ``[ ]`` または箇条書きの形式で列挙するリスト型、または辞書型を入れ子にすることができます。検索条件と出力項目については、特別な記法として、リスト型を括弧を使わず空白区切りで列挙する形式でも書くことができます。 + +.. literalinclude:: ../../../../tutorial/getcif/input.yaml + :language: yaml + +入力パラメータファイルは ``database``, ``option``, ``properties``, ``fields`` のブロックからなります。 +``database`` にはデータベース接続に関する設定を記述します。例では ``target`` に Materials Project を指定していますが、現時点ではこの項目は無視されます。その他、 ``api_key`` に APIキーを指定できます。APIキーは pymatgen の設定ファイルや環境変数にセットすることもできます。例では後者の方式を仮定しています。 + +``option`` には実行時のオプションを記述します。 ``output_dir`` は取得したデータの格納先ディレクトリを指定します。省略時にはカレントディレクトリに書き出されます。 ``dry_run`` を ``true`` にセットすると、データベースへの接続はせず、検索条件を出力して終了します。 ``dry_run`` はコマンドラインオプションでも指定できます。 + +``properties`` は検索条件の指定を行います。検索条件を「項目: 値」の書式で列挙し、これらの条件は AND で扱われます。例では、バンドギャップが 1.0以下、安定な絶縁体で、組成式は ABO3 (A, B は任意の元素種)、空間群は ``Pm-3m`` という条件を指定しています。 ``band_gap`` には値の範囲を上限・下限の組で指定するほか、 ``< 1.0`` のような記法も使用できます。検索条件にどのような項目が指定できるかは Appendix を参照してください。 + +``fields`` には出力項目を列挙します。YAMLのリスト形式のほか、空白区切りで項目を列挙する書き方もできます。また、例に示したとおり、YAMLの記法を使って複数行で書くこともできます。 +``structure`` は結晶構造データで、取得したデータはCIF形式で出力されます。 ``band_gap`` はバンドギャップの数値、 ``symmetry`` は対称性の情報です。この他に、 ``material_id`` で Materials Project 内の物質データのインデックスと、 ``formula_pretty`` で組成式が暗黙的に取得されます。出力項目の一覧は Appendix を参照してください。また、getcif コマンドのヘルプメッセージにも一覧が出力されます。 + + +データを取得する +---------------------------------------------------------------- + +入力パラメータファイル(input.yaml)を引数として getcif を実行します。 + +.. code-block:: bash + + $ getcif input.yaml + +``getcif`` を実行すると Materials Project のデータベースに接続し、検索条件に合致するデータを取得します。標準出力には、以下のように、物質の material ID と組成式、データ項目のサマリーが出力されます。 + +.. literalinclude:: ../../../../tutorial/getcif/output_log.txt + :language: text + +取得したデータは、 ``output_dir`` で指定した result ディレクトリ内に物質ごとに格納されます。この例では、 result 以下に mp-3163 から mp-977455 までの 7つのディレクトリが作成され、各ディレクトリには次のファイルが書き込まれます。 + + - band_gap + + バンドギャップの値 + + - formula + + 組成式 (formula_pretty に対応します) + + - structure.cif + + CIF形式の結晶構造データ + + - symmetry + + 対称性に関するデータ + +``getcif`` の実行に ``--dry-run`` オプションを付けると、以下のように検索条件を出力して終了します。データベースに実際に接続する前に検索項目を確認できます。 + +.. literalinclude:: ../../../../tutorial/getcif/output_dryrun.txt + :language: text diff --git a/manual/v1.1.0/ja/html/_sources/index.rst.txt b/manual/v1.1.0/ja/html/_sources/index.rst.txt new file mode 100644 index 0000000..0176a5c --- /dev/null +++ b/manual/v1.1.0/ja/html/_sources/index.rst.txt @@ -0,0 +1,20 @@ +.. HTP-tools documentation master file, created by + sphinx-quickstart on Fri Jun 30 11:02:31 2023. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +Cif2x Users Guide +===================================== + +.. toctree:: + :maxdepth: 2 + :caption: Contents: + + cif2x/index + +.. Indices and tables +.. ================== + +.. * :ref:`genindex` +.. * :ref:`modindex` +.. * :ref:`search` diff --git a/manual/v1.1.0/ja/html/_static/alabaster.css b/manual/v1.1.0/ja/html/_static/alabaster.css new file mode 100644 index 0000000..55f9cb1 --- /dev/null +++ b/manual/v1.1.0/ja/html/_static/alabaster.css @@ -0,0 +1,708 @@ +@import url("basic.css"); + +/* -- page layout ----------------------------------------------------------- */ + +body { + font-family: Georgia; + font-size: 17px; + background-color: #fff; + color: #000; + margin: 0; + padding: 0; +} + + +div.document { + width: 940px; + margin: 30px auto 0 auto; +} + +div.documentwrapper { + float: left; + width: 100%; +} + +div.bodywrapper { + margin: 0 0 0 220px; +} + +div.sphinxsidebar { + width: 220px; + font-size: 14px; + line-height: 1.5; +} + +hr { + border: 1px solid #B1B4B6; +} + +div.body { + background-color: #fff; + color: #3E4349; + padding: 0 30px 0 30px; +} + +div.body > .section { + text-align: left; +} + +div.footer { + width: 940px; + margin: 20px auto 30px auto; + font-size: 14px; + color: #888; + text-align: right; +} + +div.footer a { + color: #888; +} + +p.caption { + font-family: inherit; + font-size: inherit; +} + + +div.relations { + display: none; +} + + +div.sphinxsidebar { + max-height: 100%; + overflow-y: auto; +} + +div.sphinxsidebar a { + color: #444; + text-decoration: none; + border-bottom: 1px dotted #999; +} + +div.sphinxsidebar a:hover { + border-bottom: 1px solid #999; +} + +div.sphinxsidebarwrapper { + padding: 18px 10px; +} + +div.sphinxsidebarwrapper p.logo { + padding: 0; + margin: -10px 0 0 0px; + text-align: center; +} + +div.sphinxsidebarwrapper h1.logo { + margin-top: -10px; + text-align: center; + margin-bottom: 5px; + text-align: left; +} + +div.sphinxsidebarwrapper h1.logo-name { + margin-top: 0px; +} + +div.sphinxsidebarwrapper p.blurb { + margin-top: 0; + font-style: normal; +} + +div.sphinxsidebar h3, +div.sphinxsidebar h4 { + font-family: Georgia; + color: #444; + font-size: 24px; + font-weight: normal; + margin: 0 0 5px 0; + padding: 0; +} + +div.sphinxsidebar h4 { + font-size: 20px; +} + +div.sphinxsidebar h3 a { + color: #444; +} + +div.sphinxsidebar p.logo a, +div.sphinxsidebar h3 a, +div.sphinxsidebar p.logo a:hover, +div.sphinxsidebar h3 a:hover { + border: none; +} + +div.sphinxsidebar p { + color: #555; + margin: 10px 0; +} + +div.sphinxsidebar ul { + margin: 10px 0; + padding: 0; + color: #000; +} + +div.sphinxsidebar ul li.toctree-l1 > a { + font-size: 120%; +} + +div.sphinxsidebar ul li.toctree-l2 > a { + font-size: 110%; +} + +div.sphinxsidebar input { + border: 1px solid #CCC; + font-family: Georgia; + font-size: 1em; +} + +div.sphinxsidebar #searchbox input[type="text"] { + width: 160px; +} + +div.sphinxsidebar .search > div { + display: table-cell; +} + +div.sphinxsidebar hr { + border: none; + height: 1px; + color: #AAA; + background: #AAA; + + text-align: left; + margin-left: 0; + width: 50%; +} + +div.sphinxsidebar .badge { + border-bottom: none; +} + +div.sphinxsidebar .badge:hover { + border-bottom: none; +} + +/* To address an issue with donation coming after search */ +div.sphinxsidebar h3.donation { + margin-top: 10px; +} + +/* -- body styles ----------------------------------------------------------- */ + +a { + color: #004B6B; + text-decoration: underline; +} + +a:hover { + color: #6D4100; + text-decoration: underline; +} + +div.body h1, +div.body h2, +div.body h3, +div.body h4, +div.body h5, +div.body h6 { + font-family: Georgia; + font-weight: normal; + margin: 30px 0px 10px 0px; + padding: 0; +} + +div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; } +div.body h2 { font-size: 180%; } +div.body h3 { font-size: 150%; } +div.body h4 { font-size: 130%; } +div.body h5 { font-size: 100%; } +div.body h6 { font-size: 100%; } + +a.headerlink { + color: #DDD; + padding: 0 4px; + text-decoration: none; +} + +a.headerlink:hover { + color: #444; + background: #EAEAEA; +} + +div.body p, div.body dd, div.body li { + line-height: 1.4em; +} + +div.admonition { + margin: 20px 0px; + padding: 10px 30px; + background-color: #EEE; + border: 1px solid #CCC; +} + +div.admonition tt.xref, div.admonition code.xref, div.admonition a tt { + background-color: #FBFBFB; + border-bottom: 1px solid #fafafa; +} + +div.admonition p.admonition-title { + font-family: Georgia; + font-weight: normal; + font-size: 24px; + margin: 0 0 10px 0; + padding: 0; + line-height: 1; +} + +div.admonition p.last { + margin-bottom: 0; +} + +div.highlight { + background-color: #fff; +} + +dt:target, .highlight { + background: #FAF3E8; +} + +div.warning { + background-color: #FCC; + border: 1px solid #FAA; +} + +div.danger { + background-color: #FCC; + border: 1px solid #FAA; + -moz-box-shadow: 2px 2px 4px #D52C2C; + -webkit-box-shadow: 2px 2px 4px #D52C2C; + box-shadow: 2px 2px 4px #D52C2C; +} + +div.error { + background-color: #FCC; + border: 1px solid #FAA; + -moz-box-shadow: 2px 2px 4px #D52C2C; + -webkit-box-shadow: 2px 2px 4px #D52C2C; + box-shadow: 2px 2px 4px #D52C2C; +} + +div.caution { + background-color: #FCC; + border: 1px solid #FAA; +} + +div.attention { + background-color: #FCC; + border: 1px solid #FAA; +} + +div.important { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.note { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.tip { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.hint { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.seealso { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.topic { + background-color: #EEE; +} + +p.admonition-title { + display: inline; +} + +p.admonition-title:after { + content: ":"; +} + +pre, tt, code { + font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; + font-size: 0.9em; +} + +.hll { + background-color: #FFC; + margin: 0 -12px; + padding: 0 12px; + display: block; +} + +img.screenshot { +} + +tt.descname, tt.descclassname, code.descname, code.descclassname { + font-size: 0.95em; +} + +tt.descname, code.descname { + padding-right: 0.08em; +} + +img.screenshot { + -moz-box-shadow: 2px 2px 4px #EEE; + -webkit-box-shadow: 2px 2px 4px #EEE; + box-shadow: 2px 2px 4px #EEE; +} + +table.docutils { + border: 1px solid #888; + -moz-box-shadow: 2px 2px 4px #EEE; + -webkit-box-shadow: 2px 2px 4px #EEE; + box-shadow: 2px 2px 4px #EEE; +} + +table.docutils td, table.docutils th { + border: 1px solid #888; + padding: 0.25em 0.7em; +} + +table.field-list, table.footnote { + border: none; + -moz-box-shadow: none; + -webkit-box-shadow: none; + box-shadow: none; +} + +table.footnote { + margin: 15px 0; + width: 100%; + border: 1px solid #EEE; + background: #FDFDFD; + font-size: 0.9em; +} + +table.footnote + table.footnote { + margin-top: -15px; + border-top: none; +} + +table.field-list th { + padding: 0 0.8em 0 0; +} + +table.field-list td { + padding: 0; +} + +table.field-list p { + margin-bottom: 0.8em; +} + +/* Cloned from + * https://github.com/sphinx-doc/sphinx/commit/ef60dbfce09286b20b7385333d63a60321784e68 + */ +.field-name { + -moz-hyphens: manual; + -ms-hyphens: manual; + -webkit-hyphens: manual; + hyphens: manual; +} + +table.footnote td.label { + width: .1px; + padding: 0.3em 0 0.3em 0.5em; +} + +table.footnote td { + padding: 0.3em 0.5em; +} + +dl { + margin-left: 0; + margin-right: 0; + margin-top: 0; + padding: 0; +} + +dl dd { + margin-left: 30px; +} + +blockquote { + margin: 0 0 0 30px; + padding: 0; +} + +ul, ol { + /* Matches the 30px from the narrow-screen "li > ul" selector below */ + margin: 10px 0 10px 30px; + padding: 0; +} + +pre { + background: #EEE; + padding: 7px 30px; + margin: 15px 0px; + line-height: 1.3em; +} + +div.viewcode-block:target { + background: #ffd; +} + +dl pre, blockquote pre, li pre { + margin-left: 0; + padding-left: 30px; +} + +tt, code { + background-color: #ecf0f3; + color: #222; + /* padding: 1px 2px; */ +} + +tt.xref, code.xref, a tt { + background-color: #FBFBFB; + border-bottom: 1px solid #fff; +} + +a.reference { + text-decoration: none; + border-bottom: 1px dotted #004B6B; +} + +/* Don't put an underline on images */ +a.image-reference, a.image-reference:hover { + border-bottom: none; +} + +a.reference:hover { + border-bottom: 1px solid #6D4100; +} + +a.footnote-reference { + text-decoration: none; + font-size: 0.7em; + vertical-align: top; + border-bottom: 1px dotted #004B6B; +} + +a.footnote-reference:hover { + border-bottom: 1px solid #6D4100; +} + +a:hover tt, a:hover code { + background: #EEE; +} + + +@media screen and (max-width: 870px) { + + div.sphinxsidebar { + display: none; + } + + div.document { + width: 100%; + + } + + div.documentwrapper { + margin-left: 0; + margin-top: 0; + margin-right: 0; + margin-bottom: 0; + } + + div.bodywrapper { + margin-top: 0; + margin-right: 0; + margin-bottom: 0; + margin-left: 0; + } + + ul { + margin-left: 0; + } + + li > ul { + /* Matches the 30px from the "ul, ol" selector above */ + margin-left: 30px; + } + + .document { + width: auto; + } + + .footer { + width: auto; + } + + .bodywrapper { + margin: 0; + } + + .footer { + width: auto; + } + + .github { + display: none; + } + + + +} + + + +@media screen and (max-width: 875px) { + + body { + margin: 0; + padding: 20px 30px; + } + + div.documentwrapper { + float: none; + background: #fff; + } + + div.sphinxsidebar { + display: block; + float: none; + width: 102.5%; + margin: 50px -30px -20px -30px; + padding: 10px 20px; + background: #333; + color: #FFF; + } + + div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p, + div.sphinxsidebar h3 a { + color: #fff; + } + + div.sphinxsidebar a { + color: #AAA; + } + + div.sphinxsidebar p.logo { + display: none; + } + + div.document { + width: 100%; + margin: 0; + } + + div.footer { + display: none; + } + + div.bodywrapper { + margin: 0; + } + + div.body { + min-height: 0; + padding: 0; + } + + .rtd_doc_footer { + display: none; + } + + .document { + width: auto; + } + + .footer { + width: auto; + } + + .footer { + width: auto; + } + + .github { + display: none; + } +} + + +/* misc. */ + +.revsys-inline { + display: none!important; +} + +/* Hide ugly table cell borders in ..bibliography:: directive output */ +table.docutils.citation, table.docutils.citation td, table.docutils.citation th { + border: none; + /* Below needed in some edge cases; if not applied, bottom shadows appear */ + -moz-box-shadow: none; + -webkit-box-shadow: none; + box-shadow: none; +} + + +/* relbar */ + +.related { + line-height: 30px; + width: 100%; + font-size: 0.9rem; +} + +.related.top { + border-bottom: 1px solid #EEE; + margin-bottom: 20px; +} + +.related.bottom { + border-top: 1px solid #EEE; +} + +.related ul { + padding: 0; + margin: 0; + list-style: none; +} + +.related li { + display: inline; +} + +nav#rellinks { + float: right; +} + +nav#rellinks li+li:before { + content: "|"; +} + +nav#breadcrumbs li+li:before { + content: "\00BB"; +} + +/* Hide certain items when printing */ +@media print { + div.related { + display: none; + } +} \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/_static/basic.css b/manual/v1.1.0/ja/html/_static/basic.css new file mode 100644 index 0000000..e5179b7 --- /dev/null +++ b/manual/v1.1.0/ja/html/_static/basic.css @@ -0,0 +1,925 @@ +/* + * basic.css + * ~~~~~~~~~ + * + * Sphinx stylesheet -- basic theme. + * + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +/* -- main layout ----------------------------------------------------------- */ + +div.clearer { + clear: both; +} + +div.section::after { + display: block; + content: ''; + clear: left; +} + +/* -- relbar ---------------------------------------------------------------- */ + +div.related { + width: 100%; + font-size: 90%; +} + +div.related h3 { + display: none; +} + +div.related ul { + margin: 0; + padding: 0 0 0 10px; + list-style: none; +} + +div.related li { + display: inline; +} + +div.related li.right { + float: right; + margin-right: 5px; +} + +/* -- sidebar --------------------------------------------------------------- */ + +div.sphinxsidebarwrapper { + padding: 10px 5px 0 10px; +} + +div.sphinxsidebar { + float: left; + width: 230px; + margin-left: -100%; + font-size: 90%; + word-wrap: break-word; + overflow-wrap : break-word; +} + +div.sphinxsidebar ul { + list-style: none; +} + +div.sphinxsidebar ul ul, +div.sphinxsidebar ul.want-points { + margin-left: 20px; + list-style: square; +} + +div.sphinxsidebar ul ul { + margin-top: 0; + margin-bottom: 0; +} + +div.sphinxsidebar form { + margin-top: 10px; +} + +div.sphinxsidebar input { + border: 1px solid #98dbcc; + font-family: sans-serif; + font-size: 1em; +} + +div.sphinxsidebar #searchbox form.search { + overflow: hidden; +} + +div.sphinxsidebar #searchbox input[type="text"] { + float: left; + width: 80%; + padding: 0.25em; + box-sizing: border-box; +} + +div.sphinxsidebar #searchbox input[type="submit"] { + float: left; + width: 20%; + border-left: none; + padding: 0.25em; + box-sizing: border-box; +} + + +img { + border: 0; + max-width: 100%; +} + +/* -- search page ----------------------------------------------------------- */ + +ul.search { + margin: 10px 0 0 20px; + padding: 0; +} + +ul.search li { + padding: 5px 0 5px 20px; + background-image: url(file.png); + background-repeat: no-repeat; + background-position: 0 7px; +} + +ul.search li a { + font-weight: bold; +} + +ul.search li p.context { + color: #888; + margin: 2px 0 0 30px; + text-align: left; +} + +ul.keywordmatches li.goodmatch a { + font-weight: bold; +} + +/* -- index page ------------------------------------------------------------ */ + +table.contentstable { + width: 90%; + margin-left: auto; + margin-right: auto; +} + +table.contentstable p.biglink { + line-height: 150%; +} + +a.biglink { + font-size: 1.3em; +} + +span.linkdescr { + font-style: italic; + padding-top: 5px; + font-size: 90%; +} + +/* -- general index --------------------------------------------------------- */ + +table.indextable { + width: 100%; +} + +table.indextable td { + text-align: left; + vertical-align: top; +} + +table.indextable ul { + margin-top: 0; + margin-bottom: 0; + list-style-type: none; +} + +table.indextable > tbody > tr > td > ul { + padding-left: 0em; +} + +table.indextable tr.pcap { + height: 10px; +} + +table.indextable tr.cap { + margin-top: 10px; + background-color: #f2f2f2; +} + +img.toggler { + margin-right: 3px; + margin-top: 3px; + cursor: pointer; +} + +div.modindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +div.genindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +/* -- domain module index --------------------------------------------------- */ + +table.modindextable td { + padding: 2px; + border-collapse: collapse; +} + +/* -- general body styles --------------------------------------------------- */ + +div.body { + min-width: inherit; + max-width: 800px; +} + +div.body p, div.body dd, div.body li, div.body blockquote { + -moz-hyphens: auto; + -ms-hyphens: auto; + -webkit-hyphens: auto; + hyphens: auto; +} + +a.headerlink { + visibility: hidden; +} + +a:visited { + color: #551A8B; +} + +h1:hover > a.headerlink, +h2:hover > a.headerlink, +h3:hover > a.headerlink, +h4:hover > a.headerlink, +h5:hover > a.headerlink, +h6:hover > a.headerlink, +dt:hover > a.headerlink, +caption:hover > a.headerlink, +p.caption:hover > a.headerlink, +div.code-block-caption:hover > a.headerlink { + visibility: visible; +} + +div.body p.caption { + text-align: inherit; +} + +div.body td { + text-align: left; +} + +.first { + margin-top: 0 !important; +} + +p.rubric { + margin-top: 30px; + font-weight: bold; +} + +img.align-left, figure.align-left, .figure.align-left, object.align-left { + clear: left; + float: left; + margin-right: 1em; +} + +img.align-right, figure.align-right, .figure.align-right, object.align-right { + clear: right; + float: right; + margin-left: 1em; +} + +img.align-center, figure.align-center, .figure.align-center, object.align-center { + display: block; + margin-left: auto; + margin-right: auto; +} + +img.align-default, figure.align-default, .figure.align-default { + display: block; + margin-left: auto; + margin-right: auto; +} + +.align-left { + text-align: left; +} + +.align-center { + text-align: center; +} + +.align-default { + text-align: center; +} + +.align-right { + text-align: right; +} + +/* -- sidebars -------------------------------------------------------------- */ + +div.sidebar, +aside.sidebar { + margin: 0 0 0.5em 1em; + border: 1px solid #ddb; + padding: 7px; + background-color: #ffe; + width: 40%; + float: right; + clear: right; + overflow-x: auto; +} + +p.sidebar-title { + font-weight: bold; +} + +nav.contents, +aside.topic, +div.admonition, div.topic, blockquote { + clear: left; +} + +/* -- topics ---------------------------------------------------------------- */ + +nav.contents, +aside.topic, +div.topic { + border: 1px solid #ccc; + padding: 7px; + margin: 10px 0 10px 0; +} + +p.topic-title { + font-size: 1.1em; + font-weight: bold; + margin-top: 10px; +} + +/* -- admonitions ----------------------------------------------------------- */ + +div.admonition { + margin-top: 10px; + margin-bottom: 10px; + padding: 7px; +} + +div.admonition dt { + font-weight: bold; +} + +p.admonition-title { + margin: 0px 10px 5px 0px; + font-weight: bold; +} + +div.body p.centered { + text-align: center; + margin-top: 25px; +} + +/* -- content of sidebars/topics/admonitions -------------------------------- */ + +div.sidebar > :last-child, +aside.sidebar > :last-child, +nav.contents > :last-child, +aside.topic > :last-child, +div.topic > :last-child, +div.admonition > :last-child { + margin-bottom: 0; +} + +div.sidebar::after, +aside.sidebar::after, +nav.contents::after, +aside.topic::after, +div.topic::after, +div.admonition::after, +blockquote::after { + display: block; + content: ''; + clear: both; +} + +/* -- tables ---------------------------------------------------------------- */ + +table.docutils { + margin-top: 10px; + margin-bottom: 10px; + border: 0; + border-collapse: collapse; +} + +table.align-center { + margin-left: auto; + margin-right: auto; +} + +table.align-default { + margin-left: auto; + margin-right: auto; +} + +table caption span.caption-number { + font-style: italic; +} + +table caption span.caption-text { +} + +table.docutils td, table.docutils th { + padding: 1px 8px 1px 5px; + border-top: 0; + border-left: 0; + border-right: 0; + border-bottom: 1px solid #aaa; +} + +th { + text-align: left; + padding-right: 5px; +} + +table.citation { + border-left: solid 1px gray; + margin-left: 1px; +} + +table.citation td { + border-bottom: none; +} + +th > :first-child, +td > :first-child { + margin-top: 0px; +} + +th > :last-child, +td > :last-child { + margin-bottom: 0px; +} + +/* -- figures --------------------------------------------------------------- */ + +div.figure, figure { + margin: 0.5em; + padding: 0.5em; +} + +div.figure p.caption, figcaption { + padding: 0.3em; +} + +div.figure p.caption span.caption-number, +figcaption span.caption-number { + font-style: italic; +} + +div.figure p.caption span.caption-text, +figcaption span.caption-text { +} + +/* -- field list styles ----------------------------------------------------- */ + +table.field-list td, table.field-list th { + border: 0 !important; +} + +.field-list ul { + margin: 0; + padding-left: 1em; +} + +.field-list p { + margin: 0; +} + +.field-name { + -moz-hyphens: manual; + -ms-hyphens: manual; + -webkit-hyphens: manual; + hyphens: manual; +} + +/* -- hlist styles ---------------------------------------------------------- */ + +table.hlist { + margin: 1em 0; +} + +table.hlist td { + vertical-align: top; +} + +/* -- object description styles --------------------------------------------- */ + +.sig { + font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; +} + +.sig-name, code.descname { + background-color: transparent; + font-weight: bold; +} + +.sig-name { + font-size: 1.1em; +} + +code.descname { + font-size: 1.2em; +} + +.sig-prename, code.descclassname { + background-color: transparent; +} + +.optional { + font-size: 1.3em; +} + +.sig-paren { + font-size: larger; +} + +.sig-param.n { + font-style: italic; +} + +/* C++ specific styling */ + +.sig-inline.c-texpr, +.sig-inline.cpp-texpr { + font-family: unset; +} + +.sig.c .k, .sig.c .kt, +.sig.cpp .k, .sig.cpp .kt { + color: #0033B3; +} + +.sig.c .m, +.sig.cpp .m { + color: #1750EB; +} + +.sig.c .s, .sig.c .sc, +.sig.cpp .s, .sig.cpp .sc { + color: #067D17; +} + + +/* -- other body styles ----------------------------------------------------- */ + +ol.arabic { + list-style: decimal; +} + +ol.loweralpha { + list-style: lower-alpha; +} + +ol.upperalpha { + list-style: upper-alpha; +} + +ol.lowerroman { + list-style: lower-roman; +} + +ol.upperroman { + list-style: upper-roman; +} + +:not(li) > ol > li:first-child > :first-child, +:not(li) > ul > li:first-child > :first-child { + margin-top: 0px; +} + +:not(li) > ol > li:last-child > :last-child, +:not(li) > ul > li:last-child > :last-child { + margin-bottom: 0px; +} + +ol.simple ol p, +ol.simple ul p, +ul.simple ol p, +ul.simple ul p { + margin-top: 0; +} + +ol.simple > li:not(:first-child) > p, +ul.simple > li:not(:first-child) > p { + margin-top: 0; +} + +ol.simple p, +ul.simple p { + margin-bottom: 0; +} + +aside.footnote > span, +div.citation > span { + float: left; +} +aside.footnote > span:last-of-type, +div.citation > span:last-of-type { + padding-right: 0.5em; +} +aside.footnote > p { + margin-left: 2em; +} +div.citation > p { + margin-left: 4em; +} +aside.footnote > p:last-of-type, +div.citation > p:last-of-type { + margin-bottom: 0em; +} +aside.footnote > p:last-of-type:after, +div.citation > p:last-of-type:after { + content: ""; + clear: both; +} + +dl.field-list { + display: grid; + grid-template-columns: fit-content(30%) auto; +} + +dl.field-list > dt { + font-weight: bold; + word-break: break-word; + padding-left: 0.5em; + padding-right: 5px; +} + +dl.field-list > dd { + padding-left: 0.5em; + margin-top: 0em; + margin-left: 0em; + margin-bottom: 0em; +} + +dl { + margin-bottom: 15px; +} + +dd > :first-child { + margin-top: 0px; +} + +dd ul, dd table { + margin-bottom: 10px; +} + +dd { + margin-top: 3px; + margin-bottom: 10px; + margin-left: 30px; +} + +.sig dd { + margin-top: 0px; + margin-bottom: 0px; +} + +.sig dl { + margin-top: 0px; + margin-bottom: 0px; +} + +dl > dd:last-child, +dl > dd:last-child > :last-child { + margin-bottom: 0; +} + +dt:target, span.highlighted { + background-color: #fbe54e; +} + +rect.highlighted { + fill: #fbe54e; +} + +dl.glossary dt { + font-weight: bold; + font-size: 1.1em; +} + +.versionmodified { + font-style: italic; +} + +.system-message { + background-color: #fda; + padding: 5px; + border: 3px solid red; +} + +.footnote:target { + background-color: #ffa; +} + +.line-block { + display: block; + margin-top: 1em; + margin-bottom: 1em; +} + +.line-block .line-block { + margin-top: 0; + margin-bottom: 0; + margin-left: 1.5em; +} + +.guilabel, .menuselection { + font-family: sans-serif; +} + +.accelerator { + text-decoration: underline; +} + +.classifier { + font-style: oblique; +} + +.classifier:before { + font-style: normal; + margin: 0 0.5em; + content: ":"; + display: inline-block; +} + +abbr, acronym { + border-bottom: dotted 1px; + cursor: help; +} + +.translated { + background-color: rgba(207, 255, 207, 0.2) +} + +.untranslated { + background-color: rgba(255, 207, 207, 0.2) +} + +/* -- code displays --------------------------------------------------------- */ + +pre { + overflow: auto; + overflow-y: hidden; /* fixes display issues on Chrome browsers */ +} + +pre, div[class*="highlight-"] { + clear: both; +} + +span.pre { + -moz-hyphens: none; + -ms-hyphens: none; + -webkit-hyphens: none; + hyphens: none; + white-space: nowrap; +} + +div[class*="highlight-"] { + margin: 1em 0; +} + +td.linenos pre { + border: 0; + background-color: transparent; + color: #aaa; +} + +table.highlighttable { + display: block; +} + +table.highlighttable tbody { + display: block; +} + +table.highlighttable tr { + display: flex; +} + +table.highlighttable td { + margin: 0; + padding: 0; +} + +table.highlighttable td.linenos { + padding-right: 0.5em; +} + +table.highlighttable td.code { + flex: 1; + overflow: hidden; +} + +.highlight .hll { + display: block; +} + +div.highlight pre, +table.highlighttable pre { + margin: 0; +} + +div.code-block-caption + div { + margin-top: 0; +} + +div.code-block-caption { + margin-top: 1em; + padding: 2px 5px; + font-size: small; +} + +div.code-block-caption code { + background-color: transparent; +} + +table.highlighttable td.linenos, +span.linenos, +div.highlight span.gp { /* gp: Generic.Prompt */ + user-select: none; + -webkit-user-select: text; /* Safari fallback only */ + -webkit-user-select: none; /* Chrome/Safari */ + -moz-user-select: none; /* Firefox */ + -ms-user-select: none; /* IE10+ */ +} + +div.code-block-caption span.caption-number { + padding: 0.1em 0.3em; + font-style: italic; +} + +div.code-block-caption span.caption-text { +} + +div.literal-block-wrapper { + margin: 1em 0; +} + +code.xref, a code { + background-color: transparent; + font-weight: bold; +} + +h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { + background-color: transparent; +} + +.viewcode-link { + float: right; +} + +.viewcode-back { + float: right; + font-family: sans-serif; +} + +div.viewcode-block:target { + margin: -1px -10px; + padding: 0 10px; +} + +/* -- math display ---------------------------------------------------------- */ + +img.math { + vertical-align: middle; +} + +div.body div.math p { + text-align: center; +} + +span.eqno { + float: right; +} + +span.eqno a.headerlink { + position: absolute; + z-index: 1; +} + +div.math:hover a.headerlink { + visibility: visible; +} + +/* -- printout stylesheet --------------------------------------------------- */ + +@media print { + div.document, + div.documentwrapper, + div.bodywrapper { + margin: 0 !important; + width: 100%; + } + + div.sphinxsidebar, + div.related, + div.footer, + #top-link { + display: none; + } +} \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/_static/custom.css b/manual/v1.1.0/ja/html/_static/custom.css new file mode 100644 index 0000000..2a924f1 --- /dev/null +++ b/manual/v1.1.0/ja/html/_static/custom.css @@ -0,0 +1 @@ +/* This file intentionally left blank. */ diff --git a/manual/v1.1.0/ja/html/_static/doctools.js b/manual/v1.1.0/ja/html/_static/doctools.js new file mode 100644 index 0000000..4d67807 --- /dev/null +++ b/manual/v1.1.0/ja/html/_static/doctools.js @@ -0,0 +1,156 @@ +/* + * doctools.js + * ~~~~~~~~~~~ + * + * Base JavaScript utilities for all Sphinx HTML documentation. + * + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ +"use strict"; + +const BLACKLISTED_KEY_CONTROL_ELEMENTS = new Set([ + "TEXTAREA", + "INPUT", + "SELECT", + "BUTTON", +]); + +const _ready = (callback) => { + if (document.readyState !== "loading") { + callback(); + } else { + document.addEventListener("DOMContentLoaded", callback); + } +}; + +/** + * Small JavaScript module for the documentation. + */ +const Documentation = { + init: () => { + Documentation.initDomainIndexTable(); + Documentation.initOnKeyListeners(); + }, + + /** + * i18n support + */ + TRANSLATIONS: {}, + PLURAL_EXPR: (n) => (n === 1 ? 0 : 1), + LOCALE: "unknown", + + // gettext and ngettext don't access this so that the functions + // can safely bound to a different name (_ = Documentation.gettext) + gettext: (string) => { + const translated = Documentation.TRANSLATIONS[string]; + switch (typeof translated) { + case "undefined": + return string; // no translation + case "string": + return translated; // translation exists + default: + return translated[0]; // (singular, plural) translation tuple exists + } + }, + + ngettext: (singular, plural, n) => { + const translated = Documentation.TRANSLATIONS[singular]; + if (typeof translated !== "undefined") + return translated[Documentation.PLURAL_EXPR(n)]; + return n === 1 ? singular : plural; + }, + + addTranslations: (catalog) => { + Object.assign(Documentation.TRANSLATIONS, catalog.messages); + Documentation.PLURAL_EXPR = new Function( + "n", + `return (${catalog.plural_expr})` + ); + Documentation.LOCALE = catalog.locale; + }, + + /** + * helper function to focus on search bar + */ + focusSearchBar: () => { + document.querySelectorAll("input[name=q]")[0]?.focus(); + }, + + /** + * Initialise the domain index toggle buttons + */ + initDomainIndexTable: () => { + const toggler = (el) => { + const idNumber = el.id.substr(7); + const toggledRows = document.querySelectorAll(`tr.cg-${idNumber}`); + if (el.src.substr(-9) === "minus.png") { + el.src = `${el.src.substr(0, el.src.length - 9)}plus.png`; + toggledRows.forEach((el) => (el.style.display = "none")); + } else { + el.src = `${el.src.substr(0, el.src.length - 8)}minus.png`; + toggledRows.forEach((el) => (el.style.display = "")); + } + }; + + const togglerElements = document.querySelectorAll("img.toggler"); + togglerElements.forEach((el) => + el.addEventListener("click", (event) => toggler(event.currentTarget)) + ); + togglerElements.forEach((el) => (el.style.display = "")); + if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) togglerElements.forEach(toggler); + }, + + initOnKeyListeners: () => { + // only install a listener if it is really needed + if ( + !DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS && + !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS + ) + return; + + document.addEventListener("keydown", (event) => { + // bail for input elements + if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return; + // bail with special keys + if (event.altKey || event.ctrlKey || event.metaKey) return; + + if (!event.shiftKey) { + switch (event.key) { + case "ArrowLeft": + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; + + const prevLink = document.querySelector('link[rel="prev"]'); + if (prevLink && prevLink.href) { + window.location.href = prevLink.href; + event.preventDefault(); + } + break; + case "ArrowRight": + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; + + const nextLink = document.querySelector('link[rel="next"]'); + if (nextLink && nextLink.href) { + window.location.href = nextLink.href; + event.preventDefault(); + } + break; + } + } + + // some keyboard layouts may need Shift to get / + switch (event.key) { + case "/": + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break; + Documentation.focusSearchBar(); + event.preventDefault(); + } + }); + }, +}; + +// quick alias for translations +const _ = Documentation.gettext; + +_ready(Documentation.init); diff --git a/manual/v1.1.0/ja/html/_static/documentation_options.js b/manual/v1.1.0/ja/html/_static/documentation_options.js new file mode 100644 index 0000000..f0550d2 --- /dev/null +++ b/manual/v1.1.0/ja/html/_static/documentation_options.js @@ -0,0 +1,13 @@ +const DOCUMENTATION_OPTIONS = { + VERSION: '1.1.0', + LANGUAGE: 'ja', + COLLAPSE_INDEX: false, + BUILDER: 'html', + FILE_SUFFIX: '.html', + LINK_SUFFIX: '.html', + HAS_SOURCE: true, + SOURCELINK_SUFFIX: '.txt', + NAVIGATION_WITH_KEYS: false, + SHOW_SEARCH_SUMMARY: true, + ENABLE_SEARCH_SHORTCUTS: true, +}; \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/_static/file.png b/manual/v1.1.0/ja/html/_static/file.png new file mode 100644 index 0000000..a858a41 Binary files /dev/null and b/manual/v1.1.0/ja/html/_static/file.png differ diff --git a/manual/v1.1.0/ja/html/_static/language_data.js b/manual/v1.1.0/ja/html/_static/language_data.js new file mode 100644 index 0000000..89083d9 --- /dev/null +++ b/manual/v1.1.0/ja/html/_static/language_data.js @@ -0,0 +1,26 @@ +/* + * language_data.js + * ~~~~~~~~~~~~~~~~ + * + * This script contains the language-specific data used by searchtools.js, + * namely the list of stopwords, stemmer, scorer and splitter. + * + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +var stopwords = []; + + +/* Non-minified version is copied as a separate JS file, if available */ + +/** + * Dummy stemmer for languages without stemming rules. + */ +var Stemmer = function() { + this.stemWord = function(w) { + return w; + } +} + diff --git a/manual/v1.1.0/ja/html/_static/minus.png b/manual/v1.1.0/ja/html/_static/minus.png new file mode 100644 index 0000000..d96755f Binary files /dev/null and b/manual/v1.1.0/ja/html/_static/minus.png differ diff --git a/manual/v1.1.0/ja/html/_static/plus.png b/manual/v1.1.0/ja/html/_static/plus.png new file mode 100644 index 0000000..7107cec Binary files /dev/null and b/manual/v1.1.0/ja/html/_static/plus.png differ diff --git a/manual/v1.1.0/ja/html/_static/pygments.css b/manual/v1.1.0/ja/html/_static/pygments.css new file mode 100644 index 0000000..0d49244 --- /dev/null +++ b/manual/v1.1.0/ja/html/_static/pygments.css @@ -0,0 +1,75 @@ +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #eeffcc; } +.highlight .c { color: #408090; font-style: italic } /* Comment */ +.highlight .err { border: 1px solid #FF0000 } /* Error */ +.highlight .k { color: #007020; font-weight: bold } /* Keyword */ +.highlight .o { color: #666666 } /* Operator */ +.highlight .ch { color: #408090; font-style: italic } /* Comment.Hashbang */ +.highlight .cm { color: #408090; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #007020 } /* Comment.Preproc */ +.highlight .cpf { color: #408090; font-style: italic } /* Comment.PreprocFile */ +.highlight .c1 { color: #408090; font-style: italic } /* Comment.Single */ +.highlight .cs { color: #408090; background-color: #fff0f0 } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #333333 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #007020 } /* Keyword.Pseudo */ +.highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #902000 } /* Keyword.Type */ +.highlight .m { color: #208050 } /* Literal.Number */ +.highlight .s { color: #4070a0 } /* Literal.String */ +.highlight .na { color: #4070a0 } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #0e84b5; font-weight: bold } /* Name.Class */ +.highlight .no { color: #60add5 } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #d55537; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #007020 } /* Name.Exception */ +.highlight .nf { color: #06287e } /* Name.Function */ +.highlight .nl { color: #002070; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */ +.highlight .nv { color: #bb60d5 } /* Name.Variable */ +.highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #208050 } /* Literal.Number.Bin */ +.highlight .mf { color: #208050 } /* Literal.Number.Float */ +.highlight .mh { color: #208050 } /* Literal.Number.Hex */ +.highlight .mi { color: #208050 } /* Literal.Number.Integer */ +.highlight .mo { color: #208050 } /* Literal.Number.Oct */ +.highlight .sa { color: #4070a0 } /* Literal.String.Affix */ +.highlight .sb { color: #4070a0 } /* Literal.String.Backtick */ +.highlight .sc { color: #4070a0 } /* Literal.String.Char */ +.highlight .dl { color: #4070a0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */ +.highlight .s2 { color: #4070a0 } /* Literal.String.Double */ +.highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */ +.highlight .sh { color: #4070a0 } /* Literal.String.Heredoc */ +.highlight .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */ +.highlight .sx { color: #c65d09 } /* Literal.String.Other */ +.highlight .sr { color: #235388 } /* Literal.String.Regex */ +.highlight .s1 { color: #4070a0 } /* Literal.String.Single */ +.highlight .ss { color: #517918 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #06287e } /* Name.Function.Magic */ +.highlight .vc { color: #bb60d5 } /* Name.Variable.Class */ +.highlight .vg { color: #bb60d5 } /* Name.Variable.Global */ +.highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */ +.highlight .vm { color: #bb60d5 } /* Name.Variable.Magic */ +.highlight .il { color: #208050 } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/_static/searchtools.js b/manual/v1.1.0/ja/html/_static/searchtools.js new file mode 100644 index 0000000..b08d58c --- /dev/null +++ b/manual/v1.1.0/ja/html/_static/searchtools.js @@ -0,0 +1,620 @@ +/* + * searchtools.js + * ~~~~~~~~~~~~~~~~ + * + * Sphinx JavaScript utilities for the full-text search. + * + * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ +"use strict"; + +/** + * Simple result scoring code. + */ +if (typeof Scorer === "undefined") { + var Scorer = { + // Implement the following function to further tweak the score for each result + // The function takes a result array [docname, title, anchor, descr, score, filename] + // and returns the new score. + /* + score: result => { + const [docname, title, anchor, descr, score, filename] = result + return score + }, + */ + + // query matches the full name of an object + objNameMatch: 11, + // or matches in the last dotted part of the object name + objPartialMatch: 6, + // Additive scores depending on the priority of the object + objPrio: { + 0: 15, // used to be importantResults + 1: 5, // used to be objectResults + 2: -5, // used to be unimportantResults + }, + // Used when the priority is not in the mapping. + objPrioDefault: 0, + + // query found in title + title: 15, + partialTitle: 7, + // query found in terms + term: 5, + partialTerm: 2, + }; +} + +const _removeChildren = (element) => { + while (element && element.lastChild) element.removeChild(element.lastChild); +}; + +/** + * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping + */ +const _escapeRegExp = (string) => + string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string + +const _displayItem = (item, searchTerms, highlightTerms) => { + const docBuilder = DOCUMENTATION_OPTIONS.BUILDER; + const docFileSuffix = DOCUMENTATION_OPTIONS.FILE_SUFFIX; + const docLinkSuffix = DOCUMENTATION_OPTIONS.LINK_SUFFIX; + const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY; + const contentRoot = document.documentElement.dataset.content_root; + + const [docName, title, anchor, descr, score, _filename] = item; + + let listItem = document.createElement("li"); + let requestUrl; + let linkUrl; + if (docBuilder === "dirhtml") { + // dirhtml builder + let dirname = docName + "/"; + if (dirname.match(/\/index\/$/)) + dirname = dirname.substring(0, dirname.length - 6); + else if (dirname === "index/") dirname = ""; + requestUrl = contentRoot + dirname; + linkUrl = requestUrl; + } else { + // normal html builders + requestUrl = contentRoot + docName + docFileSuffix; + linkUrl = docName + docLinkSuffix; + } + let linkEl = listItem.appendChild(document.createElement("a")); + linkEl.href = linkUrl + anchor; + linkEl.dataset.score = score; + linkEl.innerHTML = title; + if (descr) { + listItem.appendChild(document.createElement("span")).innerHTML = + " (" + descr + ")"; + // highlight search terms in the description + if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js + highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted")); + } + else if (showSearchSummary) + fetch(requestUrl) + .then((responseData) => responseData.text()) + .then((data) => { + if (data) + listItem.appendChild( + Search.makeSearchSummary(data, searchTerms, anchor) + ); + // highlight search terms in the summary + if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js + highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted")); + }); + Search.output.appendChild(listItem); +}; +const _finishSearch = (resultCount) => { + Search.stopPulse(); + Search.title.innerText = _("Search Results"); + if (!resultCount) + Search.status.innerText = Documentation.gettext( + "Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories." + ); + else + Search.status.innerText = _( + "Search finished, found ${resultCount} page(s) matching the search query." + ).replace('${resultCount}', resultCount); +}; +const _displayNextItem = ( + results, + resultCount, + searchTerms, + highlightTerms, +) => { + // results left, load the summary and display it + // this is intended to be dynamic (don't sub resultsCount) + if (results.length) { + _displayItem(results.pop(), searchTerms, highlightTerms); + setTimeout( + () => _displayNextItem(results, resultCount, searchTerms, highlightTerms), + 5 + ); + } + // search finished, update title and status message + else _finishSearch(resultCount); +}; +// Helper function used by query() to order search results. +// Each input is an array of [docname, title, anchor, descr, score, filename]. +// Order the results by score (in opposite order of appearance, since the +// `_displayNextItem` function uses pop() to retrieve items) and then alphabetically. +const _orderResultsByScoreThenName = (a, b) => { + const leftScore = a[4]; + const rightScore = b[4]; + if (leftScore === rightScore) { + // same score: sort alphabetically + const leftTitle = a[1].toLowerCase(); + const rightTitle = b[1].toLowerCase(); + if (leftTitle === rightTitle) return 0; + return leftTitle > rightTitle ? -1 : 1; // inverted is intentional + } + return leftScore > rightScore ? 1 : -1; +}; + +/** + * Default splitQuery function. Can be overridden in ``sphinx.search`` with a + * custom function per language. + * + * The regular expression works by splitting the string on consecutive characters + * that are not Unicode letters, numbers, underscores, or emoji characters. + * This is the same as ``\W+`` in Python, preserving the surrogate pair area. + */ +if (typeof splitQuery === "undefined") { + var splitQuery = (query) => query + .split(/[^\p{Letter}\p{Number}_\p{Emoji_Presentation}]+/gu) + .filter(term => term) // remove remaining empty strings +} + +/** + * Search Module + */ +const Search = { + _index: null, + _queued_query: null, + _pulse_status: -1, + + htmlToText: (htmlString, anchor) => { + const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html'); + for (const removalQuery of [".headerlink", "script", "style"]) { + htmlElement.querySelectorAll(removalQuery).forEach((el) => { el.remove() }); + } + if (anchor) { + const anchorContent = htmlElement.querySelector(`[role="main"] ${anchor}`); + if (anchorContent) return anchorContent.textContent; + + console.warn( + `Anchored content block not found. Sphinx search tries to obtain it via DOM query '[role=main] ${anchor}'. Check your theme or template.` + ); + } + + // if anchor not specified or not found, fall back to main content + const docContent = htmlElement.querySelector('[role="main"]'); + if (docContent) return docContent.textContent; + + console.warn( + "Content block not found. Sphinx search tries to obtain it via DOM query '[role=main]'. Check your theme or template." + ); + return ""; + }, + + init: () => { + const query = new URLSearchParams(window.location.search).get("q"); + document + .querySelectorAll('input[name="q"]') + .forEach((el) => (el.value = query)); + if (query) Search.performSearch(query); + }, + + loadIndex: (url) => + (document.body.appendChild(document.createElement("script")).src = url), + + setIndex: (index) => { + Search._index = index; + if (Search._queued_query !== null) { + const query = Search._queued_query; + Search._queued_query = null; + Search.query(query); + } + }, + + hasIndex: () => Search._index !== null, + + deferQuery: (query) => (Search._queued_query = query), + + stopPulse: () => (Search._pulse_status = -1), + + startPulse: () => { + if (Search._pulse_status >= 0) return; + + const pulse = () => { + Search._pulse_status = (Search._pulse_status + 1) % 4; + Search.dots.innerText = ".".repeat(Search._pulse_status); + if (Search._pulse_status >= 0) window.setTimeout(pulse, 500); + }; + pulse(); + }, + + /** + * perform a search for something (or wait until index is loaded) + */ + performSearch: (query) => { + // create the required interface elements + const searchText = document.createElement("h2"); + searchText.textContent = _("Searching"); + const searchSummary = document.createElement("p"); + searchSummary.classList.add("search-summary"); + searchSummary.innerText = ""; + const searchList = document.createElement("ul"); + searchList.classList.add("search"); + + const out = document.getElementById("search-results"); + Search.title = out.appendChild(searchText); + Search.dots = Search.title.appendChild(document.createElement("span")); + Search.status = out.appendChild(searchSummary); + Search.output = out.appendChild(searchList); + + const searchProgress = document.getElementById("search-progress"); + // Some themes don't use the search progress node + if (searchProgress) { + searchProgress.innerText = _("Preparing search..."); + } + Search.startPulse(); + + // index already loaded, the browser was quick! + if (Search.hasIndex()) Search.query(query); + else Search.deferQuery(query); + }, + + _parseQuery: (query) => { + // stem the search terms and add them to the correct list + const stemmer = new Stemmer(); + const searchTerms = new Set(); + const excludedTerms = new Set(); + const highlightTerms = new Set(); + const objectTerms = new Set(splitQuery(query.toLowerCase().trim())); + splitQuery(query.trim()).forEach((queryTerm) => { + const queryTermLower = queryTerm.toLowerCase(); + + // maybe skip this "word" + // stopwords array is from language_data.js + if ( + stopwords.indexOf(queryTermLower) !== -1 || + queryTerm.match(/^\d+$/) + ) + return; + + // stem the word + let word = stemmer.stemWord(queryTermLower); + // select the correct list + if (word[0] === "-") excludedTerms.add(word.substr(1)); + else { + searchTerms.add(word); + highlightTerms.add(queryTermLower); + } + }); + + if (SPHINX_HIGHLIGHT_ENABLED) { // set in sphinx_highlight.js + localStorage.setItem("sphinx_highlight_terms", [...highlightTerms].join(" ")) + } + + // console.debug("SEARCH: searching for:"); + // console.info("required: ", [...searchTerms]); + // console.info("excluded: ", [...excludedTerms]); + + return [query, searchTerms, excludedTerms, highlightTerms, objectTerms]; + }, + + /** + * execute search (requires search index to be loaded) + */ + _performSearch: (query, searchTerms, excludedTerms, highlightTerms, objectTerms) => { + const filenames = Search._index.filenames; + const docNames = Search._index.docnames; + const titles = Search._index.titles; + const allTitles = Search._index.alltitles; + const indexEntries = Search._index.indexentries; + + // Collect multiple result groups to be sorted separately and then ordered. + // Each is an array of [docname, title, anchor, descr, score, filename]. + const normalResults = []; + const nonMainIndexResults = []; + + _removeChildren(document.getElementById("search-progress")); + + const queryLower = query.toLowerCase().trim(); + for (const [title, foundTitles] of Object.entries(allTitles)) { + if (title.toLowerCase().trim().includes(queryLower) && (queryLower.length >= title.length/2)) { + for (const [file, id] of foundTitles) { + const score = Math.round(Scorer.title * queryLower.length / title.length); + const boost = titles[file] === title ? 1 : 0; // add a boost for document titles + normalResults.push([ + docNames[file], + titles[file] !== title ? `${titles[file]} > ${title}` : title, + id !== null ? "#" + id : "", + null, + score + boost, + filenames[file], + ]); + } + } + } + + // search for explicit entries in index directives + for (const [entry, foundEntries] of Object.entries(indexEntries)) { + if (entry.includes(queryLower) && (queryLower.length >= entry.length/2)) { + for (const [file, id, isMain] of foundEntries) { + const score = Math.round(100 * queryLower.length / entry.length); + const result = [ + docNames[file], + titles[file], + id ? "#" + id : "", + null, + score, + filenames[file], + ]; + if (isMain) { + normalResults.push(result); + } else { + nonMainIndexResults.push(result); + } + } + } + } + + // lookup as object + objectTerms.forEach((term) => + normalResults.push(...Search.performObjectSearch(term, objectTerms)) + ); + + // lookup as search terms in fulltext + normalResults.push(...Search.performTermsSearch(searchTerms, excludedTerms)); + + // let the scorer override scores with a custom scoring function + if (Scorer.score) { + normalResults.forEach((item) => (item[4] = Scorer.score(item))); + nonMainIndexResults.forEach((item) => (item[4] = Scorer.score(item))); + } + + // Sort each group of results by score and then alphabetically by name. + normalResults.sort(_orderResultsByScoreThenName); + nonMainIndexResults.sort(_orderResultsByScoreThenName); + + // Combine the result groups in (reverse) order. + // Non-main index entries are typically arbitrary cross-references, + // so display them after other results. + let results = [...nonMainIndexResults, ...normalResults]; + + // remove duplicate search results + // note the reversing of results, so that in the case of duplicates, the highest-scoring entry is kept + let seen = new Set(); + results = results.reverse().reduce((acc, result) => { + let resultStr = result.slice(0, 4).concat([result[5]]).map(v => String(v)).join(','); + if (!seen.has(resultStr)) { + acc.push(result); + seen.add(resultStr); + } + return acc; + }, []); + + return results.reverse(); + }, + + query: (query) => { + const [searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms] = Search._parseQuery(query); + const results = Search._performSearch(searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms); + + // for debugging + //Search.lastresults = results.slice(); // a copy + // console.info("search results:", Search.lastresults); + + // print the results + _displayNextItem(results, results.length, searchTerms, highlightTerms); + }, + + /** + * search for object names + */ + performObjectSearch: (object, objectTerms) => { + const filenames = Search._index.filenames; + const docNames = Search._index.docnames; + const objects = Search._index.objects; + const objNames = Search._index.objnames; + const titles = Search._index.titles; + + const results = []; + + const objectSearchCallback = (prefix, match) => { + const name = match[4] + const fullname = (prefix ? prefix + "." : "") + name; + const fullnameLower = fullname.toLowerCase(); + if (fullnameLower.indexOf(object) < 0) return; + + let score = 0; + const parts = fullnameLower.split("."); + + // check for different match types: exact matches of full name or + // "last name" (i.e. last dotted part) + if (fullnameLower === object || parts.slice(-1)[0] === object) + score += Scorer.objNameMatch; + else if (parts.slice(-1)[0].indexOf(object) > -1) + score += Scorer.objPartialMatch; // matches in last name + + const objName = objNames[match[1]][2]; + const title = titles[match[0]]; + + // If more than one term searched for, we require other words to be + // found in the name/title/description + const otherTerms = new Set(objectTerms); + otherTerms.delete(object); + if (otherTerms.size > 0) { + const haystack = `${prefix} ${name} ${objName} ${title}`.toLowerCase(); + if ( + [...otherTerms].some((otherTerm) => haystack.indexOf(otherTerm) < 0) + ) + return; + } + + let anchor = match[3]; + if (anchor === "") anchor = fullname; + else if (anchor === "-") anchor = objNames[match[1]][1] + "-" + fullname; + + const descr = objName + _(", in ") + title; + + // add custom score for some objects according to scorer + if (Scorer.objPrio.hasOwnProperty(match[2])) + score += Scorer.objPrio[match[2]]; + else score += Scorer.objPrioDefault; + + results.push([ + docNames[match[0]], + fullname, + "#" + anchor, + descr, + score, + filenames[match[0]], + ]); + }; + Object.keys(objects).forEach((prefix) => + objects[prefix].forEach((array) => + objectSearchCallback(prefix, array) + ) + ); + return results; + }, + + /** + * search for full-text terms in the index + */ + performTermsSearch: (searchTerms, excludedTerms) => { + // prepare search + const terms = Search._index.terms; + const titleTerms = Search._index.titleterms; + const filenames = Search._index.filenames; + const docNames = Search._index.docnames; + const titles = Search._index.titles; + + const scoreMap = new Map(); + const fileMap = new Map(); + + // perform the search on the required terms + searchTerms.forEach((word) => { + const files = []; + const arr = [ + { files: terms[word], score: Scorer.term }, + { files: titleTerms[word], score: Scorer.title }, + ]; + // add support for partial matches + if (word.length > 2) { + const escapedWord = _escapeRegExp(word); + if (!terms.hasOwnProperty(word)) { + Object.keys(terms).forEach((term) => { + if (term.match(escapedWord)) + arr.push({ files: terms[term], score: Scorer.partialTerm }); + }); + } + if (!titleTerms.hasOwnProperty(word)) { + Object.keys(titleTerms).forEach((term) => { + if (term.match(escapedWord)) + arr.push({ files: titleTerms[term], score: Scorer.partialTitle }); + }); + } + } + + // no match but word was a required one + if (arr.every((record) => record.files === undefined)) return; + + // found search word in contents + arr.forEach((record) => { + if (record.files === undefined) return; + + let recordFiles = record.files; + if (recordFiles.length === undefined) recordFiles = [recordFiles]; + files.push(...recordFiles); + + // set score for the word in each file + recordFiles.forEach((file) => { + if (!scoreMap.has(file)) scoreMap.set(file, {}); + scoreMap.get(file)[word] = record.score; + }); + }); + + // create the mapping + files.forEach((file) => { + if (!fileMap.has(file)) fileMap.set(file, [word]); + else if (fileMap.get(file).indexOf(word) === -1) fileMap.get(file).push(word); + }); + }); + + // now check if the files don't contain excluded terms + const results = []; + for (const [file, wordList] of fileMap) { + // check if all requirements are matched + + // as search terms with length < 3 are discarded + const filteredTermCount = [...searchTerms].filter( + (term) => term.length > 2 + ).length; + if ( + wordList.length !== searchTerms.size && + wordList.length !== filteredTermCount + ) + continue; + + // ensure that none of the excluded terms is in the search result + if ( + [...excludedTerms].some( + (term) => + terms[term] === file || + titleTerms[term] === file || + (terms[term] || []).includes(file) || + (titleTerms[term] || []).includes(file) + ) + ) + break; + + // select one (max) score for the file. + const score = Math.max(...wordList.map((w) => scoreMap.get(file)[w])); + // add result to the result list + results.push([ + docNames[file], + titles[file], + "", + null, + score, + filenames[file], + ]); + } + return results; + }, + + /** + * helper function to return a node containing the + * search summary for a given text. keywords is a list + * of stemmed words. + */ + makeSearchSummary: (htmlText, keywords, anchor) => { + const text = Search.htmlToText(htmlText, anchor); + if (text === "") return null; + + const textLower = text.toLowerCase(); + const actualStartPosition = [...keywords] + .map((k) => textLower.indexOf(k.toLowerCase())) + .filter((i) => i > -1) + .slice(-1)[0]; + const startWithContext = Math.max(actualStartPosition - 120, 0); + + const top = startWithContext === 0 ? "" : "..."; + const tail = startWithContext + 240 < text.length ? "..." : ""; + + let summary = document.createElement("p"); + summary.classList.add("context"); + summary.textContent = top + text.substr(startWithContext, 240).trim() + tail; + + return summary; + }, +}; + +_ready(Search.init); diff --git a/manual/v1.1.0/ja/html/_static/sphinx_highlight.js b/manual/v1.1.0/ja/html/_static/sphinx_highlight.js new file mode 100644 index 0000000..8a96c69 --- /dev/null +++ b/manual/v1.1.0/ja/html/_static/sphinx_highlight.js @@ -0,0 +1,154 @@ +/* Highlighting utilities for Sphinx HTML documentation. */ +"use strict"; + +const SPHINX_HIGHLIGHT_ENABLED = true + +/** + * highlight a given string on a node by wrapping it in + * span elements with the given class name. + */ +const _highlight = (node, addItems, text, className) => { + if (node.nodeType === Node.TEXT_NODE) { + const val = node.nodeValue; + const parent = node.parentNode; + const pos = val.toLowerCase().indexOf(text); + if ( + pos >= 0 && + !parent.classList.contains(className) && + !parent.classList.contains("nohighlight") + ) { + let span; + + const closestNode = parent.closest("body, svg, foreignObject"); + const isInSVG = closestNode && closestNode.matches("svg"); + if (isInSVG) { + span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); + } else { + span = document.createElement("span"); + span.classList.add(className); + } + + span.appendChild(document.createTextNode(val.substr(pos, text.length))); + const rest = document.createTextNode(val.substr(pos + text.length)); + parent.insertBefore( + span, + parent.insertBefore( + rest, + node.nextSibling + ) + ); + node.nodeValue = val.substr(0, pos); + /* There may be more occurrences of search term in this node. So call this + * function recursively on the remaining fragment. + */ + _highlight(rest, addItems, text, className); + + if (isInSVG) { + const rect = document.createElementNS( + "http://www.w3.org/2000/svg", + "rect" + ); + const bbox = parent.getBBox(); + rect.x.baseVal.value = bbox.x; + rect.y.baseVal.value = bbox.y; + rect.width.baseVal.value = bbox.width; + rect.height.baseVal.value = bbox.height; + rect.setAttribute("class", className); + addItems.push({ parent: parent, target: rect }); + } + } + } else if (node.matches && !node.matches("button, select, textarea")) { + node.childNodes.forEach((el) => _highlight(el, addItems, text, className)); + } +}; +const _highlightText = (thisNode, text, className) => { + let addItems = []; + _highlight(thisNode, addItems, text, className); + addItems.forEach((obj) => + obj.parent.insertAdjacentElement("beforebegin", obj.target) + ); +}; + +/** + * Small JavaScript module for the documentation. + */ +const SphinxHighlight = { + + /** + * highlight the search words provided in localstorage in the text + */ + highlightSearchWords: () => { + if (!SPHINX_HIGHLIGHT_ENABLED) return; // bail if no highlight + + // get and clear terms from localstorage + const url = new URL(window.location); + const highlight = + localStorage.getItem("sphinx_highlight_terms") + || url.searchParams.get("highlight") + || ""; + localStorage.removeItem("sphinx_highlight_terms") + url.searchParams.delete("highlight"); + window.history.replaceState({}, "", url); + + // get individual terms from highlight string + const terms = highlight.toLowerCase().split(/\s+/).filter(x => x); + if (terms.length === 0) return; // nothing to do + + // There should never be more than one element matching "div.body" + const divBody = document.querySelectorAll("div.body"); + const body = divBody.length ? divBody[0] : document.querySelector("body"); + window.setTimeout(() => { + terms.forEach((term) => _highlightText(body, term, "highlighted")); + }, 10); + + const searchBox = document.getElementById("searchbox"); + if (searchBox === null) return; + searchBox.appendChild( + document + .createRange() + .createContextualFragment( + '" + ) + ); + }, + + /** + * helper function to hide the search marks again + */ + hideSearchWords: () => { + document + .querySelectorAll("#searchbox .highlight-link") + .forEach((el) => el.remove()); + document + .querySelectorAll("span.highlighted") + .forEach((el) => el.classList.remove("highlighted")); + localStorage.removeItem("sphinx_highlight_terms") + }, + + initEscapeListener: () => { + // only install a listener if it is really needed + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) return; + + document.addEventListener("keydown", (event) => { + // bail for input elements + if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return; + // bail with special keys + if (event.shiftKey || event.altKey || event.ctrlKey || event.metaKey) return; + if (DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS && (event.key === "Escape")) { + SphinxHighlight.hideSearchWords(); + event.preventDefault(); + } + }); + }, +}; + +_ready(() => { + /* Do not call highlightSearchWords() when we are on the search page. + * It will highlight words from the *previous* search query. + */ + if (typeof Search === "undefined") SphinxHighlight.highlightSearchWords(); + SphinxHighlight.initEscapeListener(); +}); diff --git a/manual/v1.1.0/ja/html/_static/translations.js b/manual/v1.1.0/ja/html/_static/translations.js new file mode 100644 index 0000000..df5af81 --- /dev/null +++ b/manual/v1.1.0/ja/html/_static/translations.js @@ -0,0 +1,60 @@ +Documentation.addTranslations({ + "locale": "ja", + "messages": { + "%(filename)s — %(docstitle)s": "%(filename)s — %(docstitle)s", + "© %(copyright_prefix)s %(copyright)s.": "", + ", in ": ", in ", + "About these documents": "\u3053\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u3064\u3044\u3066", + "Automatically generated list of changes in version %(version)s": "\u30d0\u30fc\u30b8\u30e7\u30f3 %(version)s \u306e\u5909\u66f4\u70b9\uff08\u3053\u306e\u30ea\u30b9\u30c8\u306f\u81ea\u52d5\u751f\u6210\u3055\u308c\u3066\u3044\u307e\u3059\uff09", + "C API changes": "C API \u306b\u95a2\u3059\u308b\u5909\u66f4", + "Changes in Version %(version)s — %(docstitle)s": "\u30d0\u30fc\u30b8\u30e7\u30f3 %(version)s \u306e\u5909\u66f4\u70b9 — %(docstitle)s", + "Collapse sidebar": "\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u305f\u305f\u3080", + "Complete Table of Contents": "\u7dcf\u5408\u76ee\u6b21", + "Contents": "\u30b3\u30f3\u30c6\u30f3\u30c4", + "Copyright": "\u8457\u4f5c\u6a29", + "Created using Sphinx %(sphinx_version)s.": "", + "Expand sidebar": "\u30b5\u30a4\u30c9\u30d0\u30fc\u3092\u5c55\u958b", + "Full index on one page": "\u7dcf\u7d22\u5f15", + "General Index": "\u7dcf\u5408\u7d22\u5f15", + "Global Module Index": "\u30e2\u30b8\u30e5\u30fc\u30eb\u7dcf\u7d22\u5f15", + "Go": "\u691c\u7d22", + "Hide Search Matches": "\u691c\u7d22\u7d50\u679c\u3092\u96a0\u3059", + "Index": "\u7d22\u5f15", + "Index – %(key)s": "", + "Index pages by letter": "\u982d\u6587\u5b57\u5225\u7d22\u5f15", + "Indices and tables:": "\u7d22\u5f15\u3068\u8868\u4e00\u89a7:", + "Last updated on %(last_updated)s.": "\u6700\u7d42\u66f4\u65b0: %(last_updated)s", + "Library changes": "\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u95a2\u3059\u308b\u5909\u66f4", + "Navigation": "\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3", + "Next topic": "\u6b21\u306e\u30c8\u30d4\u30c3\u30af\u3078", + "Other changes": "\u305d\u306e\u4ed6\u306e\u5909\u66f4", + "Overview": "\u6982\u8981", + "Please activate JavaScript to enable the search\n functionality.": "\u691c\u7d22\u6a5f\u80fd\u3092\u4f7f\u3046\u306b\u306f JavaScript \u3092\u6709\u52b9\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "Preparing search...": "\u691c\u7d22\u3092\u6e96\u5099\u3057\u3066\u3044\u307e\u3059...", + "Previous topic": "\u524d\u306e\u30c8\u30d4\u30c3\u30af\u3078", + "Quick search": "\u30af\u30a4\u30c3\u30af\u691c\u7d22", + "Search": "\u691c\u7d22", + "Search Page": "\u691c\u7d22\u30da\u30fc\u30b8", + "Search Results": "\u691c\u7d22\u7d50\u679c", + "Search finished, found ${resultCount} page(s) matching the search query.": "", + "Search within %(docstitle)s": "%(docstitle)s \u5185\u3092\u691c\u7d22", + "Searching": "\u691c\u7d22\u4e2d", + "Searching for multiple words only shows matches that contain\n all words.": "\u8907\u6570\u306e\u5358\u8a9e\u3092\u691c\u7d22\u3059\u308b\u3068\u3001\u6b21\u3092\u542b\u3080\u4e00\u81f4\u306e\u307f\u304c\u8868\u793a\u3055\u308c\u307e\u3059\n \u00a0\u00a0\u00a0 \u3059\u3079\u3066\u306e\u7528\u8a9e\u3002", + "Show Source": "\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u8868\u793a", + "Table of Contents": "\u76ee\u6b21", + "This Page": "\u3053\u306e\u30da\u30fc\u30b8", + "Welcome! This is": "Welcome! This is", + "Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories.": "\u691c\u7d22\u3057\u305f\u6587\u5b57\u5217\u306f\u3069\u306e\u6587\u66f8\u306b\u3082\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3059\u3079\u3066\u306e\u5358\u8a9e\u304c\u6b63\u78ba\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u304b\u3001\u3042\u308b\u3044\u306f\u3001\u5341\u5206\u306a\u30ab\u30c6\u30b4\u30ea\u30fc\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "all functions, classes, terms": "\u95a2\u6570\u3001\u30af\u30e9\u30b9\u304a\u3088\u3073\u7528\u8a9e\u7dcf\u89a7", + "can be huge": "\u5927\u304d\u3044\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f", + "last updated": "\u6700\u7d42\u66f4\u65b0", + "lists all sections and subsections": "\u7ae0\uff0f\u7bc0\u4e00\u89a7", + "next chapter": "\u6b21\u306e\u7ae0\u3078", + "previous chapter": "\u524d\u306e\u7ae0\u3078", + "quick access to all modules": "\u5168\u30e2\u30b8\u30e5\u30fc\u30eb\u65e9\u898b\u8868", + "search": "\u691c\u7d22", + "search this documentation": "\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u691c\u7d22", + "the documentation for": "the documentation for" + }, + "plural_expr": "0" +}); \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/cif2x/about/index.html b/manual/v1.1.0/ja/html/cif2x/about/index.html new file mode 100644 index 0000000..9115c4f --- /dev/null +++ b/manual/v1.1.0/ja/html/cif2x/about/index.html @@ -0,0 +1,190 @@ + + + + + + + + 1. 概要 — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

1. 概要

+
+

1.1. cif2xとは?

+

近年、機械学習を活用した物性予測や物質設計(マテリアルズインフォマティクス)が注目されています。 +機械学習の精度は、適切な教師データの準備に大きく依存しています。 +そのため、迅速に教師データを生成するためのツールや環境の整備は、 +マテリアルズインフォマティクスの研究進展に大きく貢献すると期待されます。

+

cif2xは、cifファイルから第一原理計算用の入力ファイルを生成するツールです。 +入力パラメータを雛形として、物質の種類や計算条件によって変わる箇所を結晶構造データなどから構成します。 +特定の計算条件に応じた複数の入力ファイルを生成することが可能です。 +現在は、 +VASP, Quantum ESPRESSO, OpenMX, AkaiKKR に対応しています。

+

付属プログラムとして、物質材料データベースから結晶構造データ等を取得するツール getcif を用意しています。現在は Materials Project からのデータ取得に対応しています。物質の組成や対称性、バンドギャップなどの物性値をもとにデータベースを検索し、データを取得することができます。

+
+
+

1.2. ライセンス

+

本ソフトウェアのプログラムパッケージおよびソースコード一式はGNU General Public License version 3 (GPL v3) に準じて配布されています。

+
+
+

1.3. 開発貢献者

+

本ソフトウェアは以下の開発貢献者により開発されています。

+
+
    +
  • 開発者

    +
      +
    • 吉見 一慶 (東京大学 物性研究所)

    • +
    • 青山 龍美 (東京大学 物性研究所)

    • +
    • 本山 裕一 (東京大学 物性研究所)

    • +
    • 福田 将大 (東京大学 物性研究所)

    • +
    • 井戸 康太 (東京大学 物性研究所)

    • +
    • 福島 鉄也 (産業技術総合研究所)

    • +
    • 笠松 秀輔 (山形大学 学術研究院(理学部主担当))

    • +
    • 是常 隆  (東北大学大学院理学研究科)

    • +
    +
  • +
  • プロジェクトコーディネーター

    +
      +
    • 尾崎 泰助 (東京大学 物性研究所)

    • +
    +
  • +
+
+
+
+

1.4. バージョン履歴

+
+
+
ver.1.1.0

2024/09/14 リリース

+
+
ver.1.0.1

2024/03/31 リリース

+
+
ver.1.0.0

2024/03/19 リリース

+
+
ver.1.0-alpha

2023/12/28 リリース

+
+
+
+
+
+

1.5. コピーライト

+

© 2023- The University of Tokyo. All rights reserved.

+

本ソフトウェアは2023年度 東京大学物性研究所 ソフトウェア高度化プロジェクトの支援を受け開発されており、その著作権は東京大学が所持しています。

+
+
+

1.6. 動作環境

+

以下の環境で動作することを確認しています。

+
    +
  • Ubuntu Linux + python3

  • +
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/cif2x/appendix/index.html b/manual/v1.1.0/ja/html/cif2x/appendix/index.html new file mode 100644 index 0000000..9222f05 --- /dev/null +++ b/manual/v1.1.0/ja/html/cif2x/appendix/index.html @@ -0,0 +1,155 @@ + + + + + + + + 6. 拡張ガイド — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

6. 拡張ガイド

+
+

6.1. Quantum ESPRESSO の mode を追加する

+

Quantum ESPRESSO の計算モードへの対応を追加するには、 src/cif2x/qe/calc_mode.pycreate_modeproc() 関数に mode と変換クラスの対応付けを記述します。

+
def create_modeproc(mode, qe):
+    if mode in ["scf", "nscf"]:
+        modeproc = QEmode_pw(qe)
+    else:
+        modeproc = QEmode_generic(qe)
+    return modeproc
+
+
+

modeごとの変換機能は QEmode_base の派生クラスとしてまとめられています。 +このクラスは +update_namelist() で namelist ブロックの更新と、 +update_cards() で cards ブロックのデータ生成を行います。 +現在は pw.x の scf および nscf に対応する QEmode_pw クラスと、変換せずそのまま出力する QEmode_generic クラスが用意されています。

+
class QEmode_base:
+    def __init__(self, qe):
+    def update_namelist(self, content):
+    def update_cards(self, content):
+
+
+

namelist については、空欄の値を結晶構造データ等から生成して代入するほか、格子パラメータなど Structure から決まる値や、他のパラメータとの整合性をとる必要のある値を強制的にセットする場合があります。処理内容はモードごとに個別に対応します。

+

cards ブロックについては、card の種類ごとに関数を用意し、card名と関数の対応付けを card_table 変数に列挙します。 +基底クラスの update_cards() では、card名から対応する関数を取得して実行し、card の情報を更新します。もちろん、全く独自に update_cards() 関数を作成することもできます。

+
self.card_table = {
+    'CELL_PARAMETERS': generate_cell_parameters,
+    'ATOMIC_SPECIES': generate_atomic_species,
+    'ATOMIC_POSITIONS': generate_atomic_positions,
+    'K_POINTS': generate_k_points,
+}
+
+
+

cardごとの関数は scr/cif2x/qe/cards.py にまとめられており、関数名は generate_{card名} としています。この関数は card ブロックのパラメータを引数に取り、card名、option、dataフィールドからなる辞書データを返します。

+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/cif2x/basic-usage.html b/manual/v1.1.0/ja/html/cif2x/basic-usage.html new file mode 100644 index 0000000..29e1e45 --- /dev/null +++ b/manual/v1.1.0/ja/html/cif2x/basic-usage.html @@ -0,0 +1,236 @@ + + + + + + + + 2. インストールと基本的な使い方 — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

2. インストールと基本的な使い方

+

必要なライブラリ・環境

+
+

HTP-tools に含まれる第一原理計算入力ファイル生成ツール cif2x を利用するには、以下のプログラムとライブラリが必要です。

+
    +
  • python 3.x

  • +
  • pymatgen モジュール

  • +
  • ruamel.yaml モジュール

  • +
  • f90nml モジュール

  • +
  • qe-tools モジュール

  • +
  • numpy モジュール

  • +
  • pandas モジュール

  • +
  • monty モジュール

  • +
  • OpenBabel モジュール (オプション)

  • +
  • AkaiKKRPythonUtil モジュール

  • +
+

CIFデータ取得ツール getcif を利用するには、上記に加えて以下のライブラリが必要です。

+
    +
  • mp-api モジュール

  • +
+
+

ソースコード配布サイト

+
+
+

ダウンロード方法

+
+

gitを利用できる場合は、以下のコマンドでcif2xをダウンロードできます。

+
$ git clone https://github.com/issp-center-dev/cif2x.git
+
+
+
+

インストール方法

+
+

cif2xをダウンロード後、以下のコマンドを実行してインストールします。cif2xが利用するライブラリも必要に応じてインストールされます。

+
$ cd ./cif2x
+$ python3 -m pip install .
+
+
+

実行プログラム cif2x, getcif がインストールされます。

+

なお、AkaiKKRPythonUtil モジュールは別途インストールが必要です。 +以下の手順で 配布サイト からソースコードを取得しインストールします。また、必要な seaborn モジュールもインストールしておきます。

+
$ git clone https://github.com/AkaiKKRteam/AkaiKKRPythonUtil.git
+$ cd ./AkaiKKRPythonUtil/library/PyAkaiKKR
+$ python3 -m pip install .
+$ python3 -m pip install seaborn
+
+
+
+

ディレクトリ構成

+
+
.
+|-- LICENSE
+|-- README.md
+|-- pyproject.toml
+|-- docs/
+|   |-- ja/
+|   |-- tutorial/
+|-- src/
+|   |-- cif2x/
+|       |-- __init__.py
+|       |-- main.py
+|       |-- cif2struct.py
+|       |-- struct2qe.py
+|       |-- qe/
+|       |   |-- __init__.py
+|       |   |-- calc_mode.py
+|       |   |-- cards.py
+|       |   |-- content.py
+|       |   |-- qeutils.py
+|       |   |-- tools.py
+|       |-- struct2vasp.py
+|       |-- struct2openmx.py
+|       |-- openmx/
+|       |   |-- __init__.py
+|       |   |-- vps_table.py
+|       |-- struct2akaikkr.py
+|       |-- akaikkr/
+|       |   |-- make_input.py
+|       |   |-- read_input.py
+|       |   |-- run_cif2kkr.py
+|       |-- utils.py
+|   |-- getcif/
+|       |-- __init__.py
+|       |-- main.py
+|-- sample/
+
+
+
+

基本的な使用方法

+
+

cif2xは第一原理計算プログラムのための入力ファイルを生成するツールです。入力パラメータを雛形として、物質の種類や計算条件によって変わる箇所を結晶構造データなどから構成します。現在は Quantum ESPRESSO, VASP, OpenMX, および AkaiKKR の入力ファイル形式に対応しています。

+
    +
  1. 入力パラメータファイルの作成

    +
    +

    cif2xを使用するには、まず、生成する入力ファイルの内容を記述したパラメータファイルをYAML形式で作成します。詳細についてはファイルフォーマットの章を参照してください。

    +
    +
  2. +
  3. 結晶構造ファイルと擬ポテンシャルファイルの配置

    +
    +

    対象となる物質の結晶構造を記述したファイルを用意します。ファイル形式は CIF または pymatgen が扱える POSCAR や xfs 形式に対応しています。

    +

    Quantum ESPRESSO の場合、利用する擬ポテンシャルファイルと、CSV形式のインデックスファイルを配置します。擬ポテンシャルファイルの配置先などは入力パラメータファイル内に指定します。

    +

    VASP の場合、擬ポテンシャルファイルの格納場所を ~/.config/.pmgrc.yaml ファイルに記述するか環境変数にセットします。入力パラメータファイル内で指定することもできます。

    +
    +
  4. +
  5. コマンドの実行

    +
    +

    作成した入力パラメータファイルおよび結晶構造データファイルを入力としてcif2xプログラムを実行します。Quantum ESPRESSO用の入力ファイルを生成する場合はターゲットオプションに -t QE を指定します。VASPの場合は -t VASP, OpenMX の場合は -t OpenMX, AkaiKKR の場合は -t akaikkr を指定します。

    +
    $ cif2x -t QE input.yaml material.cif
    +
    +
    +
    +
  6. +
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/cif2x/command/index.html b/manual/v1.1.0/ja/html/cif2x/command/index.html new file mode 100644 index 0000000..3767392 --- /dev/null +++ b/manual/v1.1.0/ja/html/cif2x/command/index.html @@ -0,0 +1,168 @@ + + + + + + + + 4. コマンドリファレンス — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

4. コマンドリファレンス

+
+

4.1. cif2x

+
+

第一原理計算のための入力ファイルを生成する

+
+

書式:

+
+
cif2x [-v][-q] -t target input_yaml material.cif
+cif2x -h
+cif2x --version
+
+
+
+

説明:

+
+

input_yaml に指定した入力パラメータファイルと material.cif に指定した結晶構造データを読み込み、第一原理計算プログラム用の入力ファイルを生成します。現在は Quantum ESPRESSO, VASP, OpenMX に対応しています。 +以下のオプションを受け付けます。

+
    +
  • -v

    +

    実行時に表示されるメッセージを冗長にします。複数回指定すると冗長度が上がります。

    +
  • +
  • -q

    +

    実行時に表示されるメッセージの冗長度を下げます。 -v の効果を打ち消します。複数回の指定が可能です。

    +
  • +
  • -t target

    +

    対象となる第一原理計算プログラムを指定します。 target として指定可能な値は以下のとおりです。大文字小文字は区別しません。

    +
      +
    • QE, espresso, quantum_espresso: Quantum ESPRESSO向け入力ファイルを生成します。

    • +
    • VASP: VASP向け入力ファイルを生成します。

    • +
    • OpenMX: OpenMX向け入力ファイルを生成します。

    • +
    • AkaiKKR: AkaiKKR向け入力ファイルを生成します。

    • +
    +
  • +
  • input_yaml

    +

    入力パラメータファイルを指定します。形式は YAML format です。

    +
  • +
  • material.cif

    +

    結晶構造データファイルを指定します。形式は CIF の他、pymatgen で扱える形式のファイルを指定できます。

    +
  • +
  • -h

    +

    ヘルプを表示します。

    +
  • +
  • --version

    +

    バージョン情報を表示します。

    +
  • +
+
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/cif2x/filespec/index.html b/manual/v1.1.0/ja/html/cif2x/filespec/index.html new file mode 100644 index 0000000..a763487 --- /dev/null +++ b/manual/v1.1.0/ja/html/cif2x/filespec/index.html @@ -0,0 +1,394 @@ + + + + + + + + 5. ファイルフォーマット — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

5. ファイルフォーマット

+
+

5.1. 入力パラメータファイル

+

入力パラメータファイルでは、cif2x で第一原理計算入力ファイルを生成するための設定情報を YAML形式で記述します。本ファイルは以下の部分から構成されます。

+
+
    +
  1. structureセクション: 結晶構造データの扱いについてのオプションを記述します。

  2. +
  3. optionalセクション: 擬ポテンシャルファイルの指定や、YAMLの参照機能を利用する場合のシンボル定義を行います。

  4. +
  5. tasksセクション: 入力ファイルの内容を記述します。

  6. +
+
+
+

structure

+
+

use_ibrav (デフォルト値: false)

+
+

結晶構造の入力に Quantum ESPRESSO の ibrav パラメータを利用します。 true の場合、格子のとり方を Quantum ESPRESSO の convention に合うように変換します。入力ファイルにはあわせて格子に関するパラメータ a, b, c, cosab, cosac, cosbc が(必要に応じて)書き出されます。

+
+

tolerance (デフォルト値: 0.01)

+
+

use_ibrav = true の場合に、再構成した Structure データと元データとの一致を評価する際の許容度を指定します。

+
+

supercell (デフォルト値: なし)

+
+

supercell を設定する場合に supercell のサイズを [\(n_x\), \(n_y\), \(n_z\)] で指定します。

+
+
+
+
+

optional

+

第一原理計算プログラムごとに必要な global な設定を行います。記述する内容は以下の各節に記述します。

+
+
+

tasks

+

入力ファイルの内容を記述します。複数の入力ファイルに対応するため、 tasks には各入力ファイルごとのブロックからなるリスト形式をとります。各ブロックに記述する項目は以下のとおりです。

+
+

mode (Quantum ESPRESSO)

+
+

入力ファイルの計算内容を指定します。 +現時点では Quantum ESPRESSO の pw.x 向けに scfnscf に対応しています。対応していない mode については、 content の内容をそのまま出力します。

+
+

output_file (Quantum ESPRESSO)

+
+

出力ファイル名を指定します。

+
+

output_dir

+
+

出力先のディレクトリ名を指定します。デフォルト値はカレントディレクトリです。

+
+

content

+
+

出力内容を指定します。Quantum ESPRESSO の場合は namelist ブロックに namelist データ (&system&control など) を記述し、 K_POINTS 等の card データを個別のブロックとして記述します。card データはパラメータをとるものがあります。

+
+

template (Quantum ESPRESSO)

+

template_dir (VASP)

+
+

出力内容のテンプレートファイルを指定します。指定がない場合はテンプレートを利用しません。 +このファイルの内容を content に追加します。同じデータがある場合は後者を優先します。

+
+
+
+
+

パラメータセット指定

+

入力パラメータには値のリストや範囲を指定することができ、値の組み合わせごとに個別のディレクトリを作成して入力ファイルを生成します。パラメータセットの指定には特別な構文 ${...} を用います。 +指定方法は次の通りです:

+
    +
  • リスト ${[ A, B, ... ]}

    +

    パラメータセットを Python のリストとして列挙します。各項目はスカラー値やリストを指定できます。

    +
  • +
  • 範囲指定 ${range(N)}, ${range(start, end, step)}

    +

    パラメータの範囲を指定します。それぞれ 0〜N-1, start〜end を step 刻み (step を省略した場合は 1) です。 N, start, end, step は int または float です。

    +
  • +
+
+
+
+

5.2. Quantum ESPRESSO 向けパラメータ

+

optional セクションおよび tasks セクションの content に記載する内容について、Quantum ESPRESSO 固有の内容を記述します。 +現時点では pw.x の scf および nscf に対応しています。

+
+

optionalセクション

+
+

pp_file

+
+

元素種と擬ポテンシャルを対応付けるCSV形式のインデックスファイルを指定します。 +ファイルの書式は、元素種、擬ポテンシャルファイルのタイプ、nexclude、orbitals です。例:

+
Fe,pbe-spn-rrkjus_psl.0.2.1,4,spd
+
+
+

擬ポテンシャルファイルのファイル名は Fe.pbe-spn-rrkjus_psl.0.2.1.UPF に対応します。

+
+

cutoff_file

+
+

擬ポテンシャルファイルとカットオフを対応付けるCSV形式のインデックスファイルを指定します。 +ファイルの書式は、擬ポテンシャルファイル、ecutwfcの値、ecutrhoの値 です。

+
+

pseudo_dir

+
+

擬ポテンシャルファイルを格納するディレクトリ名を指定します。カットオフの値を擬ポテンシャルファイルから取得する場合に使用します。Quantum ESPRESSO の pseudo_dir パラメータとは独立に指定します。

+
+
+
+
+

content

+
+

namelist

+
    +
  • structure セクションの use_ibrav パラメータに応じて、 &system の格子情報の指定が上書きされます。

    +
      +
    • use_ibrav = false: +ibrav は 0 にセットされます。また、格子パラメータに関する a, b, c, cosab, cosac, cosbc, celldm は削除されます。

    • +
    • use_ibrav = true: +ibrav は結晶構造データから取得された Bravais 格子のインデックスがセットされます。また、Structure データは基本格子のとり方など Quantum ESPRESSO の convention に合わせて再構成されます。

    • +
    +
  • +
  • nat (原子数) および ntyp (元素種の数)は結晶構造データから取得される値で上書きされます。

  • +
  • カットオフ ecutwfc および ecutrho の情報は、パラメータの値が空欄の場合は擬ポテンシャルファイルから取得します。

  • +
+

CELL_PARAMETERS

+
    +
  • structure セクションの use_ibrav パラメータが true の場合は出力されません。false の場合は格子ベクトルが出力されます。単位は angstrom です。

  • +
  • 格子ベクトルの情報は結晶構造データから取得されます。 data フィールドに 3x3 の行列を直接指定した場合はその値が用いられます。

  • +
+

ATOMIC_SPECIES

+
    +
  • 原子種・原子量・擬ポテンシャルファイル名のリストを出力します。

  • +
  • 原子種の情報は結晶構造データから取得されます。擬ポテンシャルのファイル名は pp_list で指定するCSV形式のインデックスファイルを参照します。

  • +
  • data フィールドに必要なデータを指定した場合はその値が用いられます。

  • +
+

ATOMIC_POSITIONS

+
    +
  • 原子種と原子座標(fractional coordinate)のリストを出力します。

  • +
  • ignore_species に原子種または原子種のリストを指定した場合、その原子種については if_pos の値が 0 にセットされます。MDや構造最適化の際に使われます。

  • +
  • data フィールドに必要なデータを指定した場合はその値が用いられます。

  • +
+

K_POINTS

+
    +
  • k点の情報を出力します。 option に出力タイプを指定します。

    +
      +
    • gamma: \(\Gamma\) 点を用います。

    • +
    • crystal: メッシュ状の k点のリストを出力します。メッシュの指定は grid パラメータまたは vol_densityk_resolution から導出される値が用いられます。

    • +
    • automatic: k点のメッシュを指定します。メッシュの指定は grid パラメータまたは vol_densityk_resolution から導出される値が用いられます。 シフトの指定は kshifts パラメータを参照します。

    • +
    +
  • +
  • メッシュの指定は以下の順序で決定されます。

    +
      +
    • grid パラメータの指定。grid の値は \(n_x, n_y, n_z\) の配列またはスカラー値 \(n\) です。後者の場合は \(n_x = n_y = n_z = n\) と仮定します。

    • +
    • vol_density パラメータから自動導出。

    • +
    • k_resolution パラメータから自動導出。k_resolution のデフォルトは 0.15 です。

    • +
    +
  • +
  • data フィールドに必要なデータを指定した場合はその値が用いられます。

  • +
+
+
+
+
+

5.3. VASP 向けパラメータ

+

optional セクションおよび tasks セクションの content に記載する内容について、VASP 固有の内容を記述します。

+
+

optional

+

擬ポテンシャルのタイプや格納場所を指定します。

+

pymatgen では、擬ポテンシャルファイルを +PMG_VASP_PSP_DIR/functional/POTCAR. element (.gz) または +PMG_VASP_PSP_DIR/functional/ element /POTCAR から取得します。 +PMG_VASP_PSP_DIR はディレクトリの指定で、設定ファイル ~/.config/.pmgrc.yaml に記載するか、同名の環境変数に指定します。また、 functional は擬ポテンシャルのタイプで、 POT_GGA_PAW_PBEPOT_LDA_PAW などが決められています。

+
+

pseudo_functional

+
+

擬ポテンシャルのタイプを指定します。タイプの指定と上記の functional の対応は pymatgen 内のテーブルに定義され、 PBEPOT_GGA_PAW_PBE,  LDAPOT_LDA_PAW などのようになっています。

+
+
+

以下の pseudo_dir を指定した場合は pymatgen の流儀を無視して擬ポテンシャルの格納ディレクトリを探します。

+
+

psuedo_dir

+
+

擬ポテンシャルの格納ディレクトリを指定します。擬ポテンシャルファイルのファイル名は pseudo_dir/POTCAR. element (.gz) または pseudo_dir/element/POTCAR です。

+
+
+
+
+

tasks

+

テンプレートファイルは、 template_dir で指定するディレクトリ内に INCAR, KPOINTS, POSCAR, POTCAR ファイルを配置します。ファイルがない項目は無視されます。

+
+
+

content

+
+

incar

+
    +
  • INCAR ファイルに記述するパラメータを列挙します。

  • +
+

kpoints

+
    +
  • type

    +

    KPOINTS の指定方法を記述します。以下の値に対応しています。タイプによりパラメータが指定可能なものがあります。詳細は pymatgen.io.vasp のマニュアルを参照してください。

    +
      +
    • automatic

      +

      parameter: grid

      +
    • +
    • gamma_automatic

      +

      parameter: grid, shift

      +
    • +
    • monkhorst_automatic

      +

      parameter: grid, shift

      +
    • +
    • automatic_density

      +

      parameter: kppa, force_gamma

      +
    • +
    • automatic_gamma_density

      +

      parameter: grid_density

      +
    • +
    • automatic_density_by_vol

      +

      parameter: grid_density, force_gamma

      +
    • +
    • automatic_density_by_lengths

      +

      parameter: length_density, force_gamma

      +
    • +
    • automatic_linemode

      +

      parameter: division, path_type (HighSymmKpath の path_type に対応)

      +
    • +
    +
  • +
+
+
+
+
+

5.4. OpenMX 向けパラメータ

+

optional セクションおよび tasks セクションの content に記載する内容について、OpenMX 固有の内容を記述します。

+
+

optional

+
+

data_path

+
+

擬原子軌道および擬ポテンシャルのファイルを格納するディレクトリを指定します。入力ファイルの DATA.PATH パラメータに対応します。

+
+
+
+
+

content

+
+

precision

+
+

擬原子軌道を OpenMXマニュアル 10.6 章の Table 1, 2 にしたがって選択します。 quick, standard, precise のいずれかの値を取ります。デフォルト値は quick です。

+
+
+
+
+
+

5.5. AkaiKKR 向けパラメータ

+

optional セクションおよび tasks セクションの content に記載する内容について、AkaiKKR 固有の内容を記述します。

+
+

optional

+
+

workdir

+
+

一時ファイルの出力先を指定します。指定しない場合は /tmp または TMPDIR 環境変数の値を利用します。

+
+
+
+
+

content

+

content には AkaiKKR の入力パラメータの内容を記述します。指定のない項目は空欄が出力され、AkaiKKR内部のデフォルト値が使われます。 +以下のパラメータは結晶構造データから決まる値で置き換えられます。

+
    +
  • brvtyp: +ただし、 brvtypaux (を含む)値が指定されている場合は上書きされません。

  • +
  • 格子パラメータ: a, c/a, b/a, alpha, beta, gamma, r1, r2, r3

  • +
  • タイプ情報: ntyp, type, ncmp, rmt, field, mxl, anclr, conc

  • +
  • 元素種の情報: natm, atmicx, atmtyp

  • +
+

なお、 rmtfield の値は、入力パラメータファイル内で ntyp 個の要素からなるリストとして指定されている場合のみ、入力パラメータファイルの値が使われます。

+
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/cif2x/index.html b/manual/v1.1.0/ja/html/cif2x/index.html new file mode 100644 index 0000000..d7a174d --- /dev/null +++ b/manual/v1.1.0/ja/html/cif2x/index.html @@ -0,0 +1,163 @@ + + + + + + + + 第一原理計算入力ファイル生成ツール (cif2x) — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/cif2x/tutorial/index.html b/manual/v1.1.0/ja/html/cif2x/tutorial/index.html new file mode 100644 index 0000000..b574888 --- /dev/null +++ b/manual/v1.1.0/ja/html/cif2x/tutorial/index.html @@ -0,0 +1,217 @@ + + + + + + + + 3. チュートリアル — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

3. チュートリアル

+

第一原理計算入力ファイル生成ツール cif2x を使うには、入力パラメータファイルと結晶構造データおよび擬ポテンシャルファイルを用意した後、プログラム cif2x を実行します。現在は Quantum ESPRESSO, VASP, OpenMX, AkaiKKR の入力ファイル生成に対応しています。以下では、 docs/tutorial/cif2x ディレクトリにある Quantum ESPRESSO 向けサンプルを例にチュートリアルを実施します。

+
+

3.1. 入力パラメータファイルを作成する

+

入力パラメータファイルには、第一原理計算プログラムに与える入力ファイルの内容を記述します。

+

以下に入力パラメータファイルのサンプルを記載します。このファイルは YAML形式のテキストファイルで、結晶構造データに対するオプションの指定や、出力する第一原理計算入力ファイルの内容を記述します。仕様の詳細については ファイルフォーマット の章を参照してください。

+

YAMLフォーマットでは、 keyword: value の辞書形式でパラメータを記述します。 value には数値や文字列などのスカラー値や、複数の値を [ ] または箇条書きの形式で列挙するリスト型、または辞書型を入れ子にすることができます。

+
structure:
+  use_ibrav: false
+  tolerance: 0.05
+
+optional:
+  pseudo_dir: ./pseudo
+  pp_file: ./pseudo/pp_psl_pbe_rrkjus.csv
+
+tasks:
+  - mode: scf
+    output_file: scf.in
+    output_dir: scf
+    template: scf.in_tmpl
+    content:
+      namelist:
+        control:
+          prefix: pwscf
+          pseudo_dir:
+          outdir: ./work
+        system:
+          ecutwfc:
+          ecutrho:
+      CELL_PARAMETERS:
+      ATOMIC_SPECIES:
+      ATOMIC_POSITIONS:
+        option: crystal
+      K_POINTS:
+        option: automatic
+        grid: [8,8,8]
+
+
+

入力パラメータファイルは structure, optional, tasks のブロックから構成されます。 +structure は結晶構造データに関するオプションを指定します。 +optional は擬ポテンシャルに関する global な設定などを行います。

+

tasks は出力する第一原理計算入力ファイルの内容を指定します。一連の計算に対応して複数のファイルを生成できるよう、tasks は配列の値を取ります。 +各出力について、計算内容は mode パラメータで指定します。SCF計算の scf や NSCF計算の nscf に対応するほか、一般的な出力を行う任意の出力モードを指定できます。 +ファイルは output_dir および output_file で指定するファイルに書き出されます。

+

出力内容は content に記載します。 +Quantum ESPRESSO の入力ファイルは、 &keyword で始まる Fortran90 の namelist 形式と、 K_POINTS などのキーワードで始まり空行で分割される cards と呼ばれるブロックからなります。 content には namelist と cards を入れ子の辞書形式で指定します。 +いくつかの例外を除いて、指定された内容が基本的にはそのまま入力ファイルに書き出されます。値が空欄のキーワードは、結晶構造データなどから求めた値が代入されます。

+

また、template として入力ファイルの雛形を指定することもできます。 template に指定したファイルの内容と content のデータを合わせたものを入力データとして扱います。同じキーワードのデータが存在する場合は content の指定が優先されます。従って、既存の入力ファイルを元に必要な箇所を入力パラメータファイルで上書きする使い方が可能です。上記の例では次のファイル(scf.in_tmpl)を template として取り込み、カットオフと CELL_PARAMETER, ATOMIC_SPECIES, ATOMIC_POSITIONS, K_POINT の箇所を結晶構造等から決めます。 ecutwfcecutrho が空欄で上書きされていることに留意してください。

+
&control
+    calculation = 'scf'
+    prefix = 'pwscf'
+    pseudo_dir = './pseudo'
+    outdir = './work'
+    tstress = .true.
+    tprnfor = .true.
+/
+
+&system
+    ibrav = 0
+    nat = 7
+    ntyp = 3
+    ecutwfc = 36.0
+    ecutrho = 180.0
+    occupations = 'smearing'
+    smearing = 'm-p'
+    degauss = 0.01
+    noncolin = .true.
+    nspin = 2
+/
+
+&electrons
+    missing_beta = 0.1
+    conv_thr = 1e-08
+/
+
+
+
+
+

3.2. 第一原理計算入力ファイルを生成する

+

入力パラメータファイル(input.yaml)と結晶構造データ(Co3SnS2_nosym.cif)を入力として cif2x を実行します。

+
$ cif2x -t QE input.yaml Co3SnS2_nosym.cif
+
+
+

予め必要な擬ポテンシャルのファイルを ./pseudo ディレクトリに配置し、擬ポテンシャルのインデックスファイルを ./pseudo/pp_psl_pbe_rrkjus.csv に作成しておきます。

+

cif2x を実行すると Quantum ESPRESSO用の入力ファイルが生成され出力されます。出力先は入力パラメータファイル内のパラメータで指定するディレクトリ(output_dir)およびファイル(output_file)です。この例では ./scf/scf.in に SCF計算用の入力ファイルが書き出されます。

+
+
+

3.3. パラメータセットを指定する

+

入力パラメータ内の値をいくつか変えながら一連の入力ファイルを生成したいことがあります。例えばカットオフの値やk点の数を変えて収束性を評価するなどの場合です。入力パラメータには値のリストや範囲を指定することができ、値の組み合わせごとに個別のディレクトリを作成して入力ファイルを生成します。 +パラメータセットの指定は特別な構文 ${...} を用います。

+
content:
+  K_POINTS:
+    option: automatic
+    grid:   ${ [ [4,4,4], [8,8,8], [12,12,12] ] }
+
+
+

例えば上記のように K_POINTS を指定すると、 grid の値が [4,4,4], [8,8,8], [12,12,12] の入力ファイルがそれぞれ 4x4x4/, 8x8x8/, 12x12x12/ サブディレクトリ内に作成されます。

+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/genindex.html b/manual/v1.1.0/ja/html/genindex.html new file mode 100644 index 0000000..e607333 --- /dev/null +++ b/manual/v1.1.0/ja/html/genindex.html @@ -0,0 +1,104 @@ + + + + + + + 索引 — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ + +

索引

+ +
+ +
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/getcif/about/index.html b/manual/v1.1.0/ja/html/getcif/about/index.html new file mode 100644 index 0000000..48f8520 --- /dev/null +++ b/manual/v1.1.0/ja/html/getcif/about/index.html @@ -0,0 +1,123 @@ + + + + + + + + 7.1. 概要 — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

7.1. 概要

+

getcifは物質材料データベースから結晶構造データ等を取得するツールです。現在は Materials Project からのデータ取得に対応しています。物質の組成や対称性、バンドギャップなどの物性値をもとにデータベースを検索し、データを取得することができます。

+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/getcif/appendix/index.html b/manual/v1.1.0/ja/html/getcif/appendix/index.html new file mode 100644 index 0000000..86ca941 --- /dev/null +++ b/manual/v1.1.0/ja/html/getcif/appendix/index.html @@ -0,0 +1,465 @@ + + + + + + + + 7.5. パラメータリスト — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

7.5. パラメータリスト

+
+

検索条件 (properties)

+

properties に指定できる項目と、その項目がどのような値を取るかを以下にまとめます。

+

Materials Project API のクライアントアプリケーションの一つとして mp-api パッケージが Materials Project から公開されており、getcif はこのライブラリを利用してデータベースへの接続を行います。 +以下は MPRester クラスの materials.summary.search メソッドのパラメータに対応します。 +(以下の表は materials.summary.search のソースコードのコメントから転記しました。)

+

値の型の表記は次のとおりです。

+
    +
  • str: 文字列型

  • +
  • List[str]: 文字列型のリスト

  • +
  • str | List[str]: 単一の文字列、または、文字列型のリスト

  • +
  • int: 整数型

  • +
  • bool: 真偽値 (true または false)

  • +
  • Tuple[float,float]: 実数値 2つからなる組 (リスト)

  • +
  • Tuple[int,int]: 整数値 2つからなる組 (リスト)

  • +
  • CrystalSystem: 結晶のタイプを表す文字列。Triclinic, Monoclinic, Orthorhombic, Tetragonal, Trigonal, Hexagonal, Cubic のいずれか。

  • +
  • List[HasProps]: 特性値のタイプを表す文字列のリスト。特性値は emmet.core.summary に定義されている。以下のいずれかの値を取る。

    +
    +

    absorption, +bandstructure, +charge_density, +chemenv, +dielectric, +dos, +elasticity, +electronic_structure, +eos, +grain_boundaries, +insertion_electrodes, +magnetism, +materials, +oxi_states, +phonon, +piezoelectric, +provenance, +substrates, +surface_properties, +thermo, +xas

    +
    +
  • +
  • Ordering: 磁気秩序を表す文字列。FM, AFM, FiM, NM のいずれか。

  • +
+

値のリストは、YAML形式の箇条書きおよび [ ... ] にカンマ区切りで記述するほか、空白区切りで列挙する記法も可能です。

+

Tuple で表される型は値の範囲 (min, max) の指定に使われます。値のリストとして記述するほか、空白区切りで min max のように記述することもできます。また、以下の表記も可能です。

+
+

<= max : max 以下

+

< max : max より小さい

+

>= min : min 以上

+

> min : min より大きい

+

min ~ max : min 以上 max 以下

+
+ + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
表 7.1 検索条件のキーワード

Keyword

Type

Description

band_gap

Tuple[float,float]

Minimum and maximum band gap in eV to consider.

chemsys

str | List[str]

A chemical system, list of chemical systems (e.g., Li-Fe-O, Si-*, [Si-O, Li-Fe-P]), or single formula (e.g., Fe2O3, Si*).

crystal_system

CrystalSystem

Crystal system of material.

density

Tuple[float,float]

Minimum and maximum density to consider.

deprecated

bool

Whether the material is tagged as deprecated.

e_electronic

Tuple[float,float]

Minimum and maximum electronic dielectric constant to consider.

e_ionic

Tuple[float,float]

Minimum and maximum ionic dielectric constant to consider.

e_total

Tuple[float,float]

Minimum and maximum total dielectric constant to consider.

efermi

Tuple[float,float]

Minimum and maximum fermi energy in eV to consider.

elastic_anisotropy

Tuple[float,float]

Minimum and maximum value to consider for the elastic anisotropy.

elements

List[str]

A list of elements.

energy_above_hull

Tuple[int,int]

Minimum and maximum energy above the hull in eV/atom to consider.

equilibrium_reaction_energy

Tuple[float,float]

Minimum and maximum equilibrium reaction energy in eV/atom to consider.

exclude_elements

List[str]

List of elements to exclude.

formation_energy

Tuple[int,int]

Minimum and maximum formation energy in eV/atom to consider.

formula

str | List[str]

A formula including anonymized formula or wild cards (e.g., Fe2O3, ABO3, Si*). A list of chemical formulas can also be passed (e.g., [Fe2O3, ABO3]).

g_reuss

Tuple[float,float]

Minimum and maximum value in GPa to consider for the Reuss average of the shear modulus.

g_voigt

Tuple[float,float]

Minimum and maximum value in GPa to consider for the Voigt average of the shear modulus.

g_vrh

Tuple[float,float]

Minimum and maximum value in GPa to consider for the Voigt-Reuss-Hill average of the shear modulus.

has_props

List[HasProps]

The calculated properties available for the material.

has_reconstructed

bool

Whether the entry has any reconstructed surfaces.

is_gap_direct

bool

Whether the material has a direct band gap.

is_metal

bool

Whether the material is considered a metal.

is_stable

bool

Whether the material lies on the convex energy hull.

k_reuss

Tuple[float,float]

Minimum and maximum value in GPa to consider for the Reuss average of the bulk modulus.

k_voigt

Tuple[float,float]

Minimum and maximum value in GPa to consider for the Voigt average of the bulk modulus.

k_vrh

Tuple[float,float]

Minimum and maximum value in GPa to consider for the Voigt-Reuss-Hill average of the bulk modulus.

magnetic_ordering

Ordering

Magnetic ordering of the material.

material_ids

List[str]

List of Materials Project IDs to return data for.

n

Tuple[float,float]

Minimum and maximum refractive index to consider.

num_elements

Tuple[int,int]

Minimum and maximum number of elements to consider.

num_sites

Tuple[int,int]

Minimum and maximum number of sites to consider.

num_magnetic_sites

Tuple[int,int]

Minimum and maximum number of magnetic sites to consider.

num_unique_magnetic_sites

Tuple[int,int]

Minimum and maximum number of unique magnetic sites to consider.

piezoelectric_modulus

Tuple[float,float]

Minimum and maximum piezoelectric modulus to consider.

poisson_ratio

Tuple[float,float]

Minimum and maximum value to consider for Poisson's ratio.

possible_species

List[str]

List of element symbols appended with oxidation states. (e.g. Cr2+,O2-)

shape_factor

Tuple[float,float]

Minimum and maximum shape factor values to consider.

spacegroup_number

int

Space group number of material.

spacegroup_symbol

str

Space group symbol of the material in international short symbol notation.

surface_energy_anisotropy

Tuple[float,float]

Minimum and maximum surface energy anisotropy values to consider.

theoretical

bool

Whether the material is theoretical.

total_energy

Tuple[int,int]

Minimum and maximum corrected total energy in eV/atom to consider.

total_magnetization

Tuple[float,float]

Minimum and maximum total magnetization values to consider.

total_magnetization_normalized_formula_units

Tuple[float,float]

Minimum and maximum total magnetization values normalized by formula units to consider.

total_magnetization_normalized_vol

Tuple[float,float]

Minimum and maximum total magnetization values normalized by volume to consider.

uncorrected_energy

Tuple[int,int]

Minimum and maximum uncorrected total energy in eV/atom to consider.

volume

Tuple[float,float]

Minimum and maximum volume to consider.

weighted_surface_energy

Tuple[float,float]

Minimum and maximum weighted surface energy in J/\(m^2\) to consider.

weighted_work_function

Tuple[float,float]

Minimum and maximum weighted work function in eV to consider.

+
+
+

出力項目 (fields)

+

fields に指定できる項目を以下に列挙します。

+
band_gap
+bandstructure
+builder_meta
+bulk_modulus
+cbm
+chemsys
+composition
+composition_reduced
+database_IDs
+decomposes_to
+density
+density_atomic
+deprecated
+deprecation_reasons
+dos
+dos_energy_down
+dos_energy_up
+e_electronic
+e_ij_max
+e_ionic
+e_total
+efermi
+elements
+energy_above_hull
+energy_per_atom
+equilibrium_reaction_energy_per_atom
+es_source_calc_id
+formation_energy_per_atom
+formula_anonymous
+formula_pretty
+grain_boundaries
+has_props
+has_reconstructed
+homogeneous_poisson
+is_gap_direct
+is_magnetic
+is_metal
+is_stable
+last_updated
+material_id
+n
+nelements
+nsites
+num_magnetic_sites
+num_unique_magnetic_sites
+ordering
+origins
+possible_species
+property_name
+shape_factor
+shear_modulus
+structure
+surface_anisotropy
+symmetry
+task_ids
+theoretical
+total_magnetization
+total_magnetization_normalized_formula_units
+total_magnetization_normalized_vol
+types_of_magnetic_species
+uncorrected_energy_per_atom
+universal_anisotropy
+vbm
+volume
+warnings
+weighted_surface_energy
+weighted_surface_energy_EV_PER_ANG2
+weighted_work_function
+xas
+
+
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/getcif/command/index.html b/manual/v1.1.0/ja/html/getcif/command/index.html new file mode 100644 index 0000000..50b6d67 --- /dev/null +++ b/manual/v1.1.0/ja/html/getcif/command/index.html @@ -0,0 +1,161 @@ + + + + + + + + 7.3. コマンドリファレンス — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

7.3. コマンドリファレンス

+
+

getcif

+
+

結晶構造データをデータベースから取得する

+
+

書式:

+
+
getcif [-v][-q] [--dry-run] input_yaml
+getcif -h
+getcif --version
+
+
+
+

説明:

+
+

input_yaml に指定した入力パラメータファイルを読み込み、データベースを検索して結晶構造等のデータを取得します。 +以下のオプションを受け付けます。

+
    +
  • -v

    +

    実行時に表示されるメッセージを冗長にします。複数回指定すると冗長度が上がります。

    +
  • +
  • -q

    +

    実行時に表示されるメッセージの冗長度を下げます。 -v の効果を打ち消します。複数回の指定が可能です。

    +
  • +
  • --dry-run

    +

    検索パラメータを出力し、データベースへの接続をせずに終了します。検索条件を確認することができます。入力パラメータファイルの dry_run の指定より優先します。

    +
  • +
  • input_yaml

    +

    入力パラメータファイルを指定します。ファイルフォーマットはYAML形式です。

    +
  • +
  • -h, --help

    +

    ヘルプを表示します。指定可能な検索条件 (properties) と取得データ (fields) の一覧も表示されます。

    +
  • +
  • --version

    +

    バージョン情報を表示します。

    +
  • +
+
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/getcif/filespec/index.html b/manual/v1.1.0/ja/html/getcif/filespec/index.html new file mode 100644 index 0000000..0b4c16f --- /dev/null +++ b/manual/v1.1.0/ja/html/getcif/filespec/index.html @@ -0,0 +1,246 @@ + + + + + + + + 7.4. ファイルフォーマット — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

7.4. ファイルフォーマット

+
+

入力パラメータファイル

+

入力パラメータファイルでは、getcif で Materials Project の物質材料データベースから結晶構造等のデータを取得するための設定情報を YAML形式で記述します。本ファイルは以下の部分から構成されます。

+
+
    +
  1. databaseセクション: 接続するデータベースについての情報を記述します。

  2. +
  3. optionセクション: 出力先のディレクトリや実行条件などを記述します。

  4. +
  5. propertiesセクション: 検索条件を記述します。

  6. +
  7. fieldsセクション: 取得データの種類を記述します。

  8. +
+
+
+

database

+
+

target

+
+

接続先のデータベースを指定します。現在はこの項目は無視されます。

+
+

api_key_file (デフォルト値: materials_project.key)

+
+

データベースに接続する際の APIキーを格納したファイルのファイル名を指定します。ファイル名の拡張子は .key とします。 +ファイルが存在しない、または有効なAPIキーが見つからない場合は、環境変数 MP_API_KEY または pymatgen の設定ファイル ~/.config/.pmgrcPMG_MAPI_KEY からAPIキーを取得します。

+

APIキーファイルはテキスト形式です。 # から始まる行はコメントとして扱われます。前後の空白は無視されます。複数行からなる場合は最初の有効な行からキーを取得します。

+
+
+
+
+

option

+
+

output_dir (デフォルト値: "")

+
+

取得データを格納するディレクトリを指定します。データは output_dir 以下に、material ID をディレクトリ名としたディレクトリに出力されます。指定がない場合はカレントディレクトリです。

+
+

dry_run (デフォルト値: False)

+
+

データベースへの接続は行わず、検索条件を出力して終了します。検索内容の確認を行うことができます。

+
+

symprec (デフォルト値: 0.1)

+
+

結晶構造データをCIFファイルに出力する際の対称性を判定する許容精度を指定します。デフォルトは 0.1 です。 symprec に 0.0 を指定した場合は symprec を指定しないものとして扱い、対称性を考慮しないCIFファイルが生成されます。

+

symprec は、結晶構造における対称性を判定する際の許容精度(tolerance)を指定するパラメータです。対称性の計算においては、原子位置の微細なずれや数値計算の精度の影響を考慮する必要があります。symprec はこのずれの許容範囲を制御し、対称操作が適用されるかどうかを決定する際の閾値として機能します。

+

symprec を小さく設定する(例: 0.01)と、対称性の判定がより厳密になり、結晶構造のわずかなずれでも対称操作が適用されない可能性が高まります。その結果、より低い対称性の空間群が得られることがあります。逆に、symprec を大きく設定する(例: 1.0)と、対称性の判定が緩やかになり、わずかなずれが無視され、より高い対称性が認められることがあります。

+

なお、 fields セクションで symmetry を指定すると、Materials Project でデフォルトの symprec=0.1 で判定された対称性の情報を取得し、テキストファイル(symmetry)に出力します。

+
+
+
+
+

properties

+

検索条件を記述します。 +元素組成や結晶の対称性、物性値の範囲などの項目を、「項目名: 値」の形式で指定します。これらの条件は AND で扱われます。 +指定できる項目は Materials Project の API に定義されていますが、指定方法は mp-api ライブラリの materials.summary.search のパラメータに準拠します。項目のリストは Appendix を参照してください。また、 getcif --help で一覧を見ることができます。

+

値の指定方法は次のとおりです。YAML形式に準拠しますが、一部に簡便な記法を用意しています。

+
    +
  • 数値、文字列

    +
    +

    そのまま記述します。

    +
    +
  • +
  • 真偽値

    +
    +

    true または false を記述します

    +
    +
  • +
  • 数値や文字列のリスト

    +
    +

    YAML形式の箇条書きおよび [ ... ] にカンマ区切りで記述するほか、空白区切りで列挙する記法も可能です。例:

    +
    +
    element: Sr Ti
    +
    +
    +
    +
    +
  • +
  • 数値の範囲

    +
    +

    上限・下限のリストとして [ min, max ] のように記述するほか、空白区切りで min max のように記述することもできます。また、以下の記法も可能です。

    +
    +
    +
    <= max

    max 以下

    +
    +
    < max

    max より小さい (実数の場合は <= と同等。整数の場合は <= max-1 として扱われる)

    +
    +
    >= min

    min 以上

    +
    +
    > min

    min より大きい (実数の場合は >= と同等。整数の場合は >= min+1 として扱われる)

    +
    +
    min ~ max

    min 以上 max 以下

    +
    +
    +
    +

    注記:

    +
    +
      +
    • 記号と数値の間は空白を置きます。

    • +
    • YAML記法では > は特殊文字として扱われるため、 >= min, > min はそれぞれ ">= min", "> min" のように " " で囲む必要があります。

    • +
    • リストで記述する場合、 <= max, >= min はそれぞれ [ None, max ], [ min, None ] のように表記します。

    • +
    +
    +
    +
  • +
  • ワイルドカード

    +
    +
    +
    formula には元素種にワイルドカード * を指定できます。その場合は値を " " で囲みます。例:
    formula: "**O3"
    +
    +
    +
    +
    +

    \(ABO_3\) 系の物質を指定します。

    +
    +
  • +
+
+
+

fields

+

取得するデータの種類を記述します。 +項目のリストを YAML形式で列挙するほか、空白区切りの文字列として記述することもできます。文字列は YAML記法 | を用いて複数行で書くこともできます。 +指定できる項目は Materials Project の API の fields パラメータに準拠します。項目のリストは Appendix を参照してください。また、 getcif --help で一覧を見ることができます。

+

material_idformula_pretty は暗黙的に取得します。

+

取得したデータは、 option セクションの output_dir で指定したディレクトリ内に、物質ごとに material_id をディレクトリ名とするディレクトリを作成し、その中に格納されます。 +項目ごとに、項目名をファイル名としたファイルに保存されます。但し、結晶構造データ (structure) は structure.cif というファイル名で CIF形式で書き出されます。

+
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/getcif/index.html b/manual/v1.1.0/ja/html/getcif/index.html new file mode 100644 index 0000000..6907c34 --- /dev/null +++ b/manual/v1.1.0/ja/html/getcif/index.html @@ -0,0 +1,145 @@ + + + + + + + + 7. CIFデータ取得ツール (getcif) — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/getcif/tutorial/index.html b/manual/v1.1.0/ja/html/getcif/tutorial/index.html new file mode 100644 index 0000000..8f77994 --- /dev/null +++ b/manual/v1.1.0/ja/html/getcif/tutorial/index.html @@ -0,0 +1,246 @@ + + + + + + + + 7.2. チュートリアル — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

7.2. チュートリアル

+

結晶構造などのデータを物質材料データベースから取得するツール getcif を使うには、検索条件と取得するデータを記述した入力パラメータファイルを作成し、プログラム getcif を実行します。現在は Materials Project が公開しているデータベースに対応しています。以下では docs/tutorial/getcif ディレクトリにある ABO3 系の物質を検索・取得するサンプルを例にチュートリアルを実施します。

+
+

APIキーを取得する

+

Materials Project のデータベースをプログラムから検索するには、あらかじめ Materials Project にユーザ登録し、APIキーを取得する必要があります。 +Materials Project の公式サイト https://next-gen.materialsproject.org にアクセスし、Login します。APIキーはユーザ登録時に自動的生成され、ユーザのダッシュボードから確認できます。取得した APIキーは安全に保管し、他人に知られないようにしましょう。

+

APIキーを getcif にセットするには、以下のいずれかを実行します。

+
+
    +
  1. pymatgen の設定ファイルに登録する

    +
    +
    $ pmg config --add PMG_MAPI_KEY <API_KEY>
    +
    +
    +
    +

    を実行するか、設定ファイル ~/.config/.pmgrc

    +
    +
    PMG_MAPI_KEY: <API_KEY>
    +
    +
    +
    +

    を書き込みます。

    +
  2. +
  3. 環境変数にセットする

    +
    +
    $ MP_API_KEY="<API_KEY>"
    +$ export MP_API_KEY
    +
    +
    +
    +

    を実行します。

    +
  4. +
  5. ファイルに格納する

    +

    APIキーをファイルに書き込み、getcif を実行するディレクトリに配置します。ファイル名のデフォルトは materials_project.key です。異なるファイル名を使う場合は、入力パラメータファイル (input.yaml) の api_key_file にファイル名を指定します。ファイル名は .key の拡張子が必要です。

    +
    +
    database:
    +  api_key_file: materials_project.key
    +
    +
    +
    +

    註: バージョン管理ツールを使っている場合は、 .key の拡張子を持つファイルを管理から除外するとよいでしょう。(Git の場合は .gitignore ファイルに *.key を追加します。)

    +
  6. +
+
+
+
+

入力パラメータファイルを作成する

+

入力パラメータファイルにはデータベース検索および出力についての設定を記述します。

+

以下に入力パラメータファイルのサンプルを記載します。このファイルは YAML形式のテキストファイルで、データベースへの接続に必要な情報や、検索条件、取得するデータの種類などの内容を記述します。仕様の詳細については ファイルフォーマット の章を参照してください。

+

YAMLフォーマットでは、 keyword: value の辞書形式でパラメータを記述します。 value には数値や文字列などのスカラー値や、複数の値を [ ] または箇条書きの形式で列挙するリスト型、または辞書型を入れ子にすることができます。検索条件と出力項目については、特別な記法として、リスト型を括弧を使わず空白区切りで列挙する形式でも書くことができます。

+
database:
+  target: materials project
+
+option:
+  output_dir: result
+  # dry_run: false
+
+properties:
+  band_gap: < 1.0
+  is_stable: true
+  is_metal: false
+  formula: "**O3"
+  spacegroup_symbol: Pm-3m
+
+fields: |
+  structure
+  band_gap
+  symmetry
+
+
+

入力パラメータファイルは database, option, properties, fields のブロックからなります。 +database にはデータベース接続に関する設定を記述します。例では target に Materials Project を指定していますが、現時点ではこの項目は無視されます。その他、 api_key に APIキーを指定できます。APIキーは pymatgen の設定ファイルや環境変数にセットすることもできます。例では後者の方式を仮定しています。

+

option には実行時のオプションを記述します。 output_dir は取得したデータの格納先ディレクトリを指定します。省略時にはカレントディレクトリに書き出されます。 dry_runtrue にセットすると、データベースへの接続はせず、検索条件を出力して終了します。 dry_run はコマンドラインオプションでも指定できます。

+

properties は検索条件の指定を行います。検索条件を「項目: 値」の書式で列挙し、これらの条件は AND で扱われます。例では、バンドギャップが 1.0以下、安定な絶縁体で、組成式は ABO3 (A, B は任意の元素種)、空間群は Pm-3m という条件を指定しています。 band_gap には値の範囲を上限・下限の組で指定するほか、 < 1.0 のような記法も使用できます。検索条件にどのような項目が指定できるかは Appendix を参照してください。

+

fields には出力項目を列挙します。YAMLのリスト形式のほか、空白区切りで項目を列挙する書き方もできます。また、例に示したとおり、YAMLの記法を使って複数行で書くこともできます。 +structure は結晶構造データで、取得したデータはCIF形式で出力されます。 band_gap はバンドギャップの数値、 symmetry は対称性の情報です。この他に、 material_id で Materials Project 内の物質データのインデックスと、 formula_pretty で組成式が暗黙的に取得されます。出力項目の一覧は Appendix を参照してください。また、getcif コマンドのヘルプメッセージにも一覧が出力されます。

+
+
+

データを取得する

+

入力パラメータファイル(input.yaml)を引数として getcif を実行します。

+
$ getcif input.yaml
+
+
+

getcif を実行すると Materials Project のデータベースに接続し、検索条件に合致するデータを取得します。標準出力には、以下のように、物質の material ID と組成式、データ項目のサマリーが出力されます。

+
material_id  formula  band_gap  symmetry  formula_pretty
+mp-861502  AcFeO3  0.9887999999999995  crystal_system=<CrystalSystem.cubic: 'Cubic'> symbol='Pm-3m' number=221 point_group='m-3m' symprec=0.1 version='2.0.2'  AcFeO3
+mp-977455  PaAgO3  0.915  crystal_system=<CrystalSystem.cubic: 'Cubic'> symbol='Pm-3m' number=221 point_group='m-3m' symprec=0.1 version='2.0.2'  PaAgO3
+mp-11775  RbUO3  0.45420000000000016  crystal_system=<CrystalSystem.cubic: 'Cubic'> symbol='Pm-3m' number=221 point_group='m-3m' symprec=0.1 version='2.0.2'  RbUO3
+mp-3163  BaSnO3  0.37239999999999984  crystal_system=<CrystalSystem.cubic: 'Cubic'> symbol='Pm-3m' number=221 point_group='m-3m' symprec=0.1 version='2.0.2'  BaSnO3
+mp-4126  KUO3  0.44540000000000024  crystal_system=<CrystalSystem.cubic: 'Cubic'> symbol='Pm-3m' number=221 point_group='m-3m' symprec=0.1 version='2.0.2'  KUO3
+mp-865322  UTlO3  0.27360000000000007  crystal_system=<CrystalSystem.cubic: 'Cubic'> symbol='Pm-3m' number=221 point_group='m-3m' symprec=0.1 version='2.0.2'  UTlO3
+mp-753781  EuHfO3  0.4795999999999996  crystal_system=<CrystalSystem.cubic: 'Cubic'> symbol='Pm-3m' number=221 point_group='m-3m' symprec=0.1 version='2.0.2'  EuHfO3
+
+
+

取得したデータは、 output_dir で指定した result ディレクトリ内に物質ごとに格納されます。この例では、 result 以下に mp-3163 から mp-977455 までの 7つのディレクトリが作成され、各ディレクトリには次のファイルが書き込まれます。

+
+
    +
  • band_gap

    +
    +

    バンドギャップの値

    +
    +
  • +
  • formula

    +
    +

    組成式 (formula_pretty に対応します)

    +
    +
  • +
  • structure.cif

    +
    +

    CIF形式の結晶構造データ

    +
    +
  • +
  • symmetry

    +
    +

    対称性に関するデータ

    +
    +
  • +
+
+

getcif の実行に --dry-run オプションを付けると、以下のように検索条件を出力して終了します。データベースに実際に接続する前に検索項目を確認できます。

+
$ getcif --dry-run input.yaml
+{'band_gap': (None, 1.0), 'is_stable': True, 'is_metal': False, 'formula': '**O3', 'spacegroup_symbol': 'Pm-3m', 'fields': ['structure', 'band_gap', 'symmetry', 'material_id', 'formula_pretty']}
+
+
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/index.html b/manual/v1.1.0/ja/html/index.html new file mode 100644 index 0000000..9525746 --- /dev/null +++ b/manual/v1.1.0/ja/html/index.html @@ -0,0 +1,123 @@ + + + + + + + + Cif2x Users Guide — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/objects.inv b/manual/v1.1.0/ja/html/objects.inv new file mode 100644 index 0000000..e5054d9 Binary files /dev/null and b/manual/v1.1.0/ja/html/objects.inv differ diff --git a/manual/v1.1.0/ja/html/search.html b/manual/v1.1.0/ja/html/search.html new file mode 100644 index 0000000..f0fed02 --- /dev/null +++ b/manual/v1.1.0/ja/html/search.html @@ -0,0 +1,120 @@ + + + + + + + 検索 — cif2x Users Guide 1.1.0 ドキュメント + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

検索

+ + + + +

+ 複数の単語を検索すると、次を含む一致のみが表示されます +     すべての用語。 +

+ + +
+ + + +
+ + +
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/manual/v1.1.0/ja/html/searchindex.js b/manual/v1.1.0/ja/html/searchindex.js new file mode 100644 index 0000000..85a854a --- /dev/null +++ b/manual/v1.1.0/ja/html/searchindex.js @@ -0,0 +1 @@ +Search.setIndex({"alltitles": {"API\u30ad\u30fc\u3092\u53d6\u5f97\u3059\u308b": [[12, "api"]], "AkaiKKR \u5411\u3051\u30d1\u30e9\u30e1\u30fc\u30bf": [[4, "akaikkr"]], "CIF\u30c7\u30fc\u30bf\u53d6\u5f97\u30c4\u30fc\u30eb (getcif)": [[11, null]], "Cif2x Users Guide": [[13, null]], "Contents:": [[13, null]], "OpenMX \u5411\u3051\u30d1\u30e9\u30e1\u30fc\u30bf": [[4, "openmx"]], "Quantum ESPRESSO \u306e mode \u3092\u8ffd\u52a0\u3059\u308b": [[1, "quantum-espresso-mode"]], "Quantum ESPRESSO \u5411\u3051\u30d1\u30e9\u30e1\u30fc\u30bf": [[4, "quantum-espresso"]], "VASP \u5411\u3051\u30d1\u30e9\u30e1\u30fc\u30bf": [[4, "vasp"]], "cif2x": [[3, "cif2x"]], "cif2x\u3068\u306f?": [[0, "cif2x"]], "content": [[4, "content"], [4, "id7"], [4, "id9"], [4, "id11"]], "database": [[10, "database"]], "fields": [[10, "fields"]], "getcif": [[9, "getcif"]], "option": [[10, "option"]], "optional": [[4, "optional"], [4, "id5"], [4, "id8"], [4, "id10"]], "optional\u30bb\u30af\u30b7\u30e7\u30f3": [[4, "id4"]], "properties": [[10, "properties"]], "structure": [[4, "structure"]], "tasks": [[4, "tasks"], [4, "id6"]], "\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9": [[2, null]], "\u30b3\u30d4\u30fc\u30e9\u30a4\u30c8": [[0, "id5"]], "\u30b3\u30de\u30f3\u30c9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9": [[3, null], [9, null]], "\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb": [[6, null], [12, null]], "\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b": [[12, "id3"]], "\u30d0\u30fc\u30b8\u30e7\u30f3\u5c65\u6b74": [[0, "id4"]], "\u30d1\u30e9\u30e1\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u6307\u5b9a\u3059\u308b": [[6, "id4"]], "\u30d1\u30e9\u30e1\u30fc\u30bf\u30bb\u30c3\u30c8\u6307\u5b9a": [[4, "id3"]], "\u30d1\u30e9\u30e1\u30fc\u30bf\u30ea\u30b9\u30c8": [[8, null]], "\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8": [[4, null], [10, null]], "\u30e9\u30a4\u30bb\u30f3\u30b9": [[0, "id2"]], "\u5165\u529b\u30d1\u30e9\u30e1\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb": [[4, "id2"], [10, "id2"]], "\u5165\u529b\u30d1\u30e9\u30e1\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b": [[6, "id2"], [12, "id2"]], "\u51fa\u529b\u9805\u76ee (fields)": [[8, "fields"]], "\u52d5\u4f5c\u74b0\u5883": [[0, "id6"]], "\u62e1\u5f35\u30ac\u30a4\u30c9": [[1, null]], "\u691c\u7d22\u6761\u4ef6 (properties)": [[8, "properties"]], "\u691c\u7d22\u6761\u4ef6\u306e\u30ad\u30fc\u30ef\u30fc\u30c9": [[8, "id2"]], "\u6982\u8981": [[0, null], [7, null]], "\u7b2c\u4e00\u539f\u7406\u8a08\u7b97\u5165\u529b\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3059\u308b": [[6, "id3"]], "\u7b2c\u4e00\u539f\u7406\u8a08\u7b97\u5165\u529b\u30d5\u30a1\u30a4\u30eb\u751f\u6210\u30c4\u30fc\u30eb (cif2x)": [[5, null]], "\u958b\u767a\u8ca2\u732e\u8005": [[0, "id3"]]}, "docnames": ["cif2x/about/index", "cif2x/appendix/index", "cif2x/basic-usage", "cif2x/command/index", "cif2x/filespec/index", "cif2x/index", "cif2x/tutorial/index", "getcif/about/index", "getcif/appendix/index", "getcif/command/index", "getcif/filespec/index", "getcif/index", "getcif/tutorial/index", "index"], "envversion": {"sphinx": 62, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2}, "filenames": ["cif2x/about/index.rst", "cif2x/appendix/index.rst", "cif2x/basic-usage.rst", "cif2x/command/index.rst", "cif2x/filespec/index.rst", "cif2x/index.rst", "cif2x/tutorial/index.rst", "getcif/about/index.rst", "getcif/appendix/index.rst", "getcif/command/index.rst", "getcif/filespec/index.rst", "getcif/index.rst", "getcif/tutorial/index.rst", "index.rst"], "indexentries": {}, "objects": {}, "objnames": {}, "objtypes": {}, "terms": {"\"**": [10, 12], "\",": 1, "\"]": 1, "${": 6, "&control": [4, 6], "&keyword": 6, "&system": 4, "',": 12, "':": [1, 12], "'>": 12, "']": 12, "'m": 6, "'s": 8, "()": 1, "(.": 4, "(fractional": 4, "(highsymmkpath": 4, "(mode": 1, "(n": 4, "(qe": 1, "(quantum": 4, "(self": 1, "(start": 4, "(tolerance": 10, "(vasp": 4, "(\u4f8b": 10, "))": 0, "),": 12, "):": 1, ")}": 4, ")\u3001": 12, "*)": 8, "**": 12, ", [": 8, ", or": 8, ",o2": 8, "-)": 8, "-*": 8, "--": 2, "-api": [2, 8, 10], "-center": 2, "-dev": 2, "-dry": [9, 12], "-fe": 8, "-gen": 12, "-h": [3, 9], "-help": 9, "-hill": 8, "-o": 8, "-p": [6, 8], "-q": [3, 9], "-reuss": 8, "-rrkjus": 4, "-run": [9, 12], "-spn": 4, "-t": [2, 3], "-tools": 2, "-v": [3, 9], "-version": [3, 9], ". a": 8, ".,": 8, "..": [8, 10], "...": 4, "./": 6, ".card": 1, ".cif": [2, 3, 6, 10, 12], ".com": 2, ".core": 8, ".csv": 6, ".cubic": 12, ".g": 8, ".git": 2, ".gitignore": 12, ".in": 6, ".io": 4, ".key": [10, 12], ".materialsproject": 12, ".md": 2, ".org": 12, ".path": 4, ".pbe": 4, ".py": [1, 2], ".search": [8, 10], ".summary": [8, 10], ".toml": 2, ".vasp": 4, ".x": [1, 4], ".yaml": [2, 4, 6, 12], ".}": [4, 6], "/.": [2, 4, 10, 12], "/a": 4, "/akaikkrpythonutil": 2, "/akaikkrteam": 2, "/atom": 8, "/calc": 1, "/cards": 1, "/cif": [1, 2, 6], "/getcif": 12, "/issp": 2, "/library": 2, "/potcar": 4, "/pp": 6, "/pseudo": 6, "/pyakaikkr": 2, "/qe": 1, "/scf": 6, "/tmp": 4, "/tutorial": [6, 12], "1e": 6, "2akaikkr": 2, "2kkr": 2, "2o": 8, "2openmx": 2, "2qe": 2, "2struct": 2, "2vasp": 2, "2x": [1, 2, 4, 6], "2\u3064": 8, "3m": 12, "3sns": 6, "3x": 4, "4x": 6, "7\u3064": 12, "8x": 6, ":/": [2, 12], "=\"": 12, "='": 12, "=<": 12, ">\"": 12, ">=": 10, "['": 12, "[--": 9, "[float": 8, "[hasprops": 8, "[int": 8, "[str": 8, "\\gamma": 4, "])": 8, "],": 6, "][": [3, 9], "__": [1, 2], "_above": 8, "_ang": 8, "_anisotropy": 8, "_anonymous": 8, "_api": [10, 12], "_atom": 8, "_atomic": [1, 8], "_automatic": 4, "_base": 1, "_beta": 6, "_boundaries": 8, "_by": 4, "_calc": 8, "_cards": 1, "_cell": 1, "_cif": 2, "_density": [4, 8], "_dir": [4, 6, 10, 12], "_direct": 8, "_down": 8, "_electrodes": 8, "_electronic": 8, "_elements": 8, "_energy": 8, "_espresso": 3, "_ev": 8, "_factor": 8, "_file": [4, 6, 10, 12], "_formula": 8, "_function": 8, "_functional": 4, "_gamma": 4, "_gap": [8, 12], "_generic": 1, "_gga": 4, "_group": 12, "_hull": 8, "_ibrav": [4, 6], "_id": [8, 10, 12], "_ids": 8, "_ij": 8, "_input": 2, "_ionic": 8, "_k": 1, "_key": [10, 12], "_lda": 4, "_lengths": 4, "_linemode": 4, "_list": 4, "_magnetic": 8, "_magnetization": 8, "_mapi": [10, 12], "_max": 8, "_meta": 8, "_metal": [8, 12], "_mode": [1, 2], "_modeproc": 1, "_modulus": 8, "_name": 8, "_namelist": 1, "_normalized": 8, "_number": 8, "_of": 8, "_ordering": 8, "_parameter": 6, "_parameters": [1, 4, 6], "_path": 4, "_paw": 4, "_pbe": [4, 6], "_per": 8, "_point": 6, "_points": [1, 4, 6], "_poisson": 8, "_pos": 4, "_positions": [1, 4, 6], "_pretty": [8, 10, 12], "_project": [10, 12], "_properties": 8, "_props": 8, "_psl": [4, 6], "_psp": 4, "_pw": 1, "_ratio": 8, "_reaction": 8, "_reasons": 8, "_reconstructed": 8, "_reduced": 8, "_resolution": 4, "_reuss": 8, "_rrkjus": 6, "_run": [9, 10, 12], "_sites": 8, "_source": 8, "_species": [1, 4, 6, 8], "_stable": [8, 12], "_states": 8, "_structure": 8, "_surface": 8, "_symbol": [8, 12], "_system": [8, 12], "_table": [1, 2], "_thr": 6, "_tmpl": 6, "_to": 8, "_total": 8, "_type": 4, "_unique": 8, "_units": 8, "_up": 8, "_updated": 8, "_vasp": 4, "_voigt": 8, "_vol": [4, 8], "_vrh": 8, "_work": 8, "_x": 4, "_y": 4, "_yaml": [3, 9], "_z": 4, "_{": 1, "abo": [8, 10, 12], "abo3": 8, "above": 8, "absorption": 8, "acfeo": 12, "add": 12, "afm": 8, "akaikkr": [0, 2, 3, 5, 6], "akaikkrpythonutil": 2, "all": 0, "alpha": [0, 4], "also": 8, "anclr": 4, "and": [8, 10, 12], "angstrom": 4, "anisotropy": 8, "anonymized": 8, "any": 8, "api": [8, 10, 12], "api\u30ad\u30fc": [10, 11], "appended": 8, "appendix": [10, 12], "as": 8, "atmicx": 4, "atmtyp": 4, "atomic": [1, 4, 6], "automatic": [4, 6], "aux": 4, "available": 8, "average": 8, "band": [8, 12], "bandstructure": 8, "basno": 12, "be": 8, "beta": 4, "bool": 8, "bravais": 4, "brvtyp": 4, "builder": 8, "bulk": 8, "by": 8, "calc": 2, "calculated": 8, "calculation": 6, "can": 8, "card": [1, 4], "cards": [1, 2, 6, 8], "cbm": 8, "cd": 2, "cell": [1, 4, 6], "celldm": 4, "charge": 8, "chemenv": 8, "chemical": 8, "chemsys": 8, "cif": [2, 4, 6, 10, 12], "class": 1, "clone": 2, "co": 6, "composition": 8, "conc": 4, "config": [2, 4, 10, 12], "consider": 8, "considered": 8, "constant": 8, "content": [1, 2, 6], "control": 6, "conv": 6, "convention": 4, "convex": 8, "coordinate": 4, "corrected": 8, "cosab": 4, "cosac": 4, "cosbc": 4, "cr2": 8, "create": 1, "crystal": [4, 6, 8, 12], "crystalsystem": [8, 12], "csv": [2, 4], "cubic": [8, 12], "cutoff": 4, "data": [1, 4, 8], "database": [8, 12], "decomposes": 8, "def": 1, "degauss": 6, "density": 8, "deprecated": 8, "deprecation": 8, "description": 8, "dielectric": 8, "direct": 8, "division": 4, "docs": [2, 6, 12], "dos": 8, "dry": [9, 10, 12], "ecutrho": [4, 6], "ecutwfc": [4, 6], "efermi": 8, "elastic": 8, "elasticity": 8, "electronic": 8, "electrons": 6, "element": [4, 8, 10], "elements": 8, "else": 1, "emmet": 8, "end": 4, "energy": 8, "entry": 8, "eos": 8, "equilibrium": 8, "es": 8, "espresso": [0, 2, 3, 5, 6], "euhfo": 12, "ev": 8, "exclude": 8, "export": 12, "factor": 8, "false": [4, 6, 8, 10, 12], "fe": [4, 8], "fe2o": 8, "fermi": 8, "field": 4, "fields": [9, 11, 12], "fim": 8, "float": [4, 8], "for": 8, "force": 4, "format": 3, "formation": 8, "formula": [8, 10, 12], "formulas": 8, "fortran": 6, "function": 8, "functional": 4, "gamma": 4, "gap": 8, "general": 0, "generate": 1, "getcif": [0, 2, 5, 7, 8, 10, 12, 13], "git": [2, 12], "github": 2, "global": [4, 6], "gnu": 0, "gpa": 8, "gpl": 0, "grain": 8, "grid": [4, 6], "group": 8, "gz": 4, "has": 8, "help": 10, "hexagonal": 8, "homogeneous": 8, "htp": 2, "https": [2, 12], "hull": 8, "ibrav": [4, 6], "id": [10, 12], "ids": 8, "if": [1, 4], "ignore": 4, "in": [1, 8], "incar": 4, "including": 8, "index": 8, "init": [1, 2], "input": [2, 3, 6, 9, 12], "insertion": 8, "install": 2, "int": [4, 8], "international": 8, "ionic": 8, "is": [8, 12], "ja": 2, "keyword": [6, 8, 12], "kpoints": 4, "kppa": 4, "kshifts": 4, "kuo": 12, "k\u70b9": 4, "last": 8, "lda": 4, "length": 4, "li": 8, "license": [0, 2], "lies": 8, "linux": 0, "list": 8, "login": 12, "magnetic": 8, "magnetism": 8, "magnetization": 8, "main": 2, "make": 2, "material": [2, 3, 8, 10, 12], "materials": [0, 7, 8, 10, 12], "max": [8, 10], "maximum": 8, "metal": 8, "min": [8, 10], "minimum": 8, "missing": 6, "mode": [4, 5, 6], "modeproc": 1, "modulus": 8, "monkhorst": 4, "monoclinic": 8, "monty": 2, "mp": [2, 8, 10, 12], "mprester": 8, "mxl": 4, "namelist": [1, 4, 6], "nat": [4, 6], "natm": 4, "ncmp": 4, "nelements": 8, "nexclude": 4, "next": 12, "nm": 8, "nml": 2, "noncolin": 6, "none": [10, 12], "normalized": 8, "nosym": 6, "notation": 8, "nscf": [1, 4, 6], "nsites": 8, "nspin": 6, "ntyp": [4, 6], "num": 8, "number": [8, 12], "numpy": 2, "o3": [10, 12], "occupations": 6, "of": [0, 8], "on": 8, "openbabel": 2, "openmx": [0, 2, 3, 5, 6], "option": [1, 4, 6, 12], "optional": 6, "or": 8, "orbitals": 4, "ordering": 8, "origins": 8, "orthorhombic": 8, "outdir": 6, "output": [4, 6, 10, 12], "oxi": 8, "oxidation": 8, "paago": 12, "pandas": 2, "parameter": 4, "passed": 8, "path": 4, "pbe": 4, "phonon": 8, "piezoelectric": 8, "pip": 2, "pm": 12, "pmg": [4, 10, 12], "pmgrc": [2, 4, 10, 12], "point": 12, "poisson": 8, "poscar": [2, 4], "possible": 8, "pot": 4, "potcar": 4, "pp": [4, 6], "precise": 4, "precision": 4, "prefix": 6, "project": [0, 7, 8, 10, 12], "properties": [9, 11, 12], "property": 8, "provenance": 8, "pseudo": [4, 6], "psuedo": 4, "public": 0, "pw": [1, 4], "pwscf": 6, "py": 2, "pymatgen": [2, 3, 4, 10, 12], "pyproject": 2, "python": [0, 2, 4], "qe": [1, 2, 3, 6], "qemode": 1, "qeutils": 2, "quantum": [0, 2, 3, 5, 6], "quick": 4, "ratio": 8, "rbuo": 12, "reaction": 8, "read": 2, "readme": 2, "reconstructed": 8, "refractive": 8, "reserved": 0, "result": 12, "return": [1, 8], "reuss": 8, "rights": 0, "rmt": 4, "ruamel": 2, "run": 2, "sample": 2, "scf": [1, 4, 6], "scr": 1, "seaborn": 2, "self": 1, "shape": 8, "shear": 8, "shift": 4, "short": 8, "si": 8, "single": 8, "sites": 8, "smearing": 6, "space": 8, "spacegroup": [8, 12], "spd": 4, "sr": 10, "src": [1, 2], "standard": 4, "start": 4, "states": 8, "step": 4, "str": 8, "struct": 2, "structure": [1, 6, 8, 10, 12], "substrates": 8, "supercell": 4, "surface": 8, "surfaces": 8, "symbol": [8, 12], "symbols": 8, "symmetry": [8, 10, 12], "symprec": [10, 12], "system": [6, 8], "systems": 8, "table": 4, "tagged": 8, "target": [3, 10, 12], "task": 8, "tasks": 6, "template": [4, 6], "tetragonal": 8, "the": [0, 8], "theoretical": 8, "thermo": 8, "ti": 10, "tmpdir": 4, "to": 8, "tokyo": 0, "tolerance": [4, 6], "tools": 2, "total": 8, "tprnfor": 6, "trigonal": 8, "true": [4, 6, 8, 10, 12], "tstress": 6, "tuple": 8, "tutorial": 2, "type": [4, 8], "types": 8, "ubuntu": 0, "uncorrected": 8, "unique": 8, "units": 8, "universal": 8, "university": 0, "update": 1, "upf": 4, "use": [4, 6], "utils": 2, "utlo": 12, "value": [6, 8, 12], "values": 8, "vasp": [0, 2, 3, 5, 6], "vbm": 8, "ver": 0, "version": [0, 3, 9, 12], "voigt": 8, "vol": 4, "volume": 8, "vps": 2, "warnings": 8, "weighted": 8, "whether": 8, "wild": 8, "with": 8, "work": [6, 8], "workdir": 4, "xas": 8, "xfs": 2, "yaml": [2, 3, 4, 6, 8, 9, 10, 12], "{..": [4, 6], "{[": 4, "{range": 4, "|-": 2, "\u3001\u300c": 10, "\u3002(": 12, "\u3002)": [8, 12], "\u3002api\u30ad\u30fc": 12, "\u3002card": 4, "\u3002cif": 2, "\u3002fm": 8, "\u3002grid": 4, "\u3002md": 4, "\u3002quantum": [2, 4], "\u3002scf": 6, "\u3002triclinic": 8, "\u3002vasp": 2, "\u3002yaml": [10, 12], "\u3002\u307e\u305f": [2, 4, 8, 10, 12], "\u3002\u4f8b": [4, 10], "\u3002\u7701": 12, "\u301cend": 4, "\u3042\u3089\u304b\u3058\u3081": 12, "\u3042\u308a": [1, 4, 6, 10, 12], "\u3042\u308b": [1, 4, 6, 12], "\u3042\u308f\u305b": 4, "\u3044\u304f\u3064\u304b": 6, "\u3044\u308b": [4, 6, 8, 12], "\u304a\u3044": 10, "\u304a\u304d": [2, 6], "\u304a\u3051\u308b": 10, "\u304a\u3088\u3073": [0, 1, 2, 4, 6, 8, 10, 12], "\u304a\u308a": [0, 1, 8], "\u304b\u3069": 10, "\u304b\u3089": [0, 1, 2, 4, 6, 7, 8, 9, 10, 12], "\u304c\u3063": 4, "\u304c\u3069": 8, "\u304f\u3060": [2, 4, 6, 10, 12], "\u3053\u3068": [0, 1, 2, 4, 6, 7, 8, 9, 10, 12], "\u3053\u306e": [1, 4, 6, 8, 10, 12], "\u3053\u308c\u3089": [10, 12], "\u3054\u3068": [1, 4, 6, 10, 12], "\u3055\u3044": [2, 4, 6, 10, 12], "\u3057\u307e\u3057\u3087": 12, "\u3057\u307e\u305b": 3, "\u3059\u308b": [0, 2, 3, 4, 5, 7, 8, 9, 10, 11], "\u305a\u305d\u306e": 1, "\u305a\u308c": [8, 10, 12], "\u305b\u305a": 9, "\u305d\u306e": [0, 4, 6, 8, 10, 12], "\u305d\u308c\u305e\u308c": [4, 6], "\u305f\u3044": 6, "\u305f\u3060\u3057": 4, "\u305f\u3081": [0, 2, 3, 4, 10], "\u3067\u304d": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 12], "\u3067\u304d\u308b": [2, 6, 8, 10, 12], "\u3067\u3057\u3087": 12, "\u3067\u3059": [0, 2, 3, 4, 6, 7, 8, 9, 10, 12], "\u3067\u3082": [10, 12], "\u3068\u3044\u3046": [10, 12], "\u3068\u304a\u308a": [3, 4, 8, 10, 12], "\u3068\u3057": [1, 10], "\u3068\u3057\u3066": [0, 1, 2, 3, 4, 6, 8, 10, 12], "\u3068\u308a": 4, "\u3068\u308b": [1, 4], "\u3069\u306e": 12, "\u306a\u3044": [4, 10, 12], "\u306a\u304a": [2, 4, 10], "\u306a\u304c\u3089": 6, "\u306a\u3057": 4, "\u306a\u305a\u308c": 10, "\u306a\u3063": 4, "\u306a\u3069": [0, 1, 2, 4, 6, 7, 10, 12], "\u306a\u3082\u306e": 4, "\u306a\u308a": [6, 10, 12], "\u306a\u308b": [1, 2, 3, 4, 8, 10, 12], "\u306b\u3064\u3044\u3066": [1, 2, 4, 6, 10, 12], "\u306b\u307e\u3068\u3081": 1, "\u306b\u3088\u3063\u3066": [0, 2], "\u306b\u3088\u308a": [0, 4], "\u306b\u5bfe\u3059\u308b": 6, "\u306b\u5bfe\u5fdc": [0, 1, 3, 4, 6, 12], "\u306b\u95a2\u3059\u308b": [4, 6, 12], "\u306e\u3044": [8, 12], "\u306e\u3044\u305a\u308c": 8, "\u306e\u3044\u305a\u308c\u304b": 4, "\u306e\u307f": 4, "\u306e\u3088\u3046": [8, 10, 12], "\u306f\u3053\u306e": 10, "\u306f\u305d\u308c\u305e\u308c": 10, "\u307b\u304b": [1, 6, 8, 10, 12], "\u307e\u3057": 8, "\u307e\u3059": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 12], "\u307e\u305a": 2, "\u307e\u305b": 4, "\u307e\u305f": [2, 4, 6, 8, 10, 12], "\u307e\u3067": 12, "\u307e\u3068\u3081": [1, 8], "\u307e\u307e": [1, 4, 6, 10], "\u3082\u3061\u308d\u3093": 1, "\u3082\u3068": [0, 7], "\u3082\u306e": [4, 6, 10], "\u3088\u3044": 12, "\u3088\u3046": [4, 6, 8, 12], "\u3088\u308a": [8, 9, 10], "\u3089\u308c": [1, 4], "\u3089\u308c\u308b": 10, "\u308c\u307e\u305b": 4, "\u308c\u308b": [3, 4, 6, 8, 9, 10], "\u308f\u305a\u304b": 10, "\u30a2\u30af\u30bb\u30b9": 12, "\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb": [5, 13], "\u30a4\u30f3\u30c7\u30c3\u30af\u30b9": [4, 12], "\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30d5\u30a1\u30a4\u30eb": [2, 4, 6], "\u30aa\u30d7\u30b7\u30e7\u30f3": [2, 3, 4, 6, 9, 12], "\u30ab\u30c3\u30c8\u30aa\u30d5": [4, 6], "\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea": [4, 10, 12], "\u30ab\u30f3\u30de": [8, 10], "\u30ac\u30a4\u30c9": [5, 13], "\u30ad\u30fc": 10, "\u30ad\u30fc\u30d5\u30a1\u30a4\u30eb": 10, "\u30ad\u30fc\u30ef\u30fc\u30c9": 6, "\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3": 8, "\u30af\u30e9\u30b9": [1, 8], "\u30b3\u30d4\u30fc\u30e9\u30a4\u30c8": 5, "\u30b3\u30de\u30f3\u30c9": [2, 12], "\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30aa\u30d7\u30b7\u30e7\u30f3": 12, "\u30b3\u30de\u30f3\u30c9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9": [5, 11, 13], "\u30b3\u30e1\u30f3\u30c8": [8, 10], "\u30b5\u30a4\u30ba": 4, "\u30b5\u30a4\u30c8": [2, 12], "\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea": 6, "\u30b5\u30de\u30ea\u30fc": 12, "\u30b5\u30f3\u30d7\u30eb": [6, 12], "\u30b7\u30d5\u30c8": 4, "\u30b7\u30f3\u30dc\u30eb": 4, "\u30b9\u30ab\u30e9\u30fc": [4, 6, 12], "\u30bb\u30af\u30b7\u30e7\u30f3": 10, "\u30bb\u30c3\u30c8": [1, 2, 4, 12], "\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2": 0, "\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9": [0, 2, 8], "\u30bf\u30a4\u30d7": [4, 8], "\u30bf\u30fc\u30b2\u30c3\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3": 2, "\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9": 2, "\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9": 12, "\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb": [5, 11, 13], "\u30c4\u30fc\u30eb": [0, 2, 6, 7, 12, 13], "\u30c6\u30ad\u30b9\u30c8": 10, "\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb": [6, 10, 12], "\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8": 4, "\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb": 4, "\u30c6\u30fc\u30d6\u30eb": 4, "\u30c7\u30a3\u30ec\u30af\u30c8\u30ea": [2, 4, 6, 10, 12], "\u30c7\u30d5\u30a9\u30eb\u30c8": [4, 10, 12], "\u30c7\u30fc\u30bf": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 13], "\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb": [2, 3], "\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9": [0, 7, 8, 9, 10, 12], "\u30d0\u30f3\u30c9\u30ae\u30e3\u30c3\u30d7": [0, 7, 12], "\u30d0\u30fc\u30b8\u30e7\u30f3": [3, 5, 9, 12], "\u30d1\u30c3\u30b1\u30fc\u30b8": 8, "\u30d1\u30e9\u30e1\u30fc\u30bf": [0, 1, 2, 5, 6, 8, 9, 10, 12], "\u30d1\u30e9\u30e1\u30fc\u30bf\u30bb\u30c3\u30c8": 5, "\u30d1\u30e9\u30e1\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb": [2, 3, 5, 9, 11], "\u30d1\u30e9\u30e1\u30fc\u30bf\u30ea\u30b9\u30c8": [5, 11], "\u30d5\u30a1\u30a4\u30eb": [0, 2, 3, 4, 10, 12, 13], "\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8": [2, 5, 6, 9, 11, 12, 13], "\u30d5\u30a3\u30fc\u30eb\u30c9": [1, 4], "\u30d5\u30a9\u30fc\u30de\u30c3\u30c8": [6, 12], "\u30d6\u30ed\u30c3\u30af": [1, 4, 6, 12], "\u30d7\u30ed\u30b0\u30e9\u30e0": [0, 2, 3, 4, 6, 12], "\u30d7\u30ed\u30b0\u30e9\u30e0\u30d1\u30c3\u30b1\u30fc\u30b8": 0, "\u30d7\u30ed\u30b8\u30a7\u30af\u30c8": 0, "\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30b3\u30fc\u30c7\u30a3\u30cd\u30fc\u30bf\u30fc": 0, "\u30d8\u30eb\u30d7": [3, 9], "\u30d8\u30eb\u30d7\u30e1\u30c3\u30bb\u30fc\u30b8": 12, "\u30d9\u30af\u30c8\u30eb": 4, "\u30dd\u30c6\u30f3\u30b7\u30e3\u30eb": [4, 6], "\u30dd\u30c6\u30f3\u30b7\u30e3\u30eb\u30d5\u30a1\u30a4\u30eb": [2, 4, 6], "\u30de\u30c6\u30ea\u30a2\u30eb\u30ba\u30a4\u30f3\u30d5\u30a9\u30de\u30c6\u30a3\u30af\u30b9": 0, "\u30de\u30cb\u30e5\u30a2\u30eb": 4, "\u30e1\u30bd\u30c3\u30c9": 8, "\u30e1\u30c3\u30b7\u30e5": 4, "\u30e1\u30c3\u30bb\u30fc\u30b8": [3, 9], "\u30e2\u30b8\u30e5\u30fc\u30eb": 2, "\u30e2\u30fc\u30c9": [1, 6], "\u30e6\u30fc\u30b6": 12, "\u30e9\u30a4\u30bb\u30f3\u30b9": 5, "\u30e9\u30a4\u30d6\u30e9\u30ea": [2, 8, 10], "\u30ea\u30b9\u30c8": [4, 6, 8, 10, 12], "\u30ea\u30dd\u30b8\u30c8\u30ea": 2, "\u30ea\u30ea\u30fc\u30b9": 0, "\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9": 10, "\u30fb\u539f\u5b50\u91cf": 4, "\u30fb\u64ec\u30dd\u30c6\u30f3\u30b7\u30e3\u30eb\u30d5\u30a1\u30a4\u30eb": 4, "\u4e00\u3064": 8, "\u4e00\u539f": [0, 2, 3, 4, 6], "\u4e00\u5f0f": 0, "\u4e00\u6176": 0, "\u4e00\u6642\u30d5\u30a1\u30a4\u30eb": 4, "\u4e00\u81f4": 4, "\u4e00\u822c": 6, "\u4e00\u89a7": [9, 10, 12], "\u4e00\u9023": 6, "\u4e00\u90e8": 10, "\u4e0a\u304c\u308a": [3, 9], "\u4e0a\u66f8\u304d": [4, 6], "\u4e0a\u8a18": [2, 4, 6], "\u4e0a\u9650": [10, 12], "\u4e0b\u3052": [3, 9], "\u4e0b\u9650": [10, 12], "\u4e0e\u3048\u308b": 6, "\u4e88\u3081": 6, "\u4e88\u6e2c": 0, "\u4e95\u6238": 0, "\u4ed5\u69d8": [6, 12], "\u4ed6\u4eba": 12, "\u4ed8\u3051": [1, 3, 9], "\u4ed8\u3051\u308b": [4, 12], "\u4ed8\u5c5e": 0, "\u4ee3\u5165": [1, 6], "\u4ee5\u4e0a": [8, 10], "\u4ee5\u4e0b": [0, 2, 3, 4, 6, 8, 9, 10, 12], "\u4eee\u5b9a": [4, 12], "\u4efb\u610f": [6, 12], "\u4f46\u3057": 10, "\u4f4d\u7f6e": 10, "\u4f4e\u3044": 10, "\u4f5c\u6210": [1, 2, 4, 5, 10, 11], "\u4f7f\u3044": 6, "\u4f7f\u3044\u65b9": [5, 13], "\u4f7f\u3046": [6, 12], "\u4f7f\u3063": 12, "\u4f7f\u308f": [4, 8, 12], "\u4f7f\u7528": [2, 4, 12], "\u4f8b\u3048": 6, "\u4f8b\u5916": 6, "\u4f9d\u5b58": 0, "\u4fdd\u5b58": 10, "\u4fdd\u7ba1": 12, "\u500b\u5225": [1, 4, 6], "\u5024\u3084": [1, 6], "\u512a\u5148": [4, 6, 9], "\u5143\u7d20": [4, 10], "\u5165\u308c\u5b50": [6, 12], "\u5165\u529b": [0, 2, 3, 5, 9, 11], "\u5168\u304f": 1, "\u516c\u5f0f": 12, "\u516c\u958b": [8, 12], "\u5185\u5bb9": [1, 2, 4, 6, 10, 12], "\u5185\u90e8": 4, "\u518d\u69cb": 4, "\u5197\u9577": [3, 9], "\u51e6\u7406": 1, "\u51fa\u529b": [1, 4, 6, 9, 10, 11, 12], "\u51fa\u529b\u5148": [4, 10], "\u5206\u5272": 6, "\u5217\u578b": 8, "\u5217\u6319": [1, 4, 6, 8, 10, 12], "\u5224\u5b9a": 10, "\u5225\u9014": 2, "\u5229\u7528": [2, 4, 8], "\u5236\u5fa1": 10, "\u523b\u307f": 4, "\u524a\u9664": 4, "\u524d\u5f8c": 10, "\u52a0\u3048": 2, "\u52b9\u679c": [3, 9], "\u52d5\u4f5c": 5, "\u533a\u5207\u308a": [8, 10, 12], "\u533a\u5225": 3, "\u5358\u4e00": 8, "\u5358\u4f4d": 4, "\u539f\u5b50": [4, 10], "\u539f\u5b50\u7a2e": 4, "\u53b3\u5bc6": 10, "\u53c2\u7167": [2, 4, 6, 10, 12], "\u53ce\u675f": 6, "\u53d6\u308a": [1, 4, 6], "\u53d6\u308a\u8fbc\u307f": 6, "\u53d6\u308b": 8, "\u53d6\u5f97": [0, 1, 2, 4, 5, 7, 9, 10, 13], "\u53d7\u3051": [0, 3, 9], "\u53ef\u80fd": [0, 3, 4, 6, 8, 9, 10], "\u5404\u5165": 4, "\u5404\u51fa\u529b": 6, "\u5404\u7bc0": 4, "\u5408\u3046": 4, "\u5408\u308f": 6, "\u5408\u308f\u305b": 4, "\u5408\u81f4": 12, "\u5409\u898b": 0, "\u540c\u3058": [4, 6], "\u540c\u540d": 4, "\u540c\u7b49": 10, "\u5411\u3051": [3, 5, 6], "\u542b\u307e\u308c\u308b": 2, "\u542b\u3080": 4, "\u547c\u3070": 6, "\u56de\u6307\u5b9a": [3, 9], "\u56f2\u307f": 10, "\u56f2\u3080": 10, "\u56fa\u6709": 4, "\u57fa\u5e95": 1, "\u57fa\u672c": [4, 5, 6, 13], "\u5834\u5408": [1, 2, 4, 6, 10, 12], "\u5834\u6240": [2, 4], "\u5909\u3048": 6, "\u5909\u308f\u308b": [0, 2], "\u5909\u63db": [1, 4], "\u5909\u6570": [1, 2, 4, 10, 12], "\u5927\u304d\u3044": [8, 10], "\u5927\u304d\u304f": [0, 10], "\u5927\u5b66": 0, "\u5927\u5b66\u9662": 0, "\u5927\u6587\u5b57": 3, "\u59cb\u307e\u308a": 6, "\u59cb\u307e\u308b": [6, 10], "\u5b58\u5728": [6, 10], "\u5b66\u7fd2": 0, "\u5b66\u8853": 0, "\u5b89\u5168": 12, "\u5b89\u5b9a": 12, "\u5b9a\u7fa9": [4, 8, 10], "\u5b9f\u6570": [8, 10], "\u5b9f\u65bd": [6, 12], "\u5b9f\u884c": [1, 2, 3, 6, 9, 10, 12], "\u5b9f\u969b": 12, "\u5bfe\u5fdc": [0, 1, 2, 4, 6, 7, 8, 12], "\u5bfe\u79f0": [0, 7, 10, 12], "\u5bfe\u79f0\u6027": 12, "\u5bfe\u8c61": [2, 3], "\u5c06\u5927": 0, "\u5c0e\u51fa": 4, "\u5c0f\u3055\u3044": [8, 10], "\u5c0f\u3055\u304f": 10, "\u5c0f\u6587": 3, "\u5c3e\u5d0e": 0, "\u5c65\u6b74": 5, "\u5c71\u5f62": 0, "\u5e74\u5ea6": 0, "\u5ea7\u6a19": 4, "\u5eb7\u592a": 0, "\u5f15\u6570": [1, 12], "\u5f37\u5236": 1, "\u5f62\u5f0f": [2, 3, 4, 6, 8, 9, 10, 12], "\u5f71\u97ff": 10, "\u5f8c\u8005": [4, 12], "\u5f93\u3063": 6, "\u5fae\u7d30": 10, "\u5fc5\u8981": [1, 2, 4, 6, 10, 12], "\u5fdc\u3058": [0, 2, 4], "\u60c5\u5831": [1, 3, 4, 9, 10, 12], "\u6240\u6301": 0, "\u624b\u9806": 2, "\u6253\u3061\u6d88\u3057": [3, 9], "\u6271\u3044": [4, 6, 10], "\u6271\u3048\u308b": [2, 3], "\u6271\u308f": [10, 12], "\u6280\u8853": 0, "\u62c5\u5f53": 0, "\u62e1\u5f35": [5, 13], "\u62e1\u5f35\u5b50": [10, 12], "\u62ec\u5f27": 12, "\u6301\u3064": 12, "\u6307\u5b9a": [2, 3, 5, 8, 9, 10, 12], "\u63a2\u3057": 4, "\u63a5\u7d9a": [8, 9, 10, 12], "\u63a5\u7d9a\u5148": 10, "\u63db\u3048": 4, "\u64cd\u4f5c": 10, "\u64ec\u30dd\u30c6\u30f3\u30b7\u30e3\u30eb": 4, "\u64ec\u30dd\u30c6\u30f3\u30b7\u30e3\u30eb\u30d5\u30a1\u30a4\u30eb": [2, 4], "\u64ec\u539f\u5b50": 4, "\u652f\u63f4": 0, "\u6559\u5e2b": 0, "\u6570\u5024": [6, 10, 12], "\u6574\u5099": 0, "\u6574\u5408": 1, "\u6574\u6570": [8, 10], "\u6587\u5b57": [8, 10], "\u6587\u5b57\u5217": [6, 10, 12], "\u65b9\u5f0f": 12, "\u65b9\u6cd5": [2, 4, 10], "\u65e2\u5b58": 6, "\u662f\u5e38": 0, "\u6697\u9ed9": [10, 12], "\u66f4\u65b0": 1, "\u66f8\u304d": [6, 8, 10, 12], "\u66f8\u304d\u51fa\u3055": [4, 6, 10, 12], "\u66f8\u304d\u65b9\u3082": 12, "\u66f8\u304d\u8fbc\u307e": 12, "\u66f8\u304d\u8fbc\u307f": 12, "\u66f8\u304f": [10, 12], "\u66f8\u5f0f": [3, 4, 9, 12], "\u6700\u521d": 10, "\u6700\u9069": 4, "\u6709\u52b9": 10, "\u671f\u5f85": 0, "\u672c\u5c71": 0, "\u6750\u6599": [0, 7, 10, 12], "\u6761\u4ef6": [0, 2, 9, 10, 11, 12], "\u6771\u4eac": 0, "\u6771\u5317": 0, "\u683c\u5b50": [1, 4], "\u683c\u7d0d": [2, 4, 10, 12], "\u691c\u7d22": [0, 7, 9, 10, 11, 12], "\u6982\u8981": [5, 11, 13], "\u69cb\u6210": [0, 2, 4, 6, 10], "\u69cb\u6587": [4, 6], "\u69cb\u9020": [0, 1, 2, 3, 4, 6, 7, 9, 10, 12], "\u6a19\u6e96": 12, "\u6a5f\u68b0": 0, "\u6a5f\u80fd": [1, 4, 10], "\u6c42\u3081": 6, "\u6c7a\u307e\u308b": [1, 4], "\u6c7a\u3081": [4, 6], "\u6c7a\u5b9a": [4, 10], "\u6ce8\u76ee": 0, "\u6ce8\u8a18": 10, "\u6cf0\u52a9": 0, "\u6d3b\u7528": 0, "\u6d3e\u751f": 1, "\u6d41\u5100": 4, "\u6e96\u3058": 0, "\u6e96\u5099": 0, "\u6e96\u62e0": 10, "\u7121\u8996": [4, 10, 12], "\u7269\u6027": [0, 7, 10], "\u7269\u8cea": [0, 2, 7, 10, 12], "\u7279\u5225": [4, 6, 12], "\u7279\u5b9a": 0, "\u7279\u6027": 8, "\u7279\u6b8a": 10, "\u72ec\u7acb": 4, "\u72ec\u81ea": 1, "\u73fe\u5728": [0, 1, 2, 3, 6, 7, 10, 12], "\u73fe\u6642\u70b9": [4, 12], "\u7406\u5b66": 0, "\u7406\u8a08": [0, 2, 3, 4, 6], "\u74b0\u5883": [2, 4, 5, 10, 12], "\u751f\u6210": [0, 1, 2, 3, 4, 10, 12, 13], "\u7523\u696d": 0, "\u7528\u3044": [4, 6, 10], "\u7528\u610f": [0, 1, 2, 6, 10], "\u7559\u610f": 6, "\u7565\u6642": 12, "\u767b\u9332": 12, "\u76f4\u63a5": 4, "\u7701\u7565": 4, "\u771f\u507d": 8, "\u771f\u507d\u5024": 10, "\u77e5\u3089\u308c": 12, "\u7814\u7a76": 0, "\u7814\u7a76\u6240": 0, "\u7814\u7a76\u9662": 0, "\u78ba\u8a8d": [0, 9, 10, 12], "\u78c1\u6c17": 8, "\u793a\u3057": 12, "\u798f\u5cf6": 0, "\u798f\u7530": 0, "\u79c0\u8f14": 0, "\u79e9\u5e8f": 8, "\u7a2e\u985e": [0, 1, 2, 10, 12], "\u7a7a\u6b04": [1, 4, 6], "\u7a7a\u767d": [8, 10, 12], "\u7a7a\u884c": 6, "\u7a7a\u9593": 10, "\u7a7a\u9593\u7fa4": 12, "\u7b20\u677e": 0, "\u7b2c\u4e00\u539f\u7406": [3, 4, 6], "\u7b2c\u4e00\u539f\u7406\u8a08": 13, "\u7b87\u6240": [0, 2, 6], "\u7b87\u6761": [6, 8, 10, 12], "\u7b97\u5165": [2, 4, 13], "\u7b97\u7528": 0, "\u7ba1\u7406": 12, "\u7bc4\u56f2": [4, 6, 8, 10, 12], "\u7c21\u4fbf": 10, "\u7cbe\u5ea6": [0, 10], "\u7d20\u7a2e": [4, 12], "\u7d42\u4e86": [9, 10, 12], "\u7d44\u307f\u5408\u308f": [4, 6], "\u7d44\u6210": [0, 7, 10, 12], "\u7d44\u6210\u5f0f": 12, "\u7d50\u6676": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 12], "\u7d50\u679c": 10, "\u7d76\u7e01\u4f53": 12, "\u7dcf\u5408": 0, "\u7de9\u3084\u304b": 10, "\u7f6e\u304d": [4, 10], "\u8003\u616e": 10, "\u81ea\u52d5": [4, 12], "\u8457\u4f5c": 0, "\u884c\u3044": [1, 4, 6, 8, 12], "\u884c\u3046": [6, 10], "\u884c\u308f": 10, "\u884c\u5217": 4, "\u8868\u3055": 8, "\u8868\u3059": 8, "\u8868\u793a": [3, 9], "\u8868\u8a18": [8, 10], "\u88d5\u4e00": 0, "\u8907\u6570": [0, 3, 4, 6, 9, 10, 12], "\u8981\u7d20": 4, "\u898b\u3064": 10, "\u898b\u308b": 10, "\u8a08\u7b97": [0, 1, 2, 3, 4, 6, 10], "\u8a18\u53f7": 10, "\u8a18\u6cd5": [8, 10, 12], "\u8a18\u8f09": [4, 6, 12], "\u8a18\u8ff0": [1, 2, 4, 6, 8, 10, 12], "\u8a2d\u5b9a": [4, 6, 10, 12], "\u8a2d\u8a08": 0, "\u8a31\u5bb9": [4, 10], "\u8a55\u4fa1": [4, 6], "\u8a73\u7d30": [2, 4, 6, 12], "\u8a8d\u3081": 10, "\u8aac\u660e": [3, 9], "\u8aad\u307f\u8fbc\u307f": [3, 9], "\u8ca2\u732e": 5, "\u8ecc\u9053": 4, "\u8ee2\u8a18": 8, "\u8f9e\u66f8": [1, 6, 12], "\u8fc5\u901f": 0, "\u8fd1\u5e74": 0, "\u8fd4\u3057": 1, "\u8ffd\u52a0": [4, 5, 12], "\u901a\u308a": 4, "\u9032\u5c55": 0, "\u9069\u5207": 0, "\u9069\u7528": 10, "\u9078\u629e": 4, "\u90e8\u4e3b": 0, "\u90e8\u5206": [4, 10], "\u914d\u5217": [4, 6], "\u914d\u5e03": [0, 2], "\u914d\u7f6e": [2, 4, 6, 12], "\u9244\u4e5f": 0, "\u958b\u767a": 5, "\u95a2\u6570": 1, "\u95be\u5024": 10, "\u9664\u3044": 6, "\u9664\u5916": 12, "\u96db\u5f62": [0, 2, 6], "\u9752\u5c71": 0, "\u9805\u76ee": [4, 10, 11, 12], "\u9805\u76ee\u540d": 10, "\u9806\u5e8f": 4, "\u9ad8\u3044": 10, "\u9ad8\u307e\u308a": 10, "\u9ad8\u5ea6": 0, "\u9f8d\u7f8e": 0}, "titles": ["1. \u6982\u8981", "6. \u62e1\u5f35\u30ac\u30a4\u30c9", "2. \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9", "4. \u30b3\u30de\u30f3\u30c9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9", "5. \u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8", "\u7b2c\u4e00\u539f\u7406\u8a08\u7b97\u5165\u529b\u30d5\u30a1\u30a4\u30eb\u751f\u6210\u30c4\u30fc\u30eb (cif2x)", "3. \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb", "7.1. \u6982\u8981", "7.5. \u30d1\u30e9\u30e1\u30fc\u30bf\u30ea\u30b9\u30c8", "7.3. \u30b3\u30de\u30f3\u30c9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9", "7.4. \u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8", "7. CIF\u30c7\u30fc\u30bf\u53d6\u5f97\u30c4\u30fc\u30eb (getcif)", "7.2. \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb", "Cif2x Users Guide"], "titleterms": {"2x": [0, 3, 5, 13], "akaikkr": 4, "api\u30ad\u30fc": 12, "cif": [0, 3, 5, 11, 13], "content": 4, "contents": 13, "database": 10, "espresso": [1, 4], "fields": [8, 10], "getcif": [9, 11], "guide": 13, "mode": 1, "openmx": 4, "option": 10, "optional": 4, "properties": [8, 10], "quantum": [1, 4], "structure": 4, "tasks": 4, "users": 13, "vasp": 4, "\u3059\u308b": [1, 6, 12], "\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb": 2, "\u30ac\u30a4\u30c9": 1, "\u30ad\u30fc\u30ef\u30fc\u30c9": 8, "\u30b3\u30d4\u30fc\u30e9\u30a4\u30c8": 0, "\u30b3\u30de\u30f3\u30c9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9": [3, 9], "\u30bb\u30af\u30b7\u30e7\u30f3": 4, "\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb": [6, 12], "\u30c4\u30fc\u30eb": [5, 11], "\u30c7\u30fc\u30bf": [11, 12], "\u30d0\u30fc\u30b8\u30e7\u30f3": 0, "\u30d1\u30e9\u30e1\u30fc\u30bf": 4, "\u30d1\u30e9\u30e1\u30fc\u30bf\u30bb\u30c3\u30c8": [4, 6], "\u30d1\u30e9\u30e1\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb": [4, 6, 10, 12], "\u30d1\u30e9\u30e1\u30fc\u30bf\u30ea\u30b9\u30c8": 8, "\u30d5\u30a1\u30a4\u30eb": [5, 6], "\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8": [4, 10], "\u30e9\u30a4\u30bb\u30f3\u30b9": 0, "\u4f5c\u6210": [6, 12], "\u4f7f\u3044\u65b9": 2, "\u5165\u529b": [4, 6, 10, 12], "\u51fa\u529b": 8, "\u52d5\u4f5c": 0, "\u53d6\u5f97": [11, 12], "\u5411\u3051": 4, "\u57fa\u672c": 2, "\u5c65\u6b74": 0, "\u62e1\u5f35": 1, "\u6307\u5b9a": [4, 6], "\u6761\u4ef6": 8, "\u691c\u7d22": 8, "\u6982\u8981": [0, 7], "\u74b0\u5883": 0, "\u751f\u6210": [5, 6], "\u7b2c\u4e00\u539f\u7406\u8a08": [5, 6], "\u7b97\u5165": [5, 6], "\u8ca2\u732e": 0, "\u8ffd\u52a0": 1, "\u958b\u767a": 0, "\u9805\u76ee": 8}}) \ No newline at end of file