API Reference
janaf.Table
dataclass
Represents a NIST-JANAF Thermochemical Table.
Source code in src/janaf/table.py
| Python | |
|---|---|
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | |
df
cached
property
The table as a polars DataFrame.
Columns
T(K): Temperature [K]Cp: Molar heat capacity at constant pressure [J/(K*mol)]S: Molar entropy [J/(K*mol)]-[G-H(Tr)]/T: Gibbs energy function [J/(K*mol)]H-H(Tr): Enthalpy increment [kJ/mol]delta-f H: Enthalpy of formationdelta-f G: Gibbs energy of formationlog Kf: Logarithm (base 10) of equilibrium constant of formationNote: Note string
to_xarray()
Convert the Table to a xarray Dataset.
Returns:
| Type | Description |
|---|---|
Dataset
|
The temperature coordinate is renamed from |
Raises:
| Type | Description |
|---|---|
ModuleNotFoundError
|
|
Source code in src/janaf/table.py
| Python | |
|---|---|
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | |
janaf.search(*, formula=None, name=None, phase=None)
Search a compound.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
formula
|
str | None
|
Regex for |
None
|
name
|
str | None
|
Regex for |
None
|
phase
|
str | None
|
Regex for |
None
|
Returns:
| Type | Description |
|---|---|
Table
|
The found table. |
Raises:
| Type | Description |
|---|---|
NotUnique
|
Occurs when search results are not unique. |
Source code in src/janaf/index.py
| Python | |
|---|---|
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | |