statevariable
StateVariable
contact_min_normal_force
instance-attribute
contact_min_normal_force: numba_float
minimum normal force
cscalars
instance-attribute
custom scalar fields for contacts, a 1D numpy array of size (size,) is expected for each contact
cvectors
instance-attribute
custom vector fields for contacts, a 2D numpy array of size (size, ...) is expected for each contact
__init__
copyContactStateVariables
copyContactStateVariables(
from_idx: int,
to_idx: int,
symmetric: bool = False,
cscalars: List[str] = None,
cvectors: List[str] = None,
)
Copy the contact state variables from one integration point to another
PARAMETER | DESCRIPTION |
---|---|
from_idx
|
Index of the integration point to copy from
TYPE:
|
to_idx
|
Index of the integration point to copy to
TYPE:
|
symmetric
|
Whether to revert the symmetric contact state variables, by default False
TYPE:
|
cscalars
|
Custom scalar fields to be multiplied by -1, by default None |
cvectors
|
Custom vector fields to be multiplied by -1, by default None |
elasticStiffnessMatrix
elasticStiffnessMatrix() -> ndarray
Elastic stiffness matrix, shape (3, 3)
RETURNS | DESCRIPTION |
---|---|
ndarray
|
Elastic stiffness matrix |
fnci
Normal force with minimum cohesion at the integration point with index idx
fsi
Shear force at the first direction at the integration point with index idx
fti
Shear force at the second direction at the integration point with index idx
hash
hash(
dfi: ndarray,
idx: int,
precision: int = 15,
symmetric: bool = False,
cscalars: List[str] = None,
cvectors: List[str] = None,
) -> int
Hash the contact state variables at the integration point with index idx
PARAMETER | DESCRIPTION |
---|---|
dfi
|
Contact force increment
TYPE:
|
idx
|
Index of the integration point
TYPE:
|
precision
|
Precision of the hash value, by default 15
TYPE:
|
symmetric
|
Whether to revert the symmetric contact state variables, by default False
TYPE:
|
cscalars
|
Custom scalar fields to be multiplied by -1, by default None |
cvectors
|
Custom vector fields to be multiplied by -1, by default None |
RETURNS | DESCRIPTION |
---|---|
int
|
Hash value |
nsti
Direction of the shear force in two dimensions with index idx, shape (2,)
plasticDisplacementStrainTensor
plasticDisplacementStrainTensor() -> Tensor2
Plastic strain tensor from displacements
revertSymmetricContactStateVariables
revertSymmetricContactStateVariables(
idx: int, cscalars: List[str] = None, cvectors: List[str] = None
)
Revert contact force, displacement and specified custom variables by multiplying them with -1
PARAMETER | DESCRIPTION |
---|---|
idx
|
Index of the integration point
TYPE:
|
cscalars
|
Custom scalar fields to be multiplied by -1, by default None |
cvectors
|
Custom vector fields to be multiplied by -1, by default None |
ups
ups() -> ndarray
Shear plastic displacement at the first direction for every integration point, shape (size,)
upsi
Shear plastic displacement at the first direction at the integration point with index idx
upsti
Shear plastic displacement at the integration point with index idx, shape (2,)
upt
upt() -> ndarray
Shear plastic displacement at the second direction for every integration point, shape (size,)
upti
Shear plastic displacement at the second direction at the integration point with index idx
us
us() -> ndarray
Shear displacement at the first direction for every integration point, shape (size,)
usi
Shear displacement at the first direction at the integration point with index idx
usti
Shear displacement at the integration point with index idx, shape (2,)
ut
ut() -> ndarray
Shear displacement at the second direction for every integration point, shape (size,)