backends
Backend
Bases: ABC
The backend class to manage micromechanical models and the corresponding contact laws.
ContactLaw
abstractmethod
FabricTensor
abstractmethod
FabricTensor(
type: AvailableFabricTypes = "chang1990-ext",
evolution: AvailableFabricEvolutionTypes = "zhao2020",
coefs: Dict[str, float] = None,
) -> "FabricTensor"
Create a fabric tensor object.
Integration
abstractmethod
Integration(npv: float = 1000000000.0, radius=0.00065) -> 'Integration'
Create an integration object.
LoadPhase
abstractmethod
LoadPhase(
initial: Iterable[float] = zeros(6),
final: Iterable[float] = zeros(6),
control: Iterable[float] = zeros(6),
total: Iterable[float] = zeros(6),
steps: int = 100,
) -> "LoadPhase"
Create a load phase object.
MicromechanicalModel
abstractmethod
MicromechanicalModel(
model_type: str,
contact_type: str,
*,
npv: float = 1000000000.0,
radius: float = 0.00065,
**props: float
) -> "MicromechanicalBase"
Create a micromechanical model object.
PARAMETER | DESCRIPTION |
---|---|
model_type
|
The model type.
TYPE:
|
contact_type
|
The contact law type.
TYPE:
|
npv
|
The number of particles per volume, by default 1e9
TYPE:
|
radius
|
The particle radius, by default 0.65e-3
TYPE:
|
props
|
The material properties of the model.
TYPE:
|
StateVariable
abstractmethod
Create a state variable object.
fabricEvolutionTypes
classmethod
Return the available fabric evolution types.
Backends
Backends registry.
CppBackend
Bases: Backend
Cpp backend.
FabricTensor
FabricTensor(
type: AvailableFabricTypes = "chang1990-ext",
evolution: AvailableFabricEvolutionTypes = "zhao2020",
coefs: Dict[str, float] = None,
) -> "FabricTensor"
LoadPhase
LoadPhase(
initial: Iterable[float] = zeros(6),
final: Iterable[float] = zeros(6),
control: Iterable[float] = zeros(6),
total: Iterable[float] = zeros(6),
steps: int = 100,
) -> "LoadPhase"
PythonBackend
Bases: Backend
Python backend.
FabricTensor
FabricTensor(
type: AvailableFabricTypes = "chang1990-ext",
evolution: AvailableFabricEvolutionTypes = "zhao2020",
coefs: Dict[str, float] = None,
) -> "FabricTensor"
LoadPhase
LoadPhase(
initial: Iterable[float] = zeros(6),
final: Iterable[float] = zeros(6),
control: Iterable[float] = zeros(6),
total: Iterable[float] = zeros(6),
steps: int = 100,
) -> "LoadPhase"