BioChem.Compartments

# .BioChem.Compartments

Different types of compartments used in the package

## Information

# Compartments

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, e.g. 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, i.e., 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 Figure 1. The difference between the 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 one main compartment, and only one.

## Contents

Name | Description
--- | ---
Compartment | Default compartment (constant volume)
MainCompartment | Main compartment (constant volume)

Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos