Microenvironment

The Microenvironment class is used to work with the model environment in which cells and substances are located.

To import this class use:

import ru.biosoft.physicell.biofvm.Microenvironment

All members of the Microenvironment class are presented below.

Members of the Microenvironment class

Class member

Description

mesh

Contains the grid of the external environment.

Example of usage.

double[] mesh.boundingBox

Contains an array of 6 values ​​- boundaries of the external environment [Xmin, Xmax, Ymin, Ymax, Zmin, Zmax].

Example of usage.

options

Contains settings for the external environment of the model.

Example of usage.

boolean options.simulate2D

Contains true if the model is two-dimensional.

Example of usage.

double[] options.X_range

Содержит массив [Xmin, Xmax], в котором первый элемент - минимальное значение координаты x внешней среды, а второй - максимальное.

Example of usage.

double[] options.Y_range

Содержит массив [Ymin, Ymax], в котором первый элемент - минимальное значение координаты y внешней среды, а второй - максимальное.

Example of usage.

RandomGenerator getRNG()

Returns the random number generator of the given microenvironment.

Example of usage.

int findDensityIndex(String substrate)

substrate - name of the substrate.

Returns the index (number) of the density of the substrate substrate.

Example of usage.

List<Cell> getAgents([metadata].class)

metadata - metadata about another class (the Cell class is almost always used).

Returns a list of all agents (cells) of the selected class.

Example of usage.

int getAgentsCount()

Возвращает количество всех агентов во внешней среде.