Skip to content

phase_field

gripyth.solving.integration.phase_field

Python wrapper for phase_field.integral() Fortran routine.

FUNCTION DESCRIPTION
phase_field

Integrates the phase-field for the smeared crack length concept.

phase_field

phase_field(
    quadrature: Quadrature,
    mesh: Mesh,
    p_field: NDArray[float64],
    rel_pf: float,
) -> float

Integrates the phase-field for the smeared crack length concept.

rel_pf is the threshold value for the phase-field above which it is considered for the smeared crack length.

Returns d_int, the scalar for the integrated phase-field over the whole domain.