emulsim.elements.multicomponent_droplets module
Provides a simulation element representing multicomponent droplets.
Represents a single droplet comprised of many species. |
|
Element representing many multicomponent droplets. |
- class MulticomponentDroplet(position: ndarray, radius: float, amounts: ndarray | None = None)[source]
Bases:
SphericalDropletRepresents a single droplet comprised of many species.
- Parameters:
- data
- classmethod from_composition(position: ndarray, radius: float, phis: ndarray) MulticomponentDroplet[source]
- class MulticomponentDropletsElement(data: ndarray | None = None, parameters: dict[str, Any] | None = None)[source]
Bases:
SphericalDropletsElementElement representing many multicomponent droplets.
- Parameters Dictionary:
droplet_concentration: Concentration inside droplets that is used to calculate the total amount of material in droplets (default=1.0)
plot_args: Extra arguments for plotting this element (default={})
- Parameters:
data – The data describing the state
parameters – Additional parameters that affect the element
Parameters of MulticomponentDropletsElement:
- plot_args
Extra arguments for plotting this element (Default value:
{})- droplet_concentration
Concentration inside droplets that is used to calculate the total amount of material in droplets (Default value:
1.0)
- droplet_class
alias of
MulticomponentDroplet
- plot(ax=None, *args, **kwargs)[source]
Plot all droplets of this element.
- Parameters:
{PLOT_ARGS}
**kwargs – All additional arguments are forwarded to
droplets.emulsions.Emulsion.plot().