morphogen.homogenization.beremin

Cleavage by the local approach: the Weibull stress of Beremin (1983) on the fields of a loading path (path_beremin()).

Cleavage starts at microcracks that the plastic strain nucleates, the weakest of which gives way: the probability that a volume V under a stress sigma breaks is that of its weakest link, and for a field of stresses:

P_f = 1 - exp(-(sigma_w / sigma_u)^m),      sigma_w^m = sum_i <sigma_i>^m V_i / V_0,

with sigma_w the Weibull stress, the sum over the points of the plastic zone (their volumes V_i), m the modulus of Weibull, sigma_u the scale of the cleavage stresses of the reference volume V_0. The stress sigma_i that drives the cleavage of a point is its largest principal stress (the original criterion, for polycrystals whose grains are smaller than the points), or, where the points are those of the grains of a polycrystal, the largest normal stress of the cleavage planes of their crystal (CLEAVAGE): {100} in ferrite, the basal plane in zinc — the planes of the lattice as it is at each time, where the fields of the path have its orientation (a lattice that its twins turned, or that turned with the finite strains of its crystal). A point counts from the time its cumulated plastic strain passes plastic (it then belongs to the plastic zone, whatever happens later), and a cell that has survived a Weibull stress has survived the smaller ones: the probability at a time is that of the largest Weibull stress reached. A cell stands for a point of a part: for N cells under the same loading (the gauge of a specimen), V_0 / N in place of V_0.

morphogen.homogenization.beremin.SERIES = ('beremin_weibull', 'beremin_probability')

The curves that the criterion adds to a loading path, and its field

morphogen.homogenization.beremin.principal_stress(stress) → ndarray[source]

The largest principal stress of stresses (…, 6).

morphogen.homogenization.beremin.normal_stress(stress, planes: str = 'cube', orientations=None, c_over_a=None) → ndarray[source]

The largest normal stress n . sigma . n of the cleavage planes of a family (CLEAVAGE) at points of stresses (…, 6) in the axes of the sample; orientations: the Bunge angles (degrees) of the crystal of each point (…, 3), or of all of them (3); none: the axes of the sample.

morphogen.homogenization.beremin.weibull_stress(driving, volumes, modulus: float, volume: float) → float[source]

The Weibull stress (sum_i <sigma_i>^m V_i / V_0)^(1/m) of the points of stresses driving and volumes volumes (NaN: points that do not count).

morphogen.homogenization.beremin.failure_probability(weibull, modulus: float, scale: float)[source]

1 - exp(-(sigma_w / sigma_u)^m).

class morphogen.homogenization.beremin.Beremin(modulus: float, scale: float, volume: float, planes: str | None = None, c_over_a: float | None = None, plastic: float | None = None)[source]

Bases: object

The criterion of Beremin (1983): the modulus m of Weibull, the scale sigma_u of the cleavage stresses of the reference volume V_0. planes: the cleavage planes of the crystals of the points, whose largest normal stress drives the cleavage (none: the largest principal stress), with c_over_a for hexagonal crystals; plastic: the cumulated plastic strain beyond which a point belongs to the plastic zone (none: every point counts).

classmethod from_config(spec) → Beremin[source]

{modulus, scale, volume, planes, c_over_a, plastic}.

driving(stress, orientations=None) → ndarray[source]

The stress that drives the cleavage of points of stresses (…, 6).

weibull(driving, volumes) → float[source]
probability(weibull)[source]
class morphogen.homogenization.beremin.BereminResult(times: ndarray, weibull: ndarray, probability: ndarray, driving: ndarray, weights: ndarray | None = None, support: object | None = None)[source]

Bases: object

The cleavage of a cell along a loading path: at each of its times, the weibull stress of its fields and the probability of failure up to then; the driving stress of its points at the time of the largest Weibull stress (NaN outside the plastic zone), their weights and their support.

property largest: float

The largest Weibull stress of the path.

fields() → dict[source]

The fields of the points, by name (for the writers of fields).

components() → dict[source]

The scalar results: the largest Weibull stress and the probability of failure at the end of the path.

series(times) → dict | None[source]

The curves of the criterion at the times of a path (SERIES: the Weibull stress and the probability of failure, zero before the first fields), or None when the fields were not kept at each of them.

morphogen.homogenization.beremin.path_beremin(result, criterion, *, orientations=None) → BereminResult[source]

The criterion of Beremin along a loading path: result, a PathResult that kept its fields (fields="steps", or the times wanted); criterion: a Beremin or its mapping; orientations: the Bunge angles of the crystals of the points of the fields (those of the grains of the elements of a mesh, of the voxels of an image), for the normal stress of their cleavage planes (none: crystals in the axes of the sample). Where the fields of the path have the orientation of the lattices at each time (those that their twins turn; finite strains), the planes are those of the lattices as they are then. The stresses are those of the fields (Cauchy’s in finite strains), the volumes those of the elements of a mesh (the points of an image weigh the same).