Proyectos
Ver en GitHub
hedhyw/BrillouinZones
Acerca de
Programs for constructing Brillouin zones in three- and two-dimensional space.
Diseño y multimediaCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalBrillouinZones
Programs for constructing Brillouin zones in three- and two-dimensional space. It was written to create images of Brillouin zones for the course of condensed matter physics.
How to use?
- Install dependencies (Python 3.10+):
pip3 install -r requirements.txt
- Run the drawers:
# First Brillouin zone in three-dimensional space
# (prompts for a lattice: body-centered, face-centered, primitive,
# hexagonal close-packed or base-centered).
python3 "./3d Brillouin Zone/index.py"
# Non-interactive: pass the lattice number (1..5) as an argument.
python3 "./3d Brillouin Zone/index.py" 3
# First several Brillouin zones in two-dimensional space.
python3 "./2d Brillouin Zone/index.py"
Configuration via environment variables:
BRILLOUIN_OUTPUT— output image path (defaultbrillouin_zone.pngfor 2D,brillouin_zone_3d.pngfor 3D);BRILLOUIN_ZONES— number of zones to highlight in the 2D drawer (default12);BRILLOUIN_NO_SHOW=1— do not open an image viewer after the 2D drawer finishes;MPLBACKEND=Agg— render the 3D figure to a file instead of opening a window (headless mode).
To edit the 2D lattice type (primitive, hexagonal or parallelogram), change the crystal initialization in 2d Brillouin Zone/index.py.
Development
pip3 install -r requirements-dev.txt
pytest tests
Examples



Explorar proyectos relacionados
Cargando…