A Python API for OghmaNano
Project description
PyOghma
A python API for OghmaNano allowing for the programmatic discription and exceution of drift-diffusion simulations.
Installation
Prior to installing PyOghma it is critical that OghmaNano is installed. OghmaNano can be found to download at: oghma-nano.com
PyOghma may be installed using pip
python -m pip install PyOghma
Usage/Examples
In order to use PyOgham a soruce simulation generated by OghamNano must be generated, and the sim.json within sim.Oghma extracted. Once compleated modifications upon this simulation may be made programatically as in the example below by PyOghma.
import PyOghma as po
Oghma = po.OghmaNano()
Results = po.Results()
source_simulation = "\exapmle\pm6y6\"
Oghma.set_source_simulation(source_simulation)
experiment_name = 'NewExperiment'
Oghma.set_experiment_name(experiment_name)
mobility = 1e-5
trap_desnsity = 1e-18
trapping_crosssection = 1e-20
recombination_crosssection = 1e-20
urbach_energy = 40e-3
temperature = 300
intensity = 0.5
experiment_name = 'NewExperiment' + str(1)
Oghma.clone('NewExperiment0')
Oghma.Optical.Light.set_light_Intensity(intensity)
Oghma.Optical.Light.update()
Oghma.Thermal.set_temperature(temperature)
Oghma.Thermal.update()
Oghma.Epitaxy.load_existing()
Oghma.Epitaxy.pm6y6.dos.mobility('both', mobility)
Oghma.Epitaxy.pm6y6.dos.trap_density('both', trap_desnsity)
Oghma.Epitaxy.pm6y6.dos.trapping_rate('both', 'free to trap',trapping_crosssection)
Oghma.Epitaxy.pm6y6.dos.trapping_rate('both', 'trap to free',recombination_crosssection)
Oghma.Epitaxy.pm6y6.dos.urbach_energy('both', urbach_energy)
Oghma.Epitaxy.update()
Oghma.add_job(experiment_name)
Oghma.run_jobs()
Authors
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
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
File details
Details for the file pyoghma-0.0.45.tar.gz.
File metadata
- Download URL: pyoghma-0.0.45.tar.gz
- Upload date:
- Size: 42.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d134cce033bfb9a55541fbcbae114900416e21a329819f288b2a9868c5af535
|
|
| MD5 |
10a721ffd0251b1fb9e1c65124fc8f6e
|
|
| BLAKE2b-256 |
9ab5b3a27126cd382cf1dd038d668d9740fa090254a4c860e99381774c3975e9
|
File details
Details for the file pyoghma-0.0.45-py2.py3-none-any.whl.
File metadata
- Download URL: pyoghma-0.0.45-py2.py3-none-any.whl
- Upload date:
- Size: 37.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1de2b9668a25f5fb64ca966413c2822818bb8c796e94e4ddf63eac7833eaafe
|
|
| MD5 |
0368c865a9b7ce577ef67bad46c5663e
|
|
| BLAKE2b-256 |
e51c5333ddf3bba2d4a5f3008c7d2e55633c471d77d77e9018886f264acf0d81
|