Skip to content

fabric

FabricTensorType module-attribute

FabricTensorType: Type = as_numba_type(FabricTensor)

FabricTensor

Base class for fabric tensors.

_density instance-attribute

_density: VectorXf = zeros(0, dtype=numpy_float)

density

changed instance-attribute

fabric tensor changed flags

coefs instance-attribute

coefs: Dict[str, numba_float] = empty(string, numba_float)

Fabric tensor coefficients

evolution instance-attribute

evolution: str = evolution

evolution type

rotated instance-attribute

rotated: bool = False

whether the fabric is rotated

tensor instance-attribute

tensor: MatrixXf = eye(3, dtype=numpy_float)

fabric tensor

type instance-attribute

type: str = type

Fabric tensor type

Fij

Fij() -> ndarray

The deviatoric fabric tensor.

__init__

__init__(
    type: AvailableFabricTypes = "chang1990-ext",
    evolution: AvailableFabricEvolutionTypes = "zhao2020",
    coefs: Dict[str, float] = None,
)

Initialize the fabric tensor.

density

density(beta: ndarray, gamma: ndarray) -> ndarray

Directional density function.

evolve

evolve(sv0: StateVariable, sv: StateVariable, use_plastic_strain: bool = True)

Update the fabric tensor.

PARAMETER DESCRIPTION
sv0

The state variables at the beginning of the increment.

TYPE: StateVariable

sv

The state variables at the end of the increment.

TYPE: StateVariable

use_plastic_strain

Whether to use the plastic strain for fabric evolution

TYPE: bool DEFAULT: True

initialize

initialize()

Initialize the fabric tensor.

requiresEvolution

requiresEvolution() -> bool

Check if the fabric tensor requires evolution.

requiresUpdate

requiresUpdate() -> bool

Check if the fabric tensor requires update.

rotate

rotate(rotate: bool = True)

Rotate the fabric tensor, set rotate to False to revert the rotation.

setParameters

setParameters(
    type: AvailableFabricTypes = "chang1990-ext",
    evolution: AvailableFabricEvolutionTypes = "zhao2020",
    coefs: Dict[str, float] = None,
)

Set the fabric tensor parameters.

setupDefaultParameters

setupDefaultParameters()

Set the default fabric tensor parameters.

FabricTensorChanged

density instance-attribute

density: bool

__init__

__init__()

reset

reset()