Skip to content

Commit

Permalink
[186_LBE_contamination], issue #186, Implementation of Iodine Henry c…
Browse files Browse the repository at this point in the history
…onstant by Neuhausen, 2005.
  • Loading branch information
Sami Amestas committed Jul 19, 2024
1 parent 075be96 commit 5dd5ef6
Showing 1 changed file with 74 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,3 +449,77 @@ def range(self) -> List[float]:
vapour pressure correlation function.
"""
return [398.0, 1927.0]


class LBEIodineHenryConstantInterfaceNeuhausen2005(PropertyInterface):
"""
Liquid LBE *Iodine compounds Henry constant* property class
implementing the correlation by *neuhausen2005*.
"""
@range_warning
def correlation(self, T: float, p: float = atm,
verbose: bool = False) -> float:
"""
Returns the value of the *Iodine compounds Henry constant* 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:
Henry constant in :math:`[Pa]`
"""
return 10**((- 10407 / T) + 14.56)

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

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

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

@property
def long_name(self) -> str:
"""
str : Iodine Henry constant long name
"""
return "Henry constant of Iodine in LBE"

@property
def description(self) -> str:
"""
str : Iodine Henry constant description
"""
return f"{self.long_name} in liquid LBE"

@property
def range(self) -> List[float]:
"""
List[float] : Temperature validity range of the Iodine Henry constant
correlation function
"""
return [398.0, 1927.0]

0 comments on commit 5dd5ef6

Please sign in to comment.