Bamboost

bamboost.core.simulation.groups

Attributes

  • log=BAMBOOST_LOGGER.getChild(__name__)

Functions

get_git_status(repo_path) -> _GitStatus
Arguments:
  • repo_path

Classes

GroupMeshes

GroupMeshes(self, simulation)
Arguments:
  • simulation:'_Simulation'
Attributes:
  • _simulation=bamboost.core.simulation.groups.GroupMeshes(simulation)
GroupMeshes.__getitem__(self, key) -> GroupMesh[_MT]
Arguments:
  • key:str
GroupMeshes.add(self, nodes, cells, name=DEFAULT_MESH_NAME, cell_type=CellType.TRIANGLE) -> None

Add a mesh with the given name to the simulation.

Arguments:
  • nodes:numpy.numpy.ndarray

    Node coordinates

  • cells:numpy.numpy.ndarray

    Cell connectivity

  • name:str=bamboost.constants.DEFAULT_MESH_NAME

    Name of the mesh

  • cell_type:CellType=bamboost.core.simulation.CellType.bamboost.core.simulation.CellType.TRIANGLE

    Cell type (default: "triangle"). In general, we do not care about the cell type and leave it up to the user to make sense of the data they provide. However, the cell type specified is needed for writing an XDMF file. For possible types, consult the XDMF/paraview manual.

_GitStatus

Attributes:
  • origin:str
  • commit:str
  • branch:str
  • patch:str

GitItem

GitItem(self, name, attrs, patch)
Arguments:
  • name:str
  • attrs:[str, str]
  • patch:bytes
Attributes:
  • name=bamboost.core.simulation.groups.GitItem(name)
  • branch=status['branch']
  • commit=status['commit']
  • origin=status['origin']
  • patch=patch.decode()
GitItem.__repr__(self) -> str