initial
gripyth.solving.assembly.initial
Initial values of the system's stiffness matrix.
| FUNCTION | DESCRIPTION |
|---|---|
initial |
Compute initial values. |
initial
initial(
mesh: Mesh,
dofs: Dofs,
t: float,
materials: list[Material],
quadrature: Quadrature,
p_field: NDArray[float64],
elasticity_tensor: Callable[
[float, float], NDArray[float64]
],
) -> tuple[
NDArray[float64],
NDArray[int32],
NDArray[int32],
NDArray[float64],
NDArray[int32],
NDArray[int32],
NDArray[float64],
NDArray[int32],
NDArray[int32],
NDArray[float64],
NDArray[int32],
NDArray[int32],
]
Compute initial values.
Initial calculation of the non-zero entries of the tangent stiffness matrix K, the L2 interpolation matrix M (smoothing matrix), and the strains'/stresses' right-hand-side vectors required for L2 interpolation.
Input:
mesh: mesh-related parametersdofs: parameters regarding the degrees of freedomt: out-of-plane specimen thicknessmaterials: list of materials used in the meshquadrature: quadrature parameterselasticity_tensor: function creating an elasticity tensor for given values ofEandνin Voigt notationp_field: damage field at the nodes
Output:
K_vector: non-zero entries of the tangent stiffness matrix Ki_row: row indices of of non-zero entries in Kj_col: column indices of the non-zero entries in KM_vector: non-zero entries of the L2 interpolation matrix Mi_row_sig: row indices of the non-zero entries in Mj_col_sig: column indices of the non-zero entries in Meps_vector: non-zeros entries of the strains calculated at the Gauss points, used with M to interpolate the strains to the nodesi_row_eps: row indices of the non-zero entries ofeps_vectorj_col_epscolumn indices of the non-zero entries ofeps_vectorsig0_vector: non-zeros entries of the stresses calculated at the Gauss points, used with M to interpolate the stresses to the nodesi_row_pf: row indices of the non-zero entries ofsig0_vectorj_col_pf: column indices of the non-zero entries ofsig0_vector