Compartments
Package with basic compartments
Package Contents
| Compartment Standard compartment (constant volume) | |
| MainCompartment Main compartment (constant volume) |
|
SOLUTIONS
|
|
|
||
|
|
Package with basic compartments
| Compartment Standard compartment (constant volume) | |
| MainCompartment Main compartment (constant volume) |
This package contains compartment models. All models using the BioChem package must inherit a compartment.
In order to be able to control the environment of the reaction during a simulation, a chemical reaction must take place in a restricted screened-off container. Within this container the basic physical properties, for example, volume and temperature, are the same for all reactions that take place and all substances contained in that container. In BioChem.Compartments this is solved using the Modelica inner-outer construct, that is, providing a "semiglobal" variable for a whole compartment declared using the inner prefix. Thus, all substances in a compartment can automatically refer to the compartment volume.
The classes in the package so far are illustrated in the figure below. The difference between both compartments are the icons. The reason for having both in the library is that it is needed for the SBML import and export. To be able to export a model to SBML, it needs to have only one main compartment.