Plastic Analysis and Design by Linear Using Matlab
Plastic Analysis and Design by Linear Using Matlab
Aamer Haque
Abstract
Plastic analysis and design can be performed using linear programming. The procedure to formulate the linear programming
problem is explained. MATLAB® and Octave are then used to solve the linear programming problem.
2
2. Plastic Analysis For computational purposes, it is convenient to introduce
dimensionless variables and parameters. Let m̂j = mi /Mp
2.1. Formulation K(j)
and β̂j = βK(j) = Mp /Mp . The applied load is a variable
Definition 2.1. The bending moments mi of a frame are of the problem and is written in the following manner:
statically admissible if they satisfy the equations of equilib-
rium with the applied loads Wj . Mp
W =λ
L
We also must ensure that the bending moments do no ex- The right hand side of the equations of equilibrium, in terms
ceed the plastic moment capacities of the corresponding mem- of dimensionless variables, are written as:
bers. We require a map K : {1, . . . , N } → {1, . . . , Nmembers}
from the location of the moment mi to its corresponding mem- NX
loads
where
NX
Definition 2.3. The smallest load W which causes the frame bi loads
λc = max λ (2.1)
Theorem 2.2 (Kinematic or Upper Bound Theorem). If a N
set of loads on a frame produces a mechanism, then the loads
X
aij m̂j = b̃i λ i = 1, . . . , Neq (2.2)
are greater than or equal to the collapse load. j=1
3
2.2. MATLAB® /Octave Function This page intentionally left blank
panal.m solves the plastic analysis problem:
λc = max λ
Am = W
|m̂j | ≤ β̂j
where
i = 1, . . . , Neq , j = 1, . . . , N
[m,Wc] = panal(A,W,Mp,pf)
Output Description
m Bending moments m
(N × 1 vector)
[Units of Mp ]
Input Description
A Coefficient matrix A
(Neq × N matrix)
W Load factors W
(Neq × 1 vector)
[Units of W L]
Mp Plastic capacities Mp
(1 × N array)
[Units of Mp ]
pf Print flag
1 Print
0 Do not print
4
2.3. Continuous Beam
A two span continuous beam is shown in figure 1. The
plastic moment capacity of the left span is Mp1 = Mp . The
moment capacity of the right span is Mp2 = βMp . Let α ≥
0 be the load factor for the right span. There are N = 4
possible plastic hinges and r = 1 redundancy. The number of
independent mechanisms is Nmech = N − r = 3. The location
of the plastic hinges and independent mechanisms are seen in
figure 1.
The independent equations of equilibrium can be derived
using The Principle of Virtual Work on the independent mech-
anisms. These equations are valid regardless of the occurrence
of an actual plastic mechanism. The equations remain true
for purely elastic analysis. A sign convention for the virtual
angles is necessary. If the member would be in tension on
the side of the dotted line, then the associated rotation at
that location is considered to be positive. We assume that
the virtual angle θ is small and can approximate the virtual
displacement as ∆ = L2 θ. For the beam mechanism on the
Figure 1: Basic mechanisms
left span we have:
W∆ = m1 (2θ) + m2 (−θ)
Lθ
W = (2m1 − m2 )θ
2
WL = 4m1 − 2m2
Another equation of equilibrium is derived in the same man- Figure 2: Collapse mechanism: α = 4, β = 2
ner using the beam mechanism on the right span:
Output from panal.m for α = 4, β = 2:
αW ∆ = m3 (−θ) + m4 (2θ)
P l a s t i c a n a l y s i s f o r a lpha =4.00000 beta =2.00000
Lθ
αW = (−m3 + 2m4 )θ Pl a s t i c Analysis
2 Bending Moments :
αW L = −2m3 + 4m4 ID m/Mp m/Mp_i
1 +0.12500 +0.12500
The final equilibrium equation is provided by considering the
2 −1.00000 −1.00000
joint mechanism. A counter-clockwise rotation of the joint at
3 −1.00000 −0.50000
the central support gives:
4 +2.00000 +1.00000
0 = m2 θ + m3 (−θ) C o l l a p s e Load F a c t o r : 2 . 5 0 0 0 0
0 = m2 − m3 The results are:
Mp
Wc = 2.5
The three equations of equilibrium are thus: L
1
4m1 − 2m2 = WL (2.4) m1 = − Mp , m2 = m3 = −Mp , m4 = 2Mp
8
−2m3 + 4m4 = αW L (2.5) Note that plastic hinges are formed at locations 2 and 4. The
m2 − m3 = 0 (2.6) resulting collapse mechanism is a combination of beam mech-
anism 2 and the joint mechanism. The mechanism is shown
The input to panal.m for this problem is as follows: in figure 2.
4 −2 0 0 1
A = 0 0 −2 4 , W = α
0 1 −1 0 0
Mp = 1 1 β β
5
2.4. Portal Frame
A portal frame is illustrated in in figure 3. Each column has
a plastic moment capacity Mp1 = Mp . The moment capacity
of the beam is Mp2 = βMp . The load factors are αV ≥
0, αH ≥ 0. There are N = 7 possible plastic hinges and
r = 3 redundancies. The number of independent mechanisms
is Nmech = N − r = 4.
The equations of equilibrium are derived using The Princi-
ple of Virtual Work. Let ∆ = Lθ be the virtual displacement
for small angles. The beam mechanism leads to the first equi-
librium equation:
αH W ∆ = m1 (−θ) + m2 θ
+m6 (−θ) + m7 θ
αH W (Lθ) = (−m1 + m2 − m6 + m7 )θ
αH W L = −m1 + m2 − m6 + m7
0 = m2 θ + m3 (−θ)
0 = m2 − m3
Figure 3: Portal frame mechanisms
The second joint mechanism gives:
Output from panal.m for αH = 1×10−7 , αV = 1, β = 1/2:
0 = m5 θ + m6 (−θ)
0 = m5 − m6 Plastic analysis for
H=0.00000 V=1.00000 beta =0.50000
Thus the equations of equilibrium are: Pl a s t i c Analysis
Bending Moments :
−m1 + m2 − m6 + m7 = αH W L (2.7) ID m/Mp m/Mp_i
−m3 + 2m4 − m5 = αV W L (2.8) 1 +1.00000 +1.00000
2 −0.50000 −0.50000
m2 − m3 = 0 (2.9)
3 −0.50000 −1.00000
m5 − m6 = 0 (2.10) 4 +0.50000 +1.00000
5 −0.50000 −1.00000
The input to panal.m for this problem is: 6 −0.50000 −0.50000
7 +1.00000 +1.00000
−1 1 0 0 0 −1 1 αH
0 0 −1 2 −1 0 0 C o l l a p s e Load F a c t o r : 2 . 0 0 0 0 0
αV
A= 0 1 −1 0 0
, W =
0 0 0 The results are:
0 0 0 0 1 −1 0 0 Mp
Wc = 2
L
Mp = [ 1 1 β β β 1 1 ] 1 1
m3 = m5 = − M p , m4 = M p
We wish to compute the solution using αH = 0. However, 2 2
numerical instability will occur using a near exact value of The beam mechanism is the resulting collapse mechanism.
zero. A small but nonzero value is required for both αH and Since the mechanism is a partial collapse, the frame continues
αV . Hence αH = 1 × 10−7 is used to approximate a zero to be statically indeterminate at collapse. The remaining mo-
horizontal load on the frame ments cannot be computed using linear optimization. Thus
the results for m1 , m2 , m6 , and m7 are invalid.
6
Output from panal.m for αH = 1, αV = 1 × 10−7 , β = 1:
Plastic analysis for
H=1.00000 V=0.00000 beta =1.00000
Pl a s t i c Analysis
Bending Moments : Figure 4: Collapse mechanism: αH = 2, αV = 3, β = 2
ID m/Mp m/Mp_i
1 −1.00000 −1.00000 Output from panal.m for αH = 2, αV = 3, β = 2:
2 +1.00000 +1.00000
3 +1.00000 +1.00000 Plastic analysis for
4 +0.00000 +0.00000 H=2.00000 V=3.00000 beta =2.00000
5 −1.00000 −1.00000 Pl a s t i c Analysis
6 −1.00000 −1.00000 Bending Moments :
7 +1.00000 +1.00000 ID m/Mp m/Mp_i
C o l l a p s e Load F a c t o r : 4 . 0 0 0 0 0 1 −1.00000 −1.00000
The results are: 2 +0.20000 +0.20000
Mp 3 +0.20000 +0.10000
Wc = 4
L 4 +2.00000 +1.00000
m1 = m5 = m6 = −Mp , m2 = m3 = m7 = Mp , 5 −1.00000 −0.50000
6 −1.00000 −1.00000
m4 ≈ (2 × 10−5 )Mp 7 +1.00000 +1.00000
The collapse is due to the sway mechanism. Notice that β = 1 C o l l a p s e Load F a c t o r : 1 . 6 0 0 0 0
means that every member shares the same plastic moment The results are:
capacity. It is possible that two plastic hinges are formed at Mp
Wc = 1.6
a joint connecting exactly two members of the same strength. L
However, in plastic analysis we usually represent this case as 1
a single hinge (Neal [7]). m1 = m5 = m6 = −Mp , m2 = m3 = Mp ,
5
m4 = 2Mp , m7 = Mp
The mechanism is a combination of sway, beam, and joint and
is illustrated in figure 4.
7
3. Minimum Weight Design Theorem 3.3 (Lower Bound on Minimum Weight). Suppose
a design experiences a weight compatible mechanism at the
3.1. Formulation applied loads. Then the weight of the design is a lower bound
Definition 3.1. A design D = Mp1 , . . . , MpNmembers , for the for the minimum weight.
The fact that the displacements are small allows the angles to aij m̃j = b̃j (3.2)
be linearized in terms of member lengths. The requirement j=1
on the global mechanism is that all plastic hinge rotations are |m̃j | ≤ βV(K(j)) (3.3)
a multiple of a single parameter.
Proof. The equilibrium equations (3.2) and the safe condi-
tion (3.3) ensure an admissible design. Note that G was con-
Definition 3.3. A weight compatible mechanism is a mech- structed to include weight compatible mechanisms. Thus the
anism in which φk = ωLk where ω is a positive constant. Upper Bound and Uniqueness Theorems for Minimum Weight
state that the solution exists.
8
3.2. MATLAB® /Octave Function This page intentionally left blank
minwt.m solves the minimum design weight problem:
G̃min = min G̃
Am = W
|m̃j | ≤ βV(K(j))
where
Nd
X
G̃ = βk L k
k=1
[m,Mp,wt] = minwt(A,W,AMp,L,pf)
Output Description
m Bending moments m
(N × 1 vector) [Units of W L]
Mp Moment capacities Mp
(Nd × 1 vector) [Units of W L]
Input Description
A Coefficient matrix A
(Neq × N matrix)
W Load factors W
(Neq × 1 vector) [Units of W L]
pf Print flag
1 Print
0 Do not print
9
3.3. Continuous Beam 3.4. Portal Frame
10
4. Variable Repeated Loading Theorem 4.4 (Uniqueness Theorem for Shakedown). Sup-
pose that at the load factor λ, it is possible to find a dis-
4.1. Formulation tribution of residual bending moments m̄∗i that are statically
Definition 4.1. If any members of a frame fail due to alter- admissible and satisfy the inequalities listed below. If a mech-
nating application of applied loads, then the frame has failed anism is produced at this load factor, then it is equal to the
due to alternating plasticity. shakedown limit λs .
m̄∗i + λMmax
i ≤ MpK(i)
Definition 4.2. Suppose that a frame is subjected to variable
repeated loads. If plastic hinge rotations continue to increase m̄∗i + λMmin
i ≥ −MpK(i)
max min
2 MyK(i)
without bound, then the frame will fail due to incremental λ Mi − Mi ≤
collapse.
We shall assume an ideal elastic-perfect-plastic relation
K(i) K(i)
Definition 4.3. Suppose during application of variable re- for the stress-strain curve. Thus we set My = Mp .
peated loads, a frame ceases to produce additional plastic Dimensionless variables and parameters for shakedown are:
hinge rotation and all subsequent changes of bending mo- m̂∗j = m̄∗j /Mp , M̂max
j = Mmax
j /W L, M̂min
j = Mminj /W L,
ments are entirely elastic. Then the frame is said to have and β̂j = βK(j) = MpK(j) /Mp . The units of λ are Mp /W L.
shaken down.
Theorem 4.5 (Linear Programming for Shakedown). The
In order to state the Shakedown Theorem, a few items of value of the shakedown limit λs is determined by the solution
notation are introduced. Let Mmax i and Mmin
i be the max- of the optimization problem: Find residual bending moments
imum and minimum elastic bending moments that occur at m̂∗i , that satisfy equations (4.5) and inequalities (4.6)-(4.8),
location i for any combination of applied loads. These mo- which maximize λ.
ments are computed from an initial stress-free state and can
be positive or negative. The fact that they are elastic bend- λs = max λ (4.4)
ing moments means that their absolute value can exceed the Neq
K(i)
plastic moment capacity Mp . The value at which plastic
X
aij m̂∗j = 0 (4.5)
K(i)
yielding begins is notated as My . For the ideal elastic- i=1
K(i) K(i)
plastic relationship, we set My = Mp . m̂∗j + λM̂max
j ≤ β̂j (4.6)
+ m̂∗j λM̂min
≥ −β̂j
j (4.7)
Theorem 4.1 (Shakedown Theorem). If it is possible to find
a distribution of residual bending moments m̄∗i that are stati- λ M̂max
j − M̂min
j ≤ 2 β̂j (4.8)
cally admissible and satisfy the following inequalities, then the
frame will eventually shake down. Proof. Equation (4.5) and inequalities (4.6)-(4.7) state that
the residual bending moments are statically admissible. The
m̄∗i + Mmax
i ≤ MpK(i) (4.1) Lower Bound and Uniqueness Theorems for Shakedown com-
m̄∗ + Mmin ≥ −M K(i)
i i p (4.2) plete the proof.
Mmax
i − Mmin
i ≤ 2 MyK(i) (4.3)
It should be noted that the solution to the linear program-
The inequality (4.3) ensures that the frame does not fail ming problem does not indicate which collapse mechanism oc-
due to alternating plasticity. curs at shakedown. Also, the residual bending moments are
not necessarily those at shakedown. More information con-
cerning shakedown can be found in Haque [3], Horne [6], Neal
Theorem 4.2 (Lower Bound Theorem for Shakedown). The
[7].
load factor λ is a lower bound on the shakedown limit if it
is possible to find a distribution of residual bending moments
m̄∗i that are statically admissible and satisfy the following in-
equalities
m̄∗i + λMmax
i ≤ MpK(i)
m̄∗i + λMmin
i ≥ −MpK(i)
λ Mmax − Mmin ≤ 2 MyK(i)
i i
11
4.2. MATLAB® /Octave Function This page intentionally left blank
shakedown.m solves the shakedown problem:
λs = max λ
Am = 0
m̂∗j + λM̂max
j ≤ β̂j
m̂∗j + λM̂min
j ≥ −β̂j
max min
λ M̂j − M̂j ≤ 2 β̂j
where
A = [aij ], m = [m̂j ]
Mmax = [M̂max
j ], Mmin = [M̂min
j ], Mp = [β̂j ]
i = 1, . . . , Neq , j = 1, . . . , N
[m,lambda] = shakedown(A,Mp,Mmax,Mmin,pf)
Output Description
m Bending moments m
(N × 1 vector)
[Units of Mp ]
Input Description
A Coefficient matrix A
(Neq × N matrix)
Mp Plastic capacities Mp
(1 × N array)
[Units of Mp ]
pf Print flag
1 Print
0 Do not print
12
4.3. Continuous Beam
The loading pattern for the continuous beam is shown in
figure 7. The maximum and minimum elastic bending mo-
ments are given in table 3. The input to shakedown.m is:
4 −2 0 0
A = 0 0 −2 4
0 1 −1 0
Mp = 1 1 1 1
5 13
Mmax = 32 0 0 64
3 3 3 5
Mmin = − 64 − 16 − 16 32
Figure 7: Loading patterns for beam
13 3 3
Mmax − Mmin 64 16 64
13
4.4. Portal Frame
The loading pattern for the portal frame is shown in figure
8. The maximum and minimum elastic bending moments are
given in table 4. The input to shakedown.m is:
−1 1 0 0 0 −1 1
0 0 −1 2 −1 0 0
A= 0 1 −1 0 0
0 0
0 0 0 0 1 −1 0
Mp = [ 1 1 1 1 1 1 1 ]
Mmax = 0.3 0.375 0.375 0.9 0 0 0.925
Mmin = −0.625 −0.6 −0.6 0 −0.975 −0.975 0
Zero Loading 0 0 0 0 0
14
5. Linear Programming in MATLAB® and Octave 5.1.5. Continuous Beam
Octave is distributed under the terms of the GNU General wt Minimum weight G̃min
Public License.
lambdas Shakedown limit λs
5.1.2. Disclaimer and Limits of Liability
All of the code and software used for this paper are pro-
vided on an "as-is" basis. No guarantee is made concerning
the accuracy, reliability, or correctness of the code and soft- Input Description
ware. The user accepts any and all risks associated with the
use of the code and software. The code and software should
not be used in any circumstances where life or property may alpha Load factor α
be at risk. The code and software are not a substitute for
proper engineering analysis and judgement. Proper consulta- beta Moment capacity factor β
tion with a licensed professional engineer is necessary for any
design work. The developer assumes no responsibility and ac-
cepts no liability for the use of the code and software. Use at 5.1.6. Portal Frame
your own risk!
[lambdac,wt,lambdas] = portal(H,V,beta)
5.1.3. User License Agreement
The user must agree to the following user license agreement:
Output Description
• User will use the code for educational or academic pur-
poses. No commercial use is allowed.
lambdac Collapse load factor λc
• User will properly acknowledge and reference the use of
the code in any publication or work that uses the code.
(e.g. journal article, technical report, homework) wt Minimum weight G̃min
Matlab:
www.clearlyimpossible.com/ahaque/matlab_linprog.tar.gz
Octave:
www.clearlyimpossible.com/ahaque/octave_linprog.tar.gz
15
5.2. MATLAB® linprog 5.3. Octave glpk
s Optimization type
(integer)
+1 Minimization
-1 Maximization
16
References
17