Skip to content
cnlbob edited this page Aug 24, 2016 · 20 revisions

libMCell C++

The C++ version of libMCell is intended to provide a convenient and high performance interface to the capabilities of the MCell code base. This Wiki page describes some of the features of libMCell as it is being designed. It is a work in progress.

Purpose and Goal

libMCell C++ should do the following:

  • Provide the compute engine for the traditional MCell program.
  • Provide a C++ API for MCell applications written directly in C++.
  • Provide the backbone for a Python API which closely corresponds to the C++ API.
  • Provide an interface for CellBlender.
  • Provide both a C++ and Python interface for use with other software.

Event Model

The libMCell event model will implement an event-generator/event-listener interface. It will follow the "Trigger, Condition, Outcome" model described in earlier MCell documentation:

  • Trigger == an event
  • Condition == context of event
  • Outcome == what happens if conditions are met

The "Trigger" portion will consist of the following built-in events:

  • Time-change events:

    • t change
  • Reaction events: (what where when) mol a created mol a destroyed reaction named "my_rxn" checked reaction named "my_rxn" happens

  • Diffusion events: (p0, p1, t, collision list) mol a moved molecule a collides with molecule b mol a hits front or back of obj "sphere" or sphere[triangle i] mol a crosses from front or crosses from back of obj "sphere" or sphere[triangle i] mol a absorbed on front or back of obj "sphere" or sphere[triangle i]

  • Dynamic geometry events: obj "sphere" added obj "sphere" removed obj "sphere" changed

Clone this wiki locally