Overview

To launch a simulation, most of the time you will need two configuration files:

  • the Net Description

  • the Simulation Configuration based on the Net Description

Then the simulation is launched from the simulation configuration as seen in the previous chapter

Before learning how to write those files, we will introduce here the main PhysioBlocks concepts and how it assembles the global system.

Main concepts

Here are the main objects object you will have to handle to build Net Configuration files.

  • Net: a set of Blocks connected with Nodes.

  • Block: it defines a set of Fluxes and Internal Equations that can be enhanced with Model Components if necessary.

  • Node: it represents a location in the Net where the connected blocks share their Fluxes. Every node exposes one quantity named DOF (degree or freedom) per flux type exchanged at the node. The DOFs are exposed to every Block connected at the Node.

  • Model Components: they can be added to blocks to concatenante additional Internal Equations to blocks.

Assembling process

Based on the Net layout, we build the Global System:

  • Concatenating equations defined by the sum of the Fluxes shared at each Node.

  • Concatenating Internal Equation provided by Blocks and their Model Components.

Figure made with TikZ

Assembling process scheme for a simplified net

Now that we have in mind the assembling process of the Global System from the Nets, the next section will detail how to actually write the JSON configuration files.