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 thematerialsof the phases of its patches (Material, or their matrices);extraGauss points per direction beyonddegree + 1.Cell— A periodic cell (see the module): the assemblymodel, thematerialsof its phases, the physics ("elastic", withplanefor surfaces, or"conduction") and, for a cell that is not a box, the periodslattice(those of the assembly by default).solve()gives its effective tensor.CellSolution— The effectivetensorof a cell, the area (volume)measureof its box, the sharefractionof 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 thantolerancetimes the size of the assembly are one.Patch— A NURBS patch: thedegreesand theknotsof its directions, its controlpoints(n_1 x ... x n_d x dim) and theirweights(n_1 x ... x n_d; unit weights by default), and thephaseof its material.ShapeDesign— A design (see the module): the coarse assemblymodeland the refinement of its analysis (subdivisionsof every element and degrees raised byelevate, one value or one per direction). Variables are added byvariable()andradial().ShapeResult— An optimized shape: the variablesx, thedesignand theanalysisassemblies, theobjectiveand theconstraintsthere, thehistoryof the iterations (objective, largest constraint, variables) and, for a cell, its effectivetensorandfractionof material.conduction_matrix— The conductivity tensor of a material for an analysis ofndimdimensions: aMaterial, a number or a tensor.elastic_matrix— The stiffness of a material in Voigt’s notation for an analysis ofndimdimensions: 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: aMaterial, 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 minimizesobjective(tensor, fraction)underconstraint(tensor, fraction) <= 0for each of theconstraints: functions of the effective tensor of the cell (Voigt’s notation) and of its fraction of material — for instancelambda c, f: -plane_constants(c)["bulk_modulus"]withlambda c, f: f - 0.6.linear = (A, b)adds the constraintsA x <= bon the variables (sizes of the geometry: the control points are linear in them); they follow the others in theconstraintsof the result, asA x - b. The variables start fromx0(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 modulusC_66and the bulk modulus of the plane,(C_11 + C_22 + 2 C_12) / 4.