Skip to content

Commit 2c9c10b

Browse files
committed
Merge branch 'develop' into release-2.1
2 parents d5fe2d6 + 62d7a96 commit 2c9c10b

File tree

2 files changed

+46
-8
lines changed

2 files changed

+46
-8
lines changed

docs/sphinx/en/source/inputfiles/parameter_config.rst

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,28 @@ In the case of ``solver.type != "potts"``
7979
The name of structure file (e.g., POSCAR, cif) to be used as the initial structure.
8080
If not specified, the initial structure is generated randomly based on ``[[config.base_structure]]`` and ``[[config.defect_structure]]``.
8181

82+
- ``constraint_module``
83+
84+
**Format :** bool ("true" or "false")
85+
86+
**Description :**
87+
Whether to apply a constraint condition to configurations. The default value is ``false``.
88+
89+
When it is set to ``true``, the constraint condition is given as a user-defined function with the name ``constraint_func`` in ``constraint_module.py``. This function takes structure data of pymatgen.core.Structure type, and returns a boolean value. The module may also contain a function named ``constraint_energy`` that evaluates energy from the structure data in the ``shuffle`` operation.
90+
91+
- ``constraint``
92+
93+
**Format :** str
94+
95+
**Description :**
96+
The name of the user-defined function used for a constraint condition to configurations. If it is not specified, no constraint is applied. The default is unspecified.
97+
98+
The constraint condition is given as a function that takes structure data of pymatgen.core.Structure type and returns a boolean value. The parameter ``constraint`` specifies the name of the function in the form ``"module_name.function_name"``.
99+
When ``constraint_module`` is also set to ``true``, the value of ``constraint`` is adopted for the function name.
100+
82101
- ``[[config.base_structure]]`` section
83102

84-
``type`` and ``coords`` specify the atomic species that do not move in Monte Carlo calculation and their coordinates.
103+
``type`` and ``coords`` specify the atomic species that do not move in Monte Carlo calculation and their coordinates.
85104
If there are multiple atomic species, specify multiple [[config.base_structure]] sections.
86105

87106
- ``type``

docs/sphinx/ja/source/inputfiles/parameter_config.rst

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,27 @@
8888

8989
**説明 :**
9090
モンテカルロサンプリングの初期構造ファイル(POSCAR やCIF 形式など)を指定します.
91-
指定しなかった場合ランダムに生成されます.
91+
指定しなかった場合ランダムに生成されます.
9292

93+
- ``constraint_module``
94+
95+
**形式 :** bool型
96+
97+
**説明 :**
98+
配位に対して拘束条件を課すかどうかを指定します.デフォルト値は ``false`` です.
99+
100+
``true`` の場合,拘束条件はユーザが定義する関数で与えます.この関数は ``constraint_module.py`` 内に ``constraint_func`` という関数名で配置し,pymatgen.core.Structure 型の構造データを引数にとりbool型の値を返す関数として定義します.また, ``shuffle`` を行う際に構造データからエネルギー値を計算する ``constraint_energy`` 関数を定義して使用することもできます.
101+
102+
- ``constraint``
103+
104+
**形式 :** str型
105+
106+
**説明 :**
107+
配位に対する拘束条件を与えるユーザ定義関数を指定します.指定しない場合は拘束条件を課しません.デフォルト値は指定なしです.
108+
109+
拘束条件は,任意のモジュール内に配置された,pymatgen.core.Structure型の構造データを引数にとりbool型の値を返す関数として定義します. ``constraint`` パラメータには関数名を ``"モジュール名.関数名"`` の形式で指定します.
110+
``constraint_module`` が ``true`` に指定されている場合は, ``constraint`` パラメータの指定が優先されます.
111+
93112

94113
- ``[[config.base_structure]]`` セクション
95114

@@ -210,7 +229,7 @@
210229

211230
**形式 :** str型 もしくは str型のリスト
212231

213-
**説明 :** 原子種または原子グループの名前を指定します.複数の原子種・原子グループにまとめて同じ値を設定する場合はそれらをリストで指定します
232+
**説明 :** 原子種または原子グループの名前を指定します.複数の原子種・原子グループにまとめて同じ値を設定する場合はそれらをリストで指定します
214233

215234
- ``mu``
216235

@@ -220,26 +239,26 @@
220239

221240
- ``[[config.grandcanonical_move]]`` セクション
222241

223-
グランドカノニカルサンプリングにおいて原子種または原子グループの増減や原子種の入れ替えが起きる場合の入れ替わる原子種を指定します指定方法は以下のとおりです
242+
グランドカノニカルサンプリングにおいて原子種または原子グループの増減や原子種の入れ替えが起きる場合の入れ替わる原子種を指定します指定方法は以下のとおりです
224243

225244
- 原子種または原子グループの増減
226245

227246
- ``species``
228247

229248
**形式 :** str型 もしくは str型のリスト
230249

231-
**説明 :** 原子種または原子グループの名前を指定します.複数の原子種・原子グループを同時に増減させる場合はそれらをリストで指定します同種の原子種を複数個指定することもできます
250+
**説明 :** 原子種または原子グループの名前を指定します.複数の原子種・原子グループを同時に増減させる場合はそれらをリストで指定します同種の原子種を複数個指定することもできます
232251

233252
- 原子種の入れ替え
234253

235254
- ``from``, ``to``
236255

237256
**形式 :** str型 もしくは str型のリスト
238257

239-
**説明 :** 入れ替わる原子種または原子グループの名前を ``from A to B`` の形で指定します. ``from B to A`` の入れ替えも自動的に考慮されます ``from``, ``to`` で指定する原子種の数は同じで同一の defect sublattice に配置されているとします
258+
**説明 :** 入れ替わる原子種または原子グループの名前を ``from A to B`` の形で指定します. ``from B to A`` の入れ替えも自動的に考慮されます ``from``, ``to`` で指定する原子種の数は同じで同一の defect sublattice に配置されているとします
240259

241-
``grandcanonical_move`` の指定がないときは ``chemical_potential`` に記述される原子種・原子グループまたはその組が増減する指定が自動的に挿入されます
242-
一方 ``grandcanonical_move`` の指定が一つでもあればその操作のみが行われます
260+
``grandcanonical_move`` の指定がないときは ``chemical_potential`` に記述される原子種・原子グループまたはその組が増減する指定が自動的に挿入されます
261+
一方 ``grandcanonical_move`` の指定が一つでもあればその操作のみが行われます
243262

244263

245264
``solver.type = "potts"`` の場合

0 commit comments

Comments
 (0)