Metadata-Version: 2.4
Name: unipress
Version: 1.6
Summary: This is a library developed by Institute of High Pressure Physics of Polish Academy of Sciences.
Author: Konrad Sakowski
Platform: any
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: pint
Requires-Dist: scipy
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: license-file
Dynamic: platform
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# unipress
This is a library developed by Institute of High Pressure Physics of Polish Academy of Sciences.

# Description

## Approximations

This submodule contains approximations of functions related to physical phenomena.

Functions:

- `tau_scoul1`, `tau_scoul2`: approximations of the Shockley-Read-Hall recombination capture time accounting for the attraction of the minority carrier by the Coulomb force. They depend on capture length to Coulomb length ratio, Coulomb length to screening distance ratio and original SRH parameter for the considered semiconductor material.

## GaN (Gallium Nitride)

The `unipress.gan` module provides models and parameters for GaN surfaces and materials.

### Adsorption Vibrational Free Energy (`unipress.gan.adsorption`)

Temperature-dependent vibrational contributions to the free energy of adsorbates on the GaN(0001) surface ($\Delta F_{\mathrm{vib}}$), obtained from DFT phonon calculations under MOVPE/HVPE growth conditions:
$$\Delta F_{\mathrm{vib}}(T) = F_{\mathrm{slab+adsorbate}}^{\mathrm{vib}}(T) - F_{\mathrm{slab}}^{\mathrm{vib}}(T)$$

- **Adsorbate species**: `H`, `NH`, `NH2`, `NH2br` (bridge), and `NH3`.
- **Surface models**: `Ga` (Ga-stabilized surface / on-top) and `VB` (valence-band degenerate states).
- **Methods**: Degree-3 polynomial (`method='poly'` or `_p`) and cubic spline with linear extrapolation (`method='spline'` or `_s`).

Usage example:

```python
from unipress import un
from unipress.gan import adsorption

# Using the unified fvib dispatcher:
f_poly = adsorption.fvib("H", "Ga", T=300 * un.K)
f_spline = adsorption.fvib("NH3", "VB", method="spline", T=500 * un.K)

# Or calling specific functions directly:
val = adsorption.fvib_H_Ga_p(300 * un.K)
val_celsius = adsorption.fvib_H_Ga_p(un.Quantity(25, "degC"))

# Get polynomial coefficients:
coeffs_norm = adsorption.get_fvib_coefficients("H", "Ga", normalized=True)
```




