opendrift.models.openoil.adios.models.oil.bulk_composition
dataclass to store the compounds
Module Contents
Classes
object to hold bulk composition -- could be mass or volume fraction |
|
just like a list, but with the ability to turn it into JSON |
- class opendrift.models.openoil.adios.models.oil.bulk_composition.BulkComposition[source]
object to hold bulk composition – could be mass or volume fraction
- name: str = ''
- groups: list
- method: str = ''
- measurement: opendrift.models.openoil.adios.models.common.measurement.MassOrVolumeFraction
- comment: str = ''
- class opendrift.models.openoil.adios.models.oil.bulk_composition.BulkCompositionList[source]
Bases:
opendrift.models.openoil.adios.models.common.utilities.JSON_List
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