Skip to main content

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 is constant_current, support constant_height and constant_current
  • repeat: repeat the simulated image along x,y axes
  • plot: plot it with matplotlib or not, default is False
  • startpoint: set the start point to find height can save time, used for scan_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 old get_avg_current_from_height.
  • bottom: upper or bottom side of slab, default is False

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


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.3.3.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stm_sim-0.3.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file stm_sim-0.3.3.tar.gz.

File metadata

  • Download URL: stm_sim-0.3.3.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.10

File hashes

Hashes for stm_sim-0.3.3.tar.gz
Algorithm Hash digest
SHA256 6b3e2e68028e8de4b56279ee472ed1efe259a4d61613bc4f786729f6cc5a5b0c
MD5 cd7b6828047ff96533f9b694cfc3f73f
BLAKE2b-256 dcad621df815609077d70fbdcb26dc56722929cd072195a580820f9279de7157

See more details on using hashes here.

File details

Details for the file stm_sim-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: stm_sim-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.10

File hashes

Hashes for stm_sim-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 06490c771be4cef6fa5ce232024b23814ae3605caee1de1b253ed5b695d79042
MD5 df74f2202be3188af5f0c9bfa5c86313
BLAKE2b-256 e665ab66848a0042131ae14fef4bd23212c24f065f73fbf61b6430514eb53dc4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page