opendrift.models.openoil.adios.oil

Interface to the ADIOS oil database.

Module Contents

Classes

OpendriftOil

Functions

__require_gnome_oil__(f)

Attributes

logger

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.

opendrift.models.openoil.adios.oil.__require_gnome_oil__(f)[source]
class opendrift.models.openoil.adios.oil.OpendriftOil(o)[source]
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

property molecular_weight
property k0y: float
Return type:

float

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 :opendrift.models.openoil.adios.models.oil.oil.Oil
gnome_oil :dict
__repr__()[source]

Return repr(self).

json()[source]
make_full()[source]
Return type:

OpendriftOil

valid()[source]

Check whether this oil can be used in Opendrift simulations.

density_at_temp(t, unit='K')[source]

Return density at temperature (in Kelvin by default).

Return type:

float

kvis_at_temp(t, unit='K')[source]
Return type:

float

oil_water_surface_tension()[source]
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