morphogen.iga

Isogeometric analysis: NURBS geometries, their analysis and their shape optimization.

  • morphogen.iga.basis: B-spline functions, knot vectors, refinement operators;

  • morphogen.iga.geometry: NURBS patches and their assemblies (Patch, Multipatch), their refinements;

  • morphogen.iga.shapes: rectangles, rings, plates and periodic cells with holes (boxes, parallelograms, the sheet with alternating holes);

  • morphogen.iga.analysis: linear elasticity and conduction (Analysis);

  • morphogen.iga.homogenization: the effective tensors of periodic cells, boxes or cells of any lattice (homogenize(), Cell);

  • morphogen.iga.optimization: shape optimization with the control points as variables, linked by the symmetries of a pattern, and analytical sensitivities (ShapeDesign, optimize_cell(), optimize_structure()).

The tutorial docs/tutorial_iga.md follows the package from a patch to the shape of an auxetic sheet.

Public names

  • Analysis — The discretization of an assembly for a physics (see the module): "elastic" (plane: "strain" or "stress" for surfaces) or "conduction", with the materials of the phases of its patches (Material, or their matrices); extra Gauss points per direction beyond degree + 1.

  • Cell — A periodic cell (see the module): the assembly model, the materials of its phases, the physics ("elastic", with plane for surfaces, or "conduction") and, for a cell that is not a box, the periods lattice (those of the assembly by default). solve() gives its effective tensor.

  • CellSolution — The effective tensor of a cell, the area (volume) measure of its box, the share fraction of it that the patches fill, the fluctuations of the unit macroscopic strains (fluctuations: unknowns x components) and the analysis.

  • Multipatch — Patches that share whole sides (see the module): patches, the control points of the assembly (nodes, weights) and, for each patch, the indices of its control points among them (ids, of the shape of the patch). Control points closer than tolerance times the size of the assembly are one.

  • Patch — A NURBS patch: the degrees and the knots of its directions, its control points (n_1 x ... x n_d x dim) and their weights (n_1 x ... x n_d; unit weights by default), and the phase of its material.

  • ShapeDesign — A design (see the module): the coarse assembly model and the refinement of its analysis (subdivisions of every element and degrees raised by elevate, one value or one per direction). Variables are added by variable() and radial().

  • ShapeResult — An optimized shape: the variables x, the design and the analysis assemblies, the objective and the constraints there, the history of the iterations (objective, largest constraint, variables) and, for a cell, its effective tensor and fraction of material.

  • conduction_matrix — The conductivity tensor of a material for an analysis of ndim dimensions: a Material, a number or a tensor.

  • elastic_matrix — The stiffness of a material in Voigt’s notation for an analysis of ndim dimensions: the 6 x 6 matrix of a solid; in the plane, its plane components (plane strain) or its condensation at zero out-of-plane stresses (plane stress). material: a Material, or a 6 x 6 (or, in the plane, 3 x 3) array.

  • homogenize — The effective tensor of a periodic NURBS cell (Cell).

  • optimize_cell — The shape of a periodic cell that minimizes objective(tensor, fraction) under constraint(tensor, fraction) <= 0 for each of the constraints: functions of the effective tensor of the cell (Voigt’s notation) and of its fraction of material — for instance lambda c, f: -plane_constants(c)["bulk_modulus"] with lambda c, f: f - 0.6. linear = (A, b) adds the constraints A x <= b on the variables (sizes of the geometry: the control points are linear in them); they follow the others in the constraints of the result, as A x - b. The variables start from x0 (zeros by default: the design as it is).

  • optimize_structure — The shape of a structure of smallest compliance under given loads (structure_response()) whose material has at most the area (volume) measure (by default that of the design as it is).

  • plane_constants — The engineering constants of a plane stiffness (3 x 3; Voigt 11, 22, 12 with engineering shears): Young’s moduli and Poisson’s ratios of its plane law, young_1 = 1 / S_11, poisson_12 = -S_12 / S_11 (the contraction along 2 under a tension along 1), the shear modulus C_66 and the bulk modulus of the plane, (C_11 + C_22 + 2 C_12) / 4.

Modules