ThermoElasticSim 文档
欢迎使用ThermoElasticSim文档!
ThermoElasticSim 是一个用于计算材料弹性常数的分子动力学模拟教学软件。 它提供了零温和有限温度下的弹性常数计算功能,支持多种系综和恒温器算法。
快速入门
拓展内容
API参考
- 核心模块 (core)
- 弹性常数计算模块 (elastic)
- 显式形变法
- 基础工具与材料参数
- 材料常量
- 基准与工作流
Callabledataclass()AnyCrystallineStructureBuilderShearDeformationMethodStructureRelaxerMaterialParametersEAMAl1PotentialResponsePlotterBenchmarkConfigcalculate_c11_c12_traditional()calculate_c44_lammps_shear()calculate_c11_c12_robust()calculate_c11_c12_biaxial_orthorhombic()run_zero_temp_benchmark()run_size_sweep()
- 顶层导出(便于交叉引用)
- 力学计算
- 涨落法(开发中)
- 弹性波传播模拟
- 分子动力学引擎 (md)
- 接口定义
- 传播子
- 积分方案
- 已实现的方案
- 设计要点
IntegrationSchemeAndersenThermostatPropagatorBerendsenThermostatPropagatorForcePropagatorLangevinThermostatPropagatorMTKBarostatPropagatorNoseHooverChainPropagatorPositionPropagatorVelocityPropagatorNVESchemeBerendsenNVTSchemeAndersenNVTSchemeNoseHooverNVTSchemeLangevinNVTSchemecreate_nose_hoover_nvt_scheme()create_andersen_nvt_scheme()create_berendsen_nvt_scheme()create_langevin_nvt_scheme()create_nve_scheme()MTKNPTSchemecreate_mtk_npt_scheme()
- 恒温器
- 恒压器
- MD模拟器
- 势函数模块 (potentials)
- 接口模块 (interfaces)
- 工具模块 (utils)
特性概览
核心功能
- 弹性常数计算
零温显式形变法
有限温度形变法
支持立方晶系 (C11, C12, C44)
- 分子动力学引擎
NVE微正则系综
NVT正则系综(多种恒温器)
NPT等温等压系综(MTK算法)
- 势函数支持
EAM嵌入原子势(铝、铜)
Lennard-Jones势
Tersoff势
可扩展势函数接口
- 恒温器算法
Berendsen恒温器
Andersen随机碰撞
Langevin动力学
Nosé-Hoover链
技术特点
基于算符分离的模块化架构
JIT编译优化的关键算法
C++扩展加速的势函数计算
完整的单元测试覆盖
NumPy风格的文档
快速示例
计算FCC铝的弹性常数:
from thermoelasticsim.elastic.benchmark import run_zero_temp_benchmark
from thermoelasticsim.elastic.materials import ALUMINUM_FCC
from thermoelasticsim.potentials.eam import EAMAl1Potential
# 一键计算
results = run_zero_temp_benchmark(
material_params=ALUMINUM_FCC,
potential=EAMAl1Potential(),
supercell_size=(3, 3, 3)
)
# 输出结果
print(f"C11 = {results['elastic_constants']['C11']:.1f} GPa")
print(f"C12 = {results['elastic_constants']['C12']:.1f} GPa")
print(f"C44 = {results['elastic_constants']['C44']:.1f} GPa")
获取帮助
索引与搜索
参考文献
Max Born and Kun Huang. Dynamical Theory of Crystal Lattices. Oxford University Press, Oxford, 1954.
Woldemar Voigt. Lehrbuch der Kristallphysik. Teubner, Leipzig, 1928.
Max Born and Kun Huang. On the stability of crystal lattices. i. Mathematical Proceedings of the Cambridge Philosophical Society, 36(2):160–172, 1940. doi:10.1017/S0305004100017138.
D. C. Wallace. Thermodynamics of crystals. American Journal of Physics, 40(11):1718–1719, 1972. doi:10.1119/1.1987046.
M.J.P. Musgrave. Crystal Acoustics. Holden-Day, 1970.
Elwin Bruno Christoffel. Ueber die fortpflanzung von stössen durch elastische feste körper. Annali di Matematica Pura ed Applicata (1867-1897), 8(1):193–243, 1877.
AG Every. General closed-form expressions for acoustic waves in elastically anisotropic solids. Physical Review B, 22(4):1746, 1980.
J. Tersoff. Empirical interatomic potential for carbon, with applications to amorphous carbon. Phys. Rev. Lett., 61:2879–2882, Dec 1988. URL: https://link.aps.org/doi/10.1103/PhysRevLett.61.2879, doi:10.1103/PhysRevLett.61.2879.
Neil W. Ashcroft. Solid State Physics. World Publishing Corp., Beijing, 2004. ISBN 978-7-5062-6631-4.
O. H. Nielsen and Richard M. Martin. Quantum-mechanical theory of stress and force. Physical Review B, 32(6):3780–3791, 1985. doi:10.1103/PhysRevB.32.3780.
Y. Mishin, D. Farkas, M. J. Mehl, and D. A. Papaconstantopoulos. Interatomic potentials for monoatomic metals from experimental data and ab initio calculations. Physical Review B, 59(5):3393–3407, 1999. doi:10.1103/PhysRevB.59.3393.
M. I. Mendelev, S. Han, D. J. Srolovitz, G. J. Ackland, D. Y. Sun, and M. Asta. Development of new interatomic potentials appropriate for crystalline and liquid iron. Philosophical Magazine, 83(35):3977–3994, 2003. doi:10.1080/14786430310001613264.
Murray S. Daw and M. I. Baskes. Embedded-atom method: derivation and application to impurities, surfaces, and other defects in metals. Physical Review B, 29(12):6443–6453, 1984. doi:10.1103/PhysRevB.29.6443.
M. P. Allen and D. J. Tildesley. Computer Simulation of Liquids. Oxford University Press, Oxford, 1987.
Daan Frenkel and Berend Smit. Understanding Molecular Simulation: From Algorithms to Applications. Academic Press, San Diego, 2nd edition, 2002.
Steve Plimpton. Fast parallel algorithms for short-range molecular dynamics. Journal of Computational Physics, 117(1):1–19, 1995. doi:10.1006/jcph.1995.1039.
J. F. Nye. Physical Properties of Crystals: Their Representation by Tensors and Matrices. Oxford University Press, Oxford, 1985.
Shuichi Nosé. A unified formulation of the constant temperature molecular dynamics methods. The Journal of Chemical Physics, 81(1):511–519, 1984. doi:10.1063/1.447334.
William G. Hoover. Canonical dynamics: equilibrium phase-space distributions. Physical Review A, 31(3):1695–1697, 1985. doi:10.1103/PhysRevA.31.1695.
Glenn J. Martyna, Michael L. Klein, and Mark Tuckerman. Nosé–hoover chains: the canonical ensemble via continuous dynamics. The Journal of Chemical Physics, 97(4):2635–2643, 1992. doi:10.1063/1.463940.
M. Parrinello and A. Rahman. Polymorphic transitions in single crystals: a new molecular dynamics method. Journal of Applied Physics, 52(12):7182–7190, 1981. doi:10.1063/1.328693.
Loup Verlet. Computer "experiments" on classical fluids. i. thermodynamical properties of lennard-jones molecules. Physical Review, 159(1):98–103, 1967. doi:10.1103/PhysRev.159.98.
H. J. C. Berendsen, J. P. M. Postma, W. F. van Gunsteren, A. DiNola, and J. R. Haak. Molecular dynamics with coupling to an external bath. The Journal of Chemical Physics, 81(8):3684–3690, 1984. doi:10.1063/1.448118.
Hans C. Andersen. Molecular dynamics simulations at constant pressure and/or temperature. The Journal of Chemical Physics, 72(4):2384–2393, 1980. doi:10.1063/1.439486.
William C. Swope, Hans C. Andersen, Peter H. Berens, and Kent R. Wilson. A computer simulation method for the calculation of equilibrium constants for the formation of physical clusters of molecules: application to small water clusters. The Journal of Chemical Physics, 76(1):637–649, 1982. doi:10.1063/1.442716.
Mark Tuckerman, Bruce J. Berne, and Glenn J. Martyna. Reversible multiple time scale molecular dynamics. The Journal of Chemical Physics, 97(3):1990–2001, 1992. doi:10.1063/1.463137.
M. I. Mendelev, M. J. Kramer, C. A. Becker, and M. Asta. Analysis of semi-empirical interatomic potentials appropriate for simulation of crystalline and liquid al and cu. Philosophical Magazine, 88(12):1723–1750, 2008. doi:10.1080/14786430802206482.
G. Clavier, N. Desbiens, E. Bourasseau, V. Lachet, N. Brusselle-Dupend, and B. Rousseau. Computation of elastic constants of solids using molecular simulation: comparison of constant volume and constant pressure ensemble methods. Molecular Simulation, 43(17):1413–1422, November 2017. doi:10.1080/08927022.2017.1313418.
Junfan Xia, Yaolong Zhang, and Bin Jiang. The evolution of machine learning potentials for molecules, reactions and materials. Chemical Society Reviews, April 2025. doi:10.1039/D5CS00104H.