morphogen.laser.solid

A treated sheet in its volume: voxels of graded elastoplastic phases for the solvers of three-dimensional fields.

The finite elements of the sheets (morphogen.laser.mechanics) are those of a membrane in plane stress whose layers share the strain of the plane: no stress across the thickness, no layer that holds its neighbours back. Here the periodic cell of the sheet treated all over is drawn in its volume: an image of voxels (n1, n2, layers) along the two vectors of its lattice and its thickness, whose phases are classes of hardness, each with the flow law of its hardness, and whose two faces are free: a gap of void voxels between the sheet and its periodic image across the thickness (the first layer at z = 0: the face of the beam of a laser treatment). The solvers of morphogen.homogenization then take it as any microstructure: loading paths by FFT (volume_tension(): a tensile test along an axis of the cell, the other stresses free), its phases, fields and statistics, a conforming mesh, the other physics.

The flow laws of the sheets (FlowLaw) become the isotropic hardening of von Mises plasticity (Plasticity: R0 + H p + Σ Q_i (1 - exp(-b_i p))): Voce’s law is one of its terms; Ludwik’s and Swift’s power laws are fitted over a range of plastic strain by a linear term and three exponentials (their amplitudes by non-negative least squares, their rates the best of a few: within one or two percent).

morphogen.laser.solid.RATES = ((3000.0, 1000.0, 300.0), (150.0, 60.0, 25.0), (10.0, 5.0, 2.0))

The rates of the three exponentials fitted to a power law, over the range of plastic strain: the fastest, the middle and the slowest are chosen among these

morphogen.laser.solid.flow_plasticity(kind, sigma0: float, a: float, b: float, *, strain: float = 0.3) → Plasticity[source]

The von Mises plasticity of a flow law of the sheets (kind: its name, or its index in LAWS; sigma0, a, b: its parameters): exact for Voce’s law, fitted over the plastic strains up to strain for the power laws (see the module; the rates of the exponentials: those of RATES that leave the least error).

morphogen.laser.solid.hardening_stress(plasticity: Plasticity, p) → ndarray[source]

The yield stress R0 + H p + Σ Q_i (1 - exp(-b_i p)) of a plasticity at the cumulated plastic strains p.

morphogen.laser.solid.sheet_volume(hardness, material, spacing, thickness: float, *, classes: int = 8, gap: int = 2, depth: int | None = None, strain: float = 0.3) → tuple[VoxelImage, dict[int, Material]][source]

The volume of a treated sheet (see the module): hardness (HV; (n1, n2, layers), on a grid of the periodic cell of steps spacing (mm) along its two axes, its layers through the thickness (mm)) of a sheet of material (a SheetMaterial). Returns the image of its phases and their materials: phase 0, the void of the gap voxels above the sheet (its free faces); phases 1, 2, …: the classes of hardness present among classes of equal width, in increasing hardness, each with the elastic constants of the sheet and the plasticity of the flow law of the mean hardness of its voxels (strain: the range of the fit of power laws). depth: voxels through each layer (by default as many as make the voxels nearest cubes); the first layer is at z = 0. The hardness of each phase is in the metadata of the image ("hardness"), with the number of voxels through the sheet ("solid_voxels").

morphogen.laser.solid.case_volume(case, resolution: float | None = None, **options)[source]

The volume of the periodic cell of a sheet treated all over by the pattern of a SheetCase (its lattice, or the vectors of its loading: two vectors at right angles, the axes of the image): the hardness that its laser path leaves on a grid of resolution mm (by default the element of the case) in each of its layers (the first under the beam, the last on the face of the beam bottom), then sheet_volume() with its options. A lattice that is not rectangular (honeycombs, tracks shifted from one to the next) has a rectangular cell of several of its cells: give its two vectors to the loading.

morphogen.laser.solid.volume_tension(image: VoxelImage, materials: dict, *, axis: int = 0, strain: float = 0.05, increments: int = 20, kinematics: str = 'small', **options) → dict[source]

The tensile test of the volume of a sheet along the axis axis of its cell (0 or 1), up to the macroscopic strain in increments steps, the other stresses of its plane free (homogenize(), with its options): the strain along the axis, the stress of the sheet (the mean stress of the cell over the fraction of its height that the sheet fills), the strain of its width and the path result (fields, phases). The strains of the cell across the sheet are those of its gap, which nothing holds (left free, they make the problem singular): they are prescribed, and the faces of the sheet stay free, its thickness changing in the gap. kinematics="finite": finite strains (the flow laws in the logarithmic strains); the strain is then the elongation over the initial length and the stress the force over the initial section, those of a tensile test and of the membrane of the sheets.