## 5. MemCom Databases

### 5.1. Browsing the Model Object's Database

The Model's MemCom Database can be browsed, either by issuing the appropriate Python command(s), or more comfortably, by means of a graphical browser. To open the database browser in the graphical user interface, select Object->Browse Database.... From the Python environment, assuming that the variable m points to a Model object,

m.db.browse()

has the same effect. The "db" sub-object of the Model object is the MemCom database object.

This will open the MemCom-Browser which can be used to view all datasets and to inspect the contents of any dataset.

### 5.2. B2000++/MemCom Databases

A B2000++ database contains meshes and solution fields stemming from a Finite-Element analysis using the B2000++ processor. It can be recognized by the ".b2m" suffix. It consists of a directory containing the following MemCom databases: "archives.mc", "gradients.mc", "factored.mc", "log.mc". With the exception of "archives.mc", which contains the meshes and most of the solution fields, depending on the processor(s), these databases may or may not exist. In addition the ".b2m" directory may contain one or several log files. When given the ".b2m" directory as the argument to the Model object constructor, the "archives.mc" database is opened automatically. For (old) B2000-v2 databases, the "gradients.mc" database is opened as well.

### 5.3. NSMB/MemCom Databases

The NSMB (Navier-Stokes Multi-Block) Finite-Volume flow solver makes use of MemCom for storage and retrieval of meshes and solution fields. baspl++ can read these databases. Since NSMB uses a cell-centered scheme (where the solution field values are defined at the centre of a finite-volume cell rather than at the nodes), baspl++ has the "displace_sfv" option to displace the nodes such that they coincide with the centres of the cells and ghost cells.