Skip to content

Commit

Permalink
[186_LBE_contamination], issue #186, Implementation of Thallium vapou…
Browse files Browse the repository at this point in the history
…r pressure by Landolt, 1991.
  • Loading branch information
Sami Amestas committed Jul 19, 2024
1 parent 48bab57 commit 075be96
Showing 1 changed file with 74 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,3 +375,77 @@ def range(self) -> List[float]:
constant correlation function.
"""
return [398.0, 1927.0]


class LBEThalliumVapourPressureInterfaceLandolt1991(PropertyInterface):
"""
Liquid LBE *Thallium compounds vapour pressure* property class
implementing the correltion by *landolt1991*.
"""
@range_warning
def correlation(self, T: float, p: float = atm,
verbose: bool = False) -> float:
"""
Returns the value of the *Thallium compounds vapour pressure* by
applying the property correlation.
Parameters
----------
T : float
Temperature in :math:`[K]`
p : float, optional
Pressure in :math:`[Pa]`, by default the atmospheric pressure
value, i.e., :math:`101325.0 Pa`
verbose : bool, optional
`True` to tell the decorator to print a warning message in case of
range check failing, `False` otherwise. By default, `False`
Returns
-------
float:
pressure in :math:`[Pa]`
"""
return 1.25 * 10**((- 9463 / T) + 13.264 - 0.892 * log(T))

@property
def name(self) -> str:
"""
str : Name of the property
"""
return "P_LBETl"

@property
def correlation_name(self) -> str:
"""
str : Name of the correlation
"""
return "landolt1991"

@property
def units(self) -> str:
"""
str : Vapour pressure unit
"""
return "[Pa]"

@property
def long_name(self) -> str:
"""
str : Thallium vapour pressure long name
"""
return "Vapour pressure of Thallium in LBE"

@property
def description(self) -> str:
"""
str : Thallium vapour pressure description
"""
return f"{self.long_name} in liquid LBE"

@property
def range(self) -> List[float]:
"""
List[float] : Temperature validity range of the thallium
vapour pressure correlation function.
"""
return [398.0, 1927.0]

0 comments on commit 075be96

Please sign in to comment.