bellini.groups.Solution

class bellini.groups.Solution(mixture, solvent, **values)[source]

Bases: bellini.groups.Liquid

A substance or a mixture dissolved in a solvent

__init__(mixture, solvent, **values)[source]
Parameters
  • mixture (Mixture or Substance) – The solutes in the Solution. Can be fed an individual Substance (which is converted into a Mixture) or a Mixture itself.

  • solvent (Solvent) – The solute in the Solution.

  • **values – Extra values to be stored

Methods

__init__(mixture, solvent, **values)

Parameters
  • mixture (Mixture or Substance) -- The solutes in the Solution. Can be fed an individual Substance

add_dict_attr(name)

aliquot(volume)

Return an aliquot of itself, as well as the remaining source solution

copy()

Return a copy of itself

Attributes

concentration

The concentration of the solution, if there is only one solute dissolved

concentrations

The concentrations of all solutes dissolved

g

A networkx graph representing how the group was constructed

moles

The number of moles of each substance in the solution

name

A string used to represent the Group

volume

The volume of the solution

aliquot(volume)[source]

Return an aliquot of itself, as well as the remaining source solution

Parameters

volume (Quantity (volume)) – The amount of liquid to aliquot out of the current solution

Returns

  • aliquot (Solution) – The aliquot drawn from the initial solution

  • source (Solution) – The remaining solution after the aliquot has been removed

property concentration

The concentration of the solution, if there is only one solute dissolved

property concentrations

The concentrations of all solutes dissolved

copy()[source]

Return a copy of itself

property g

A networkx graph representing how the group was constructed

property moles

The number of moles of each substance in the solution

property name

A string used to represent the Group

property volume

The volume of the solution