Algorithmadvanced
Return mapping algorithm
Also called radial return algorithm, radial return mapping.
Integrates elastoplastic laws at each quadrature point by an elastic trial stress followed by a projection back to the yield surface.
- Time
- Θ(n q) worst
- Space
- Θ(q) extra
- Where
- n = the number of strain increments; q = the number of quadrature points
- Model
- Real RAM
- Properties
- closed form for linear hardeningconsistent tangentdeterministicexact for backward euler equationsnot iterative
- Evidence
- Proof sketchCode in 1 languages
- Origin
- M. L. Wilkins, R. D. Krieg, J. C. Simo, R. L. Taylor, T. J. R. Hughes, 1964
The return mapping algorithm computes the stress at one quadrature point of a finite element model with elastoplastic material. It gets the total strain at the end of a load step and the plastic state at the start of the step. First it assumes that the step is elastic and computes a trial stress. If the trial stress is inside the yield surface, the step is elastic and the trial stress is the answer. If not, it moves the stress back onto the yield surface and updates the plastic strain and the hardening variables. The result is the exact solution of the backward Euler equations of the flow rule for this step. For von Mises (J2) plasticity with linear hardening the projection is along the radius of the yield cylinder, so the map is in closed form. The derivative of the map is the consistent tangent. With it, the global Newton iteration converges quadratically.
In plain words
Think of a metal bar that you stretch in small steps. In each step, first pretend that the bar is a spring and compute the force from the stretch. If this force is below what the metal can carry, it is the right answer. If it is above, the metal must have flowed. Then pull the force back down to what the metal can carry, and record how much of the stretch became permanent. In three dimensions, the pull back goes straight toward the centre of a circle of allowed stresses, so one division gives the answer. The method also tells the solver how the force changes when the stretch changes. This lets the solver of the whole structure converge in very few steps.
The problem
Input. At one quadrature point: the total strain at the end of the step, the plastic state at the start of the step (plastic strain , equivalent plastic strain , back stress ), the bulk modulus , the shear modulus , the initial yield stress , the isotropic hardening modulus and the kinematic hardening modulus .
Output. The stress , the new state and the tangent , such that the backward Euler equations hold:
with the yield function and the loading conditions
Here is the Frobenius norm. The flow rule is a differential equation with an inequality constraint in time. Backward Euler replaces it by the equations above, which have one unknown scalar after the elimination of the others. The one-dimensional model is the same with , and no factors and .
The algorithm
RADIAL-RETURN(eps, eps_p, alpha, beta, kappa, mu, sigma_y, K, H)- 1
s_tr <- 2 mu (dev eps - eps_p); xi_tr <- s_tr - beta ▷ elastic trial stress - 2
f_tr <- |xi_tr| - sqrt(2/3) (sigma_y + K alpha) - 3
if f_tr <= 0 then - 4
return sigma = s_tr + kappa (tr eps) I, the old state, the elastic tangent - 5
dgamma <- f_tr / (2 mu + 2/3 (K + H)); n <- xi_tr / |xi_tr| - 6
sigma <- s_tr - 2 mu dgamma n + kappa (tr eps) I ▷ radial return - 7
eps_p <- eps_p + dgamma n; alpha <- alpha + sqrt(2/3) dgamma; beta <- beta + 2/3 H dgamma n - 8
C <- kappa I (x) I + 2 mu theta I_dev - 2 mu theta_bar n (x) n; return sigma, the new state, C
In line L8, and , maps a strain to its trace times , and maps a symmetric strain to its deviator.
The pressure is always elastic, because the plastic strain is deviatoric. In the one-dimensional map (return_map_1d), line L5 is , line L6 is and the tangent of line L8 is .
The finite element code calls this map at every quadrature point in every global Newton iteration. Each call starts from the state of the last converged load step, never from the state of the last iteration. The state is stored only when the global iteration converges.
Example
One dimension, exact numbers. Take , , , , the virgin state and the strain . Line L1 gives and line L2 gives , so the step is plastic. Line L5 gives . Line L6 gives . The new state is , and the new yield stress is , so the stress is on the yield surface. The tangent is . The bilinear stress strain curve has yield strain and slope after yield, so it gives . The reference code returns exactly these fractions (test_1d_exact_fractions). For monotone loading the one-dimensional map gives the exact curve for any number of steps.
Kinematic hardening and the Bauschinger effect. With and , the elastic range keeps its width and moves with the back stress. After loading to the bar unloads elastically until and then yields in compression. The tests check this.
Three dimensions, a path that turns. Take , , , and . The strain has the fixed normal part and a shear part , and it is sampled at for , starting from the virgin state. The direction of the deviatoric stress turns during the path, so the result depends on the number of steps . The table gives the largest stress error against steps, where .
| steps | largest error | |
|---|---|---|
| 1 | 0.17412 | 0.10 |
| 20 | 0.20778 | |
| 40 | 0.20852 | |
| 80 | 0.20890 | |
| 160 | 0.20909 |
The error halves when the step halves, so the map is first order on this path. On a proportional path, where the direction stays fixed, one step and 40 steps give the same stress to .
A bar in series. Four bar elements with areas and length 1 are fixed at one end and pulled at the other, with and the same yield data. All four yield. Newton's method with the consistent tangent converges in 2 iterations: the response is piecewise linear, so one iteration finds the right branch in every element and the next is exact. With the elastic modulus as the tangent the same tolerance needs 361 iterations.
Correctness
The proofs are in the correctness proof.
- The map solves the backward Euler equations, and the solution is unique (theorem). Elimination shows that is a positive multiple of , so and . The loading conditions then leave one choice: if and line L5 if not.
- The stress is the closest point (theorem, perfect plasticity). For the deviatoric stress of line L6 is the point of the ball that is closest to .
- The tangent of line L8 is the exact derivative of the map (theorem). At a plastic point with , differentiating lines L1, L5 and L6 gives . A finite difference test in the reference code agrees with it.
- This is exactness for the discrete equations, not for the flow rule. The backward Euler equations differ from the continuum law on paths where turns. Then the error is first order in the step (measured above). On proportional paths and for monotone loading in one dimension, the map is exact for the continuum law.
Proof: Radial return solves the backward Euler equations of J2 plasticity uniquely, and line L8 is its derivativefull
Setting. The data are , , , , , the state with and symmetric and deviatoric, and the strain . Write , , , , and . The backward Euler equations are those of the section "The problem". A solution is a scalar and a deviatoric unit tensor that satisfy them; when the tensor plays no role.
Lemma 1 (reduction to one scalar). For any and unit deviatoric , the equations for , , and give
Proof. The deviator of is , because is deviatoric. Subtract . For use and .
Theorem 1 (existence and uniqueness). The backward Euler equations with the loading conditions have exactly one solution for . It is the output of lines L1 to L7: if , and with if .
Proof. Case . Then every quantity at equals its trial value and , so the conditions hold if and only if .
Case . The loading conditions force , so and is defined. Lemma 1 gives
The factor is larger than 1, so is a positive multiple of . Hence , and . With Lemma 1, , and gives . This is positive if and only if .
The two cases exclude each other: if the second case has no solution, and if the first case has none. In each case the solution is unique, and lines L5 to L7 compute it. Line L4 returns the first case.
Corollary 1. After a plastic step , the plastic strain increment is deviatoric and parallel to (normality), and the pressure is . After an elastic step the state does not change. The reference tests check these facts on random strains.
Theorem 2 (closest point, perfect plasticity). Let , and . The deviatoric stress of lines L1 to L6 is the point of closest to in the Frobenius norm.
Proof. If then and . If not, and , since . For any , the triangle inequality gives . Equality in the first step needs to be a nonnegative multiple of , and in the second , so the closest point is unique.
Theorem 3 (consistent tangent). At a strain with , the map is differentiable, and for symmetric increments ,
Proof. The set is open, and there , so all maps below are smooth. The state at is fixed. Then , so . The derivative of the norm is , because is deviatoric. So
The derivative of the unit tensor is on deviatoric increments, which gives . Line L6 is , so
Collect the terms. The coefficient of is . The coefficient of is .
Remark 1 (one dimension). The same steps with in place of and without the factors and give Theorem 1 for return_map_1d: if . Then with , so , which is line L8 of the one-dimensional code.
Remark 2 (exactness for the continuum law). Let the continuum strain path be with along a fixed unit tensor for all in the step, and let the point stay plastic. Then the continuum flow rule integrates to with , and the consistency condition at is the scalar equation of Theorem 1. So the backward Euler solution is the continuum solution. This covers monotone loading in one dimension and proportional loading in three. When turns, the integral of is not , and the map has a first order error, which the reference tests measure.
Complexity
In the real-RAM model, one call does a fixed number of operations: a deviator, one norm, one division and the 81 entries of the tangent. So strain increments at quadrature points cost calls of constant cost, if each increment needs one global iteration. With global Newton iterations per increment the cost is , and the consistent tangent keeps small. The history is three tensors and one scalar per point, so the extra space is .
Properties
- No local iteration for linear hardening. The scalar equation for is linear. With nonlinear isotropic hardening it is a scalar nonlinear equation, which local Newton iterations solve.
- Unconditionally stable. Any step size gives a stress on or inside the yield surface, and the loading conditions hold exactly.
- The consistent tangent is symmetric for associative J2 plasticity, and it differs from the continuum elastoplastic tangent by the factor on the deviatoric part. The two agree only as .
- The volume change is elastic. The pressure never needs a correction.
Variants and improvements
- Closest point projection. For a general convex yield function, the same backward Euler equations need a local Newton iteration on , with the second derivatives of the yield function.
- Cutting plane (Ortiz and Simo 1986). Iterate with explicit corrections that need only the gradient of the yield function. It is cheaper per iteration, but its tangent is not consistent.
- Generalized midpoint rule. Evaluate the flow direction at . With it is second order on smooth paths, but each step needs a local iteration even for linear hardening.
- Finite strain. With a multiplicative split of the deformation gradient and logarithmic strains, the same radial return applies to the logarithms of the principal elastic stretches.
- Viscoplasticity. For the overstress law of Perzyna type, backward Euler adds to the denominator of line L5. As the plastic map comes back.
When to use it
Use it in every implicit finite element code for metal plasticity, and as the model for other constitutive updates with an inequality constraint, such as damage, friction and Drucker Prager or Mohr Coulomb soil plasticity. With J2 plasticity and linear hardening the closed form is the standard choice. Use a closest point projection with local iterations for curved or anisotropic yield surfaces. In explicit dynamics the consistent tangent is not needed, but the return map itself is the same.
Pitfalls
- Updating the history during the global iteration. The map must start every iteration from the converged state of the last step. If not, the plastic strain accumulates spurious increments and the solution depends on the number of iterations.
- Using the continuum tangent. It drops the factor and destroys quadratic convergence. With the elastic tangent the global iteration converges only linearly, as in the bar example.
- Engineering shear strains. Codes in Voigt notation store . The norm and the tangent then need factors of 2, and a missing factor changes the yield point in shear.
- A zero trial deviator. If the direction is not defined. The step is then elastic, because , so the code never divides by zero as long as .
- Large steps on turning paths. The map is stable for any step, but the stress after a nonproportional path has a first order error. Exactness for the discrete equations does not mean accuracy for the material law.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/return-mapping-algorithm/. The authors are listed in prov/PD9SMC.jsonl.
"""Return mapping for rate-independent plasticity with linear hardening.
return_map_1d: one-dimensional plasticity with isotropic and kinematic hardening.
radial_return: three-dimensional J2 (von Mises) plasticity, closed form radial
return and the consistent tangent of Simo and Taylor (1985).
Both solve the backward Euler equations of the flow rule exactly for one strain
increment. Tensors are 3 by 3 lists; a fourth order tangent is a 9 by 9 list
indexed by (3 i + j, 3 k + l). With Fraction data the 1D map is exact.
"""
import math
def return_map_1d(eps, state, E, sy, K=0, H=0):
"""Return (sigma, new_state, tangent) for the total strain eps.
state = (eps_p, alpha, q): plastic strain, equivalent plastic strain and
back stress at the end of the last converged step. K is the isotropic and
H the kinematic hardening modulus.
"""
eps_p, alpha, q = state
sig_tr = E * (eps - eps_p) # @line L1
xi = sig_tr - q
f_tr = abs(xi) - (sy + K * alpha) # @line L2
if f_tr <= 0: # @line L3
return sig_tr, state, E # @line L4
dgam = f_tr / (E + K + H) # @line L5
sgn = 1 if xi > 0 else -1
sig = sig_tr - E * dgam * sgn # @line L6
new = (eps_p + dgam * sgn, alpha + dgam, q + H * dgam * sgn) # @line L7
tangent = E * (K + H) / (E + K + H) # @line L8
return sig, new, tangent
def _trace(a):
return a[0][0] + a[1][1] + a[2][2]
def dev(a):
"""Return the deviatoric part of a 3 by 3 tensor."""
t = _trace(a) / 3
return [[a[i][j] - (t if i == j else 0) for j in range(3)] for i in range(3)]
def tnorm(a):
"""Return the Frobenius norm sqrt(a : a)."""
return math.sqrt(sum(a[i][j] ** 2 for i in range(3) for j in range(3)))
def zero_state():
"""Return the virgin state (eps_p, alpha, beta) for radial_return."""
z = [[0.0] * 3 for _ in range(3)]
return (z, 0.0, [row[:] for row in z])
def radial_return(eps, state, kappa, mu, sy, K=0.0, H=0.0):
"""Return (sigma, new_state, tangent, dgamma) for J2 plasticity at total strain eps.
state = (eps_p, alpha, beta): plastic strain tensor, equivalent plastic
strain and back stress. The yield function is
f = |dev(sigma) - beta| - sqrt(2/3) (sy + K alpha),
with linear isotropic (K) and kinematic (H) hardening.
"""
eps_p, alpha, beta = state
e = dev(eps)
s_tr = [[2 * mu * (e[i][j] - eps_p[i][j]) for j in range(3)] for i in range(3)] # @line L1
xi = [[s_tr[i][j] - beta[i][j] for j in range(3)] for i in range(3)]
nxi = tnorm(xi)
r = math.sqrt(2 / 3)
f_tr = nxi - r * (sy + K * alpha) # @line L2
p = kappa * _trace(eps)
if f_tr <= 0: # @line L3
sig = [[s_tr[i][j] + (p if i == j else 0) for j in range(3)] for i in range(3)]
return sig, state, elastic_tangent(kappa, mu), 0.0 # @line L4
dgam = f_tr / (2 * mu + 2 / 3 * (K + H)) # @line L5
n = [[xi[i][j] / nxi for j in range(3)] for i in range(3)]
sig = [[s_tr[i][j] - 2 * mu * dgam * n[i][j] + (p if i == j else 0) for j in range(3)] for i in range(3)] # @line L6
new = (
[[eps_p[i][j] + dgam * n[i][j] for j in range(3)] for i in range(3)],
alpha + r * dgam,
[[beta[i][j] + 2 / 3 * H * dgam * n[i][j] for j in range(3)] for i in range(3)],
) # @line L7
theta = 1 - 2 * mu * dgam / nxi
theta_bar = 1 / (1 + (K + H) / (3 * mu)) - (1 - theta)
tangent = _tangent(kappa, mu, theta, theta_bar, n) # @line L8
return sig, new, tangent, dgam
def _delta(i, j):
return 1.0 if i == j else 0.0
def _tangent(kappa, mu, theta, theta_bar, n):
c = [[0.0] * 9 for _ in range(9)]
for i in range(3):
for j in range(3):
for k in range(3):
for l in range(3):
sym = 0.5 * (_delta(i, k) * _delta(j, l) + _delta(i, l) * _delta(j, k))
idev = sym - _delta(i, j) * _delta(k, l) / 3
c[3 * i + j][3 * k + l] = (
kappa * _delta(i, j) * _delta(k, l) + 2 * mu * theta * idev - 2 * mu * theta_bar * n[i][j] * n[k][l]
)
return c
def elastic_tangent(kappa, mu):
"""Return the isotropic elastic tangent as a 9 by 9 list."""
z = [[0.0] * 3 for _ in range(3)]
return _tangent(kappa, mu, 1.0, 0.0, z)
def yield_value(sig, state, sy, K=0.0):
"""Return f(sigma, state) = |dev(sigma) - beta| - sqrt(2/3)(sy + K alpha)."""
_, alpha, beta = state
s = dev(sig)
return tnorm([[s[i][j] - beta[i][j] for j in range(3)] for i in range(3)]) - math.sqrt(2 / 3) * (sy + K * alpha)
def bar_newton(areas, lengths, u_end, E, sy, K=0, H=0, consistent=True, tol=1e-12, maxit=50):
"""Solve a bar of elements in series, fixed at the left end, with a prescribed end displacement.
Each element has one strain. The unknowns are the interior node displacements.
Return (stresses, number of Newton iterations). With consistent=False the
elastic modulus is used as the tangent, as in the initial stiffness method.
"""
m = len(areas)
states = [(0, 0, 0)] * m
u = [u_end * sum(lengths[: i + 1]) / sum(lengths) for i in range(m)] # node 1 .. m, last fixed
for it in range(maxit):
res = [0.0] * (m - 1)
kt = [[0.0] * (m - 1) for _ in range(m - 1)]
sig = []
for e in range(m):
left = u[e - 1] if e > 0 else 0.0
strain = (u[e] - left) / lengths[e]
s, _, tan = return_map_1d(strain, states[e], E, sy, K, H)
sig.append(s)
k = (tan if consistent else E) * areas[e] / lengths[e]
# internal force of element e on its left node (e - 1) and right node (e)
for a, sign in ((e - 1, -1), (e, 1)):
if 0 <= a < m - 1:
res[a] += sign * s * areas[e]
for b, sign2 in ((e - 1, -1), (e, 1)):
if 0 <= b < m - 1:
kt[a][b] += sign * sign2 * k
if max(abs(x) for x in res) <= tol * max(abs(x) * a for x, a in zip(sig, areas)):
return sig, it
du = _solve_dense(kt, res)
for a in range(m - 1):
u[a] -= du[a]
raise RuntimeError("Newton did not converge")
def _solve_dense(a, b):
n = len(b)
a = [row[:] + [b[i]] for i, row in enumerate(a)]
for k in range(n):
p = max(range(k, n), key=lambda i: abs(a[i][k]))
a[k], a[p] = a[p], a[k]
for i in range(k + 1, n):
f = a[i][k] / a[k][k]
for j in range(k, n + 1):
a[i][j] -= f * a[k][j]
x = [0.0] * n
for i in range(n - 1, -1, -1):
x[i] = (a[i][n] - sum(a[i][j] * x[j] for j in range(i + 1, n))) / a[i][i]
return x
test_return_mapping_algorithm.py 171 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/return-mapping-algorithm/. The authors are listed in prov/PD9SMC.jsonl.
import math
import random
from fractions import Fraction as Fr
from return_mapping_algorithm import (
bar_newton,
dev,
radial_return,
return_map_1d,
tnorm,
yield_value,
zero_state,
)
E, SY, KI, HK = 200.0, 0.25, 10.0, 5.0
KAPPA, MU = 160.0, 80.0
def test_1d_exact_fractions():
# E = 100, sy = 1, K = 10, H = 0: strain 0.03 from the virgin state.
sig, (ep, al, q), tan = return_map_1d(Fr(3, 100), (Fr(0), Fr(0), Fr(0)), Fr(100), Fr(1), Fr(10), Fr(0))
assert sig == Fr(1) + Fr(10) * al
assert ep == al == Fr(2, 110)
assert sig == Fr(13, 11)
assert tan == Fr(1000, 110)
def test_1d_elastic_step_unchanged():
state = (0.001, 0.001, 0.0)
sig, new, tan = return_map_1d(0.002, state, E, SY, KI, HK)
assert new == state and tan == E and sig == E * 0.001
def test_1d_monotone_loading_is_exact_for_any_step():
# Bilinear exact response: sigma = sy + Et (eps - eps_y) after first yield.
et = E * (KI + HK) / (E + KI + HK)
eps_y = SY / E
for nsteps in (1, 3, 50):
state = (0.0, 0.0, 0.0)
for k in range(1, nsteps + 1):
eps = 0.01 * k / nsteps
sig, state, _ = return_map_1d(eps, state, E, SY, KI, HK)
assert abs(sig - (SY + et * (0.01 - eps_y))) < 1e-12
def test_1d_bauschinger_with_kinematic_hardening():
# Pure kinematic hardening: the elastic range keeps its width 2 sy and moves with the back stress.
state = (0.0, 0.0, 0.0)
sig_max, state, _ = return_map_1d(0.01, state, E, SY, 0.0, HK)
# unload elastically until the reverse yield stress sig_max - 2 sy
eps = 0.01 - (2 * SY - 1e-9) / E
sig, st2, tan = return_map_1d(eps, state, E, SY, 0.0, HK)
assert st2 == state and tan == E
sig, st3, tan = return_map_1d(eps - 1e-4, state, E, SY, 0.0, HK)
assert st3 != state
assert abs(sig - (sig_max - 2 * SY)) < 1e-3
def random_sym(rng, scale):
a = [[rng.uniform(-scale, scale) for _ in range(3)] for _ in range(3)]
return [[(a[i][j] + a[j][i]) / 2 for j in range(3)] for i in range(3)]
def test_3d_consistency_and_normality():
rng = random.Random(1)
for _ in range(20):
state = zero_state()
eps = random_sym(rng, 0.01)
sig, new, _, dgam = radial_return(eps, state, KAPPA, MU, SY, KI, HK)
assert dgam > 0
# the new stress is on the new yield surface
assert abs(yield_value(sig, new, SY, KI)) < 1e-12
# the plastic strain increment is deviatoric and parallel to dev(sigma) - beta
dep = new[0]
assert abs(dep[0][0] + dep[1][1] + dep[2][2]) < 1e-14
s = dev(sig)
xi = [[s[i][j] - new[2][i][j] for j in range(3)] for i in range(3)]
nx, nd = tnorm(xi), tnorm(dep)
assert all(abs(xi[i][j] / nx - dep[i][j] / nd) < 1e-12 for i in range(3) for j in range(3))
# the pressure is elastic
assert abs((sig[0][0] + sig[1][1] + sig[2][2]) / 3 - KAPPA * (eps[0][0] + eps[1][1] + eps[2][2])) < 1e-12
def test_3d_elastic_steps_unchanged():
rng = random.Random(2)
state = zero_state()
for _ in range(10):
eps = random_sym(rng, 1e-4)
sig, new, _, dgam = radial_return(eps, state, KAPPA, MU, SY, KI, HK)
assert dgam == 0 and new is state
assert yield_value(sig, state, SY, KI) <= 0
def test_3d_consistent_tangent_against_finite_differences():
rng = random.Random(3)
base_state = zero_state()
# a plastic start state
_, base_state, _, _ = radial_return(random_sym(rng, 0.005), base_state, KAPPA, MU, SY, KI, HK)
eps = random_sym(rng, 0.01)
sig, _, c, dgam = radial_return(eps, base_state, KAPPA, MU, SY, KI, HK)
assert dgam > 0
h = 1e-7
worst = 0.0
for k in range(3):
for l in range(k, 3):
ep = [row[:] for row in eps]
em = [row[:] for row in eps]
# a symmetric perturbation: add h to the (k, l) and (l, k) entries
for (a, b) in {(k, l), (l, k)}:
ep[a][b] += h
em[a][b] -= h
sp, _, _, _ = radial_return(ep, base_state, KAPPA, MU, SY, KI, HK)
sm, _, _, _ = radial_return(em, base_state, KAPPA, MU, SY, KI, HK)
for i in range(3):
for j in range(3):
fd = (sp[i][j] - sm[i][j]) / (2 * h)
an = c[3 * i + j][3 * k + l] + (c[3 * i + j][3 * l + k] if k != l else 0)
worst = max(worst, abs(fd - an))
assert worst < 1e-5 * (KAPPA + MU)
def test_3d_proportional_path_is_step_independent():
# A proportional deviatoric strain path keeps n fixed; then one step equals many steps.
e0 = [[0.004, 0.001, 0.0], [0.001, -0.003, 0.002], [0.0, 0.002, -0.001]]
finals = []
for nsteps in (1, 7, 40):
state = zero_state()
for k in range(1, nsteps + 1):
eps = [[e0[i][j] * k / nsteps for j in range(3)] for i in range(3)]
sig, state, _, _ = radial_return(eps, state, KAPPA, MU, SY, KI, HK)
finals.append(sig)
for s in finals[1:]:
assert max(abs(s[i][j] - finals[0][i][j]) for i in range(3) for j in range(3)) < 1e-12
def test_3d_nonproportional_path_first_order():
# Tension then shear: backward Euler is exact for the discrete equations, but the
# stress after a nonproportional path depends on the step, with an O(dt) error.
def run(nsteps):
state = zero_state()
for k in range(1, nsteps + 1):
t = k / nsteps
eps = [[0.004, 0.006 * t, 0.0], [0.006 * t, -0.002, 0.0], [0.0, 0.0, -0.002]]
sig, state, _, _ = radial_return(eps, state, KAPPA, MU, SY, KI, HK)
return sig
ref = run(20480)
errs = []
for ns in (20, 40, 80, 160):
s = run(ns)
errs.append(max(abs(s[i][j] - ref[i][j]) for i in range(3) for j in range(3)))
orders = [math.log2(errs[i] / errs[i + 1]) for i in range(len(errs) - 1)]
assert all(abs(q - 1) < 0.2 for q in orders), orders
def test_bar_newton_quadratic_with_consistent_tangent():
areas = [1.0, 0.8, 1.2, 1.0]
lengths = [1.0, 1.0, 1.0, 1.0]
sig_c, it_c = bar_newton(areas, lengths, 0.02, E, SY, KI, HK, consistent=True)
sig_e, it_e = bar_newton(areas, lengths, 0.02, E, SY, KI, HK, consistent=False, maxit=2000)
forces = [s * a for s, a in zip(sig_c, areas)]
assert max(forces) - min(forces) < 1e-9
assert all(abs(x - y) < 1e-8 for x, y in zip(sig_c, sig_e))
# the response is piecewise linear: once every element is on the right branch,
# Newton with the consistent tangent is exact in one more step
assert it_c <= 3
# the elastic tangent gives a linear rate with factor about 1 - Et / E
assert it_e > 100
History
Wilkins in 1964 brought the stress back to the von Mises surface along the radius in his hydrodynamic codes, which gave radial return its name. Krieg and Krieg in 1977 compared the accuracy of radial return with other integration methods for perfect plasticity. Simo and Taylor in 1985 showed that the tangent must be the derivative of the discrete map, and that with this consistent tangent the global Newton method converges quadratically. Ortiz and Simo in 1986 analysed the cutting plane variant. Simo and Hughes in 1998 put the theory of return mapping, closest point projection and their tangents into one book.
References
- J. C. Simo and T. J. R. Hughes, Computational Inelasticity, Springer, 1998, Chapter 1 (the one-dimensional return mapping) and Chapter 3 (radial return for J2 flow theory and its consistent tangent)
- J. C. Simo and R. L. Taylor, Consistent tangent operators for rate-independent elastoplasticity, Computer Methods in Applied Mechanics and Engineering 48(1) (1985) 101-118, the tangent obtained by linearizing the discrete return map, and the quadratic convergence of the global Newton method
- R. D. Krieg and D. B. Krieg, Accuracies of numerical solution methods for the elastic-perfectly plastic model, Journal of Pressure Vessel Technology 99(4) (1977) 510-515, the accuracy of radial return and of other integration methods for von Mises plasticity
- M. Ortiz and J. C. Simo, An analysis of a new class of integration algorithms for elastoplastic constitutive relations, International Journal for Numerical Methods in Engineering 23(3) (1986) 353-366, the cutting plane variant, which needs no second derivatives of the yield function
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag PD9SMC Edit this page History Report an error Markdown