Model

The model module of geos-mesh package contains data model.

geos.mesh.model.CellTypeCounts filter

CellTypeCounts stores the number of elements of each type.

class geos.mesh.model.CellTypeCounts.CellTypeCounts[source]

Bases: object

CellTypeCounts stores the number of cells of each type.

addType(cellType)[source]

Increment the number of cell of input type.

Parameters:

cellType (int) – cell type

getTypeCount(cellType)[source]

Get the number of cells of input type.

Parameters:

cellType (int) – cell type

Returns:

number of cells

Return type:

int

print()[source]

Print counts string.

Returns:

counts string.

Return type:

str

setTypeCount(cellType, count)[source]

Set the number of cells of input type.

Parameters:
  • cellType (int) – cell type

  • count (int) – number of cells