ModelsMixin

class openpnm.core.ModelsMixin[source]

This class is meant to be combined by the Base class in multiple inheritence. This approach is used since Network and Algorithm do not need to have any models attribute, while Phase, Geometry, and Physics do. By using a mixin class, all objects can inherit from Base while the model functionality can be added only where needed.

Attributes
models

List of available models on the objects

Methods

add_model(propname, model[, regen_mode])

Adds a new model to the models dictionary.

regenerate_models([propnames, exclude, deep])

Re-runs the specified model or models.

remove_model([propname, mode])

Removes model and data from object.