Material Point Managers
Material Point Managers are responsible for the connectivity between material points and cells. They track the material points and cells and update the connectivity between them. Furthermore, they provide the active cells, which are the cells that contain material points.
- class edelweissmeshfree.mpmmanagers.base.mpmmanagerbase.MPMManagerBase[source]
The MPMManagerBase class is an abstract base class for all material point managers. If you want to implement a new material point manager, you have to inherit from this class.
Methods
Returns the set of active cells, which have been determined during the last connectivity update.
Update the connectivity between observed cells and material points.
- abstractmethod getActiveCells()[source]
Returns the set of active cells, which have been determined during the last connectivity update.
- Returns:
The set of active cells.
- Return type:
- abstractmethod updateConnectivity()[source]
Update the connectivity between observed cells and material points. Returns the truth value of a change during the last connectivity update.
- This method will:
assign all observed material points the cells in which they currently reside.
assign all active cells the material points which are residing in the cell.
- Returns:
The truth value of change.
- Return type:
bool
Simple Material Point Manager
- class edelweissmeshfree.mpmmanagers.simplempmmanager.SimpleMaterialPointManager(materialPointCells, materialPoints)[source]
A very simplistic manager for material points and cells.
- Parameters:
materialPointCells (list[CellBase]) – The list of cells.
materialPoints (list[MaterialPointBase]) – The list of material points.
Methods
getActiveCells
updateConnectivity
- _checkIfMPPartiallyInCell(mp, cell)[source]
Check if at least one vertex of a MaterialPoint is within a given cell.
- Returns:
The truth value if this MaterialPoint is located in the cell.
- Return type:
bool
- Parameters:
mp (MaterialPointBase)
cell (CellBase)
Smart Material Point Manager
- class edelweissmeshfree.mpmmanagers.smartmpmmanager.SmartMaterialPointManager(materialPointCells, materialPoints, dimension, options={'KDTreeLevels': 1})[source]
A smart manager for material points and cells making use of a KDTree for loacation points in cells.
- Parameters:
materialPointCells (list[CellBase]) – The list of cells.
materialPoints (list[MaterialPointBase]) – The list of material points.
dimension (int) – The dimension of the problem.
options (dict) – A dictionary containing options.
Methods
Returns the set of active cells, which have been determined during the last connectivity update.
Update the connectivity between observed cells and material points.
- getActiveCells()[source]
Returns the set of active cells, which have been determined during the last connectivity update.
- Returns:
The set of active cells.
- Return type:
- updateConnectivity()[source]
Update the connectivity between observed cells and material points. Returns the truth value of a change during the last connectivity update.
- This method will:
assign all observed material points the cells in which they currently reside.
assign all active cells the material points which are residing in the cell.
- Returns:
The truth value of change.
- Return type:
bool