integration
Integration
fabric
instance-attribute
fabric: FabricTensor = FabricTensor('chang1990-ext', 'li2012', None)
fabric tensor
gauss_weight
instance-attribute
gauss_weight: VectorXf = np.zeros(0)
weights of the integration points
Aij
The fabric tensor Aij, an array of shape (3, 3).
| RETURNS | DESCRIPTION |
|---|---|
ndarray
|
The fabric tensor. |
Aij_
Calculate the fabric tensor Aij from the definition, an array of shape (3, 3).
__init__
Constructor for the Gauss integration class.
| PARAMETER | DESCRIPTION |
|---|---|
npv
|
number of contacts per unit volume
TYPE:
|
radius
|
particle radius
TYPE:
|
beta
The azimuthal angles of the integration points in the y-z plane, an array of shape (n,).
| RETURNS | DESCRIPTION |
|---|---|
ndarray
|
The azimuthal angles of the integration points in the y-z plane. |
gamma
The azimuthal angles of the integration points x-axis, an array of shape (n,).
| RETURNS | DESCRIPTION |
|---|---|
ndarray
|
The azimuthal angles of the integration points x-axis. |
indexOf
Return the indices of the integration points with the given beta and gamma angles and the corresponding
angles. Specify one (and only one) of beta or gamma.
| PARAMETER | DESCRIPTION |
|---|---|
beta
|
The angle between the projection of the azimuth on the YZ plane and the Y axis
TYPE:
|
gamma
|
The angle between the azimuth and the X axis
TYPE:
|
tol
|
The tolerance for the comparison of the angles, by default 1e-6
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
ndarray
|
The indices of the integration points |
ndarray
|
The corresponding angles, depending on the given angles, gamma when beta is given and vice versa |
l
The contact vectors of the integration points, an array of shape (n, 3).
| RETURNS | DESCRIPTION |
|---|---|
ndarray
|
The integration points in the x-y plane. |
loadIntegrationPoints
Load integration points.
p
The transformation matrix, an array of shape (3, 3).
| RETURNS | DESCRIPTION |
|---|---|
ndarray
|
The transformation matrix. |
setAnisotropicParameters
setAnisotropicParameters(
type: AvailableFabricTypes = "chang1990-ext",
evolution: AvailableFabricEvolutionTypes = "li2012",
coefs: Dict[str, float] = None,
)
Set the anisotropic parameters.
| PARAMETER | DESCRIPTION |
|---|---|
type
|
The type of the anisotropic parameter.
TYPE:
|
evolution
|
The evolution type of the anisotropic parameter.
TYPE:
|
coefs
|
The coefficients of the anisotropic parameter.
TYPE:
|
setBazantOh37
Set the BazantOh37 integration points.
| PARAMETER | DESCRIPTION |
|---|---|
full
|
Full 37*2 integration points.
TYPE:
|
setBazantOh61
Set the BazantOh61 integration points.
| PARAMETER | DESCRIPTION |
|---|---|
full
|
Full 61*2 integration points.
TYPE:
|
setNPVFromNormalizedPackingDensity
Set the number of contacts per unit volume from the normalized packing density with the following equation:
| PARAMETER | DESCRIPTION |
|---|---|
rho
|
normalized packing density
TYPE:
|
setNPVFromVoidRatio
Set the number of contacts per unit volume from the void ratio with the following equation:
| PARAMETER | DESCRIPTION |
|---|---|
e
|
void ratio
TYPE:
|
setParameters
Set the parameters.
| PARAMETER | DESCRIPTION |
|---|---|
npv
|
number of contacts per unit volume
TYPE:
|
radius
|
particle radius
TYPE:
|
size
The number of integration points.
| RETURNS | DESCRIPTION |
|---|---|
int
|
The number of integration points. |
weight
The weights of the integration points, an array of shape (n,).
| RETURNS | DESCRIPTION |
|---|---|
ndarray
|
The weights of the integration points. |