opendrift.models.openoil.adios.oil
Interface to the ADIOS oil database.
Attributes
Exceptions
Common base class for all non-exit exceptions. |
Classes
Functions
Module Contents
- opendrift.models.openoil.adios.oil.logger
- exception opendrift.models.openoil.adios.oil.NotFullOil[source]
Bases:
Exception
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- class opendrift.models.openoil.adios.oil.OpendriftOil(o)[source]
- id: str
- type: str
- name: str
- API: float
- gnome_suitable: bool
- labels: List[str]
- location: str
- model_completeness: float
- product_type: str
- sample_date: str
- data: dict
- oil: adios_db.models.oil.oil.Oil
- gnome_oil: dict
- density_at_temp(t, unit='K')[source]
Return density at temperature (in Kelvin by default).
- Return type:
float
- property mass_fraction: numpy.ndarray
- Return type:
numpy.ndarray
- property bulltime: float
- Return type:
float
- property bullwinkle: float
- Return type:
float
- property emulsion_water_fraction_max: float
- Return type:
float
- vapor_pressure(temp)[source]
Calculate vapor pressure. This method is taken from the old oil_library.
Args:
temp: temperature in Kelvin.
Returns:
Array of vapor pressures for each component. Pascal.
- Return type:
float
- property molecular_weight
- property k0y: float
- Return type:
float