morphogen.contact.problem¶
Bodies in contact: the quasi-static solver of morphogen.fracture.cohesive with
the forces of the surfaces that touch (see morphogen.contact).
- morphogen.contact.problem.contact_forces(passes, x, x_old, neighbours: int, target: float, tangent: bool, predict: bool)[source]¶
The forces of the passes of contacts on the dofs of the nodes at the positions
x(x_old: at the end of the last step) and, withtangent, their tangent (None if no point presses);target: the load factor, which places the obstacles;predict: the tangent of the predictor of a step. The state of the slave points of this evaluation is kept in their passes (trial,pressed,resultant,last).
- morphogen.contact.problem.contact_pass(nodes, slave, master, own, obstacle, spec, stiffest: float, shares: int = 1)[source]¶
A pass of a contact: the slave points of
slaveagainstmaster(or against theobstacle), with the parameters ofspec(a pair or an obstacle); the two passes of a symmetric pair, or the two sides of a surface that touches itself, share the penalty and the stick, so that both together are those asked for.
- morphogen.contact.problem.stiffest_modulus(materials, phases) float[source]¶
The largest Young’s modulus (or normal stiffness) of the materials of the phases present.
- class morphogen.contact.problem.ContactResult(loads: ndarray, reactions: ndarray, iterations: ndarray, displacement: ndarray, area: ndarray, pressure: ndarray, forces: ndarray, penetration: ndarray, names: list, points: list = <factory>, fields: list = <factory>, time_s: float = 0.0, work: dict = <factory>, cohesive: CohesiveResult | None = None)[source]¶
Bases:
objectThe steps of a contact problem: the load factors, the reactions of the prescribed sets (steps x sets x 3), the Newton iterations, the final displacement (nodes x 3), with
fieldsthose of the steps, and for each contact (the pairs, then the obstacles:names) at each step theareain contact (reference area of the slave points that press; of one of the two sides for a symmetric pair or a surface that touches itself), the largestpressure(the points of the two sides then each carry half of it: theirs are doubled) and theforcesof the slave surface on its master or on its obstacle (steps x contacts x 3); the deepestpenetrationof each step.work: at each step,"external"(of the prescribed displacements and forces),"bulk","interfaces"and"contact"(of their internal forces: they add up to the external work; that of the contact is the energy of the penalty and of friction, less the work of the obstacles that move),"friction"(dissipated by friction) and"obstacles"(done by the obstacles on the body).points: for each contact, the slave points at the end, a dict of theirposition,pressure, tangentialtraction,gap,weight(reference area; of the points at the nodes of the faces, the share that the other surface sees) and energydissipatedby friction per unit area.cohesive: the steps of the cohesive interfaces of the problem, if any.
- class morphogen.contact.problem.ContactProblem(mesh: TetMesh, materials, pairs=(), obstacles=(), *, kinematics: str = 'finite', bulk: str = 'auto', interfaces: Interfaces | None = None, law=None, augmentations: int = 0, tolerance: float | None = None, neighbours: int = 12)[source]¶
Bases:
CohesiveProblemA body, or several in one mesh (
assemble()), whose surfaces may touch each other, themselves and rigid obstacles (seemorphogen.contact):mesh(tetrahedra of 4 or 10 nodes), thematerialsof its phases, thepairsof surfaces (Pair) and theobstacles(Obstacle).kinematicsandbulk: those ofCohesiveProblem(the gaps are always those of the deformed surfaces; in small strains the bulk alone is linear).interfacesandlaw: cohesive interfaces of the mesh as well.augmentations: the largest number of updates of the multipliers of the augmented Lagrangian per step (0: the penalty alone), made while a point penetrates deeper thantolerance(a length; by default a hundredth of the size of the smallest faces).neighbours: the master faces tried for each slave point, the nearest by their centroids.- run(prescribed, load: float = 1.0, **options) ContactResult[source]¶
Grow the prescribed displacements, the forces and the motions of the obstacles to the load factor
load: the entries and options ofrun()(steps,tol,max_newton,max_cuts,fields,forces,duration,viscosityandhistoryof the cohesive interfaces), but itsinitialstate.