utilities
Simon_Glatzel_fn(Pr, Tr)
Takes a reference pressure and temperature, and returns a Simon-Glatzel function [Simon and Glatzel, 1929] f(P, a, b) = (Tr ((P - Pr)/a + 1)^b).
Simon and Glatzel, 1929 | Simon F. and Glatzel G., 1929. unknown. Anorg. (Allg.) Chem.. 178, pp.309-312. |
Parameters:
Name | Type | Description | Default |
---|---|---|---|
Pr |
float
|
Reference pressure (Pa) |
required |
Tr |
float
|
Reference temperature (K) |
required |
Returns:
Type | Description |
---|---|
function
|
The Simon-Glatzel function |
Source code in terratools/properties/utilities.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
|
read_table(filename)
Reads a table from a packaged dataset within terratools.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename |
string
|
path to file |
required |
Returns:
Type | Description |
---|---|
numpy array
|
The table in the file in numpy array form. |
Source code in terratools/properties/utilities.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|