An STM simulation python library.
Project description
stm_sim
An STM simulation python library from LDOS.
Installation
pip install -U stm-sim
Requirements
- ASE
- surface_construct
- Mayavi (optional)
Usage
from stm_sim.stm import STM
parchg_file = "PARCHG"
stm = STM(bias=(-0.1, 0.1))
stm.read_parchg(parchg_file)
x, y, z = stm.scan(scan_mode='constant_current', repeat=(2, 2), plot=True)
Parameters
scan_mode: default isconstant_current, supportconstant_heightandconstant_currentrepeat: repeat the simulated image along x,y axesplot: plot it with matplotlib or not, default isFalsestartpoint: set the start point to find height can save time, used forscan_mode='constant_current'.height:- The height for
scan_mode='constant_height'. - For
scan_mode='constant_current', it is for the height of tip to obtain the average current: h_tip = height + 0.76, 0.76 is the radius of carbon.- For
bottom=True, it use oldget_avg_current_from_height.
- For
- The height for
bottom: upper or bottom side of slab, default isFalse
TODO
- Export 2d data for external program plot.
- Generate INCAR for vasp task
- Support other program, like cp2k, fireball, fhi-aims, integrate multiwfn
- Use api design
- Autofocus method: height auto choose, current auto choose, bias auto choose
- 使用傅立叶变换,目标是主频频率需要满足特定的规则,需要扩包;黑白要分明,最好对半分;高度差要在一个范围里面,用户可定义
- 使用强化学习的方法,训练模型
- 可能得到多个不同的图样,返回最大差异的图样
- 默认频率的范围,用户可以手动确认
- 支持在台阶处的特殊处理
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stm_sim-0.4.tar.gz
(8.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
stm_sim-0.4-py3-none-any.whl
(7.7 kB
view details)
File details
Details for the file stm_sim-0.4.tar.gz.
File metadata
- Download URL: stm_sim-0.4.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43afaf5b2f4169ebc64d69aee5dcffd78af618d378f9c98626b99ed4f1711f08
|
|
| MD5 |
b33c71a482f82af9092a53e4153c9742
|
|
| BLAKE2b-256 |
7abe0fdce61136aed9a285adf9b7b193ece86a9586cd35ea884600c0498f2bf3
|
File details
Details for the file stm_sim-0.4-py3-none-any.whl.
File metadata
- Download URL: stm_sim-0.4-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2462841400508a5a976a5ef9265bbdc334042a184ab3a71138bf37f78e8856b
|
|
| MD5 |
05869eaefee8b5d215d07512d1ff6fd3
|
|
| BLAKE2b-256 |
9ed6a29c32e9ae57f9b1292e098b973c90748a9bface4bbfc33abdbb076ea1d2
|