vivarium.processes.derive_globals module¶
-
class
vivarium.processes.derive_globals.
DeriveGlobals
(initial_parameters=None)[source]¶ Bases:
vivarium.core.process.Deriver
Process for deriving volume, mmol_to_counts, and shape from the cell mass
-
defaults
= {'initial_mass': <Quantity(1339, 'femtogram')>, 'periplasm_volume_fraction': 0.3, 'width': 1}¶
-
name
= 'globals_deriver'¶
-
-
vivarium.processes.derive_globals.
length_from_volume
(volume, width)[source]¶ get cell length from volume, using the following equation for capsule volume, with V=volume, r=radius, a=length of cylinder without rounded caps, l=total length:
V = (4/3)*PI*r^3 + PI*r^2*a l = a + 2*r