Programming in Awk Language. LiStaLiA: Little Statistics Library in Awk. Part II

This article describes a new function of the LiStaLiA library. As I mentioned in Part I of this series of articles, I didn’t extensively test the library, so I am releasing it as an alpha version. Please let me know if you find any errors or if you improve the function, and feel free to send me your modified code!

CALCULATING STATISTICS PROPERTIES OF DATA SETS

The new functions perform a statistical analysis of the data set read by the function ReadData(). The source code of this new library functions is reported in the Appendix. The following list report all the descriptor calculated buy the functions.

Continue reading →

Madelung定数の計算

To all Japanese-speaking readers, this text is part of an experiment using AI translation and WordPress. We kindly ask for your understanding and cooperation. If you find value in this initiative, please let us know. Additionally, if you notice any translation inaccuracies, we would greatly appreciate it if you could contact us. You can find the original text in English, Chinese, Italian, and German by clicking the links.

親愛なる日本語を話す読者の皆様へ、これはワードプレスを使用したAI翻訳の実験です。私の成長と改善にご協力いただければ幸いです。私の取り組みを評価していただける場合は、ぜひお知らせください。翻訳に誤りを見つけた場合は、修正するためにメッセージをお送りください。英語、中国語、イタリア語、ドイツ語のオリジナルテキストは、リンクをクリックすることで見つけることができます。


以前の記事で、結晶の格子エネルギーにおける静電エネルギー項の計算について説明しました。この記事では、この項を計算する方法について詳しく説明し、また単純なイオン系におけるこの項の値を提供します。

晶体の総クーロン相互作用エネルギーは、個々の相互作用項の合計として与えられます。

\displaystyle V_{AB} = \frac{e^2}{4\pi \epsilon_0} \frac{Z_AZ_B}{r_{AB}} \hfill (1)

固体の結晶構造では、電荷qAとqBを持つイオン対の間の距離rABによって生じるクーロン相互作用力で構成されます。この和は、固体中のすべてのイオン対にわたって計算されます。

最初の近傍は負の重要な寄与を提供するため、この和は非常に遅く収束します。2番目の近傍原子はわずかに弱い正の項を生成します。このプロセスは無限遠まで続き、交互の符号でますます小さい値を通じて行われます。このようにして、陽イオンと陰イオンの間の引力が主導し、固体のエネルギーに有益な負の寄与を提供します。

Continue reading →

马德隆常数的计算(Madelung Constant)

Dear Chinese readers, this is an AI translation experiment using WordPress. Please bear with me as I continue to learn and improve. If you appreciate my efforts, please let me know. If you notice any errors in the translation, please send me a message to correct it. You can find the original text in English, Japanese, Italian, and German versions by clicking the respective links.

亲爱的中文读者,这是一个使用WordPress的AI翻译实验。请理解我仍在不断学习和改进。如果您欣赏我的努力,请让我知道。如果您在翻译中发现任何错误,请发送消息告知我以进行更正。您可以通过点击以下链接找到原文的英文,日文,意大利文和德文版本。


在上一篇文章中,我们介绍了晶体晶格能中的静电相互作用项,并指出该项包含一个与晶体结构有关的因子 A,即马德隆常数(Madelung constant)。本文将进一步介绍这一常数的计算方法,并给出几种典型离子晶格的计算实例。

在离子晶体中,静电相互作用能可以表示为所有离子对之间库仑势能的总和。对于相距 r_{AB} 的两个离子,其电荷分别为 q_A=Z_Ae 和 q_B=Z_Be,它们之间的静电势能为:

\displaystyle V_{AB} = \frac{e^2}{4\pi \epsilon_0} \frac{Z_AZ_B}{r_{AB}} \hfill (1)

其中,e 为元电荷,\epsilon_0 为真空介电常数,Z_A 和 Z_B 分别表示两个离子的带符号电荷数。晶体的总静电相互作用能可以通过对晶体中所有不同的离子对进行求和得到。

在典型的交替排列的离子晶格中,距离参考离子最近的异号离子产生较大的负能量贡献,而距离稍远的同号离子则产生较小的正能量贡献。随着考虑的离子距离不断增大,不同配位壳层的贡献通常呈现正负交替的特点。由于库仑相互作用随距离缓慢衰减,晶格求和需要特别注意收敛性。在稳定的离子晶体中,正负离子之间的静电吸引通常占主导地位,使总静电相互作用能为负,从而有利于晶体结构的稳定。

Continue reading →