crack
gripyth.solving.crack
Crack.
MODULE | DESCRIPTION |
---|---|
integration |
Helper routines for numerical integration. |
CLASS | DESCRIPTION |
---|---|
Bar |
Simple bar specimen. |
Cct |
Center-cracked test. |
Cgr |
Crack growth rate variables. |
CrackDirection |
Direction of crack growth (x-axis / y-axis). |
CrackDiscretized |
Variables for the discretized crack growth monitoring approach. |
CrackGrowthDetails |
Variables for the crack growth monitoring. |
CrackInterpolated |
Variables for the interpolated crack growth monitoring approach. |
CrackParameters |
Crack growth monitoring quantities. |
CrackRegularized |
Variables for the smeared crack growth monitoring approach. |
CrackVariables |
Crack growth variables. |
Ct |
Compact tension. |
Dent |
Double-edge-notched tension test. |
Other |
Other. |
Pulltest |
Simple pull test for stable crack growth. |
Sent |
Single-edge-notched tension test. |
SmearedComputation |
method to compute the smeared crack length. |
Specimen |
Specimen for specific computations. |
Tpb |
Three-point bending test. |
FUNCTION | DESCRIPTION |
---|---|
crack_discretized |
Computes the discretized crack length. |
crack_growth_rate |
Generalized function to be used for various crack- and cgr-structs. |
crack_growth_rate_detailed |
Generalized function to be used for various crack- and cgr-structs. |
crack_interpolated |
Computes the interpolated crack length. |
crack_regularized |
Computes the smeared crack length. |
fatigue_crack_growth |
Computes the fatigue crack growth rate for different methods. |
fatigue_crack_growth_details |
Variables for the fatigue crack growth monitoring. |
fatigue_life |
Compute nominal stress for Woehler curve. |
nth_corr |
Try to index the list of available corr values, defaulting to (1., 1.). |
shape_fun_2d |
Shape functions, quad4 element. |
sqrt_tanc |
Implementation of sqrt(tan(x)/x) which also works at x=0 and neighbourhood. |
ATTRIBUTE | DESCRIPTION |
---|---|
N |
Number or array generic used by vectorized routines.
|
N
module-attribute
Number or array generic used by vectorized routines.
Bar
Bases: Specimen
Simple bar specimen.
METHOD | DESCRIPTION |
---|---|
geometric_factor |
Computes the geometric factor for the stress intensity factor. |
Cct
Bases: Specimen
Center-cracked test.
METHOD | DESCRIPTION |
---|---|
geometric_factor |
Computes the geometric factor for the stress intensity factor. |
Cgr
dataclass
Crack growth rate variables.
CrackDirection
Bases: Enum
Direction of crack growth (x-axis / y-axis).
CrackDiscretized
dataclass
Variables for the discretized crack growth monitoring approach.
CrackGrowthDetails
dataclass
Variables for the crack growth monitoring.
CrackInterpolated
dataclass
Variables for the interpolated crack growth monitoring approach.
CrackParameters
dataclass
Crack growth monitoring quantities.
METHOD | DESCRIPTION |
---|---|
__init__ |
High level constructor. |
ATTRIBUTE | DESCRIPTION |
---|---|
J_elem |
Jacobian of elements in the phase-field support
TYPE:
|
a_offset |
offset of the crack.
TYPE:
|
cgr_da |
increment of crack length after which to evaluate crack growth rate curve.
TYPE:
|
crack_direction |
direction of crack growth (x-axis / y-axis).
TYPE:
|
crack_elems |
elements where the crack tip interpolation should take place.
TYPE:
|
crack_nodes |
nodes where the crack tip interpolation should take place.
TYPE:
|
crack_thres |
threshold of the phase-field which should be considered as broken.
TYPE:
|
crack_tips |
number of crack tips.
TYPE:
|
d_int_approx_fac |
constant factor for the L1-norm approximation of the smeared crack length
TYPE:
|
diss_fct |
dissipation function.
TYPE:
|
ellh |
number of elements per phase-field length scale
TYPE:
|
export_pf_interp |
whether to output a file with the interpolated phase-field variables.
TYPE:
|
int_d_segment |
theoretical value for the phase-field integral for a segment.
TYPE:
|
int_d_tip |
theoretical value for the phase-field integral for a tip.
TYPE:
|
material |
material characteristics.
TYPE:
|
rel_pf |
threshold value for phase-field above which it is considered for the
TYPE:
|
smeared_computation |
method to compute the smeared crack length.
TYPE:
|
specimen |
selection of a specimen for specific computations.
TYPE:
|
J_elem
instance-attribute
Jacobian of elements in the phase-field support (for the L1-norm approximation of the smeared crack length).
cgr_da
instance-attribute
increment of crack length after which to evaluate crack growth rate curve.
crack_direction
instance-attribute
direction of crack growth (x-axis / y-axis).
crack_elems
instance-attribute
elements where the crack tip interpolation should take place.
crack_nodes
instance-attribute
nodes where the crack tip interpolation should take place.
crack_thres
instance-attribute
threshold of the phase-field which should be considered as broken.
d_int_approx_fac
instance-attribute
constant factor for the L1-norm approximation of the smeared crack length (typically the Jacobian of the elements).
ellh
instance-attribute
number of elements per phase-field length scale (to properly correct the smeared crack length).
export_pf_interp
instance-attribute
whether to output a file with the interpolated phase-field variables.
int_d_segment
instance-attribute
theoretical value for the phase-field integral for a segment.
int_d_tip
instance-attribute
theoretical value for the phase-field integral for a tip.
rel_pf
instance-attribute
threshold value for phase-field above which it is considered for the smeared crack length.
smeared_computation
instance-attribute
method to compute the smeared crack length.
specimen
instance-attribute
selection of a specimen for specific computations.
__init__
__init__(
material: Material,
specimen: Specimen,
diss_fct: DissipationFunction,
cgr_da: float = 0.1,
crack_thres: float = 0.95,
crack_elems: NDArray[np.int32] | None = None,
crack_nodes: NDArray[np.int32] | None = None,
export_pf_interp: bool = False,
int_d_segment: float = 0.0,
int_d_tip: float = 0.0,
crack_tips: int = 1,
J_elem: float = 0.0,
smeared_computation: SmearedComputation = SmearedComputation.integration,
ellh: int = 5,
)
High level constructor.
CrackRegularized
dataclass
Variables for the smeared crack growth monitoring approach.
CrackVariables
dataclass
Crack growth variables.
METHOD | DESCRIPTION |
---|---|
__init__ |
High level constructor. |
ATTRIBUTE | DESCRIPTION |
---|---|
cgr_discretized |
n, a
TYPE:
|
cgr_interpolated |
n, a
TYPE:
|
cgr_regularized |
n, a
TYPE:
|
crack_discretized |
n, dn, a, dadn, x, y
TYPE:
|
crack_interpolated |
n, dn, a, dadn, x, y
TYPE:
|
crack_regularized |
n, dn, a, dadn, int_d
TYPE:
|
n_resolved |
number of explicitly computed cycles.
TYPE:
|
crack_discretized
instance-attribute
crack_discretized: list[CrackDiscretized] = [
CrackDiscretized(
x=crack_coords[0], y=crack_coords[1], a=a_ini
)
]
n, dn, a, dadn, x, y
crack_interpolated
instance-attribute
crack_interpolated: list[CrackInterpolated] = [
CrackInterpolated(
x=crack_coords[0], y=crack_coords[1], a=a_ini
)
]
n, dn, a, dadn, x, y
crack_regularized
instance-attribute
crack_regularized: list[CrackRegularized] = [
CrackRegularized(
a=a_ini - crack_tips * int_d_tip / int_d_segment
)
]
n, dn, a, dadn, int_d
n_resolved
class-attribute
instance-attribute
number of explicitly computed cycles.
Ct
Bases: Specimen
Compact tension.
METHOD | DESCRIPTION |
---|---|
geometric_factor |
Computes the geometric factor for the stress intensity factor. |
Dent
Bases: Specimen
Double-edge-notched tension test.
METHOD | DESCRIPTION |
---|---|
geometric_factor |
Computes the geometric factor for the stress intensity factor. |
Other
Bases: Specimen
Other.
METHOD | DESCRIPTION |
---|---|
geometric_factor |
Computes the geometric factor for the stress intensity factor. |
Pulltest
Bases: Specimen
Simple pull test for stable crack growth.
METHOD | DESCRIPTION |
---|---|
geometric_factor |
Computes the geometric factor for the stress intensity factor. |
Sent
Bases: Specimen
Single-edge-notched tension test.
METHOD | DESCRIPTION |
---|---|
geometric_factor |
Computes the geometric factor for the stress intensity factor. |
SmearedComputation
Bases: Enum
method to compute the smeared crack length.
Specimen
Specimen for specific computations.
METHOD | DESCRIPTION |
---|---|
geometric_factor |
Computes the geometric factor for the stress intensity factor. |
Tpb
Bases: Specimen
Three-point bending test.
METHOD | DESCRIPTION |
---|---|
geometric_factor |
Computes the geometric factor for the stress intensity factor. |
crack_discretized
crack_discretized(
n_cycle: int,
crack_params: CrackParameters,
crack_var: CrackDiscretized,
p_field: NDArray[np.float64],
mesh: Mesh,
) -> CrackDiscretized
Computes the discretized crack length.
crack_growth_rate
crack_growth_rate(
crack_params: CrackParameters,
crack_struct: (
CrackDiscretized
| CrackInterpolated
| CrackRegularized
),
cgr_struct: Cgr,
) -> list[Cgr]
Generalized function to be used for various crack- and cgr-structs.
crack_growth_rate_detailed
crack_growth_rate_detailed(
crack_params: CrackParameters,
crack_structs: (
list[CrackDiscretized]
| list[CrackInterpolated]
| list[CrackRegularized]
),
cgr_struct: Cgr,
R: float,
geometry: Geometry,
ty_final: float,
) -> CrackGrowthDetails | None
Generalized function to be used for various crack- and cgr-structs.
crack_interpolated
crack_interpolated(
n_cycle: int,
crack_params: CrackParameters,
crack_var: CrackInterpolated,
p_field: NDArray[np.float64],
mesh: Mesh,
) -> CrackInterpolated
Computes the interpolated crack length.
crack_regularized
crack_regularized(
n_cycle: int,
crack_params: CrackParameters,
crack_var: CrackRegularized,
a_discretized: float,
p_field: NDArray[np.float64],
mesh: Mesh,
t: float,
quadrature: Quadrature,
) -> CrackRegularized
Computes the smeared crack length.
fatigue_crack_growth
Computes the fatigue crack growth rate for different methods.
fatigue_crack_growth_details
fatigue_crack_growth_details(
crack_params: CrackParameters,
crack_var: CrackVariables,
step_params: StepParameters,
geometry: Geometry,
ty_final: float,
) -> tuple[
CrackGrowthDetails | None,
CrackGrowthDetails | None,
CrackGrowthDetails | None,
]
Variables for the fatigue crack growth monitoring.
fatigue_life
Compute nominal stress for Woehler curve.