Enums and Constants¶
Orientation¶
Orientation of a Complex.
- DOWN = -1
- NONE = 0
- UP = 1
- NOT_SET = 2
- ANY = 3
- DEFAULT = 4Value DEFAULT means NONE for volume complexes and UP for surface complexes.
Notification¶
- NONE = 0
- BRIEF = 1
- FULL = 2
WarningLevel¶
- IGNORE = 0Do something sensible and continue silently.
- WARNING = 1Do something sensible but emit a warning message.
- ERROR = 2Treat the warning as an error and stop.
VizMode¶
- ASCII = 0Readable molecule visualization output.
- CELLBLENDER_V1 = 1Binary molecule visualization output used by MCell3, format v1.Allows only limited length of species name (256 chars) anddoes not contain molecule IDs.
- CELLBLENDER = 2Binary molecule visualization output, format v2.
Shape¶
- UNSET = 0
- SPHERICAL = 1
- REGION_EXPR = 2
- LIST = 3
- COMPARTMENT = 4
SurfacePropertyType¶
- UNSET = 0
- REACTIVE = 1This surface class does not do anything by itself, but it can be used as a reactant inreaction rules.
- REFLECTIVE = 2If used as a surface property for a volume molecule it is reflected by any surface withthis surface class. This is the default behavior for volume molecules.If used for a surface molecule it is reflected by the border of thesurface with this surface class.Setting orientation in affected_complex_pattern allows selective reflection of volumemolecules from only the front or back of a surface or selective reflection of surfacemolecules with only a certain orientation from the surface’s border.Using m.ALL_MOLECULES as affected_complex_pattern has the effect that allvolume molecules are reflected by surfaces with this surface class and all surface moleculesare reflected by the border of the surfaces with this surface class.Using m.ALL_VOLUME_MOLECULES as affected_complex_pattern has the effect that allvolume molecules are reflected by surfaces with this surface class.Using m.ALL_SURFACE_MOLECULES as affected_complex_pattern has the effect that allsurface molecules are reflected by the border of the surface with this surface class.
- TRANSPARENT = 3If used as a surface property for a volume molecule it passes through all surfaces withthis surface class.If used for a surface molecule it passes through the border of the surface with this surfaceclass. This is the default behavior for surface molecules.Setting orientation in affected_complex_pattern allows selective transparency of volumemolecules from only the front or back of a surface or selective transparency for surfacemolecules with only a certain orientation from the surface’s border.To make a surface with this surface class transparent to all volume molecules,use m.ALL_VOLUME_MOLECULES for affected_complex_pattern.To make a border of the surface with this surface class transparent to all surface molecules,use m.ALL_SURFACE_MOLECULES for the affected_complex_pattern.Using m.ALL_MOLECULES for affected_complex_pattern has the effect that surfaces with this surface classare transparent to all volume molecules and borders of the surfaces with this surface class aretransparent to all surface molecules.
- ABSORPTIVE = 4If affected_complex_pattern refers to a volume molecule it is destroyed if it touches surfaces with this surface class.If affected_complex_pattern refers to a surface molecule it is destroyed if it touches the border of the surface withthis surface class, i.e., it is allowed to release surface molecules on absorptive surfaces, they get destroyed onlywhen they touch the border of this surface.Tick marks on name allow destruction from only one side of the surface for volume molecules or selective destructionfor surface molecules on the surfaces’s border based on their orientation.To make a surface with this surface class absorptive to all volume molecules, m.ALL_VOLUME_MOLECULEScan be used for affected_complex_pattern.To make a border of the surface with this surface class absorptive to all surface molecules,m.ALL_SURFACE_MOLECULES can be used for name.Using m.ALL_MOLECULES as affected_complex_pattern has the effect that surfaces with this surfaceclass are absorptive for all volume molecules and borders of the surfaces with this surface classare absorptive for all surface molecules.
- CONCENTRATION_CLAMP = 5Clamps concentration at a surface by periodically releasing molecules that correspondto the wall being a transparent boundary to the area with given concentration,and by absorbing all molecules that hit this surface.The molecules matching affected_complex_pattern are destroyed if they touch the surface (as if theyhad passed through), and new molecules are created at the surface, as if molecules had passed throughfrom the other side at a concentration value (units = M).Orientation marks may be used; in this case, the other side of the surface is reflective.Note that this command is only used to set the effective concentration of a volume molecule at a surface;it is not valid to specify a surface molecule.
- FLUX_CLAMP = 6Clamps flux at a surface by periodically releasing molecules that correspondto the wall being a transparent boundary to the area with given concentration.The clamped surface reflects these molecules.
RegionNodeType¶
Used internally to represent region trees.
- UNSET = 0
- LEAF_GEOMETRY_OBJECT = 1
- LEAF_SURFACE_REGION = 2
- UNION = 3
- DIFFERENCE = 4
- INTERSECT = 5
ReactionType¶
Used in reaction callbacks.
- UNSET = 0
- UNIMOL_VOLUME = 1
- UNIMOL_SURFACE = 2
- VOLUME_VOLUME = 3
- VOLUME_SURFACE = 4
- SURFACE_SURFACE = 5
MoleculeType¶
Used in molecule introspection and internally in checkpointing.
- UNSET = 0
- VOLUME = 1
- SURFACE = 2
BNGSimulationMethod¶
Specifies simulation method in exported BNGL, used in Model.export_to_bngl.
- NONE = 0
- ODE = 1
- SSA = 2
- PLA = 3
- NF = 4
CountOutputFormat¶
- UNSET = 0Invalid value.
- AUTOMATIC_FROM_EXTENSION = 1Output format is determined fom extension - .dat selects DAT file formatand .gdat selects GDAT file format.
- DAT = 2A two-column file with columns time and observable value is created.Each count must have its own unique file name.
- GDAT = 3A multi-column file with time and observable values is created.The first line of the file is a header that starts with a commentcharacter followed by time and then by the observable names.The order of observables is given by the order in which they were addedto the model.Can specify the same output file name for multiple observables.
Constants¶
- STATE_UNSET: str = STATE_UNSET
- STATE_UNSET_INT: int = -1
- BOND_UNBOUND: int = -1Represents cases when a component must not be bound in a pattern.
- BOND_BOUND: int = -2Represents bond type !+ in a pattern.
- BOND_ANY: int = -3Represents bond type !? in a pattern.
- PARTITION_EDGE_EXTRA_MARGIN_UM: float = 0.01Internal constant used to match partition setup when comparing models against their MDL variant.
- DEFAULT_COUNT_BUFFER_SIZE: int = 100Internal constant used to initialize buffer size for molecule and reaction counts.
- ALL_MOLECULES: str = ALL_MOLECULES
- ALL_VOLUME_MOLECULES: str = ALL_VOLUME_MOLECULES
- ALL_SURFACE_MOLECULES: str = ALL_SURFACE_MOLECULES
- DEFAULT_CHECKPOINTS_DIR: str = checkpoints
- DEFAULT_SEED_DIR_PREFIX: str = seed_
- DEFAULT_SEED_DIR_DIGITS: int = 5
- DEFAULT_ITERATION_DIR_PREFIX: str = it_
- AllMolecules: Species = AllMolecules
- AllVolumeMolecules: Species = AllVolumeMolecules
- AllSurfaceMolecules: Species = AllSurfaceMolecules
- ID_INVALID: int = -1
- NUMBER_OF_TRAINS_UNLIMITED: int = -1
- TIME_INFINITY: float = 1e140
- INT_UNSET: int = INT32_MAXThis is a special integer value that means that an argument was not set,its value is 2147483647.
- FLT_UNSET: float = FLT_MAXThis is a special floating-point value that means that an argument was not set,its value is 3.40282346638528859812e+38F.
- RNG_SIZE: int = 256Size of arrays of