Name | PyOghma JSON |
Version |
0.0.32
JSON |
| download |
home_page | None |
Summary | A Python API for OghmaNano |
upload_time | 2024-10-09 10:03:44 |
maintainer | None |
docs_url | None |
author | None |
requires_python | None |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# PyOghma
**This project is currently in the early stages and no gaurantiees are made to it working.**
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](https://www.oghma-nano.com)
PyOghma may be installed using pip
```bash
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.
```python
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
- [@CaiWilliams](https://www.github.com/CaiWilliams)
Raw data
{
"_id": null,
"home_page": null,
"name": "PyOghma",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Cai Williams <cai.williams@physik.tu-chemnitz.de>",
"download_url": "https://files.pythonhosted.org/packages/e7/c3/2a5c61fb2fc8c812d6868a76744e5e4a0ddfe6217e68551ecc29d66f795d/pyoghma-0.0.32.tar.gz",
"platform": null,
"description": "\n# PyOghma\n**This project is currently in the early stages and no gaurantiees are made to it working.**\n\nA python API for OghmaNano allowing for the programmatic discription and exceution of drift-diffusion simulations.\n\n## Installation\nPrior to installing PyOghma it is critical that OghmaNano is installed. OghmaNano can be found to download at: [oghma-nano.com](https://www.oghma-nano.com)\n\nPyOghma may be installed using pip\n\n```bash\n python -m pip install PyOghma\n```\n \n## Usage/Examples\n\nIn 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.\n\n```python\nimport PyOghma as po\n\nOghma = po.OghmaNano()\nResults = po.Results()\n\n\nsource_simulation = \"\\exapmle\\pm6y6\\\"\n\nOghma.set_source_simulation(source_simulation)\n\nexperiment_name = 'NewExperiment'\n\nOghma.set_experiment_name(experiment_name)\n\nmobility = 1e-5\ntrap_desnsity = 1e-18\ntrapping_crosssection = 1e-20\nrecombination_crosssection = 1e-20\nurbach_energy = 40e-3\ntemperature = 300\nintensity = 0.5\n\n\nexperiment_name = 'NewExperiment' + str(1)\nOghma.clone('NewExperiment0')\n\nOghma.Optical.Light.set_light_Intensity(intensity)\nOghma.Optical.Light.update()\n\nOghma.Thermal.set_temperature(temperature)\nOghma.Thermal.update()\n\nOghma.Epitaxy.load_existing()\nOghma.Epitaxy.pm6y6.dos.mobility('both', mobility)\nOghma.Epitaxy.pm6y6.dos.trap_density('both', trap_desnsity)\nOghma.Epitaxy.pm6y6.dos.trapping_rate('both', 'free to trap',trapping_crosssection)\nOghma.Epitaxy.pm6y6.dos.trapping_rate('both', 'trap to free',recombination_crosssection)\nOghma.Epitaxy.pm6y6.dos.urbach_energy('both', urbach_energy)\nOghma.Epitaxy.update()\n\nOghma.add_job(experiment_name)\nOghma.run_jobs()\n\n```\n\n\n## Authors\n\n- [@CaiWilliams](https://www.github.com/CaiWilliams)\n",
"bugtrack_url": null,
"license": null,
"summary": "A Python API for OghmaNano",
"version": "0.0.32",
"project_urls": {
"Homepage": "https://github.com/CaiWilliams/pyOghma",
"Issues": "https://github.com/CaiWilliams/pyOghma/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c1c1a38c5f2f54a224b88bb9e2ed34b1941fcaaf4feb775142be61a52caec13f",
"md5": "e3ea9e8f274fbfa228953a45fa0683ca",
"sha256": "52b7d572e3f9ad773b1dbae87fea4bb87ef45286a5c83e7191decbc47db6382c"
},
"downloads": -1,
"filename": "pyoghma-0.0.32-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "e3ea9e8f274fbfa228953a45fa0683ca",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 35126,
"upload_time": "2024-10-09T10:03:41",
"upload_time_iso_8601": "2024-10-09T10:03:41.222207Z",
"url": "https://files.pythonhosted.org/packages/c1/c1/a38c5f2f54a224b88bb9e2ed34b1941fcaaf4feb775142be61a52caec13f/pyoghma-0.0.32-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e7c32a5c61fb2fc8c812d6868a76744e5e4a0ddfe6217e68551ecc29d66f795d",
"md5": "e1c3279cb7c204e5629cacb6691f32da",
"sha256": "e41fbf33473eea72230fbee724473f7a158dd6c177cd44fb8ec7577a5830efc2"
},
"downloads": -1,
"filename": "pyoghma-0.0.32.tar.gz",
"has_sig": false,
"md5_digest": "e1c3279cb7c204e5629cacb6691f32da",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 604341,
"upload_time": "2024-10-09T10:03:44",
"upload_time_iso_8601": "2024-10-09T10:03:44.087353Z",
"url": "https://files.pythonhosted.org/packages/e7/c3/2a5c61fb2fc8c812d6868a76744e5e4a0ddfe6217e68551ecc29d66f795d/pyoghma-0.0.32.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-09 10:03:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "CaiWilliams",
"github_project": "pyOghma",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pyoghma"
}