opendrift.models.openoil.adios.models.oil.physical_properties
Main class that represents an oil record.
This maps to the JSON used in the DB
Having a Python class makes it easier to write importing, validating etc, code.
Module Contents
Classes
mixin for all classes that are a list of points with |
|
just like a list, but with the ability to turn it into JSON |
|
just like a list, but with the ability to turn it into JSON |
|
just like a list, but with the ability to turn it into JSON |
|
just like a list, but with the ability to turn it into JSON |
|
- class opendrift.models.openoil.adios.models.oil.physical_properties.RefTempList[source]
mixin for all classes that are a list of points with reference temperatures
- class opendrift.models.openoil.adios.models.oil.physical_properties.DensityPoint[source]
-
- method: str
- class opendrift.models.openoil.adios.models.oil.physical_properties.DensityList[source]
Bases:
opendrift.models.openoil.adios.models.common.utilities.JSON_List
,RefTempList
just like a list, but with the ability to turn it into JSON
A regular list can only be converted to JSON if it has JSON-able objects in it.
Note: must be subclassed, and the item_type attribute set
Initialize self. See help(type(self)) for accurate signature.
- item_type
- class opendrift.models.openoil.adios.models.oil.physical_properties.DynamicViscosityPoint[source]
-
- method: str
- class opendrift.models.openoil.adios.models.oil.physical_properties.DynamicViscosityList[source]
Bases:
opendrift.models.openoil.adios.models.common.utilities.JSON_List
,RefTempList
just like a list, but with the ability to turn it into JSON
A regular list can only be converted to JSON if it has JSON-able objects in it.
Note: must be subclassed, and the item_type attribute set
Initialize self. See help(type(self)) for accurate signature.
- item_type
- class opendrift.models.openoil.adios.models.oil.physical_properties.KinematicViscosityPoint[source]
-
- method: str
- class opendrift.models.openoil.adios.models.oil.physical_properties.KinematicViscosityList[source]
Bases:
opendrift.models.openoil.adios.models.common.utilities.JSON_List
,RefTempList
just like a list, but with the ability to turn it into JSON
A regular list can only be converted to JSON if it has JSON-able objects in it.
Note: must be subclassed, and the item_type attribute set
Initialize self. See help(type(self)) for accurate signature.
- item_type
- class opendrift.models.openoil.adios.models.oil.physical_properties.FlashPoint[source]
-
- method: str
- class opendrift.models.openoil.adios.models.oil.physical_properties.InterfacialTensionPoint[source]
-
- method: str
- class opendrift.models.openoil.adios.models.oil.physical_properties.InterfacialTensionList[source]
Bases:
opendrift.models.openoil.adios.models.common.utilities.JSON_List
,RefTempList
just like a list, but with the ability to turn it into JSON
A regular list can only be converted to JSON if it has JSON-able objects in it.
Note: must be subclassed, and the item_type attribute set
Initialize self. See help(type(self)) for accurate signature.
- item_type
- class opendrift.models.openoil.adios.models.oil.physical_properties.PhysicalProperties[source]
-
- flash_point: FlashPoint
- densities: DensityList
- kinematic_viscosities: KinematicViscosityList
- dynamic_viscosities: DynamicViscosityList
- interfacial_tension_air: InterfacialTensionList
- interfacial_tension_water: InterfacialTensionList
- interfacial_tension_seawater: InterfacialTensionList