Note

本翻訳は機械翻訳によるものです.翻訳内容と英語版との間に齟齬や矛盾がある場合は,英語版が優先されます.

fix setPropertyAtom#

構文#

fix ID group-ID setPropertyAtom keywords values ...
  • ID is documented in fix command, the group-ID is ignored for this command

  • setPropertyAtom = style name of this fix command

  • the following keywords/values pairs are necessary

  • keywords = name, isScalar or isVector, scalarValue or vectorValue, replace or add and/or rate, regionName

    • name value = name of the atom property to be set

    • isScalar value = yes or no

      • scalarValue value = scalar value of the property to be set if isScalar = yes

    • isVector value = yes or no

      • vectorValue values = vector components of the property to be set if isVector = yes

    • replace value = yes or no

    • add value = yes or no

      • rate value = yes or no if add = yes

    • regionName value = region-ID in which the atom property is set

例#

fix 5 all setPropertyAtom name surfaceLiquidContent isScalar yes scalarValue 0.005 add yes rate yes regionName wet
fix 5 all setPropertyAtom name angmom isVector yes vectorValue 100 0 0 replace yes regionName change

説明#

領域内のすべての粒子のプロパティの値を、1回限りまたは継続的に設定または追加します。設定する粒子プロパティの名前は name キーワードで指定され、スカラーまたはベクトルのプロパティにすることができます。これは、 fix property/atom コマンドで定義されたプロパティにすることもできます。スカラープロパティの場合、isScalar を yes として指定し、スカラー値は scalarValue で与えられます。同様にベクトルプロパティの場合、isVector = yes とし、ベクトル成分は vectorValue で与えられます。

replace と add キーワードは、値がどのように変更されるかを決定します。replace の場合、指定された値は直接現在の値を置き換えます(1回限りの操作)。add の場合、指定された値は現在の値に追加されます。add = yes の場合、キーワード rate を使用して、指定された値を時間の経過とともに粒子に継続的に追加することもできます。この場合、scalarValue または vectorValue で指定された値は1秒あたりの単位になります。

粒子を選択する領域は regionName キーワードで指定されます。指定された領域は、あらかじめ region コマンドで定義されている必要があります。regionName が指定されていない場合、fixはシミュレーション領域内のすべての粒子に適用されます。

Restart, fix_modify, output, run start/stop, minimise info#

このfixに関する情報は binary restart files には書き込まれません。このfixに関連する fix_modify オプションはありません。さまざまな output commands がアクセスするためのグローバルまたは粒子ごとの量は、このfixによって保存されません。このfixのパラメータは、run コマンドの start/stop キーワードと一緒に使用することはできません。このfixは energy minimisation 中には呼び出されません。

制限事項#

atom_style にその属性がない場合、粒子プロパティ(例:mol、q、またはvolume)を設定することはできません。

isScalar と isVector を両方とも yes にすることはできず、replace と add を両方とも yes にすることもできません。

関連コマンド#

set

デフォルト#

なし