Finite Element Method With Applications in Engineering
Finite Element Method With Applications in Engineering
i
Finite Element Method with Applications in Engineering
PREFACE
The revolution in computer technology has led to the development of numerous
computational techniques. The closed form solutions are either extremely difficult to obtain
or not available for many engineering problems. Hence one has to resort to numerical
methods. The Finite Difference Method (FDM), Finite Element Method (FEM), Boundary
Element Method (BEM) and Mesh Free Method are few examples of important numerical
techniques, which are available in the field of computational mechanics. Each of these
methods has its own merits and demerits. The choice of an appropriate method for the
solution of any particular problem depends on investigator's familiarity of the method and
nature of the problem. The aim of this book is to introduce FEM as a general numerical
technique for the solution of various engineering problems.
The main emphasis in this book is given to important applications in engineering and
science. Since majority of the applications of FEM are in the realm of mechanics including
solids, fluids and structural systems, descriptions are primarily in terms of these fields of
study. This book is written in a simple structured way starting with the basics of various
FEM approaches, a description of finite element interpolation functions, FEM formulations
and applications in one-, two- and three-dimensional domains and further advanced
applications for a few complex problems. Further, some of the commonly used FEM
software and web resources available for the solution of various engineering and science-
related problems are described briefly.
An illustrative and simple computer program, sfeap, with a sophisticated Graphical User
Interface for pre-processing and post-processing has been provided for structural and
solid mechanics related problems. A few simple MATLAB and FORTRAN-based programs
for fluid mechanics related problems in one- and two-dimensional domains are also given.
In addition, source codes of the programs are provided so that a reader can easily
understand the computer implementation of the method and modify the codes to integrate
their own elements and routines.
One may take a physical or intuitive approach to learning FEM. On the other hand, one
may develop a rigorous mathematical interpretation of the method. A middle path has
been adopted in this book with more importance to the physical approach. Efforts have
been made to keep the mathematics simple. We feel that the book will be useful for a
basic understanding of FEM by beginners, further understanding by FEM practitioners,
and to a certain extent for the advanced level understanding by researchers.
We encourage readers to convey feedback and suggestions for the improvement of the
contents of the book, and point out any necessary corrections in it.
Y. M. Desai
T. I. Eldho
A. H. Shah
ii
Finite Element Method with Applications in Engineering
Contenido
i
PREFACE ........................................................................................................................... ii
1 Introduction ..................................................................................................................... 9
1.1 INTRODUCTORY REMARKS .................................................................................. 9
1.2 MATHEMATICAL MODELLING OF ENGINEERING PROBLEMS ............................ 9
1.3 TYPE OF GOVERNING EQUATIONS .................................................................... 12
1.4 SOLUTION METHODOLOGIES ............................................................................. 14
1.4.1 Analytical Method ............................................................................................. 15
1.4.2 Physical Method ............................................................................................... 15
1.4.3 Computational Method ..................................................................................... 15
1.5 NUMERICAL MODELLING..................................................................................... 15
1.6 PRE-PROCESSING AND POST-PROCESSING ................................................... 16
1.7 SCOPE OF THE BOOK.......................................................................................... 18
1.8 HIGHLIGHTS OF THE BOOK ................................................................................ 19
1.9 HOW TO USE THE BOOK? ................................................................................... 19
1.10 CLOSING REMARKS ........................................................................................... 20
REFERENCES AND FURTHER READING.................................................................. 20
2 Approximate Methods of Analysis ................................................................................. 22
2.1 INTRODUCTION .................................................................................................... 22
2.2 APROXIMATING METHODS ................................................................................. 22
2.3 METHOD OF WEIGHTED RESIDUALS ................................................................. 23
2.4 RAYLEIGH–RITZ METHOD ................................................................................... 27
2.5 FURTHER NUMERICAL EXAMPLES .................................................................... 29
2.6 CLOSING REMARKS ............................................................................................. 35
EXERCISE PROBLEMS .............................................................................................. 35
REFERENCES AND FURTHER READING.................................................................. 36
3 Finite Element Method—An Introduction ....................................................................... 37
3.1 GENERAL .............................................................................................................. 37
3.2 WHAT IS FEM? ...................................................................................................... 37
3.3 HOW DOES FEM WORK? ..................................................................................... 38
3.4 A BRIEF HISTORY OF FEM .................................................................................. 40
3.5 FEM APPLICATIONS ............................................................................................. 41
3.6 MERITS AND DEMERITS OF FEM ........................................................................ 42
Merits of FEM ........................................................................................................... 42
Demerits of FEM ....................................................................................................... 43
iii
Finite Element Method with Applications in Engineering
iv
Finite Element Method with Applications in Engineering
v
Finite Element Method with Applications in Engineering
vi
Finite Element Method with Applications in Engineering
vii
Finite Element Method with Applications in Engineering
viii
Finite Element Method with Applications in Engineering
1 Introduction
1.1 INTRODUCTORY REMARKS
Most practical engineering problems are complex in nature. A model is often needed to
solve a system consisting of any domain of interest and various phenomena that take
place in it. A model may be defined from the engineering point of view as the selected
simplified version of an engineering system that approximately simulates the system's
excitation response relations, which are of interest to the user. Information obtained from
the model can be used to understand the system, to provide information for design
purposes, to provide information to comply with regulations and to, finally, take appropriate
management decisions to solve particular problem concerned.
Modelling can be done through physical means with laboratory and field experiments or
through mathematical means. Physical modelling in laboratory or field can be
cumbersome, expensive and time consuming. Due to these difficulties in physical
modelling in laboratories or in the real world, use of mathematics in solving the
engineering problems has become widespread in the recent times. Use of systems
approach, increasing power of digital computers and the development of numerous
computational methodologies have made the mathematical modelling inevitable for all
branches of learning.
9
Finite Element Method with Applications in Engineering
dimensional or one-dimensional modelling to obtain the required solution. Need for time-
dependent (dynamic) or time-independent (static) modelling should also be ascertained.
Step 4 - Data Requirement: Data collection and handling may be simple or complex,
depending on the problem to be solved. Availability and quality of the available data
should be checked before proceeding further with modelling. Accuracy of the model
prediction depends on the quality of the available data.
Step 5 - Conceptual Model: Finally, a conceptual model for the problem should be
evolved from the above steps. The conceptual model would tend to reduce the real
problem and the real domain to simplified versions, which are satisfactory in view of the
objectives of the modelling, available resources and management of the problem.
Step 6 - Mathematical Model: Conceptual model can be expressed in the form of a
mathematical model. Mathematical model, generally, consists of the definition of domain,
the governing equations (algebraic, ordinary differential equations, partial differential
equations or integral equations), initial conditions (known state of the system at some
initial time) and boundary conditions. For most engineering problems, mathematical
representations are possible in terms of equations, depending on varying conditions.
Step 7 - Solution Methodology: Solution methodology should be decided once the
mathematical model is ready. Depending on the problem and its complexity, solution
methodology can be analytical, numerical or physical in nature. Analytical solution is
generally possible only for simple problems with regular domain and simple boundary
conditions. Physical solution can be obtained through laboratory modelling or field
simulations. Generally, physical solutions are time consuming and expensive. If an
analytical or easier physical solution is not plausible, numerical process is required.
Step 8 - Model Development: A reasonable model to solve the given problem may
generally be available as a public domain or commercial model. However, if the model is
not available, it should be developed, depending on the objectives of the modelling. If the
solution methodology is physical, laboratory or field level investigation would be required.
On the other hand, analytical or numerical solution can be developed with the help of a
computer.
Step 9 - Model Validation: The model cannot be used effectively for the considered
problem unless the numerical values of all the coefficients appearing in the model are
known. Once a model has been developed or proposed for a particular problem domain, it
must be validated for the given conditions. Through model validation, it is ensured that the
model includes and describes all the relevant processes, which affect the excitation and
model responses of interest to the acceptable degree of accuracy. Further, the solution
obtained may be cross checked for few parameters/conditions for which analytical or other
standard results are available.
Step 10 - Model Sensitivity Analysis: The model sensitivity analysis involves
investigations on model behavior for the important model variables. Generally, sensitivity
analysis is performed by varying each variable to its upper and lower extremes, while
keeping other variables as constant. Sensitivity analysis indicates over all model behavior
for extreme conditions of the problem.
Step 11 - Model Predictions: Once the model is calibrated and validated for the
considered problem, the model is ready for use. Model runs are made to provide required
results for the given problem conditions and data.
10
Finite Element Method with Applications in Engineering
11
Finite Element Method with Applications in Engineering
Step 12 - Results and Interpretations: Results obtained from the model should be
presented in a tabular or graphical form. This includes various post-processing techniques.
Results should be interpreted appropriately by considering sensible behavior of the model
variables.
Step 13 - Summary and Conclusions: At the end, information that the model was
expected to provide, including accuracy, uncertainty, suggested follow-up works or other
activities should be concluded.
Step 14 - Model Reporting: Model reporting should be done in such a way that the
important features of the model are clear and the results and interpretations are presented
appropriately. Suggested contents of a model report include: abstract, introduction,
problem definition, assumptions, simplifications, data, details of the conceptual model,
details of the mathematical model, solution methodology, code (program) selection or
development, details of model sensitivity analysis, verification, calibration and validation,
details of the model runs and predictions, results, discussions, conclusions and
references.
where g is a function, x and y are state variables and θ is a set of parameters. The
equation is said to be linear if x and y appear linear in g, otherwise the equation is non-
linear. Many engineering problems can be represented by systems of linear or non-linear
algebraic equations and generally a set of values are sought as solution that satisfy the
system. Large systems of algebraic equations are generated, for example, in the analysis
of structures, electric circuits and fluid networks.
Most fundamental laws of mechanics, physics, thermodynamics and electricity are based
on empirical observations, which explain variations in physical properties and states of the
system in terms of spatial and temporal changes. As many physical laws are expressed in
terms of the rate of change of a quantity rather than the magnitude itself, the ODE are of
great importance in engineering practice. By using ODE, generally two types of problems,
i.e., the initial-value and the boundary value problems are addressed. Differential
equations are classified according to their order. An equation is said to be of order n if the
highest derivative of the dependent variable is of order n. For example, the deflection y of
a mass spring system with damping can be expressed with a second order differential
equation as
where m is the mass, c is the damping coefficient, k is the spring coefficient and t is the
time.
Dependent physical quantities vary with two or more independent variables and hence
PDE formulations are used in many practical situations. If the dependent variable and its
12
Finite Element Method with Applications in Engineering
partial derivatives appear linearly with coefficients, depending only on the independent
variable, the equation is said to be linear, otherwise it is termed as a non-linear equation.
The order of a PDE is that of the highest-order partial derivative that appears in the
equation. For example, consider a second order PDE with two independent variables as
given below.
Elliptic equations are generally used to represent steady-state problems. Steady-state heat
conduction problem or groundwater flow in homogeneous isotropic porous media without
any pumping and recharge are typical examples where elliptic equations are used.
An equation is said to be parabolic if the quantity (b2 – 4ac) = 0. For example, the diffusion
equation in one dimension, used in many engineering problems, given below is parabolic.
Parabolic equations typically determine how a dependent quantity varies in space and
time. Time-dependent heat conduction problem is an example where parabolic type
equations can be used.
In the third category, an equation is said to be hyperbolic if the quantity (b2 – 4ac) > 0. For
example, the wave equation in one dimension, given below is hyperbolic.
Hyperbolic equations are used to deal with propagation problems and characterized by a
second order time derivative as in the case of wave propagation.
Sometimes, physical laws are expressed in terms of the summation or integrals of one or
more variables over the entire domain or a range, and hence, integral equations are of
great importance in engineering practice. Generally, the integral equations can be
expressed as follows.
Analytical solutions can be derived only for a small class of formulations involving ODE,
PDE or integral equations. Generally, approximate methods such as numerical methods
are used to obtain solution.
13
Finite Element Method with Applications in Engineering
where f1, f2 and f3 are known values on the boundary, s is the arc-length along Γ,
measured from some fixed point on Γ and represents the differentiation along the
outward normal n to Γ.
In the mathematical modelling, accurate and appropriate representation of the initial and
boundary conditions are essential to obtain accurate results.
14
Finite Element Method with Applications in Engineering
15
Finite Element Method with Applications in Engineering
16
Finite Element Method with Applications in Engineering
or through computer models. For automatic mesh generation, computer programs can be
written and incorporated in the model itself or separate mesh generating packages can be
utilized.
Figure 1.2 Flow through an earth dam—discretization using FDM, FEM and BEM
Results from a problem analysis consist of numbers pertaining to various unknown
variables such as potential, displacements, stresses and so on. It is thus better to present
17
Finite Element Method with Applications in Engineering
such details either graphically or in tabular forms. Graphical display may include deformed
shape of mesh, vectors, charts, contours, and so on. The post-processing can be done
manually or through computer models. For post-processing, computer program can be
written such that results are displayed graphically or separate post-processing packages
can be used.
18
Finite Element Method with Applications in Engineering
19
Finite Element Method with Applications in Engineering
effective FEM techniques that can be applied to engineering problems. As shown in this
book, FEM can be systematically programmed to accommodate complex and difficult
problems such as linear/non-linear stress–strain behavior, fluid-flow problems, non-
homogeneous materials problems and complicated boundary conditions. It is important,
however, that good judgement be developed and exercised concerning the solution of any
complex engineering problem to achieve the desired results using FEM. To achieve this,
the analyst must be sufficiently familiar with possible available finite element procedure
and models. In this direction, the SFEAP software provided with this book will provide
sufficient background of learning and in reinforcing the understanding of FEM.
20
Finite Element Method with Applications in Engineering
Levine G., and Burkee, C. J. (1992). Mathematical Model Techniques for Learning
Theories, Academic Press, New York.
Mooney D. D., and Swift R. J. (1999). Course in Mathematical Modeling, Mathematical
Association of America, USA.
Murray S. K. (eds.) (1987). Mathematical Modeling: Class Notes in Applied Mathematics,
Siam, Philadelphia.
Reddy, J. N. (1985). An Introduction to the Finite Element Method, McGraw-Hill
International Edition, New York.
Sanorskii, A. A., and Mikchailov A. P. (2002). Principles of Mathematical Modeling, Taylor
and Francis, London.
Singh, B. et al. (eds.) (2001). International Conference on ‘Mathematical Modelling’, Tata
McGraw Hill, New Delhi.
Smith, T. M. (1977). Mathematical Modeling and Digital Simulation for Engineers and
Scientists, Wiley Inter-sciences, New York.
Zienkiewicz, O. C., and Taylor, R. L. (1989). The Finite Element Methods, 4th ed., Vol. 1,
Basic Formulation and Linear Problems, Vol. 2: Solid and Fluid Mechanics; Dynamics and
Non-linearity, McGraw Hill, UK.
21
Finite Element Method with Applications in Engineering
22
Finite Element Method with Applications in Engineering
Usefulness of the perturbation method is limited because they are applicable only when
the nonlinear terms in the equation are small in relation to the linear terms. The power
series method, on the other hand, has been employed with some success. However, as
the method requires generation of a coefficient for each term in the series, it is relatively
tedious to apply. Also, it is difficult to prove that the series converges. The probability
methods are used if the desired variables in the problem concerned are statistical
parameters. The probability method is used to obtain statistical estimate of variables by
the process of random sampling. The first three methods briefly mentioned above have
limited use in engineering problems.
Due to wide applicability and simplicity, the most commonly used approximating methods
include FDM, MWR, Ritz Method and FEM. Out of various approximating methods, FDM is
the most popular method due to its simplicity and wide applications. As discussed earlier,
FDM has some merits and demerits compared to FEM. Incorporation of variation of
physical properties of the medium in the solution domain is a difficult task in application of
FDM to engineering problems. A large number of text books are available describing
various applications of FDM such as Forsythe and Wasow (1960), Mitchell and Griffiths
(1980), Davis (1986) and Thomas (1995). The MWR, Ritz method and FEM are related
methodologies. Hence, discussion here is limited only to methods of weighted residual and
Raleigh–Ritz, which are important in obtaining element equations in finite element
analysis.
23
Finite Element Method with Applications in Engineering
Here, ɸi are undetermined parameters and Ni are known functions linearly independent in
dimensionless forms. Parameters ɸi are determined by enforcing the error or residual by
ε{=L(ɸ)} = 0 at n points in the domain resulting in n equations to determine n values of ɸi.
The number of collocation points depends on the number of unknowns in the assumed
function.
Depending upon the problem, the point collocation technique can be classified into three
methods. In interior collocation method, the admissible function satisfies all the boundary
conditions but not the differential equation in the domain. Here, errors arising are set to
zero at chosen points in the interior of the domain. In boundary collocation method, the
admissible function satisfies the differential equation exactly in the domain, but does not
satisfy the boundary conditions. Here the collocation points are chosen at the boundary.
Inmixed collocation method, the admissible function does not satisfy the differential
equation and boundary conditions exactly. Thus, collocation points are chosen in the
domain as well as on the boundaries.
2.3.2 Method of Collocation by Sub-Regions
This method is very similar to point collocation method. However, error over the integral of
the function, rather than collation points is made zero over different regions. Hence if R is
the residual function,
Example 2.1
Solve following differential equation using point collocation method.
Use boundary conditions ɸ(x = 0) = 0 and ɸ(x = 1) = 0. Choose x = 0.25 and x = 0.5 as
collocation points.
Solution:
The exact solution for the expression (2.3) is
Let the approximate solution that satisfies the boundary conditions be of the form
24
Finite Element Method with Applications in Engineering
are derived.
Substitution of Eqs. (2.6) and (2.8) into Eq. (2.3) yields an error, ε, where
Choosing x = 0.25 and x = 0.5 as collocation points, where the error is made equal to zero,
following expressions are obtained.
Solving Eqs. (2.10) and (2.11) simultaneously, it can be shown that α1 = −0.1459 and α2
=−0.15263.
Hence, the solution is
Here it should be noted that the number of collocation points should be equal to the
number of unknown parameters αi.
2.3.3 Method of Least Squares
In the method of least squares, the sum of squares of the residuals are minimal (or made
zero) after substitution of the approximate solution in the differential equation. That is, the
sum of the squares of the error is minimized as
Example 2.2
Solve the following differential equation using least square method.
25
Finite Element Method with Applications in Engineering
An approximate function that satisfies these conditions can be used such that
Here Ni are the assumed functions and Ψi are either the unknown parameters or unknown
functions of one of the independent variables. Substituting this approximating function in
Eq. (2.24) may produce a residual as
In the Galerkin's method, the error is made orthogonal to the same trial function Ψi i.e.,
This method also yields n linear equations to determine n values of Ψi. Galerkin's method
may produce symmetrical coefficients in many cases since the weighting function and
approximating functions are same.
Many finite element formulations are based on the Galerkin's type approximating method.
In the later chapters, use of Galerkin's method in development of FEM will be described in
details.
Example 2.3
Solve the following differential equation using Galerkin's method.
26
Finite Element Method with Applications in Engineering
Finally, the results of examples 2.1, 2.2 and 2.3 are compared in the following table.
Table 2.1 Comparison of Results Obtained by Different Methods
The above comparison shows that Galerkin's method yields better results in comparison
with the Point collocation or least square method.
27
Finite Element Method with Applications in Engineering
from the polynomials of successively increasing degree. It may be noted that the method
requires the knowledge of the functional.
Thus the main aim of Rayleigh–Ritz method is to replace the problem of finding the minima
and maxima of integrals by finding the minima and maxima of functions of several
variables. For example, consider search of a function L(x) that will extremize certain given
functional (L). As mentioned, L(x) can be approximated by a linear combination of suitably
chosen coordinate functions c1(x), c2(x),………cn(x). Then L(x) can be written as
where gi are unknown constants to be found. Since each of ci(x) is an admissible function,
the functional I(L) becomes a function of g. By taking the differential of the function,
unknown g can be determined as follows.
Using Eq. (2.36), n algebraic equations are obtained from which the unknown constants gj
are determined. Method has been explained in the following example.
Example 2.4
Solve the following differential equation using Rayleigh–Ritz Method.
28
Finite Element Method with Applications in Engineering
can be derived.
Finally, the variational function can be written as
This result indicates that whenever a functional exists for any differential equation, both
Galerkin and Raleigh–Ritz methods give almost identical results.
2.4.1 Relation Between FEM and Rayleigh–Ritz Method
From the mathematical point of view, the FEM can be considered as a special case of
Rayleigh–Ritz Method. Both FEM and Rayleigh–Ritz Method use a set of trial functions as
the starting point for obtaining the approximate solution, take linear combinations of trial
functions and try to get combinations of trial functions, which make a functional stationary.
However, the trial function is considered for the entire domain in the Rayleigh–Ritz Method
and hence simple domain only can be modeled. On the other hand, functions are not
defined over the whole solution domain in FEM. The trial function is defined element wise
and they do not have to satisfy boundary conditions.
Solution:
1. Point Collocation
2. Solution that satisfies boundary conditions is
29
Finite Element Method with Applications in Engineering
Then
and
Simplifying,
Therefore,
Minimize the square of error with respect to α1 and α2 over the domain to get α1 and α2.
30
Finite Element Method with Applications in Engineering
Solving Eqs. (2.53) and (2.54) for α1 and α2, α1 = –0.06284 and α2 = –0.17903. Hence the
solution is
Galerkin's Method
In this method, the error is made orthogonal to the trial functions over the domain. That is,
Raleigh–Ritz Method
Solution is obtained from the corresponding variational functional, which can be written as
When this equation is substituted into the Euler–Lagrangian equation, the original
differential equation should be obtained.
31
Finite Element Method with Applications in Engineering
Substituting all these into Eq. (2.60), the governing differential equation
Exact Solution
The exact solution of differential equation ɸ″ – ɸ = x2 can be derived as:
Table 2.2 shows a comparison of results by different methods with the exact solution. It
can be seen that Galerkin’s and Rayleigh–Ritz Methods give better results.
Table 2.2 Comparison of Results Obtained by Different Methods
32
Finite Element Method with Applications in Engineering
Example 2.6
Solve ɸ″ + ɸ' – 2ɸ = 0, 0 ≤ x ≤ 1 with boundary conditions ɸ(x = 0) = 0, ɸ(x = 1) = 1 by
using (i) Point Collocation and (ii) Least Square Method.
Solution:
Let ɸ = α1x + α2x2 + α3 x3
The boundary conditions are: at
Now, ɸ' = α1 + 2α2x + 3α3x2 and ɸ″ = 2α2 + 6α3x
Therefore, ε = 2α2 + 6α3x + α1 + 2α2x + 3α3x2 – 2α1x – 2α2x2 – 2α3x3
Or ε = α1 (1 – 2x) + α2 (2 + 2x – 2x2) + α3(6x + 3x2 – 2x3)
(i) Collocation Method:
Choosing x = 0.25 and 0.5 as collocation points,
Example 2.7
Solve ∇2h= f(x,y) in the region (x, y) є (0, a); x (0, b) and f(x, y) = c, with boundary condition
h(x = 0) = 0, h(x = a) = 0, h(y = 0) = 0, h(y = b) = 0, by Galerkin's method.
Solution:
Let h = α x (x – a) y (y – b)
33
Finite Element Method with Applications in Engineering
which yields
Example 2.8
Solve the problem of laminar flow through a rectangular duct, wherein the governing
differential equation for flow is of the form
34
Finite Element Method with Applications in Engineering
From which α1, α2, α3 can be calculated. For a = 1, b = 1, s = slope of the pressure
gradient = 0.001, g = 9.8, υ = 0.01 m2/sec (kinematic viscosity),
EXERCISE PROBLEMS
1. Solve y” – x = 0, 0 ≤ x ≤ 1 with the boundary conditions y(x = 0) = 0 y(x = 1) = 0 by
using (i) Collocation method; (ii) Least square method, and (iii) Galerkin's method
and compare the results.
2. Solve y” + y + x = 0, 1 ≤ x ≤ 2 with boundary condition y(x = 0) = 0, y(x = 1) = 0 by
using (i) Point collocation, (ii) Least square and (iii) Galerkin method.
3. Solve x2y” – 2xy’ + 2y = 0, 1 ≤ x ≤ 4 with following boundary conditions y(x = 1) = 0,
y(x= 4) = 12 by using (i) Point Collocation; (ii) Least square, and (iii) Galerkin's
method and compare the results.
4. Solve x2y” + 6xy’ + 6y = 1/x2, 1 ≤ x ≤ 2 with boundary conditions y(x = 1) = 1, and
35
Finite Element Method with Applications in Engineering
36
Finite Element Method with Applications in Engineering
37
Finite Element Method with Applications in Engineering
as shown in Figs. 3.1, 3.2 and 3.3. In mathematical modelling, the problem to be solved
can be generally represented by mathematical equations. As FEM includes discretization
of the domain into elements, the finite element solution gives a piecewise approximation to
the governing mathematical equations.
where AE represents the axial rigidity of the bar assumed to be constant. To obtain a
solution using FEM, the bar considered is discretized into elements using connecting
nodes as shown in Figure 3.1.
38
Finite Element Method with Applications in Engineering
where h(x,y) is the head or ‘potential’. To get a solution, initially a free surface is assumed
and the dam domain including the free surface considered is discretized into triangular
elements using connecting nodes as shown in Figure 3.2. Here, the unknown variable is
the head or ‘potential’ (h) at various nodes. The unknown variable h is approximated by
the two-dimensional interpolation or shape functions assembled over the triangular
elements at the nodes. Then, the equations governing the behavior of the problem are
derived by assembling the equations formulated for all the triangular elements. Finally, the
‘potential’ is obtained by solving the approximated system of equations after introducing
the upstream and downstream head values. As the location of free surface is not known a
priori for this problem, the final solution is obtained through an iterative procedure which is
discussed later in the book.
For demonstration purpose, consider a problem dealing with steady-state three-
dimensional heat conduction in an isotropic homogeneous plate. The problem domain and
three-dimensional FEM discretization are shown in Figure 3.3. The domain is discretized
using prism elements. The physical problem includes the ‘temperature’ distribution in the
plate due to the differential temperature from left to right, with values T1 and T2. The
problem can be represented mathematically by the Poisson equation as
39
Finite Element Method with Applications in Engineering
Figure 3.3 Three-dimensional finite element discretization of a plate with prism elements
where T is the temperature, k is the thermal conductivity and Q is the heat source or sink.
The domain is discretized into prism elements using connecting nodes to obtain solution
as shown in Figure 3.3. Here, the unknown variable is the temperature at various nodes.
The unknown variable ‘temperature’ is approximated by the three-dimensional
interpolation or shape functions assembled over the prism elements at the nodes. Then,
the equations governing the behavior of the problem are derived by assembling equations
formulated for all the prism elements of the problem. Finally, the ‘temperature’ distribution
is obtained by solving the approximated system of equations after introducing the
boundary conditions.
Above mentioned problems indicate a broad perspective of working of FEM in the one-
dimensional, two-dimensional and three-dimensional problems. Further chapters will
explain in detail how FEM is used in the solution of engineering problems.
40
Finite Element Method with Applications in Engineering
developed for boundary value problems by Poyla (1954), Hersch (1955) and Weinberger
(1958). Foundation of finite element was laid by Argyris in 1955 through his book on
‘Energy Theorems and Structural Analysis’. Turner et al. (1956) developed the stiffness
matrices for truss, beam and other elements for engineering analysis of structures.
For the first time in 1960, the terminology ‘Finite Element Method’ was used by Clough
(1960) in his paper on plane elasticity. In 1960s, a large number of papers appeared
related to the applications and developments of the finite element method. Engineers
applied FEM for stress analysis, fluid flow problems and heat transfer. A number of
international conferences related to FEM were organized and the method got established.
The first book on FEM was published by Zienkiewicz and Cheung in 1967. With the advent
of digital computers and finding the suitability of FEM in fast computing for many
engineering problems, the method became very popular among scientists, engineers and
mathematicians. By now, a large number of research papers, proceedings of international
conferences and short-term courses and books have been published on the subject of
FEM. Many software packages are also available to deal with various types of engineering
problems. As a result, FEM is the most acceptable and well-established numerical method
in engineering sciences.
41
Finite Element Method with Applications in Engineering
Nuclear engineering: FEM applications include steady and dynamic analysis of reactor
containment structures, thermo-viscoelastic analysis of reactor components, steady and
transient temperature-distribution analysis of reactors and related structures.
Electrical and electronics engineering: FEM applications include electrical network
analysis, electromagnetics, insulation design analysis in high-voltage equipment’s, thermo-
sonic wire bond analysis, dynamic analysis of motors, molding process analysis in
encapsulation of integrated circuits and heat analysis in electrical and electronic
equipment.
Metallurgical, chemical and environmental engineering: In metallurgical engineering,
FEM is used for the metallurgical process simulation, molding and casting. In chemical
engineering, FEM can be used in the simulation of chemical processes, transport
processes (including advection and diffusion) and chemical reaction simulations. FEM is
used in environmental engineering widely in the areas of surface and sub-surface pollutant
transport modelling, air pollution modelling, land-fill analysis and environmental process
simulation.
Meteorology and bioengineering: In the recent times, FEM is used in climate
predictions, monsoon prediction and wind predictions. FEM is also used in bioengineering
for the simulation of various human organs, blood circulation prediction and even total
synthesis of human body.
Merits of FEM
Compared to other numerical methods some of the merits of FEM are as follows.
Modelling of complex geometries and irregular shapes are easier as varieties of finite
elements are available for discretization of domain.
Boundary conditions can be easily incorporated in FEM.
Different types of material properties can be easily accommodated in modelling from
element to element or even within an element.
Problems with heterogeneity, anisotropy, nonlinearity and time-dependency can be easily
dealt with.
The systematic generality of FEM procedure makes it a powerful and versatile tool for a
wide range of problems.
FEM is simple, compact and result-oriented and hence widely popular among engineering
community.
FEM can be easily coupled with computer-aided design (CAD) programs in various
streams of engineering.
An FEM model can be developed at different levels and it is possible to interpret the
method in physical terms.
42
Finite Element Method with Applications in Engineering
In FEM, it is relatively easy to control the accuracy by refining the mesh or using higher
order elements.,
Availability of large number of computer software packages and literature makes FEM a
versatile and powerful numerical method.
Demerits of FEM
Some demerits of FEM are as follows.
Closed-form expressions in terms of problem parameters are not available in FEM.
Numerical solution is obtained at one time for a specific problem case only. Hence, unlike
analytical solutions, there is no advantage of flexibility and generalization.
Large amount of data is required as input for the mesh used in terms of nodal connectivity
and other parameters depending on the problem.
Generally, voluminous output data must be analyzed and interpreted.
Experience, good engineering judgment and understanding of the physical problems are
required in FEM modelling. Poor selection of element type or discretization may lead to
faulty results.
EXERCISE PROBLEMS
With the help of appropriate domain discretization, governing equations and boundary
conditions, explain the one-dimensional application of FEM in heat conduction through
cylindrical bar of 5 m length and 5 cm diameter. Use linear line elements for discretization.
With the help of appropriate domain discretization, governing equations and boundary
conditions, explain the two-dimensional application of FEM for deformation and stress
distribution in a cantilever bar of 1 m and 10 cm and 2 cm thickness and a load of 1 KN at
the free end. Use triangular elements for discretization.
With the help of appropriate domain discretization, governing equations and boundary
conditions, explain the three-dimensional application of FEM for potential flow in a cubic
cavity of size 1 m. Use linear prism elements.
43
Finite Element Method with Applications in Engineering
Clough, R. W. (1960). The finite element method in plane stress analysis, Proceedings of
ASCE, 2nd Conference on Electronic Computation, Pittsburgh, 23: 345–378.
Courant, R. (1943). Variational methods for the solution of problems of equilibrium and
vibrations, Bulletin of the American Mathematical Society, 49: 1–23.
Hersch, J. (1955). Equations Differentielles et Fonctions de Cellules, C. R. Acad. Sci., Vol.
240.
Hrenikoff, A. (1941). Solution of problems in elasticity by the frame work method, Journal
of Applied Mechanics, Transactions of the ASME, 8: 169–175.
Huebner, K. H. (1975). The Finite Element Method for Engineers, John Wiley and Sons,
New York.
Poyla, G. (1954). Estimates for Eigenvalues: Studies Presented to Richard von Mises,
Academic Press, New York.
Reddy J. N. (1985). An Introduction to the Finite Element Method, McGraw-Hill, New York
(Int. ed.).
Turner, M. J., Clough, R. W., Martin, H. C., and Topp, L. J. (1956). Stiffness and deflection
analysis of complex structures, Journal of Aeronautical Science, 23(9): 805–824.
Weinberger, H. F. (1958). Upper and lower bounds for eigenvalues by finite difference
methods, Commun, Pure Appl. Math., Vol. 9.
Zienkiewicz, O. C., and Cheung, Y. K. (1967). The Finite Element Method in Structural and
Continuum Mechanics, Mac-Graw Hill, London.
Zienkiewicz, O. C. (1980). Finite Element Method, 3rd ed., Mac-Graw Hill, New York.
44
Finite Element Method with Applications in Engineering
45
Finite Element Method with Applications in Engineering
46
Finite Element Method with Applications in Engineering
where u1, u2, …, un are the values of the unknowns at the nodal points and N1, N2, …, Nn
are the interpolation functions or shape functions. Accuracy of a solution depends greatly
on the selection of approximation function. Linear polynomials N1 and N2 are shown in
Figure 4.5for a one-dimensional two-node element.
Strain/displacement relation:
Stress-strain relation: σx = E εx (Hooke's Law)
47
Finite Element Method with Applications in Engineering
Fluid gradient =
Constitutive relation:
vx = − kxx gx (Darcy's Law)
where kxx = coefficient of permeability and vx = velocity.
(c): One-dimensional heat flow
temperature gradient =
48
Finite Element Method with Applications in Engineering
49
Finite Element Method with Applications in Engineering
50
Finite Element Method with Applications in Engineering
Some engineering problems which can be solved using the direct approach include spring
systems, trusses, beams, fluid flow in pipe networks, electric resistance networks etc.
Here, the linear spring system problem is analyzed to demonstrate the development of
finite element technique using the direct approach formulation.
51
Finite Element Method with Applications in Engineering
need for an interpolation function to represent variation of field variable over the element
because an exact representation is available from Hooke's law, which relates the nodal
displacements and the applied nodal forces F given as
where k is the spring stiffness constant, δ is the displacement, F is the force applied and C
is the deflection coefficient. In other words, k can be treated as the force required to
produce unit deflection or C as the deflection caused by a unit force.
Force displacement equations for node 1 and node 2 are
The square matrix [ke] is known as the element stiffness matrix, the column vector {qe} is
the nodal displacement vector, and {f e} is the resultant nodal force vector for the element.
Depending on the problem, the stiffness coefficients of matrix [ke] are determined exactly
or approximately. In the present case, a typical stiffness coefficient kij of [ke] is defined as
the force required at node i to produce a unit deflection at node j. It should be noted that
the left hand side element is constrained to have zero displacement at one node which
does not influence derivation of element matrix. Constraint conditions or boundary
conditions are taken into account only after element equations are assembled to form
system of equations.
52
Finite Element Method with Applications in Engineering
existence of a solution and the conditions involved at the interfaces can be easily tackled.
Variational formulation has also got the advantages that more complex boundary
conditions can be modelled. Moreover, the functional contains lower order derivatives than
the differential operator and the problem may possess reciprocal variational formulation
(Zienkiewicz, 1980).
The main task in using variational principle is to find the variational functional for the
particular problem concerned. It may be possible to find functional for most problems in
engineering. However, mathematical manipulation may be required to get the functional, if
a classical variational functional is not available for the problem concerned. These
mathematical manipulations, whenever required, make the approach more complex.
Depending on the problem, functional could be an integrated quantity which may be
characteristic of the problem. Generally, it can be a physically recognizable quantity such
as energy or a mathematically defined entity without physical interpretation. If an example
from solid mechanics is considered, the functional turns out to be the potential energy or
some derivative of it. In fluid mechanics problems, the functional can be kinetic energy.
If only the differential equation and the boundary conditions are known and no physical
principle giving a variational functional is apparent in a problem, it should be first decided
whether a classical variational principle exists before the problem can be attempted using
the variational approach. Different methodologies are available in literature to decide
existence of the variational principle and determination of the functional (Mikhlin, 1964;
Vainberg, 1964; Finlayson, 1972). Most commonly used methods include (Heubner,
1975): formulation of variational principle based on classical procedure available in
mathematical literature (Mikhilin, 1964), derivation of variational principle by mathematical
manipulations and use of Frechet derivatives (Tonti, 1969, Finlayson, 1972).
Consider a differential equation of the form L(u) = 0. For this differential equation if
functional I exists, a function u(x) is required in the variational approach, such that the
integral within the range a and b
is extreme (maximum or minimum) for given functional ƒ. Function u(x), which maximizes
or minimizes ƒ, is called the stationary function. In the calculus of variational principle, it
may be shown that the stationary function ∫ƒ [x,u,u′(x)] dx must satisfy the Euler–
Lagrangian equation given by (refer to Appendix B)
Similar equations can be obtained for higher order functions (Mikhlin, 1964; Vainberg,
1964; Finlayson, 1972). This will yield the given differential equation.
For example, consider the potential flow in terms of h in a domain Ω with boundary Г = Г1 +
Г2. The governing equation is Laplace equation
53
Finite Element Method with Applications in Engineering
subject to the same boundary conditions. Eq. (4.10) can be used instead of the original
Laplace equation when the variational approach is employed.
FEM procedure using the variational approach includes following steps. First step is to
discretize the domain into elements and substitute the trial functions into the functional for
each element. The functional is then differentiated with respect to each parameter and the
resulting equation is set equal to zero. Then the systems of equations are assembled for
all elements and a system of equations are formed which are solved for unknowns after
substituting boundary conditions.
In the variational approach, nodal values of u are required to be found so as to make the
functional I(u) stationary such that
where n is the number of discrete solution u assigned to the domain. From Eq. (4.11), it
follows that
Then as per the variational procedure for FEM, for whole domain discretization
where m is the total number of elements, and the superscript (e) denotes an element in the
domain. Adding contribution of every element in the domain
where p is number of nodes per element. These p equations give characteristics of the
element. Finally, similar equations are written for all elements and assembled. Solution of
this system of equations after application of boundary conditions gives solution to the
problem.
For structural mechanics problems, variational functional or some kind of relationships
useful in FEM analysis can be derived using the principle of virtual work, principle of
minimum potential energy and Castigliano theorem (Shames and Dym, 1991). These
relations are mainly used in stress analysis problems. In structural mechanics problem, the
minimum potential energy method is most commonly used (Shames and Dym, 1991;
Zienkiewicz, 1980). Principle of minimum energy is based on the idea of finding the
consistent equilibrium states of body or structures associated with stationary values of a
54
Finite Element Method with Applications in Engineering
scalar quantity assumed by the loaded bodies. This scalar quantity is referred as
‘functional’. This approach is similar to the variational approach discussed in this section.
Following numerical example demonstrates the variational approach in FEM.
Example 4.1
Using FEM based on the variational approach develop the stiffness matrix for the following
differential equation. Use one-dimensional linear elements for discretization.
Here, the highest order derivative appearing in I(h) is a first order derivative and hence the
simplest interpolation functions satisfying the compatibility and completeness requirements
are linear functions (explained in Chapter 5). As minimum 2 nodes are required for linear
variation to be represented, two node linear elements are considered here.
Let the domain be divided into n elements and hence the solution can be written as
Since the interpolation functions for approximating h satisfy the compatibility and
completeness requirements, the functional in Eq. (4.17) can be written as
55
Finite Element Method with Applications in Engineering
where m is the number of elements and (e) is the element concerned. To find I(e)(h)(e), the
equation for h given in Eq. (4.19) is substituted in the expression for I(h) as follows.
Here the prime indicates differentiation with respect to x. Equations for an element are
obtained by performing minimization of I(e)(h)(e) or differentiation of I(e)(h)(e) with respect to
nodal values of h and equating to zero as follows.
In a similar way, element matrices can be written for all other elements. Finally, element
property matrices are assembled for all the elements. After introducing the boundary
conditions, system of equations is solved for the unknown nodal values of h.
56
Finite Element Method with Applications in Engineering
57
Finite Element Method with Applications in Engineering
Use of weighted residual technique is explained here with a sample problem. The aim is to
find an approximate functional representation for a field variable h governed by the
differential equation
Here, Ni an assumed functions and Di are the unknown parameters or the unknown
functions of one of the independent variables. As is the approximated functions, it may
not satisfy the equation when it is substituted into Eq. (4.23). Hence, it can be written as
Here, R1 is the residual or error that results from approximating h by . In the method of
weighted residuals, the m unknowns Di are determined in such a way that the error R1
over the entire solution domain vanishes or becomes very small.
In the weighted residual approach, the error is minimized by forming a weighted average
of the error and specifying that this weighted average vanish over the solution domain. It is
achieved in the weighted residual technique by using m linearly independent weighting
functions Ψi. Finally, it can be written as
As the domain is discretized into elements and nodes, initially the weighted residual
technique based on Galerkin's approach can be formulated for an element and then it can
be assembled for the entire domain. Ni are the interpolation functions, Ni (e) defined over
the element and Di are the undetermined parameters, which may be the nodal values of
58
Finite Element Method with Applications in Engineering
the field variable or its derivatives. For the element considered, equations governing the
behavior of the element can be written as
Here superscript (e) refers to an element, h(e) = [N(e)]{h}(e), g(x,y)(e) is the forcing function
defined over element (e) and r is number of unknown parameters assigned to the element.
In FEM using the Galerkin's technique, a set of equations, like Eq. (4.28), is obtained for
each element of the whole assemblage. The choice of approximating function Ni should
guarantee the inter-element continuity necessary for the assembly process. While many
interpolation functions provide continuity of value, fewer provide continuity of slope. By
applying integration by parts to the integral expression of Eq. (4.28), expressions
containing lower-order derivatives can be obtained (called weak formulation). Hence,
approximating functions with lower order inter-element continuity can be used. Such a
process offers a convenient way to introduce the natural boundary conditions that must be
satisfied on some portion of the boundary. Finally, the system is assembled for all the
elements, boundary conditions are applied and the system equations are solved for the
unknowns.
Example 4.2
By using the Galerkin's weighted residual FEM approach, derive the element equations for
the second order differential equation
Within any element, assuming linear variation of h, the expression for h can be written as
59
Finite Element Method with Applications in Engineering
60
Finite Element Method with Applications in Engineering
essentially in eight steps. In further development of FEM, these steps will be followed for
the systematic approach.
EXERCISE PROBLEMS
Using the direct approach, develop element stiffness matrix for a cantilever beam of length
L subjected to a concentrated load W at the free end and find the expression for the
deflection and slope at the free end.
Using FEM based on the variational approach develop element property matrix for the
following differential equation. Use one-dimensional linear elements for discretization. ɸ″−
ɸ = x2 with boundary conditions ɸ(x = 0) = 0 and ɸ(x = 1) = 0.
Using FEM based on the weighted residual approach (Galerkin's method), develop
element property matrix for the following differential equation. Use one-dimensional linear
61
Finite Element Method with Applications in Engineering
62
Finite Element Method with Applications in Engineering
63
Finite Element Method with Applications in Engineering
internal nodes are distinguished by referring to them as nodal degrees of freedom and
internal degrees of freedom. The minimum number of degrees of freedom (or generalized
co-ordinates) necessary for a given element is determined, according to the completeness
requirements for convergence, geometric isotropy requirement and the necessity of an
adequate representation of the field variable in the formulation (See Chapter 10 for
details). Beyond the minimum number of degrees of freedom, additional degrees of
freedom may be included for a finite element by adding secondary external nodes or by
specifying degrees of freedom of higher order derivatives of the field variable at the
primary nodes. Such higher order elements with additional degrees of freedom may
increase the complexity of the individual element properties.
Use of higher order interpolation functions, generally, results in more accurate result in
those application areas where the gradient cannot be properly approximated by a set of
constant values. Fewer higher order elements may be required to obtain the same degree
of accuracy in the final answers. A reduction in number of elements reduces the number of
element data, which in turn decreases possibility of errors in preparing the element data.
Use of higher order elements does not, however, always lead to a reduction in the total
computation time. Numerical integration techniques are needed to obtain element
matrices. Hence, these techniques can involve a large number of calculations by
increasing the total computation time per element. It has been observed in many cases
that the numerical integration itself may constitute about 70% to 80% of the total
computation time.
Characteristics of some commonly used simple linear type of finite elements as well as
higher order finite elements in one-, two- and three-dimensions will be discussed in this
chapter.
where Pn(x) is the nth order polynomial in x, and ai (i = 0, 1, … n) are the coefficients of xi.
Some examples of polynomials in one-independent variable are as follows.
64
Finite Element Method with Applications in Engineering
Any higher order polynomials for three-independent variables can be written in a similar
manner.
A polynomial series in one or more variables is complete if it is of a high enough degree
and if no terms are omitted in the series. Thus, polynomials of Eqs. (5.1), (5.5) and (5.8)
are complete.
Coefficients aij or aijk in a polynomial series representing the field variable are referred to
as the generalized co-ordinates. These generalized co-ordinates are independent
parameters that specify or fix the magnitude of the prescribed distribution of the
polynomial. On the other hand, the nature of the prescribed distribution is determined by
the order of the polynomial selected. These co-ordinates have no direct interpretation but
are rather the linear combinations of the physical nodal degrees of freedom. In addition,
they are not identified with any particular node.
65
Finite Element Method with Applications in Engineering
Expression (5.11) can also be derived from the generalized polynomial expressed as
follows.
Let ɸ = ɸ(x) be expressed in linear form as ɸ(x) = a1 + a2 x, or
At x = x1, ɸ(x) = ɸ1 and at x = x2, ɸ(x) = ɸ2. Hence, Eq. (5.14) can be expressed in the
following form.
66
Finite Element Method with Applications in Engineering
is obtained; where
Example 5.1
Find the value of the field variable ψ and its first derivative at a place x = 0.6. Consider xi=
0, xj = 2, ψi = 1.2 and ψj = 1.5.
Solution:
Length of the element, L = xj- xi = 2. Value of Ni at x = 0.6 is Ni = 1 – x/L = 1 – (0.6/2) = 0.7.
Value of Nj at x = 0.6 is Nj = x/L = 0.6/2 = 0.3.
Thus, the value of ψ(x = 0.6) = Ni ψi + Nj ψj = 0.7(1.2) + 0.3(1.5) = 1.29.
The first derivative of the field variable over the element is dψ/dx = (ψj – ψi)/L = (1.5 -
1.2)/2 = 0.15. It may be noted that the first derivative is constant throughout the element.
67
Finite Element Method with Applications in Engineering
Eq. (5.21) is applicable only if Ni and Nj are linear functions of x and the exponents a and b
are integers.
Example 5.2
Evaluate
Solution:
68
Finite Element Method with Applications in Engineering
is obtained. Thus,
69
Finite Element Method with Applications in Engineering
Example 5.3
Find the value of ɸ and its derivative at a point P(s = 0.25 L) shown in Figure 5.3 given that
ɸ1= 4, ɸ2 = 4.5 ɸ3 = 6.
70
Finite Element Method with Applications in Engineering
71
Finite Element Method with Applications in Engineering
Example 5.4
Evaluate the field variable ɸ at a point P(s = L/6) for a line element with cubic interpolation
function and also its first derivative at the same point, given that {ɸ}T = [4 4.5 6 9].
Solution:
From Eqs. (5.43) and (5.44), at s = L/6; [N] and [dN/ds] values are obtained as [0.3125
0.9375 –0.3125 0.0625] and [–2.875 2.625 0.375 –0.125]/L, respectively. Hence, ɸ(L/6) =
[N]{ɸ} = 4.15625 and (dɸ/ds) = [dN/ds]{ɸ} = 1.4375/L.
It can be easily seen that Ni(x) = 1 for x = xi and Ni(x) = 0 for x = xm, m ≠ i.
a) Linear Function:
For linear function, n = 2. Thus,
72
Finite Element Method with Applications in Engineering
Considering Figure 5.8, s = x – x1 and L = x2 – x1. Thus, from Eqs. (5.46) and (5.47), N1 =
(s + x1– x2)/{–(x2 – x1)} = 1 – (s/L) and N2 = s/L. It may be noted that identical expression
has been derived earlier in Eq. (5.18).
b) Quadratic Function:
For quadratic function, n = 3. By using Eq. (5.45),
Thus, the interpolation function can be written from Eqs. (5.48), (5.49), (5.50), (5.51) and
(5.52) as
It can be noticed that Eqs. (5.53), (5.54) and (5.55) are identical to Eq. set (5.31). In a
similar manner higher order interpolation function can be derived easily using Lagrangian
interpolation polynomial.
73
Finite Element Method with Applications in Engineering
With the use of Eq. (5.58), interpolation functions are derived for various line elements.
Linear Interpolation Function: From Figure 5.10.
74
Finite Element Method with Applications in Engineering
75
Finite Element Method with Applications in Engineering
Quartic Interpolation Function: Quartic type line element has 5 nodes in one element as
shown in Figure 5.13. Using the formula
76
Finite Element Method with Applications in Engineering
Thus,
At Node 1:
At Node 2:
At Node 3:
At Node 4:
At Node 5:
Quintic Interpolation Functions: Quintic type line element has got 6 nodes in one
element as shown in Figure 5.14.
77
Finite Element Method with Applications in Engineering
Similarly,
At Node 2:
At Node 3:
At Node 4:
At Node 5:
At Node 6:
78
Finite Element Method with Applications in Engineering
In a similar way, further higher order interpolation functions for other one-dimensional
elements and its properties can be easily derived.
79
Finite Element Method with Applications in Engineering
80
Finite Element Method with Applications in Engineering
Example 5.5
The triangular element used for ground water flow simulation is as shown in Figure 5.17.
The nodal co-ordinates are (x1 = 1, y1 = 2), (x2= 4, y2 = 0.5) and (x3 = 3, y3 = 4). The nodal
values of hydraulic heads {ɸ} at different nodes are [3.5, 2.2, 4.4], respectively. Find the
value of hydraulic head ɸ at point (2.5, 2.5).
81
Finite Element Method with Applications in Engineering
Example 5.6
A point sink (well) is located at a point p(x = 2.5, y = 2.5) whose strength Q is 0.2 m3/min in
a region as given in Example 5.5. Distribute the strength of the sink proportionately to the
nodes 1, 2 and 3.
Solution:
From Example 5.5, values of N1, N2 and N3 are 3.25/9, 2/9 and 3.75/9, respectively at point
P. Contribution of sink at node 1 is N1Q = 3.25(0.2)/9 = 0.07222 m3/min. Similarly, at node
2 it isN2Q = 0.0444 m3/min. and at node 3 the contribution is N3Q = 0.08333 m3/min. Note
that (N1 + N2 + N3)Q = 0.2.
First Derivatives of the Field Variable
It was shown in Eq. (5.88) that ɸ = N1 ɸ1 + N2 ɸ2 + N3 ɸ3. Then, the first derivatives of the
field variable ɸ with respect to x and y can be written as
Now Therefore,
Thus,
82
Finite Element Method with Applications in Engineering
In a similar manner,
Example 5.7
Find the values of (∂ɸ/∂x) and (∂ɸ/∂y) for the data given in Example 5.5.
Solution:
This is true only for linear interpolation functions. Derivative of field variable with respect to
x and y can be written as
83
Finite Element Method with Applications in Engineering
where N1, N2 and N3 are the linear functions of (x, y) and i, j, k are integers.
Example 5.8
Evaluate I = ∫∫N2dA over the triangular element.
Solution:
This integral can be written as ∫∫ N11 N 22 N30 dA. Here, i = 0, j = 1 and k = 0. Using Eq.
(5.106), I = (0! 1! 0!)(2A)/(0 + 1 + 0 + 2)! = A/3.
Example 5.9
Evaluate I = ∫∫N1 N2 N2 dA over the triangular element.
Solution:
This integral can be written as ∫∫N11 N22 N30 dA. Here, i = 1, j = 2 and k = 0. Using Eq.
(5.106), I = (1! 2! 0!)(2A)/(1 + 2 + 0 + 2)! = A/30.
84
Finite Element Method with Applications in Engineering
Integration of area co-ordinates over the area of an element can be done with the aid of
the formula (Huebner, 1975)
Example 5.10
Evaluate following integrals over a triangle with 6 nodes where Ni is quadratic in nature.
Solution:
85
Finite Element Method with Applications in Engineering
86
Finite Element Method with Applications in Engineering
Example 5.11
where αi, i = 1,2,3,4 are the coefficients to be evaluated. By letting values of ɸ to be ɸ1, ɸ2,
ɸ3and ɸ4 at nodes 1, 2, 3 and 4, respectively, matrix equation can be written as
87
Finite Element Method with Applications in Engineering
Thus,
Since ɸ is at a particular node, it is not varying with respect to x and y. Hence, the first
derivative with respect to x and y are
88
Finite Element Method with Applications in Engineering
Similarly,
These functions in global co-ordinates can be converted into natural co-ordinates by noting
that
90
Finite Element Method with Applications in Engineering
as
Nodes in the ξ—η plane may be mapped into corresponding nodes in the x—y plane by
defining
91
Finite Element Method with Applications in Engineering
Figure 5.27 Element with curved edge and its mapping to natural co-ordinate system
Further, x and y are functions of local co-ordinates ξ and η such that x = x(ξ, η) and y = y(ξ,
η). Thus, following transformations can be used to formulate element matrices.
92
Finite Element Method with Applications in Engineering
These derivatives as given by Eqs. (5.145) and (5.146) are possible only when inverse of
the Jacobian, [J]-1exists. This inverse exists provided interior angles of the quadrilateral
element are less than 180o. Numbering of nodes must follow the counter–clockwise
direction to produce positive |J| for the coordinate system shown in Figure 5.27.
Using the expression (5.160), interpolation functions for nodes 1, 2, 3, 4 can be written as
93
Finite Element Method with Applications in Engineering
Similar interpolation functions in natural co-ordinates in the η direction (Figure 5.29b) can
be described as
94
Finite Element Method with Applications in Engineering
Using the above expressions, interpolation functions for a Lagrangian element with 16
nodes (Figure 5.30) can be derived as
95
Finite Element Method with Applications in Engineering
96
Finite Element Method with Applications in Engineering
97
Finite Element Method with Applications in Engineering
Similarly,
98
Finite Element Method with Applications in Engineering
By redefinition,
Continuing the process, 8-node quadratic element can be generated with interpolation
functions
The above equations for linear and quadratic elements in compact form can be listed as
follows.
1. Linear element
2. Quadratic element
Corner nodes:
Mid-side nodes:
99
Finite Element Method with Applications in Engineering
100
Finite Element Method with Applications in Engineering
Therefore,
Let p be any point within the tetrahedral chosen as shown in Figure 5.36. Let V1, V2, V3
and V4be volumes of tetrahedrals p234, p134, p124 and p123, respectively. Then the
volume co-ordinates Li can be expressed as
Integration formula over an element for linear tetrahedral element can be shown to be
(Huebner, 1975)
101
Finite Element Method with Applications in Engineering
where ! is for factorial, i, j, k and l are integers, N1, N2, N3 and N4 are linear functions of x,
y, z.
Example 5.12
Nodal co-ordinates of tetrahedral element are (x1 = 0, y1 = 0, z1 = 0), (x2 = 1, y2 = 1, z2 = 3),
(x3= 2, y3 = 2, z3 = 0), (x4 = 0, y4 = 3, z4 = 0). Find linear interpolation functions and value of
field variable ɸ at a point (1.5, 1.5, 2), given that {ɸ}T = [3 2 2.5 3.5].
Solution:
From Eq. (5.207),
Then, [N] = [P] [G]–1. Thus, N1 = (18 – 3x – 6y – 3z)/18; N2 = 6z/18; N3 = (9x – 3z)/18; N4 =
(–6x + 6y)/18;
At point (1.5, 1.5, 2), [N] = [–0.0833 0.667 0.4167 0], therefore, ɸ = [N] {ɸ} = 2.124.
Example 5.13
Nodal co-ordinates of tetrahedral element are: (x1= 0, y1= 0, z1= 0), (x2= 1, y2= 1, z2= 3),
(x3= 2, y3= 2, z3= 0), (x4= 0, y4= 3, z4= 0). Determine linear interpolation functions in terms
of volume co-ordinates and find value of ɸ at a point (1, 1, 2), given that {ɸ}T = [3 2 2.5
3.5].
Solution:
From Example 5.12, volume of tetrahedral is V = 3. Various required volumes are:
102
Finite Element Method with Applications in Engineering
Thus, L1 = V1/V = 1/6; L2 = V2/V = 2/3; L3= V3/V = 1/6; and L4 = V4/V = 0;
Finally, [N] = [L] = [1/6, 2/3, 1/6, 0]; Thus, ɸ = [L] {ɸ} = 2.25.
Example 5.14
Evaluate ∂ɸ/∂x, ∂ɸ/∂y, ∂ɸ/∂z at point p (1.5, 1.5, 2) for the data given in Example 5.12.
Solution:
From Example 5.12,
N1 = (18 – 3x – 6y – 3z)/18; N2 = (0 + 0 + 0 + 6z)/18;
N3 = (9x + 0 + 0 – 3z)/18; N4 = (–6x + 6y + 0 + 0)/18; and 6V = 18. Further,
{b}T = [–3 0 9 –6]; {c}T = [–6 0 0 6]; {d}T = [–3 6 –3 0] and {ɸ}T = [3 2 2.5 3.5]
From Eq. (5.211),
Example 5.15
Evaluate following integrals over tetrahedral element.
Solution:
From the integration formula (5.214),
103
Finite Element Method with Applications in Engineering
Here Li = Li (x, y, z) = (ai+ bix + ci y + diz)/6V, where ai, bi, ci, di and V are as defined by Eq.
(5.205) and (5.206).
104
Finite Element Method with Applications in Engineering
105
Finite Element Method with Applications in Engineering
106
Finite Element Method with Applications in Engineering
Further,
107
Finite Element Method with Applications in Engineering
Figure 5.40 Rectangular prismatic serendipity elements (a) 8-node element (b) 20-node
element
1. Linear element
108
Finite Element Method with Applications in Engineering
2. Quadratic element
Corner nodes:
EXERCISE PROBLEMS
1. Using the linear interpolation function for line element, find the value of the field
variable ɸ and its first derivative at a place x = 0.8 given that xi = 0, xj = 5, ɸi = 2.5
and ɸj = 7.0.
2. Using the integration formula for linear type line element, evaluate
3. Temperature distribution in a steel plate is simulated using the linear type triangular
element with the nodal co-ordinates of (x1 = 1, y1 = 1), (x2 = 8, y2 = 0.5) and (x3 = 4,
y3 =5). The nodal values of temperature {ɸ} at different nodes are {25, 27, 23},
respectively. Find the value of temperature ɸ at point (3.5, 3.5).
4. The triangular element is used for ground water flow simulation. The nodal co-
ordinates are (x1 = 1, y1 = 1), (x2 = 8, y2 = 0.5) and (x3 = 4, y3 = 5). The nodal values
of hydraulic heads {ɸ} at different nodes are {12.5, 12.2, 12.8}, respectively. A point
source (recharge well) is located at a point p(x = 3.5, y = 3.5) whose strength Q is
0.3 m3/min Distribute the strength of the source proportionately to the nodes 1, 2
and 3.
5. Find the values of (∂ɸ/∂x) and (∂ɸ/∂x) for the data given in problem 3.
6. Using the integration formula for linear type triangular element evaluate I = ∫∫ N12
N2N3 dA over the triangular element.
109
Finite Element Method with Applications in Engineering
7. Evaluate (∂Ns/∂x) and (∂Ns/∂y) at a point P(1, 4) for the triangular element with
quadratic interpolation function.
8. The co-ordinates of the linear tetrahedral element are: (x1 = 2, y1 = 2, z1 = 0), (x2 =
3, y2= 3, z2 = 4), (x3 = 3, y3 = 3, z3 = 0), (x4 = 5, y4 = 4, z4 = 0). Determine the linear
interpolation functions and the value of field variable ɸ at a point (2, 2,1.5), given
that {ɸ}T = [5.5 7 6.7 3.5].
9. Evaluate ∂ɸ/∂x, ∂ɸ/∂y, ∂ɸ/∂z at point p(2, 2, 3) for the data given in problem 7.
10. Using the integration formula for linear type tetrahedral element, evaluate the
following integrals over the tetrahedral element: (1)
11. Using the quadratic interpolation function for line element, find the value of the field
variable ɸ and its first derivative at a place x = 0.8 given that xi = 0, xj = 5, ɸi = 2.5
and ɸj = 7.0.
12. Calculate the field variable ɸ at a point P(s = L/3) for a line element with cubic
interpolation function and also its first derivative at the same point, given that {ɸ}T =
[2 3 5 5 7.5].
13. Using the integration formula for quadratic type triangular element with 6 nodes,
evaluate I = ∫∫N12 N2 N3 dA over the triangular element.
14. The temperature distribution in a steel plate is simulated using the quadratic type
triangular element with the nodal co-ordinates of (x1 = 1, y1 = 1), (x2 = 8, y2 = 0.5)
and (x3= 4, y3 = 5). Find the value of (∂Ns/∂x) and (∂Ns/∂y) at a point P (3.5, 3.5).
15. Assuming cubic interpolation functions, for the problem in question 4, determine
(∂Ns/∂x) and (∂Ns/∂y) at a point P(3, 4).
16. Using the special indexing scheme for line element, derive the interpolation
functions for an element with 8 nodes.
110
Finite Element Method with Applications in Engineering
Turner, W. J., Clough, R. W., Martin, H. C., and Topp L. S. (1956). Stiffness and deflection
analysis of complex structures, Journal of Aeronautical Science,23:805–823.
White, R. E. (1985). An Introduction to the Finite Element Method with Applications to
Nonlinear Problems, John Wiley & Sons, New York.
Zienkiewicz, O. C. (1980). Finite Element Method, 3rd ed., Mac-Graw Hill, New York.
Zienkiewicz, O. C., and Taylor R. L. (1989). The Finite Element Method, Vol 1, Mac-Graw
Hill, London.
111
Finite Element Method with Applications in Engineering
112
Finite Element Method with Applications in Engineering
113
Finite Element Method with Applications in Engineering
Shape Functions
N1 and N2 are called ‘shape functions’ (also known as interpolation or basic functions),
shown in Figure 6.4, because Ni's express shape of the assumed displacement function
over the domain of the element when the i-th element degree of freedom has unit value
and all other degrees of freedom are zero. A property of shape functions is that their sum
equals unity. Such a property is essential to ensure proper simulation of rigid body
displacements. Hence,
114
Finite Element Method with Applications in Engineering
115
Finite Element Method with Applications in Engineering
Step 5: Assemble the element equations to obtain the global equations and introduce
boundary conditions
By employing Eq. (6.11) to elements 1 and 2, equations
and
can be obtained. Note that throughout the text, the superscript in parentheses refers to the
element number.
To derive global (or the system) equations, consider the free-body diagram of individual
spring elements as shown in Figure 6.6. Here, the nodal forces are shown to be consistent
with the element force-sign convention.
116
Finite Element Method with Applications in Engineering
Furthermore,
In the above Eqs. (6.14) and (6.15), u1, u2 and u3 are displacements of nodes 1, 2 and 3,
respectively. Assembly can be performed in two ways:
Assembling by nodal equilibrium conditions; and
Assembling by direct superposition (direct stiffness method).
Assembling by Nodal Equilibrium Conditions
From Figure 6.6, the nodal equilibrium conditions at nodes 1, 2 and 3 can be written,
respectively, as
In view of Eqs. (6.12), (6.13), (6.14) and (6.15), Eq. (6.16) can be written as
or
117
Finite Element Method with Applications in Engineering
By adding Eqs. (6.21) and (6.22) together, the global (assembled equations) matrix can be
obtained as
118
Finite Element Method with Applications in Engineering
For problems involving a large number of DOF's, it is tedious (and a waste of computer
resources) to expand each element matrix to the order of total stiffness matrix. To avoid
this expansion, a shortcut is employed in the assembly process where the columns of
each element matrix are labelled according to the DOF's associated with them as follows:
The system is then constructed simply by directly adding terms associated with DOF's
in (1) and K(2) into their corresponding identical DOF locations in as
The {q} and {F} are then simply arranged in the order of DOF locations as in . Thus,
119
Finite Element Method with Applications in Engineering
Forced-boundary conditions are further classified into two categories of homogeneous and
non-homogeneous boundary conditions. The homogeneous or the zero-boundary
conditions occur at locations that are completely restrained (i.e., prevented from moving).
On the other hand, non-homogeneous boundary conditions occur where non-zero values
are specified for some selected DOF (e.g. support settlement). In general, forced-
boundary conditions can be treated mathematically by partitioning the global equations as
follows:
Here, 1 contains the unconstrained DOF's and 2 contains specified (constrained) DOF's.
By expanding Eq. (6.27),
For the two spring assemblage problem of Figure 6.2(a), suppose forced-boundary
condition is specified at node 1 (i.e., u1 is specified). Then, the assembled equations can
be partitioned as
120
Finite Element Method with Applications in Engineering
is obtained. Note that Eq. (6.35) could have also been obtained directly by deleting the row
and column of Eq. (6.23), corresponding to the zero-displacement DOF.
To illustrate the case of non-homogeneous–boundary conditions, let u1 = δ, where δ is a
known (specified) displacement.
In view of Eq. (6.28), Eq. (6.32) can be written as
Hence, the row and column corresponding to the non-zero DOF of assembled equations
cannot be simply deleted when dealing with non-homogeneous–boundary conditions.
Step 6: Solve for the unknown DOF
Eqs. (6.35) and (6.36) are the global equations modified for boundary conditions. By
solving Eq. (6.35) u2 and u3 can be obtained as follows.
Illustrative Example 1
For the spring assemblage shown in Figure 6.7(a), obtain
the assembled stiffness matrix;
the displacements of nodes 2 and 3;
the reaction forces at nodes 1 and 4; and
the forces in each spring.
121
Finite Element Method with Applications in Engineering
122
Finite Element Method with Applications in Engineering
The free body diagram of the spring assemblage is shown in Figure 6.7(b).
By comparing the global equations with equations for a generic spring element, it can be
seen that
123
Finite Element Method with Applications in Engineering
The global equations can be obtained by following the assembly procedure as:
By comparing Eqs. (6.40) and (6.41) with equations for a generic element, it can be seen
that
124
Finite Element Method with Applications in Engineering
125
Finite Element Method with Applications in Engineering
where A is the cross-sectional area of bar, E is the modulus of elasticity of bar material
and δ = deformation = u2 – u1.
Eq. (6.45) leads to
where K = (AE/L). Hence, a truss member and a spring member are analogous as shown
in Figure 6.9(c).
By following the procedure adopted for spring element, element equations (in local co-
ordinate system) for a truss member can be obtained easily. Thus, approximation function
can be written as
Similarly, the strain–displacement relation and the constitutive law can be expressed as
126
Finite Element Method with Applications in Engineering
Assembly process and other steps are similar to those for the spring element.
Illustrative Example 2
For the three-bar assemblage shown in Figure 6.10, determine (a) the assembled stiffness
matrix, (b) the displacements of nodes 2 and 3, and (c) the reactions at nodes 1 and 4.
By using Eq. (6.51), the element stiffness matrices are obtained as
127
Finite Element Method with Applications in Engineering
By solving the above 2 × 2 equation set, the unknown displacements are obtained as
where the strain energy, ø, is the capacity of internal forces (or stresses) to do work
through strains in the body. Work done by the external forces, Ω, on the other hand, is the
capacity of forces such as body forces, surface traction forces, and applied nodal forces to
do work through deformations of the body. Expressions of ø are given below for the one-,
two- and three-dimensional deformations (Refer to Zienkiewicz, 1980 for details.)
One-Dimensional Deformations in the x Direction
It can be shown that
where σx and εx are, respectively, the stress and the strain along x. In the matrix notation,
Eq. (6.57) can be shown as
128
Finite Element Method with Applications in Engineering
where σx, σy are normal stresses in the X and Y directions, respectively εx, εy are normal
strains in the X and Y directions; and τxy and γxy are the shear stress and strain,
respectively, in the X-Y plane. In the matrix notation,
where
Three-Dimensional Deformations
The strain energy expression for a body experiencing three-dimensional deformation is
given by
Here, σx, σy and σz are normal stresses in the X, Y and Z directions, respectively; εx, εy and
εz are normal strains in the X, Y and Z directions; and τxy, τyz, τzx and γxy, γyz, γzx are,
respectively, shear stresses and strains in the X, Y and Z direct strains. In the matrix
notation,
where
129
Finite Element Method with Applications in Engineering
V = volume
By using Eq. (6.47), the axial displacement function can be expressed in terms of the
shape functions and nodal displacements as
130
Finite Element Method with Applications in Engineering
where
is obtained. Here,
By applying the principle of minimum potential energy, the equilibrium state corresponds to
Therefore,
Hence, the element equation for a truss member in the local co-ordinate system is
131
Finite Element Method with Applications in Engineering
Therefore,
Note that A or E have not been assumed to be constant. Therefore, any variation in A or E
with respect to x-direction can be included in [ke].
In view of Eq. (6.69),
By substituting Eq. (6.82) into Eq. (6.81), the element matrix for a truss member having
constant A and E can be derived to be
Illustrative Example 3
For the bar element with varying cross-section given in Figure 6.11(b), derive the element
matrix. Consider the problem shown in Figure 6.11(b) for which E is constant and A varies
linearly,
The element stiffness matrix can be derived as
132
Finite Element Method with Applications in Engineering
6.3.3.3 Equivalent Nodal Loading Due to Surface Forces and Body Forces
It was shown previously that
Therefore,
133
Finite Element Method with Applications in Engineering
After assembling,
6.3.3 Local and Global Element Equations for a Bar in the X–Y Plane
Eq. (6.80) relates the displacement components in the local direction to the forces in the
local x direction. Therefore, Eq. (6.80) is called ‘the local element equation’. In plane truss
problems, it is often necessary to relate global displacement components of an element to
its respective global force components. This relationship is called the ‘global element
equation’.
The local element equations are
where
where
134
Finite Element Method with Applications in Engineering
It is now required to establish a relationship between [ke] and [Ke]. For this purpose, the
relationships between {qle} and {qe}, and the relationship between {fe} and {Fe} have to be
established first.
As shown in Figure 6.12(a), the components of displacement vector in the local x – y
and the global X–Y directions are, respectively, u, v and U, V. It can be seen that
Application of Eq. (6.94) to the displacement components associated with local nodes 1
and 2 results in
135
Finite Element Method with Applications in Engineering
and
where
136
Finite Element Method with Applications in Engineering
is obtained where
Illustrative Example 4
For the plane truss shown in Figure 6.13,
determine the displacement components at nodes,
137
Finite Element Method with Applications in Engineering
138
Finite Element Method with Applications in Engineering
Therefore,
139
Finite Element Method with Applications in Engineering
and
140
Finite Element Method with Applications in Engineering
Figure 6.14 (a) Two-node space truss element subject to tensile force T (b) Global
displacements
Displacement u and the force f in the local co-ordinate have the components u(x) = (U, V,
W) and f = (Fx, Fy, Fz) in the global co-ordinates (X, Y, Z). It remains now to find the
transformation matrix [T*] to transform from the local to the global co-ordinate system.
It can be seen from Figure 6.15 that an arbitrary vector has the components
cosθx, cosθy, and cosθz are components of a unit vector in the x-direction. From Figure
6.14(b)and Eq. (6.108), it can be shown that
141
Finite Element Method with Applications in Engineering
Further, the displacement vectors u1 and u2 can be shown form Figure 6.14(b) and Eq.
(6.108) to be
Multiplying Uj by cosθx, Vj by cosθy, and Wj by cosθz, adding them and using Eq. (6.109),
the following equation is obtained.
Substituting Eq. (6.114) in Eq. (6.84), and this in turn in Eq. (6.111), the following equation
can be derived.
142
Finite Element Method with Applications in Engineering
where
Force and stress in space truss element can be obtained in an analogous way to
computation of stress for a bar in the X-Y plane
Illustrative Example 5
For the space truss shown in Figure 6.16,
Determine the displacement components at node A in terms of AE.
Forces in each bar
For all bars AE = constant.
Note: This problem is statically determinate. By taking the equilibrium of joint A, the
answers for the forces in bars are:
TAB = 15,094.77 N; TAC = 13,856.95 N; TAD = 15,577.84 N. All forces are tensile.
Solution:
Let the direction of x for each element is taken in the direction from node 1 to the other
node as shown in Figure 6.16(b) above. The direction cosine of each member is shown in
the table below.
Element 1 is from node i = 1 to node j = 2.
Element 2 is from node i = 1 to node j = 3.
Element 3 is from node i = 1 to node j = 4.
143
Finite Element Method with Applications in Engineering
From Eq. (6.116), the matrix equation for each element in global co-ordinates is
144
Finite Element Method with Applications in Engineering
145
Finite Element Method with Applications in Engineering
By assembling the matrices of the three members, the nodal equations are obtained as
146
Finite Element Method with Applications in Engineering
Thus,
147
Finite Element Method with Applications in Engineering
where
where G = shear modulus and J = polar moment of inertia of the cross-sectional area
about the axis of the element. Alternatively, the stress–strain relationship can be
expressed as
148
Finite Element Method with Applications in Engineering
where
By substituting Eqs. (6.121) and (6.123) into (6.124), it can be shown that
Illustrative Example 6
A circular shaft as shown in Figure 6.17(b) is subjected to torques T2 and T3 as shown in
the diagram. By employing one-dimensional torsion elements, compute angular rotations
at nodes 2 and 3 and reactive torques at nodes 1 and 4.
Solution:
The element matrices can be obtained as follows.
149
Finite Element Method with Applications in Engineering
150
Finite Element Method with Applications in Engineering
Let q be the heat flow (per unit area) and t be the temperature. Then, qi, i = 1, 2 are the
nodal heat flow rates and ti, i = 1, 2 are the nodal temperatures.
Note that
where and Kxx = Thermal conductivity in x-direction [KW/m.°C in SI units]. The Kxx
measures the amount of heat energy (W.hr) that flows through a unit length of a given
substance in a unit time (hr.) to raise the temperature 1 degree (°C).
Step 4: Derive element equations
Since physics of the element can be understood easily for the one-dimensional heat flow
element, direct equilibrium approach can be employed to derive element equations. By
employing Eq. (6.131), the heat flowing in the x-direction at node 1 is
151
Finite Element Method with Applications in Engineering
From the principle of conservation of energy, the net heat flow into the system must be
zero for a steady state condition.
Illustrative Example 7
The furnace wall shown in the Figure 6.19 consists of 25 cm of fire brick [K1 = 0.012 W/(cm
°C)], 10 cm of insulation brick [K2 = 0.0014 W/(cm °C)], and 20 cm of red brick [K3 =
0.0086 W/(cm °C)]. The specified inner and outer temperatures are 500°C and 150°C,
respectively. Determine the internal temperature distribution.
Figure 6.19 Cross section of furnace wall and its finite element model
Solution:
This problem can be treated as a one-dimensional model. A constant arbitrary heat
conduction area of unit cm2 is assumed for all elements.
Element conduction matrices are given by
152
Finite Element Method with Applications in Engineering
Assembly
Hence,
153
Finite Element Method with Applications in Engineering
where Kxx is the coefficient of permeability in the x-direction. Consequently, the volumetric
flow rate q can be obtained from
154
Finite Element Method with Applications in Engineering
The element equations can be derived easily by adopting the direct equilibrium approach.
From Eq. (6.146), fluid flow entering the element in the x-direction at node 1 is
where
From the principle of conservation of mass, the net fluid flow into the system must be zero
for a steady state condition.
or
Figure 6.22 One-dimensional flow through porous media and its finite element model
Illustrative Example 8
In a laboratory, experiment of one-dimensional flow through porous media over the section
shown, the following data are known.
Determine the distribution of hydraulic head over the length of the section, the flow rate
and fluid velocities in each element.
Solution:
Element matrices are given by
155
Finite Element Method with Applications in Engineering
Assembly
Hence,
or
156
Finite Element Method with Applications in Engineering
Hence, set Kxx = 1 in the one-dimensional porous media problem to get the element
equations. Then,
where .
Figure 6.24 A finite element to analyze one-dimensional ideal fluid flow through pipes
157
Finite Element Method with Applications in Engineering
Figure 6.25 (a) Beam subjected to transverse loading, (b) Beam theory sign conventions
Referring to (Crandall et al. (1978)) and Figure 6.25, it can be shown for a shallow beam,
that
158
Finite Element Method with Applications in Engineering
where u is axial displacement. The u at any point on a cross section, on the other hand,
can be shown to be of the form (refer to Figure 6.27)
Thus,
159
Finite Element Method with Applications in Engineering
Note that tensile stresses are considered positive. Therefore, from Eqs. (6.165) and
(6.166), moment M about z-axis can be expressed as
Here, I = moment of inertia of the cross-sectional area about the z-axis. It is to be noted
here that EI has not been assumed to be constant. By combining Eqs. (6.159), (6.161) and
(6.167), Eq.
can be obtained. Thus, the governing differential equation for bending of a beam is
where C1, C2, C3, C4 are unknown, constant terms. They can be determined by applying
boundary conditions.
160
Finite Element Method with Applications in Engineering
Therefore, the four unknown constants Ci, i = 1, 2, 3, 4 in Eq. (6.172) can be obtained in
terms of element DOF by making use of boundary conditions of Eq. (6.168). By
substituting Ci's back into Eq. (6.172), equation describing variation of v (the primary
unknown quantity) over x in terms of element DOF, as
where
161
Finite Element Method with Applications in Engineering
N1, N2, N3 and N4 are the shape functions for a beam element. In the literature, Ni's are
called beam functions, Hermite polynomials, or cubic splines. Variations of Ni, i = 1, 2, 3, 4
over the length of element are sketched in Figure 6.29.
Here, it may be noted that
At node 1, . Thus, at x = 0, , i = 1, 3, 4.
where
162
Finite Element Method with Applications in Engineering
Here,
Alternatively, [B] can be shown as
where
Constitutive Law
Following expressions can be easily derived from Eqs. (6.166) and (6.178):
Figure 6.30 A beam element subjected to distributed and concentrated point loads
Step 4: Derive element equations
In the formulation presented below, the element equations are derived by employing the
principle of minimum potential energy. (Note that equations can also be derived by
employing direct equilibrium approach. Refer to texts (e.g., Logan (1993); Gere (1965)) for
details.)
Consider the beam element shown in Figure 6.30 for deriving element equations.
Following notations are used in Figure 6.30.
fy(x) is distributed load
Pn are concentrated point load applied at distance xn from node 1 (n = 1,2,3,…)
163
Finite Element Method with Applications in Engineering
In Eq. (6.183), fiy and mi are (nodal components), respectively, the shear force and the
bending moment at the i-th node. Moreover, v′ indicates slope of v with respect to x. In
other words, v′ represents rotation.
By letting
and by substituting Eqs. (6.176), (6.178) and (6.182) into Eq. (6.183),
and
164
Finite Element Method with Applications in Engineering
Note that variation in E and I along x can be considered easily in Eq. (6.186). For constant
EI, Eq. (6.186) simplifies to
By substituting Eq. (6.181) in Eq. (6.190) and performing the matrix multiplication, [ke]
takes the form
All the terms of the element stiffness matrix [ke] can be evaluated explicitly by substituting
Ni's from Eq. (6.177). The resulting matrix is given below.
Here, [K], [F] and {F0} are assembled stiffness matrix, the load vector consisting of
loads/moments applied directly at the joints (it also includes support reactions), and the
assembled, equivalent nodal load vector. Note that the size of the assembled matrix is
reduced after applying the geometric (or forced) boundary conditions.
Step 6, 7 and 8: Solve for primary and secondary unknowns and interpret results
The assembled equations, which have been modified by applying boundary conditions,
can be solved for unknown displacement components contained in {q}. Once the primary
quantities ({q}) are known, the secondary quantities like reactions and element forces can
be computed by applying Eqs. (6.193) and (6.189), respectively. Shear force and bending
moment diagrams can then be constructed for design purposes.
Example 1
Consider a beam subjected to a uniformly distributed load of intensity w per unit length (in
the –y direction). Derive equivalent nodal force vector.
165
Finite Element Method with Applications in Engineering
Solution:
By applying Eq. (6.188), the equivalent concentrated nodal force vector is given by
Example 2
Consider a beam subjected to concentrated load P (in –y direction) at a distance ‘a’ from
node 1. Let L = a + b. Derive equivalent nodal force vector.
Solution:
By applying Eq. (6.188), the equivalent nodal force vector can be computed easily as
166
Finite Element Method with Applications in Engineering
Example 3
Consider a fixed beam subjected to distributed and/or concentrated loads. Derive
equivalent nodal force vector.
Solution:
Note that for a fixed beam, {qe} = 0. Then, from Eq. (6.189), the actual (or corrected)
element nodal forces are given by
In other words,
Example 4
Analyze beam shown in the figure by using FEM.
Solution:
Consider the beam to be made up of the two elements 1 and 2.
The bou
ndary conditions are
167
Finite Element Method with Applications in Engineering
168
Finite Element Method with Applications in Engineering
Similarly,
Example 5
Analyze beam system shown by using FEM. Consider P = wL, M = PL = wL2 and EI =
constant.
169
Finite Element Method with Applications in Engineering
Solution:
Consider the beam to be made up of two elements and
The boundary conditions are V1 = θ1 = V2 = V3 = θ3 = 0
Element matrices are given by
170
Finite Element Method with Applications in Engineering
or
or
By making use of the element equation, the element force vectors are obtained as
171
Finite Element Method with Applications in Engineering
Example 6
Analyze beam shown in the figure by using FEM. Consider constant EI and
Solution:
Consider beam elements and as well as spring element to discretize the domain.
The boundary conditions are V1 = θ1 = V3 = θ3 = V4 = 0
The element equations are obtained as shown below.
Element
172
Finite Element Method with Applications in Engineering
Element
Element
173
Finite Element Method with Applications in Engineering
Force vector for each beam member as well as force in the spring can be computed by
making use of respective element matrices.
6.10 ANALYSES OF PLANE FRAMES AND GRIDS
Many civil engineering structures like buildings and bridges consist of frames and/or grids.
In this section, finite element analysis procedures will be formulated for such structures.
Generally, a plane frame is a series of slender members rigidly connected to each other
such that the original angles made between elements at their joints remain unchanged
from one element to another at the joints. In addition, the element centroids, as well as the
applied loads, lie in a common plane. Since applied loads may have components along an
element’s local x-axis, unlike beam element, a frame element may be subjected to flexural
as well as axial effects.
A grid, on the other hand, is a structure on which loads are applied perpendicular to the
plane of the structure, as opposed to plane frame, where loads are applied in the plane of
the structure. Since applied loads do not have any component along a grid element's local
x-axis, no axial force can be developed in a grid member.
A typical plane frame and grid are shown in Figure 6.31.
6.10.1 Plane Frame Analysis
174
Finite Element Method with Applications in Engineering
Elements in plane frames are subjected to both lateral loading and axial loading.
Therefore, axial deformations need to be included in the analysis. As described earlier, all
the distributed and point loads (which are not applied at the nodes) are replaced by
equivalent nodal loads. Local effective nodal forces (actual element nodal forces plus
equivalent concentrated loads), which act on an arbitrarily oriented member of a plane
frame, are shown in Figure 6.32. The plane frame structure consisting of prismatic
members is assumed to lie in the X–Y plane. The local axes x and y are located along the
plane frame element’s length (node 1 → 2) and transverse to the element, respectively,
and the global axes X and Y are chosen with respect to whole structure.
175
Finite Element Method with Applications in Engineering
where C1 = (AE/L). Here, f1x and f2x are axial forces at nodes 1 and 2 in the local x
direction. The u1 and u2, on the other hand, are axial displacement components along local
x at nodes 1 and 2, respectively.
Similarly, by considering strain energy in bending, (strain energy expression considered in
the formulation of beam element), equations governing the transverse effects (bending
and shear) can be derived to be
where C2 = (EI/L3). Here, fiy and mi are the transverse shear force and bending moments,
respectively at i-th node.
By combining the axial effects from Eq. (6.194) and flexural effects from Eq. (6.195),
following equation can be derived for a plane frame element.
In other words, a plane frame member's governing equations in the local direction are
given by
where C = cos α, S = sin α. The C and S can be obtained from the global co-ordinates of
the element's nodes as
where
176
Finite Element Method with Applications in Engineering
Note that since the local z-axis coincides with the global Z axis, no transformation is
required for the rotation θ along z-axis.
It can be shown that
or,
where
Similarly, by applying Eqs. (6.200) and (6.201) to local nodes 1 and 2, the following
equation Eq. (6.205) is obtained.
is obtained where
In view of Eqs. (6.197), (6.198) and (6.203), Eq. (6.205) can be written as
where
177
Finite Element Method with Applications in Engineering
After performing the triple matrix product, Eq. (6.209) can be written as
where
which can be written in the global co-ordinate system. Moreover, the effective element
force vector can be written as
In Eq. (6.213), the {Fee} and {F0e} are, respectively, the element force vector (which
contains details like shear force and bending moments) and the equivalent nodal force
vector (corresponding to transverse loading) in the global co-ordinates. By combining Eqs.
(6.212) and (6.213), it can be shown that
By applying Eq. (6.214) to all the plane frame elements in the structure and assembling
the resulting equations
178
Finite Element Method with Applications in Engineering
Illustrative Examples
Example 1
Analyze the plane frame shown in the figure by using FEM. Consider E = 200 GPa, I = 1 ×
10−4m4 and A = 1 × 10−2 m2.
Solution:
Let element axis be directed from node 1 to node 2 for element and from node 2 to
node 3 for element . Various coefficients required in analysis are given below in the
tabular form.
For analysis of plane frame, it is useful to write global element equations in symbolic,
partitioned form. Thus,
179
Finite Element Method with Applications in Engineering
After Assembly,
Here,
By substituting boundary conditions, following equation is obtained.
180
Finite Element Method with Applications in Engineering
Element 2
181
Finite Element Method with Applications in Engineering
Example 2
Analyze the plane frame shown in the figure by using FEM. Consider E = 200 GPa, I = 2
×10−4 m4 and A = 1 × 10−2 m2.
182
Finite Element Method with Applications in Engineering
Solution:
Let element axis be directed from node 1 to node 2 for element 1 and from node 2 to node
3 for element 2. Various coefficients required in analysis are given below in the tabular
form.
After assembly,
183
Finite Element Method with Applications in Engineering
Here,
By substituting boundary conditions, following equation is obtained.
184
Finite Element Method with Applications in Engineering
Element 2
185
Finite Element Method with Applications in Engineering
186
Finite Element Method with Applications in Engineering
directions, are a deflection viy (normal to the grid), a torsional rotation θix about the x axis,
and a bending rotation θiz about the z-axis. The nodal effective (actual plus equivalent
concentrated) forces at the i-th node consists of a transverse force fiy normal to the grid, a
torsional moment mix about the x-axis, and a bending moment miz about the z-axis.
As mentioned before, a grid member is not subjected to axial force components. Loading
in the direction perpendicular to the plane of grid may induce a torsion and bending in a
grid element. Thus, one can consider strain energy in torsion and flexure to derive
equations for a prismatic grid element.
By considering strain energy in torsion, it can be shown (from the one-dimensional torsion
element formulation) that
where C3 = . On the other hand, by minimizing potential energy expression for flexure
(refer to formulation of beam element), the following equation
187
Finite Element Method with Applications in Engineering
By combining Eqs. (6.218) and (6.219), the local element equations for a grid element can
be obtained as
Or,
By adopting the procedure used to obtain Eq. (6.207), the local degrees of freedoms can
be expressed in terms of global degrees of freedoms by putting
where
In Eq. (6.226), the global displacement components Vi, θiX and θiZ, respectively, are the
deflection along Y, rotation about X and rotation about Z axes at the i-th node.
Note that α is measured in the X–Z plane from the local x to global X (and not from the
global X to local x, as done for plane truss and frame) in the counter clockwise direction.
By following the formulation of a plane frame element, the global equations for a grid
element can be derived as
where
188
Finite Element Method with Applications in Engineering
By performing the triple matrix multiplication in Eq. (6.228), the global stiffness matrix for a
grid element is obtained as
For the grid member also, the steps summarized for plane frame analysis in Section 6.10.1
can be followed.
Illustrative Example
Analyze the grid shown in the figure by using FEM. Consider
E = 200 GPa, G = 80 GPa, I = 4 × 10−4 m4, J = 2 × 10−4 m4
Solution:
Consider element axes for both the elements as shown in the figures. Note that local x-
axis for each element is defined as directed from node 1 to node 2 of the element
189
Finite Element Method with Applications in Engineering
Element properties and direction cosines are shown in the tables presented below.
190
Finite Element Method with Applications in Engineering
Element 2
191
Finite Element Method with Applications in Engineering
192
Finite Element Method with Applications in Engineering
method (Streeter et al., 1998). However, for complex pipe networks FEM can be very
effectively used by considering networks as a system of one-dimensional finite elements
consisting of the pipe elements. Here, application of FEM in fluid flow networks is
discussed.
where Q is flow through pipe, L is the length of the pipe, μ is the dynamic viscosity of the
fluid, and D is the internal diameter of the pipe.
For a typical element shown in Figure 6.34, the flow entering the element at the nodes 1
and 2 in terms of the pressure heads can be written as
193
Finite Element Method with Applications in Engineering
for node 2.
In other words,
where
For the configuration shown, in Figure 6.35, the element to node connection relationship is
as follows:
1 1 2
2 2 4
3 1 3
4 4 6
5 3 5
6 5 6
7 1 4
8 3 4
9 3 6
where e denotes element, 1, 2–denote connecting nodes of the element e, Q1(e) is the flow
entering the element at node 1, Q2(e) is the flow entering the element at node 2.
For elements 1 to 9, the element equations are written for the network in Figure 6.35.
194
Finite Element Method with Applications in Engineering
195
Finite Element Method with Applications in Engineering
Here, ci, i = 1,2,…,6 are consumptions at the nodes or the rate of outflow from the network
with proper sign. On the other hand, Qi, i = 1,6 are flow through the pipe. The ci can be
termed as loads on the network. The assembled matrix is as shown below, which is of the
form [K]{H} ={q}, where [K] is the fluid stiffness matrix, {H} = column vector of nodal
pressure heads and {q} is the column vector of nodal consumptions.
196
Finite Element Method with Applications in Engineering
Note that the matrix shown above is applicable for only laminar flow and this does not
include the pressure losses associated with the fittings, valves and pumps that are the part
of the most fluid network. These pressure losses are normally taken into account by
introducing an equivalent length of pipe (Streeter et al., 1998), that will cause the same
loss.
In many practical applications, the fluid flow in network is turbulent. It is still possible to
define an element as a length of fluid carrying conduit, but the element equations are no
longer linear. The pressure head-loss versus flow rate relationship is given by Darcy-
Weisbach, in the following form (Streeter et al., 1998).
Here, H1 – H2 is the pressure head drop in meters between section 1 and 2 which are L
(meter) and f is the friction factor. As before, Eq. (6.246) can be used to write two
equations for flow at the nodes in terms of pressure at the nodes. Flow ‘entering’ the
element at its ends are obtained from Eq. (6.246) as
where Te is the transmittance of the element in turbulent flow case, which is defined as
for node 1,
197
Finite Element Method with Applications in Engineering
As in the laminar flow case, for flow network in Figure 6.35 the individual element
equations from Eq. (6.251) can be written as follows.
where
198
Finite Element Method with Applications in Engineering
The global assembly of these element matrices is given above. The individual elements in
the global matrix on the left hand side are not independent of the pressure head H. These
matrix elements are to be updated often in each iteration. The number of iterations
depends on the convergence criteria. Hence, values of pressure heads are required to be
determined by an iterative process. At the first instance, pressure heads at different nodes
are assumed and the global transmittance matrix is formulated. The ensuing set of linear
equations can be solved for pressure head and the transmittance matrix can be updated
again. This procedure can be repeated till convergence is achieved.
Illustrative Example
Find the flow rates in each of the elements (pipes) in the network as shown in Figure 6.35.
The diameters of the pipe are 10, 10, 10, 10, 10, 10, 12, 12, 12 mm, respectively. The
lengths are 1,000, 1,000, 1,000, 1,000, 1,000, 1,000, 1,500, 1,500, 1,500 mm,
respectively. The flow rates at each node out of the network are [+125, –25, –25, –25, –25,
–25] cubic cm/min. The liquid flowing is water. If the pressure head at node 1 is 2 m
expressed in terms of the height of liquid that is flowing, find the pressure heads, (H), at
each of the remaining nodes and the flow rates in the pipe. The friction factor may be
taken as 0.02.
Solution:
The given data has been tabulated as follows.
The problem has been solved by using MATLAB program as given in Appendix G (Section
G.1). Results are as shown below. Pressure head values at different nodes in (m) are:
Node H (m)
1 2.00000
2 1.99999
3 1.99995
199
Finite Element Method with Applications in Engineering
4 1.99997
5 1.99999
6 1.99995
1 0.00061
2 0.00019
3 0.00065
4 0.00031
5 0.00027
6 −0.00016
7 0.00082
8 −0.00029
9 0.00028
200
Finite Element Method with Applications in Engineering
Consider the basic electrical circuit shown in Figure 6.37. Element equations for each
resistor can be written as follows.
Element No. 1 (connecting nodes are 1 and 2): The element equation is
Element No. 2 (connecting nodes are 2 and 3): The element equation is
Element No. 3 (connecting nodes are 2 and 3): The element equation is
Element No. 4 (connecting nodes are 3 and 4): The element equation is
201
Finite Element Method with Applications in Engineering
Element No. 5 (connecting nodes are 3 and 4): The element equation is
Element No. 6 (connecting nodes are 4 and 5): The element equation is
From these equations, the right hand side of the global matrix can be written as
Thus,
202
Finite Element Method with Applications in Engineering
Proper boundary conditions must be substituted before this problem can be solved.
Ensuing set of linear equations can be solved for voltage at various other nodes.
Illustrative Example
For the electrical network shown in Figure 6.37, the voltage difference between nodes 1
and 5 is 10 V. The resistance at various resistors are: 250, 100, 200, 300, 400, 500 Ohm,
respectively. Calculate the voltage at various nodes and the current in each element?
Solution:
It can be seen in Figure 6.37, that are 6 elements and 5 nodes. By substituting G1 = 1/250,
G2 = 1/100, G3 = 1/200, G4 = 1/300, G5 = 1/400 and G6 = 1/500, V1 = 10 V and V5 = 0, in
Equation (6.273), following ensuing equation is obtained.
This equation set has been solved by using the Matlab program in the Appendix G,
Section G.2. The current values are as follows.
1 0.01012
2 0.00675
3 0.00337
4 0.00578
5 0.00434
6 0.01012
203
Finite Element Method with Applications in Engineering
1 10.00000
2 7.46988
3 6.79518
4 5.06024
5 0.00000
Element stiffness matrix for a space truss element in the global co-ordinate system:
204
Finite Element Method with Applications in Engineering
205
Finite Element Method with Applications in Engineering
206
Finite Element Method with Applications in Engineering
where
207
Finite Element Method with Applications in Engineering
problems. Even though the problems discussed in this chapter are related to one-
dimensional FEM analysis using direct and variational approach, method of weighted
residual approach can also be applied for various one-dimensional problems in a very
similar way as discussed in Chapter 4. The two-dimensional FEM analysis of engineering
problems will be discussed in the next chapter, i.e. Chapter 7.
EXCERCISE PROBLEMS
1. Compute the assembled 8 × 8 matrix for the spring assemblage shown in the figure.
3. Analyze the plane truss structure shown in the figure using finite element method.
Let E = 200 GPa, A = 1 × 10−2 m2 and L = 1 m.
4. Analyze the plane truss shown in the figure by using finite element method.
208
Finite Element Method with Applications in Engineering
5. Analyze the space truss shown in the figure by using finite element method. Let E = 200
GPa, A = 4 × 10−2 m2
6. Analyze the shaft shown in the figure by using finite element method. Let G = 70 GPa, J
= 4 × 10−2 m4, L = 2 m.
7. Analyze the temperature distribution through the composite wall shown in the figure
using finite element method. Also determine the head flux entering and exiting the system.
8. Analyze the one-dimensional flow through porous media over the section shown in the
figure by using finite element method. Also compute the flow rate and fluid velocity in each
element. Let A = 4 cm2.
209
Finite Element Method with Applications in Engineering
9. Analyze the beam system shown in the figure by using finite element method.
10. Analyze the beam supported by a vertical spring by using finite element method.
11. Analyze the beam system shown in the figure by using finite element method.
12. Analyze the plane in the figure by using finite element method.
13. Analyze the plane frame shown in the figure by using finite element method.
210
Finite Element Method with Applications in Engineering
14. Analyze a horizontal elastic member supported by a wire by using finite element
method.
15. Analyze the grid system shown by using finite element method.
16. Find the flow rates in each of the elements (pipes) in the network as shown in Figure
6.35. The diameters of the pipe are 10, 10, 10, 10, 10, 10, 12, 12, 12 cm, respectively. The
lengths are 100, 100, 100, 100, 100, 100, 150, 150, 150 m, respectively. The flow rates at
each node out of the network are [+50, −10, −10, −10, −10, −10] lit/sec. The liquid flowing
is water. The friction factor may be taken as 0.02. If the pressure head at node 1 is 15 m,
expressed in terms of the height of liquid that is flowing, find the pressure heads, (H), at
each of the remaining nodes and the flow rates in the pipe. [Hint: The problem can be
solved by suitably modifying the MATLAB program given in Appendix G, Section G.1.]
211
Finite Element Method with Applications in Engineering
Crandall, S. H., Dahl, N. C., and Lardner T. J. (1978). An Introduction to the Mechanics of
Solids, Mechanics of Solids, McGraw Hill, New York.
Desai, C. S., and Abel J. F. (1987). Introduction to the Finite Element Method—A
Numerical Method for Engineering Analysis, Wadsworth, California.
Gere, J. M. (1965). Analysis of Framed Structures, Princeton, New Jersey.
Huebner, K. H. (1975). The Finite Element Method for Engineers, John Wiley and Sons,
New York.
Logan, D. L. (1993). A First Course in Finite Element Analysis, PWS Publishing, Boston.
Mohr, G. A. (1992). Finite Elements for Solids, Fluids and Optimization, Oxford University
Press, New York.
Pironneau, O. (1989). Finite Element Methods for Fluids, John Wiley and Sons,
Chichester.
Rao, S. S. (1999). The Finite Element Method in Engineering, Pergamon Press, Oxford.
Reddy, J. N., and Gartling, D. K. (1994). The Finite Element Method in Heat Transfer and
Fluid Dynamics, CRC Press, London.
Segerlind, L. J. (1985). Applied Finite Element Analysis, John Wiley and Sons, New York.
Shames, I. H., and Dym, C. L. (1995). Energy and Finite Element Methods in Structural
Mechanics, Wiley Eastern, New Delhi.
Stasa, F. L. (1985). Applied Finite Element Analysis for Engineers, CBS Publishing Japan,
New York.
Streeter, V. L., Wylie, E. B., and Bedford, K. W. (1998). Fluid Mechanics, WCB/McGraw
Hill, Boston.
Visser, W. (1985). A finite element method for the determination of non-stationary
temperature distribution and thermal deformations, Proceeding of Conference on Matrix
Methods in Structural Mechanics, Air Force Institute of Technology, Ohio.
White, R. E. (1985). An Introduction to the Finite Element Method with Applications to
Nonlinear Problems, John Wiley and Sons, New York.
Zienkiewicz, O. C. (1980). Finite Element Method, 3rd ed., McGraw Hill, New York.
212
Finite Element Method with Applications in Engineering
Table 7.1 Analogy Between Two-Dimensional Seepage, Heat Flow and Torsional
Analyses
213
Finite Element Method with Applications in Engineering
The primary unknown field ɸ is function of (X,Y). The ɸ and other terms appearing in Eq.
(7.1) are explained in Table 7.1 in the context of two-dimensional seepage, heat flow and
torsional analyses.
Eq. (7.1) can be solved by modelling the problem with two-dimensional finite elements.
The two-dimensional elements are thin plate-like (plane) elements such that two co-
ordinates define a position on the element surface.
The ɸ appearing in Eq. (7.1) is given approximately by
for two-dimensional seepage analysis, where h indicates elevation (or fluid head), p
represents pore pressure and w is the specific weight of the fluid (water). The velocity
head term v2/(2g) has been customarily omitted from the above equation.
The two-dimensional steady state seepage problems can be categorized into (i)
unconfined seepage problem and (ii) confined seepage problem.
Unconfined seepage problem
Seepage through an earthen dam can be classified as unconfined seepage.
Unconfined seepage is distinguished from the confined seepage by the presence of a free
or phreatic surface. At the phreatic surface, the potential ɸ equals the fluid head h
measured from a datum. Moreover, there cannot be flow in the direction normal to the free
surface. (Also, note that flow cannot occur through an impervious bed. In other words, for
the example shown in Figure 7.1, ∂ɸ/∂Y = 0 at the impervious bed.) Mathematically, these
two conditions can be written at free surface as
where n indicates normal to the free surface. Both the conditions mentioned above need to
be satisfied simultaneously. The mixed boundary condition problem introduces non-
linearity in the system and an iterative approach is required to solve the problem. Such a
case is discussed later in the chapter.
Confined seepage problem
In the case of a confined seepage, the flow occurs in the absence of a free surface,
through a saturated media subjected to prescribed boundary conditions (usually ɸ). The
confined steady-state seepage requires a linear analysis for solution. An example of
confined seepage flow is shown in Figure. 7.2.
214
Finite Element Method with Applications in Engineering
215
Finite Element Method with Applications in Engineering
Here, dij represents a constant term. Pascal's triangle is shown in Figure 7.4.
By selecting the first three terms from the Pascal's triangle, the approximation function can
be constructed as
216
Finite Element Method with Applications in Engineering
Then,
217
Finite Element Method with Applications in Engineering
Thus,
By substituting the above equations into Eq. (7.6) and by collecting the coefficients of ɸ1,
ɸ2and ɸ3, the following equation can be derived.
Here,
The N1, N2 and N3 are called the shape functions for the CST and [N] denotes the shape-
function matrix (Ni are also called local area co-ordinates).
Properties of shape functions
It can be easily verified that
1. Ni = 1 at the i-th node and Ni = 0 at the other 2-nodes (i = 1, 2, 3).
2.
Variations of Ni, i = 1, 2, 3, over an element are shown in Figure 7.6.
218
Finite Element Method with Applications in Engineering
By referring to the second property of shape functions, it can be noted that at any point
(X,Y),
In many finite element books, Ni are designated as local, area or triangular co-ordinates.
The triangular co-ordinate system (N1, N2, N3) is defined such that the nodal co-ordinates
of nodes 1, 2 and 3 are respectively (1, 0, 0), (0, 1, 0) and (0, 0, 1), as shown in Figure
7.7(b).
Step 3. Define constitutive law and gradients.
Gradient of Unknown Field
Let εx and εy be the gradients (slopes) of ɸ in the X and Y directions, respectively. Then,
219
Finite Element Method with Applications in Engineering
Figure 7.7 (a) Another interpretation of shape functions and (b) Triangular co-ordinate
system
From Eqs. (7.6) and (7.22), it can be easily seen that
Thus, the gradients (strains) are constant over the element and, hence, a 3-node triangular
element is referred to as constant strain triangle (CST) element.
By substituting Eq. (7.17) into Eq. (7.22), it can be shown that
Therefore,
or
where
220
Finite Element Method with Applications in Engineering
Assuming unit thickness in the Z-direction, Eq. (7.31) can be written, in view of Eqs. (7.25)
and (7.29), as
where
Note that [B] and [D] are constant matrices. Therefore, Eq. (7.34) can be written as
Steps 5, 6 and 7: Assemble element equations and apply boundary conditions, solve for
primary unknowns, calculate secondary unknowns
Assembling element equations given by Eq. (7.35) for the whole system, equation
can be derived, where [K], {q} and {F} represent the assembled permeability matrix, the
potential head vector and the externally applied fluid flux vector, respectively.
After applying geometric boundary conditions (specified potential heads corresponding to
Dirichlet conditions) Eq. (7.37) can be solved for the unknown {q}. The secondary
quantities can be obtained by equations developed previously. For example, flow velocity
components can be computed from Eqs. (7.26) and (7.27).
221
Finite Element Method with Applications in Engineering
Illustrative examples dealing with confined seepage are discussed later in this chapter.
Shear strains:
2. Stress-strain equations
Normal strains:
Shear strains:
222
Finite Element Method with Applications in Engineering
Figure 7.8 Typical examples of plane stress, plane strain and axisymmetric situation
For the plane stress condition, it is assumed that
223
Finite Element Method with Applications in Engineering
and
and
In view of Eq. (7.42), it can be seen from the above equation that
or,
where
224
Finite Element Method with Applications in Engineering
Here, εr, εθ and εz are the components of strain in the radial, tangential and vertical
directions, respectively.
7.3.3 CST Element for Plane Stress and Plane Strain Analyses
Steps outlined in Chapter 3 are followed in the finite element formulation.
Step 1: Discretize and select element type
225
Finite Element Method with Applications in Engineering
A typical i-th CST element used to discretize a two-dimensional domain is shown in Figure
7.10.
A typical CST element has 3-nodes. Unknown continuous field consists of displacement
components U and V in the X and Y direction, respectively.
Step 2: Select approximation function
By following the formulation of CST element for seepage analysis, it can be shown that
or
Here,
226
Finite Element Method with Applications in Engineering
Therefore,
Moreover,
where
where [D] is given by Eq. (7.47) for plane stress conditions and by Eq. (7.52) for plane
strain conditions. By substituting Eq. (7.61) into Eq. (7.63),
can be obtained.
Step 4: Derive element equations
By employing energy method, the element equations can be derived easily. The potential
energy πp is defined for two-dimensional analysis as
Here, {X}, {fee} and {T} represent body force (per unit volume) vector, the element nodal
force vector and the surface traction (per unit surface area) vector, respectively. In view of
Eqs. (7.61) and (7.64), Eq. (7.65) can be written as
227
Finite Element Method with Applications in Engineering
where
where
and Xb and Yb are the body forces (weight densities) in the X and Y directions,
respectively.
Hence,
Consider
Note that
228
Finite Element Method with Applications in Engineering
The above equation indicates that each node shares 1/3 of total body force.
Element Surface Forces
The equivalent nodal loads due to surface forces are given by
Steps 5, 6 and 7: Assemble element equations and apply boundary conditions, solve for
primary unknowns, calculate secondary unknowns
Assembling the contributions from all elements of discretized domain, equation
can be derived, where [K], {q} and {F} represent the assembled stiffness matrix, the nodal
displacement vector and the externally applied, equivalent nodal load vector, respectively.
After applying geometric boundary conditions (specified displacement components), Eq.
(7.80) can be solved for the unknown {q}. The secondary quantities can be obtained by
229
Finite Element Method with Applications in Engineering
equations developed previously. For example, the principal stresses can be computed
from
where σx, σy, τxy and be calculated from Eq. (7.64) (θp in the above equation indicates
principal angle).
Illustrative Example
Two-dimensional model of an anchor plate of a communication tower's guy cable is shown
in the illustrative figure. The anchor consists of a triangular steel plate, which is subjected
to force of 20 kN, as shown in the figure. Analyze the anchor plate. Thickness of the plate
is 8 mm. Consider E = 200 GPa and v = 0.3.
Solution:
Consider reference axes X and Y as shown in the figure. Further for illustration, consider
one CST element to model entire plate, with nodes as shown in the figure.
Considering the state of plane stress, the elasticity matrix [D] is obtained from Eq. (7.47)
as
230
Finite Element Method with Applications in Engineering
where
231
Finite Element Method with Applications in Engineering
Since only one CST element is used to model the entire plate, the stress field is constant
throughout the plate.
Alternatively,
232
Finite Element Method with Applications in Engineering
or
Here,
i.e.,
where
Note that the strain vector is no longer constant. Also, [B] involves singular terms when r =
0.
Constitutive Relations
where [D] is given by Eq. (7.54). By substituting Eq. (7.89) into Eq. (7.91),
can be obtained.
Step 4: Derive element equations
233
Finite Element Method with Applications in Engineering
Here,
and
Integrations appearing in Eqs. (7.94) and (7.95) can be evaluated by several ways.
1. Integrate all the terms explicitly. However, the explicit evaluation may be tedious
and complicated due to (1/r) terms in the integrands.
2. Use numerical integration. Usually, a Gauss-quadrature procedure is employed for
numerical integration. Refer to Appendix D for details.
3. Integrations can be obtained approximately by evaluating integrands at the centroid
of an element. This approach is reasonable when ‘small’ elements are employed in
discretization. At the centroid,
234
Finite Element Method with Applications in Engineering
235
Finite Element Method with Applications in Engineering
where
In other words,
where
236
Finite Element Method with Applications in Engineering
Let
Then,
where
Note that, unlike in the CST formulation, the strains are not constant.
Constitutive Relation
As shown earlier,
where 3 × 3 elasticity matrix [D] is given by Eq. (7.47) for plane stress condition and Eq.
(7.52) for plane strain conditions.
Step 4. Derive element equations.
By following the procedure adopted for the CST formulation, in conjunction with energy
method, the element equations are given by
where
237
Finite Element Method with Applications in Engineering
Here, {X} represents the body force vector, {P} indicates the element nodal force vector
and {T} represents the surface traction vector.
Analytical evaluation of integrations in Eqs. (7.111) and (7.112) is tedious. Therefore,
numerical integration is usually employed. The most widely used integration scheme in the
FEM is the Gauss-quadrature. The Gauss-quadrature is defined in a natural (or intrinsic)
co-ordinate system. Therefore, the integrals expressed in the X-Y co-ordinate system
need to be transformed to the natural co-ordinates ξ-η. The numerical integration is
discussed later in the context of isoparametric formulation.
Step 5, 6 and 7: Follow procedures outlined previously
Therefore,
238
Finite Element Method with Applications in Engineering
or
where
239
Finite Element Method with Applications in Engineering
Hence,
Constitutive relation:
Stiffness matrix:
Therefore,
240
Finite Element Method with Applications in Engineering
It can be seen from the above equations that each element of the stiffness matrix is of the
Figure 7.17 Quadrilateral element in the X-Y and the ξ-η co-ordinate systems
Co-ordinate Transformation
By considering four terms from the Pascal's triangle shown in Figure 7.14, X and Y co-
ordinates can be expressed in terms of ξ and η
241
Finite Element Method with Applications in Engineering
By solving the above equation set for ai's and by substituting the results in Eq. (7.126),
is obtained, where
or
or
242
Finite Element Method with Applications in Engineering
Alternatively,
243
Finite Element Method with Applications in Engineering
where
Strain-Displacement Relation
It can be easily shown that
where
Here,
244
Finite Element Method with Applications in Engineering
In the above equations, and are unknowns. They can be obtained, in terms of
and , as
Where
Hence
Constitutive Relation
The constitutive relation is given by
where [D] is given by Eqs. (7.47) and (7.52) for plane stress and plane strain conditions,
respectively.
Derivation of Element Equations
By minimizing the potential energy, the element equations
Assume t = 1 for plane strain situation. Computations of [Ke], {fb} and {fs} are discussed
next.
1. Stiffness matrix:
From calculus, for an arbitrary function f(x, y)
245
Finite Element Method with Applications in Engineering
Hence,
Where
Here,
Therefore,
It can be seen from the derivation that each element of [Ke] is of the form
246
Finite Element Method with Applications in Engineering
Solution:
From Eq. (7.155), the expression for k11 is obtained as
Where
Therefore,
Hence,
Where
1. 1 × 1 Gauss-quadrature
2. 2 × 2 Gauss-quadrature
3. 3 × 3 Gauss-quadrature
4. Exact value
Illustrative Example 2
247
Finite Element Method with Applications in Engineering
A cantilever beam of span 9 m is subjected to a tip load of 40 kN. Analyze the beam by
employing 4-node isoparametric elements under plane stress condition. Assume E = 200
GPa, v = 0.25 and width = 0.3 m.
Solution:
The finite element representation of the problem is shown in the figure above. Node
numbers are indicated by Arabic numbers, while element numbers are denoted by
encircled Arabic numbers. The problem has been solved by using program sfeap given in
the Appendix F.
The nodal displacements are tabulated below.
1 .0000000E+00 .0000000E+00
2 .0000000E+00 .0000000E+00
3 .0000000E+00 .0000000E+00
4 –.1940316E–04 –.6343784E–04
5 .0000000E+00 –.6298111E–04
6 .1940316E–04 –.6343784E–04
7 –.3112135E–04 –.2198400E–03
8 .0000000E+00 –.2197260E–03
9 .3112135E–04 –.2198400E–03
10 –.3502455E–04 –.4232532E–03
11 .0000000E+00 –.4231881E–03
12 .3502455E–04 –.4232532E–03
248
Finite Element Method with Applications in Engineering
It can be noted that nodes 1, 2 and 3 are completely restrained and, thus, both U and V
displacements are zero at these nodes. Further, the U displacement is zero for all nodes
on the neutral axis (viz., nodes 5, 8 and 11). Also, as expected, U displacements at the
nodes are anti-symmetric with respect to the reference neutral axis. On the other hand, V
displacements at the nodes are symmetric with respect to the neutral axis. Stresses at the
centroids of the elements are tabulated below.
249
Finite Element Method with Applications in Engineering
where ɸ is the potential function and C is the source or sinks term in the domain
considered.
3. Helmholtz Equation
General form of Helmholtz equation in two dimensions can be written as (Brebbia and
Walker, 1979)
where Kx and Ky are media properties (for example, in case of heat transfer problems, Kx
and Ky represent the thermal conductivities), λ is a constant and Q is a term such as
source or sinks in the domain considered.
The commonly used boundary conditions are Dirichlet and Neumann type boundary
conditions. The boundary conditions can be generally represented as (refer Figure 7.19)
where n is the unit outward normal to the boundary, α is the transfer coefficient (e.g., heat
transfer) and (ɸ - ɸ0) denotes the difference between the potential within the medium; and
p are known values and Γ = Γ1 + Γ2.
250
Finite Element Method with Applications in Engineering
where N is the shape function or interpolation function and {ɸ}i is the array of field variable
at specified nodes of the element of the discretized domain.
Applying the Galerkin's criteria, the Helmholtz Eq. (7.164) can be reduced to a set of linear
equations as follows:
By substituting for ɸ using the relationship (7.166) and rearranging, following equation is
obtained.
where
251
Finite Element Method with Applications in Engineering
As shown in Section 7.2 and Figure 7.3, using CST elements or any other two-dimensional
elements and assembling the element matrices and applying the boundary conditions, a
linear system of equations can be formed, which are solved for the unknowns.
2. Laplace Equation
For the Laplace Eq. (7.162), in a similar way as demonstrated for Helmholtz equation, the
element equation can be derived. As given in Section 7.2 and Figure 7.3, using the CST
element and shape functions given in Eq. (7.18), the element property matrix can be
written with kx = ky = 1 as
Eq. (7.174) can be assembled into global matrix over all elements and can be solved to
get the potential values ɸ at different nodes, after application of the global boundary
conditions.
3. Poisson Equation
For the Poisson Eq. (7.163), the element equation can be derived in a similar way as
demonstrated for Helmholtz equation. As given in Section 7.2 and Figure 7.3, using the
CST element and shape functions given in Eq. (7.18), the element property matrix can be
written as
Eq. (7.176) can be assembled into global matrix over all elements and got solved to get
the potential values ɸ at different nodes.
Here, ɸ is the potential function and k represents the media property such as hydraulic
conductivity. The boundary conditions can be generally represented as (refer Figure 7.19)
252
Finite Element Method with Applications in Engineering
where kx and ky are the hydraulic conductivities in x and y directions and n is the unit
outward normal to the boundary.
As discussed in the previous section, the governing equation can be reduced to a system
of equations by using the FEM technique. In the previous section, the method of weighted
residual approach for the FEM formulation has been used. Here, the variational
formulation approach for the derivation of the element matrices is used. From Eq. (7.177)
and (7.178), using equivalent variational formulation, equation reduces to minimization of
the functional (Huebner, 1975)
Here, Galerkin's technique can also be used to formulate the problem, which is very similar
to that given in Section 7.5 for homogeneous steady-state problems.
As given in Section 7.2 and Figure 7.3, the CST element and shape functions given in Eq.
(7.18) has been used so that
Therefore,
253
Finite Element Method with Applications in Engineering
Combining the above three Eqs. (7.183–7.185) and substituting boundary prescribed
values p1,p2, p3 etc. if any, the following element matrix will be obtained.
Eq. (7.187) can be assembled into global matrix over all elements and solved to get the
potential values ɸ at different nodes after application of boundary conditions.
Here, p is the pressure, u and v are velocity components in the x and y directions and μ is
coefficient of dynamic viscosity. Boundary conditions may include specified pressure,
velocity or velocity gradient. The u, v and p are solved within the problem domain
considered.
254
Finite Element Method with Applications in Engineering
where N is the shape function or interpolation function and {ɸ}i is the array of field variable
at specified nodes of the element of the discretized domain, say here, (u, v and p).
Considering a two-dimensional domain A bounded by curve S and applying Galerkin's
approach on the Eq. (7.188), the following equation is obtained.
As demonstrated in the previous sections, after integration by parts, the first term can be
converted as
255
Finite Element Method with Applications in Engineering
Using the Galerkin's approach, the continuity Eq. (7.190) can be written as
or,
Consider the Stokes flow problem in a rectangular domain. The domain and boundary
conditions are shown Figure 7.20. The domain is divided into CST elements as shown in
Figure 7.21 and the numbering is done. As discussed earlier, the interpolation function can
be written as
256
Finite Element Method with Applications in Engineering
257
Finite Element Method with Applications in Engineering
For the first elemental shape shown in Figure 7.22(a), Eqs. (7.193), (7.194) and (7.196)
can be shown to be
258
Finite Element Method with Applications in Engineering
Where
For the second elemental shape shown in Figure 7.22(b), Eqs. (7.193), (7.194) and
(7.196) can be shown to be
Using the above equations, the system of elemental equations can be assembled in the
form,
259
Finite Element Method with Applications in Engineering
where {ɸ} represent the field variables (u, v and p). After substitution of boundary
conditions, the system of equations can be iteratively solved to find the unknown velocities
and pressure.
260
Finite Element Method with Applications in Engineering
261
Finite Element Method with Applications in Engineering
input file used and results are also given in the same Appendix. Results are plotted in the
form a flow net in Figure 7.27.
m. On both the sides and bottom, the media is impermeable and hence . At the
interzonal faces, there are two cut-off walls of size 5 m × 1 m as in Figure 7.28.
262
Finite Element Method with Applications in Engineering
263
Finite Element Method with Applications in Engineering
5. If the difference obtained in Step 4 is within the permissible tolerance, the obtained
potentials are assumed as free surface.
6. If the discrepancy is too large, go for another iteration with Y co-ordinates of free
surface node as the potential values obtained in Step 3.
The procedure is repeated in each iteration, until the discrepancies are within the
permissible limit. In each iteration, the mesh used should be adjusted to relocate the new
free surface position.
Example: The location of free surface in a zoned earth dam is required to be determined.
There are three zones with different permeabilities. It is assumed that permeabilities of
zone 1, 2 and 3 are 2 m/hr, 1 m/hr and 3 m/hr, respectively. Upstream head is 10 m and
the downstream head is 2 m. Bottom face,
264
Finite Element Method with Applications in Engineering
265
Finite Element Method with Applications in Engineering
Here, the FEM formulation for the Poisson equation described in Section 7.5 is used. The
domain is discretized using CST elements as shown in Figure 7.32. The domain is divided
into 136 CST elements and 95 nodes. Number of recharging nodes are 9. It can be seen
in Figure 7.32 that the recharge zone is discretized with a finer mesh and other regions
using a coarser mesh. A computer program for the Poisson equation can be developed in
a very similar way as demonstrated for the Laplace equation. The difference is only with
respect to the recharge term. Using a similar computer program given in Appendix G (for
Poisson equation after adding the recharge effects), the above problem is solved. The
potential variation at some selected points is given in Table 7.2.
266
Finite Element Method with Applications in Engineering
267
Finite Element Method with Applications in Engineering
268
Finite Element Method with Applications in Engineering
analysis, seepage below hydraulic structures, earth dam seepage analysis and aquifer
recharge are discussed using the FEM. A sample two-dimensional computer program
based on FORTRAN is also presented and used in the solution of some engineering
problems. This program can be used to solve any similar types of problems, as
demonstrated. Even though the problems discussed in this Chapter are related to two-
dimensional FEM analysis using energy method, method weighted residual and variational
approaches, the three-dimensional FEM analysis can be done in a similar way.
EXERCISE PROBLEMS
1. Two-dimensional model of an anchor of a communication tower's guy cable is shown in
Figure E1. The anchor consists of a triangular steel plate, which is subjected to force P as
shown in the figure. Thickness of the plate is 8 mm. The maximum displacement of the
node, where the force is applied, has to be restricted to 0.1 mm. Compute the largest force
P that can be supported by the anchor. Use only one appropriate CST element to model
the plate for expeditious analysis. Consider E = 200 GPa and v = 0.25.
269
Finite Element Method with Applications in Engineering
270
Finite Element Method with Applications in Engineering
Figure E5 Problem 6
7. For the earth dam with the assumed free surface shown in Figure E6, using the free
surface algorithm and FEM formulation given for the Laplace equation, determine the final
position of the free surface. Develop a computer program for the given algorithm. Use a
suitable mesh with linear triangular elements.
271
Finite Element Method with Applications in Engineering
Figure E6 Problem 7
8. For the flow beneath weir problem shown in the Figure E.7, determine the potential
variation. The FEM formulation for Laplace equation and the FORTRAN program given in
Appendix G can be used for the solution.
Figure E7 Problem 8
9. For the aquifer problem with a recharging river and 2 pumping wells shown in Figure E8,
calculate the head distribution using a suitable mesh. The stream recharges 0.2
m3/(day.m) and pump P1 pumps 800 m3/day and P2 pumps 600 m3/day.
10. For the Stokes flow problem given in Figure 7.20, assume the domain is of dimensions
6 m × 36 m and determine the velocity distribution in the domain.
Figure E8 Problem 9
REFERENCES AND FURTHER READING
Arlett, P. L., Bahrani, A. K., and Zienkiewicz, O. C. (1968). Application of Finite Element
Method to the Solution of Helmholtz's Equation, Proc. IEE, 115(12):1762–1766.
Backstrom, G. (1999). Fluid Dynamics by Finite Element Analysis, Studentlitteratur, Lund.
Baker, A. J. (1983). Finite Element Computational Fluid Mechanics, McGraw
Hill/Hemisphere, New York.
Bathe, K. J. (2001). Finite Element Procedure, Prentice Hall of India, New Delhi.
272
Finite Element Method with Applications in Engineering
273
Finite Element Method with Applications in Engineering
274
Finite Element Method with Applications in Engineering
275
Finite Element Method with Applications in Engineering
It may be noted that only a0 exists for the axisymmetric loading. On the other hand, all the
Fourier coefficients exist for non-axisymmetric loading. Coefficients an and bn are
coefficients of the harmonics, which are symmetric and anti-symmetric, respectively, with
respect to θ = 0. Values of an are the amplitudes at θ = 0 and that of bn are the amplitudes
at θ =90°. If the closed form answers of Eq. (8.3) are not available, integration is evaluated
by numerical means. For example, the trapezoidal or Simpson's rule for the numerical
integration may be used.
It now remains to consider determination of number of terms N for the convergence. For
this purpose, coefficients of the Fourier expansion need to be examined. If the coefficients
are small, the chosen number of terms N is considered to be adequate. The smallness of
the last three coefficients in each series (i.e., aN, aN-1, aN-2 and bN, bN-1, bN-2) may be
assessed for the truncation of the Fourier series.
8.2.2 Isoparametric Finite Element Formulations
Axisymmetric structure is formed by rotating curve(s) about z-axis as shown in Figure 8.1.
Finite elements are now the nodal rings whose cross-section can be the usual two-
dimensional elements discussed in the previous chapters. The figure shows typical 3-node
and 4-node elements in the θ = 0 plane in a cylinder. In the cylindrical co-ordinates at each
node of the element, (u, w, v) are displacements in the r (radial), z (axial) and θ
(circumferential) directions for non-symmetric loading, and (u, w) for symmetric loading.
Though the formulations are valid for materials having θ as symmetry axis, only isotropic
materials will be considered here. Isoparametric formulations for these two cases will be
discussed separately.
8.2.2.1 Axisymmetric Loading
For definiteness, a 4-node element as shown in Figure 8.2 is considered as an example,
but the formulation is general. The displacement field for this element is given by
Here, {q} is the vector of nodal displacements (u1 w1 u2 w2 u3 w3 u4 w4). For isoparametric
formulation, displacements and geometry are interpreted using the same shape functions
276
Finite Element Method with Applications in Engineering
277
Finite Element Method with Applications in Engineering
where
The 2×2 element stiffness matrix [kij] can be evaluated in the usual manner as
Here determinant of the Jacobian matrix is obtained as discussed for plane stress/strain
case. For numerical integration, the terms r in matrix [Bi] and integrand of [kij] are
evaluated at the Gauss points to avoid singularities.
8.2.2.2 Non-axisymmetric Loading
Loads applied to geometrically and materially symmetric structures are seldom distributed
in an axisymmetric form. The problem is the three-dimensional one and all three
displacement components u, w and v exist. An arbitrary non-axisymmetric loading may be
represented by its Fourier series expansion as
278
Finite Element Method with Applications in Engineering
Summations are over the integral values of n from zero to infinity. Introduction of the
negative sign in the terms for v has the effect of yielding the same stiffness matrix for both
symmetric and anti-symmetric components. Amplitudes of displacement components are
primary unknowns, which are functions of r and z only and do not depend on θ. Thus, what
was originally a three-dimensional problem, is reduced to a two-dimensional problem due
to orthogonality of the trigonometric functions. Furthermore, the symmetric and anti-
symmetric components of the displacements are also uncoupled because of orthogonality.
For isotropic material, the Fourier harmonics are uncoupled. This implies that different
numerical values of n present different problems that do not interact. Moreover, the
linearity of the problem enables the super-position of separate solutions. Thus, the need
for a division into finite elements in the θ direction is replaced by the need to superpose
separate solutions.
279
Finite Element Method with Applications in Engineering
Since the symmetric and anti-symmetric components of the displacements are uncoupled,
only symmetric components are considered here for nth harmonic (n ≠ 0). Again a 4-node
element, shown in Figure 8.4, is considered for definiteness.
Displacement field for this case is written as
which is
280
Finite Element Method with Applications in Engineering
Strains can now be expressed in terms of the nodal amplitudes by substituting Eq. (8.14)
into Eq. (8.15) as
281
Finite Element Method with Applications in Engineering
282
Finite Element Method with Applications in Engineering
Noting that
the 3×3 element stiffness matrix can be evaluated in the usual manner as
r in the matrix and in the integrand of [kij] is evaluated at Gauss points by using
283
Finite Element Method with Applications in Engineering
In Eq. (8.19), dl is along edge 2–3 is given by Eq. (8.5), the over bar on the shape
functions indicates that they are to be evaluated on the edge ξ = 1 and .
Since variables in the integrand of Eq. (8.19) are independent of θ, the integration results
in
Similarly, for non-axisymmetric loading, expression for the surface nodal force {Qn} for nth
harmonic can be written as
Furthermore, the rigid modes must be suppressed in the global stiffness matrix for
axisymmetric loading. Because of the axial symmetry, translation in the z-direction is the
284
Finite Element Method with Applications in Engineering
only possible rigid body mode. It can be restrained by prescribing w on a single node lying
on the r-axis.
For the harmonic number n = 1, imposition of the boundary conditions for the points
(nodes) on the z-axis needs special considerations. Designating
from Eq. (8.23) the boundary
conditions for n = 1 can be written as
The first condition is not difficult to impose. It is more appropriate to refer the second one
as a ‘constraint equation’; the imposition of which is not straight forward. This can be
achieved by defining a transformation for the nodal unknowns of the nodes lying on the z-
axis as
The element stiffness is, therefore, formulated with nodal unknowns for the
nodes on the z-axis and for nodes not located on the z-axis. The conditions
are then imposed in addition to other boundary conditions.
8.2.2.5 Illustrative Examples
Illustrative examples on application of formulation presented above have been presented
next.
Example 8.1
A hollow column of length 0.8 m having inner radius 0.2 m and outer radius of 0.4 m is
loaded by a uniformly distributed load of 1.0 GPa as shown in the figure. The column rests
on ground at the base and is free at the top. Analyze this column using 8-node
isoparametric elements as shown. Assume E = 20 GPa, v = 0.20 and restrain node 1 in
the radial direction.
285
Finite Element Method with Applications in Engineering
Solution:
This example has been analyzed by using program sfeap discussed in Appendix E on the
basis of the formulation presented in this section. The example corresponds to
axisymmetric solid with axisymmetric loading. The output for nodal displacements has
been presented below.
1 .0000E100 .0000E+00
3 –.2296E–02 .0000E+00
4 –.2794E–02 .0000E+00
5 –.3271E–02 .0000E+00
6 –.1991E–02 .9670E–02
286
Finite Element Method with Applications in Engineering
7 –.2581E–02 .9965E–02
8 –.3686E–02 .1013E–01
9 –.1488E–02 .1992E–01
10 –.2361E–02 .1991E–01
11 –.3247E–02 .1986E–01
12 –.3633E–02 .1993E–01
13 –.4022E–02 .2002E–01
14 –.2261E–02 .2992E–01
15 –.2933E–02 .2997E–01
16 –.4051E–02 .2990E–01
17 –.1506E–02 .4015E–01
18 –.2352E–02 .3992E–01
19 –.3179E–02 .3983E–01
20 –.3559E–02 .3995E–01
21 –.3945E–02 .4002E–01
Note that U and W, respectively, represent radial and vertical displacements. As expected,
the maximum displacements occur at the nodes located on the top free surface.
Example 8.2
The circular tank of inner radius 5 m having thickness 0.25 m and height 4 m is shown in
Figure Example 8.2(a). It is partially filled with water up to 2 m as shown. It is assumed
that the wall is fixed at the base and free at the top. Assume E = 20,000 kN/m2, v = 0.15, p
= γw(L1— z), L1 = 2m and γw = 9.81 kN / m3. Analyze the tank by employing equal 8-node
isoparametric elements as shown in the finite element idealization of Figure Example
8.2(b).
287
Finite Element Method with Applications in Engineering
Example 8.2
Solution:
This example has also been solved by using program sfeap detailed in Appendix E. Both
the geometry and loads are axisymmetric. The nodal displacements obtained from
program sfeapare tabulated below.
1 .0000E+00 .0000E+00
2 .0000E+00 .0000E+00
3 .0000E+00 .0000E+00
4 .4394E–02 .2790E–02
5 .4234E–02 –.2744E–02
6 .1151E–01 .3260E–02
7 .1139E–01 –.1037E–04
288
Finite Element Method with Applications in Engineering
8 .1137E–01 –.3279E–02
9 .1773E–01 .2411E–02
10 .1752E–01 –.2631E–02
11 .2159E–01 .9413E–03
12 .2156E–01 –.2541E–03
13 .2139E–01 –.1448E–02
14 .2255E–01 –.5590E–03
15 .2234E–01 –.2796E–03
16 .2102E–01 –.1766E–02
17 .2096E–01 –.5792E–03
18 .2084E–01 .6009E–03
19 .1780E–01 –.2506E–02
20 .1766E–01 .1054E–02
21 .1383E–01 –.2800E–02
22 .1378E–01 –.8379E–03
23 .1373E–01 .1117E–02
24 .9918E–02 –.2756E–02
25 .9847E–02 .9027E–03
289
Finite Element Method with Applications in Engineering
26 .6476E–02 –.2530E–02
27 .6437E–02 –.9809E–03
28 .6429E–02 .5634E–03
29 .3694E–02 –.2250E–02
30 .3667E–02 .2153E–03
31 .1529E–02 –.1986E–02
32 .1512E–02 –.1032E–02
33 .1517E–02 –.8110E–04
34 –.1342E–03 –.1784E–02
35 –.1332E–03 –.2892E–03
36 –.1467E–02 –.1652E–02
37 –.1465E–02 –.1028E–02
38 –.1456E–02 –.4061E–03
39 –.2637E–02 –.1586E–02
40 –.2618E–02 –.4418E–03
41 –.3761E–02 –.1553E–02
42 –.3747E–02 –.9892E–03
43 –.3734E–02 –.4277E–03
290
Finite Element Method with Applications in Engineering
Figure 8.6 Eight-node element in the X-Y-Z and the ξ-η-ζ co-ordinate systems
Co-ordinate Transformation
Following relations can be used for co-ordinate transformation
By following the process used in the previous chapter, the co-ordinates can be expressed
as
291
Finite Element Method with Applications in Engineering
where
Approximation Function
In an isoparametric formulation, same shape functions are employed to describe variations
in the global co-ordinates and the unknown field. Thus,
Alternatively,
where
and
292
Finite Element Method with Applications in Engineering
Strain–Displacement Relation
It can be easily shown that
or,
where
293
Finite Element Method with Applications in Engineering
or
294
Finite Element Method with Applications in Engineering
Hence,
where
It can be seen from the derivation that each element of [Ke] is of the form
295
Finite Element Method with Applications in Engineering
The finite element representation of the problem is also shown in the figure. Node
numbers are indicated by numbers outside the circle, while element numbers are denoted
by encircled Arabic numbers.
Solution:
Nodes 1, 10, 19 and 28 are constrained to represent fix boundary. Generally, three-
dimensional stress analysis using finite element is performed using computer program.
The problem described above has been analyzed by using program sfeap detailed in the
Appendix E. The outputs for displacements at different nodes are presented below.
296
Finite Element Method with Applications in Engineering
It can be seen from the output that V displacements of all the nodes on the top surface are
equal to those at the analogous nodes on the bottom surface of the beam. Also, the U
displacements at the nodes on the top surface are equal and opposite to those at the
297
Finite Element Method with Applications in Engineering
analogous nodes on the bottom surface of the beam. Such a trend can be attributed to the
fact that plane X–Z is plane of anti-symmetry. Planes of symmetry and anti-symmetry and
ensuing boundary conditions are further elaborated in the next chapter.
8.4 CLOSING REMARKS
Three-dimensional stress analysis has been presented in this chapter. For axisymmetric
loading, it has been shown that the three-dimensional problem can be effectively reduced
to two-dimensional one by expanding the loading using Fourier series. Two-dimensional
analysis can be performed for each term in the Fourier series by taking one term at a time.
The final solution can then be obtained by superposing results obtained for individual
terms. Isoparametric formulations have been presented for axisymmetric solids.
Formulation for an 8-node isoparametric element has also been presented for analysis of
three-dimensional solids. Formulations have been implemented in computer program
sfeap, which has been discussed later. Few illustrative examples have been considered to
demonstrate applicability of the formulations.
EXERCISE PROBLEMS
1. Analyze the column shown in the Illustrative Example 1 when it is loaded by a triangular
load of zero at inner radius (r = 0.2 m) to 0.4 GPa at the outer radius (r = 0.4 m).
2. Consider an assembly of two heavy circular shafts. The top shaft has inner radius of 0.5
m and outer radius of 0.75 m, while the bottom one has inner radius of 0.5 m and outer
radius of 1.0 m. Shafts are restrained at the top and bottom surfaces to movement in the
vertical direction. A uniform load of 1 GPa is acting as shown in Figure E1. Analyze the
assembly employing 8-node isoparametric elements. Assume E = 20 GPa, v = 0.20 and
restrain node 1 in the radial direction.
298
Finite Element Method with Applications in Engineering
Employing equal 8-node isoparametric elements as shown in the finite element idealization
of Figure E2(b) analyze the tank for
p = p1 = –0.387 p0
p = p2 = 0.338 p0 cosθ
Present the results for p = p1 + p2.
299
Finite Element Method with Applications in Engineering
300
Finite Element Method with Applications in Engineering
301
Finite Element Method with Applications in Engineering
302
Finite Element Method with Applications in Engineering
303
Finite Element Method with Applications in Engineering
If size of K is too large to fit into the CPU memory of the computer at hand, it is necessary
to reduce the size of the matrix to solve the problem. Static condensation is a process of
eliminating or condensing some unknown DOF (known as secondary or slave DOF) and
re-cast the original Eq. set (9.1) in terms of fewer unknowns (termed as primary unknowns
or master DOF).
304
Finite Element Method with Applications in Engineering
Table 9.1 (b) Element forces stemming from the analysis of the quarter structure
305
Finite Element Method with Applications in Engineering
Forming a ‘super element’. Super elements are used quite frequently in the analysis of
complicated structures or geometries, where several smaller elements are condensed to
reduce the number of unknowns without sacrificing the accuracy.
Sub-structure analysis. For example, soil structure interaction problems.
9.3.2 Static Condensation Procedure
To eliminate the secondary DOF, matrix Eq. (9.1) is partitioned as
where K11(s×s), K12(s×p), K 12(p×s) and K22(p×p) are sub-matrices of matrix K (n×n). The
T and
, on the other hand, are the sub-vectors of the partitioned vectors and such that
contains secondary DOF and contains primary DOF. Note that n = s + p.
The aim of performing static condensation is to re-cast Eqs. (9.1) into reduced equation set
as
By expanding the partitioned Eqs. (9.2), the following equations are obtained.
By substituting Eq. (9.6) in Eq. (9.5), the following equations can be derived.
=>
=>
where
Illustrative Example
Given
306
Finite Element Method with Applications in Engineering
Derive
In order to use Eq. (9.5), Eq. (9.10), the 3rd and 4th rows must be inter-changed with the
1st and 2nd rows as well as the 3rd and 4th columns with the 1st and 2nd columns so that
the symmetric matrix in Eq. (9.11) can be partitioned into the form given by Eq. (9.2).
Basically, the original matrix has to be re-arranged such that the ‘secondary’ variables
(i.e., the variables to be eliminated) x3 and x4 appear in the first sub-vector, , and the
‘primary’ variables (i.e., the variables to be retained) x1 and x2 appear in the second sub-
vector, .
After re-arranging the equations, the following equation is obtained.
so that
From Eq. (9.10), it can be noticed that the following matrix operations are required.
307
Finite Element Method with Applications in Engineering
Finally,
and
308
Finite Element Method with Applications in Engineering
Storage scheme for the assembled matrix and application of the boundary conditions in
program sfeap are discussed next.
309
Finite Element Method with Applications in Engineering
Program sfeap stores the global stiffness matrix in the banded form.
4. Skyline form: This also results from an efficient nodal numbering. Consider the
stiffness matrix shown in Eq. (9.28).
310
Finite Element Method with Applications in Engineering
311
Finite Element Method with Applications in Engineering
Stiffness matrix shown in Eq. (9.28) can be written in a one-dimensional array as shown in
Eq. (9.29).
Specifying the unknowns in this manner is not convenient for computer implementation.
Thus, let the DOF be referred to as [r1 r2 r3 r4 r5 r6]T.
Then, the boundary conditions are
For the computer implementation, these DOF's are given a zero ID number as follows.
DOF ID#
r1 0
r2 0
312
Finite Element Method with Applications in Engineering
r3 0
r4 1
r5 0
r6 2
313
Finite Element Method with Applications in Engineering
Figure 9.6 Application of boundary conditions (a) two-dimensional domain; (b) DOF prior
to application of boundary conditions and (c) unknown DOFs
Consider the example of two-dimensional analysis using four CST elements shown in
Figure 9.6 (a).
For CST element, there are two DOF per node. These DOF have been numbered
sequentially as shown in Figure 9.6 (b). Note that U1 = V1 = U2 = V4 = 0. Thus, equations
pertaining to these DOF are not required to be assembled. The resulting re-numbered
DOF, which are required to be computed, are shown in Figure 9.6 (c).
In program sfeap, the above mentioned steps are implemented as follows.
1. Initialize all elements of array ID with dimensions NDF × Number of nodes
(NUMNP) to zero.
2. Read boundary conditions. Note that constrained DOF are assigned value unity in
the input whereas free (unconstrained) DOF are assigned value zero.
314
Finite Element Method with Applications in Engineering
3. Generate equation numbers. Start the counter from 1 and increment by 1 for each
unconstrained DOF sequentially.
Finally, assembly takes place at locations 1 through 6, and six simultaneous equations in
banded form are solved by using Gauss elimination method discussed in Appendix A.
Further details of computer implementation of FEM through program sfeap are given in
Appendices E and F.
9.7 CLOSING REMARKS
Details on application of conditions of symmetry and anti-symmetry have been given in this
chapter. It has been emphasized that with the help of such boundary conditions, the size
of the problem can be reduced significantly. Static condensation process has also been
elaborated in the chapter, which can be used to reduce size of the problem and also to
form a super-element. The salient features of program sfeap are presented through which
computer implementation of FEM can be studied. Various storage schemes used for
assembled matrix are discussed and the process of application of boundary conditions
and assembly are explained. Further details of program sfeap are given in Appendices E
and F.
EXERCISE PROBLEMS
1. It has been decided to analyze the plane truss shown in Figure E1(a) by using
symmetric and anti-symmetric components of loads. By applying appropriate boundary
conditions at nodes 4 and 5, the reduced half portion of the truss has been analyzed for
four cases. Cases 1 and 2 correspond to unit horizontal load applied at node 2, as shown
in Figure E1(b). The displacements at all joints and member forces are summarized in
Tables E1.1 and E1.2, respectively, for Cases 1 and 2. On the other hand, Cases 3 and 4
correspond to unit vertical load applied at node 3, as shown in Figure E1(c). The
displacements at all joints and member forces are summarized in Tables E1.3 and E1.4,
respectively, for Cases 3 and 4. Identify each case and using the data of these four cases,
compute, for the truss shown in Figure E1(a),
1. displacements at all nodes; and
2. force in all elements.
Consider the axial rigidity AE of all the elements to be 10,000 kN in the actual truss.
315
Finite Element Method with Applications in Engineering
Figure E1(a)
Figure E1(b)
Figure E1(c)
316
Finite Element Method with Applications in Engineering
317
Finite Element Method with Applications in Engineering
Condense q2 and q3, and modify the equation to [K*]2×2 {q*}2×1 = {f*}2×1 where {q*} = [q1 q4]T.
318
Finite Element Method with Applications in Engineering
319
Finite Element Method with Applications in Engineering
Figure 10.1 Forces on a plate element: (a) Element detail and (b) Forces on the middle
plane of the plate
10.2.2 Review of Plate Theories
Consider an infinitesimal plate element in the x–y plane as shown in Figure 10.1 (a) and
(b). The x–y plane is located at the middle surface of the plate and the thickness of the
plate is assumed to be h (– h/2 ≤ z ≤ h/2). Load q(x, y)(N/m2) acts normal to the plate.
10.2.2.1 Equilibrium Equations
The stress resultants, moments (Mx,Mxy,My) and the shear forces (Qx,Qy) shown in Figure
10.1 (a) and (b) are defined as
Moments and shear forces have dimensions of Nm/m and N/m, respectively. Mx, My are
the bending moments and Mxy is the twisting moment.
Moments and shear forces on the positive faces are expressed in the Taylor series,
retaining only the first two terms as
As presented in the beam theory, the static equilibrium equations are written by
considering force equilibrium in the z direction and moment equilibrium equations about
the x and y directions, respectively, and neglecting higher order terms as
320
Finite Element Method with Applications in Engineering
Stress–strain relations and manipulations: Stress–strain relations for the plate theory
are assumed to be those for the plane strain case (see Chapter 7), since εz = 0. They are
321
Finite Element Method with Applications in Engineering
4
where the bi-harmonic operator, , is given by
322
Finite Element Method with Applications in Engineering
It may be mentioned here that though γxz = 0 and γyz = 0, it is assumed that τxz and τyz
exist. Shear stresses cannot be evaluated from the theory of elasticity. In practice, guided
by elementary beam theory, they are approximated as
Though there is an inconsistency in the theory, it produces acceptable results for thin
plates.
Because equation for the deflection w is a fourth order partial differential equation, two
boundary conditions on the edge are required. There are three moments and two shear
forces. Therefore, the situation is different compared to the beam theory. Kirchhoff derived
the consistent boundary conditions (Timoshenko and Woinowsky-Krieger, 1959) using
from the calculus of variation given below for a rectangular plate of dimension a × b.
323
Finite Element Method with Applications in Engineering
The normal to the middle surface before deformation remains straight but is not
necessarily normal to the middle surface after the deformation.
Normal displacement, w, is independent of z, which implies w = w(x, y).
Deflection (the normal component of the displacement vector) of the mid-plane is small
compared with the thickness of the plate. The slope of the deflected surface is also very
small such that the square of the slope can be neglected in comparison with unity.
Here, the procedure followed by Mindlin (1951) is described, which is simple and
mathematically elegant. The assumed displacement distributions are taken as (see Figure
10.2)
where w is the transverse displacement, βx is the rotation of the normal to the undeformed
middle surface in the x–z plane and βy is the rotation of the normal to the undeformed
middle surface in the y–z plane. Note that in the Kirchhoff's hypotheses βx = −∂w / ∂x and
βy = ∂w; / ∂y.
Strain components can be obtained by substituting the assumed displacements Eq. (10.
12) in Eq. (10.4) as
324
Finite Element Method with Applications in Engineering
s
Shear stresses τxz and τyz in Eq. set (10.14) represent average stresses over the sections.
Stress resultants can now be written from Eq. (10.1) as
In order to account for the non-uniform shear stress distribution over the cross-section, the
shear correction factor K is introduced. The correction factor K is normally assumed to be
5/6 (statics) or π/12 (dynamics).
325
Finite Element Method with Applications in Engineering
Substitute Eq. (10.15) into Eq. (10.3) to obtain the displacement equations of motions.
From the first of the Eq. (10.3),
which simplifies to
After the manipulation of this equation, the second of Eq. (10.3) can be written as
Thus, the three coupled equations for variables w,βx, and βy are
326
Finite Element Method with Applications in Engineering
327
Finite Element Method with Applications in Engineering
where K is the shear correction factor, p(x, y) is the distributed load and Fi are the
concentrated forces. After integrating over the thickness h, Eq. (10.23) yields
where
{εb} and {εs} contain only the first-order derivatives of the dependent variables βx,βy and w.
Procedure presented earlier for the plane stress/strain problems can be followed to
formulate the stiffness matrix of the thick plate element.
Assuming the displacement and rotation distribution as
where wi,θyi,θxi are the nodal values, Ni (ξ,η) are the shape functions associated with the i-
th node, and Ne is the number of nodes in that element. Eq. (10.26) can be written as
328
Finite Element Method with Applications in Engineering
where
Therefore,
where
where
and
or
where
Once the formulation for [K] and {R} are completed, analysis of the plate structure follows
the standard procedure.
329
Finite Element Method with Applications in Engineering
It may be mentioned here that this formulation is restricted to thick plates, since w, βx, and
βyare treated as independent quantities. The differential operators [L]b and [L]s contain only
the first-order derivatives of the shape functions, which requires only C0 continuity. From
Eqs. (10.29) and (10.24), bending stiffness matrix and shear
and
From these equations, it is inferred that the relative magnitude of the shear stiffness
becomes of order 1/(h/L)2 times that of bending stiffness, as plate thickness is reduced.
For example, if h/L = 0.01, 1/(h/L)2 = 104. Here, L is a characteristic length. This means
that if thick plate formulations are used to analyze thin plates, the solution will be governed
according to the shear stiffness. However, shear (transverse) strains are zero and shear
stiffness is neglected in thin-plate theory. The dominance of the shear stiffness in C0
formulation in thin-plate range is known as ‘shear locking’; that is, the element becomes
stiffer and deforms only in the shear mode and flexural deformations are negligible. To
remedy the problem, some techniques are proposed (Zienkiewicz and Taylor, 1989): (a)
impose as constraints and develop a constrained variational
formulation (penalty function approach; discreet Kirchhoff's hypothesis); (b) use reduced
integration technique making shear stiffness singular through a selective integration
scheme or (c) formulate element stiffness using thin-plate theory as discussed in the
following section.
10.2.3.2 Thin Plate
From Equations (10.6) and (10.8), one can write strain–displacement and stress–strain as
330
Finite Element Method with Applications in Engineering
Substituting Eq. (10.31) in Eq. (10.32) and integrating over the thickness of the plate, the
first term results in
Assume the displacement distribution for w, the only degree of freedom (DOF) at any
node, as
Here, wi are the nodal displacements, Ni are the shape function associated with node i and
Ne is the number of nodes in that element.
Substituting Eq. (10.34) in the curvature vector {K} yields
331
Finite Element Method with Applications in Engineering
Minimizing the potential energy of Eq. (10.36), following equations are obtained.
Evaluation of stiffness matrices [K]b and [K]s in Eq. (10.29) and [K]p in Eq. (10.37) requires
integration. It can be seen from Eqs. (10.28) and (10.35) that the integrands of [K]b and
[K]s contain first-order derivatives of shape functions while those of [K]p contains second-
order derivatives. As pointed out in Chapter 5, the shape functions need to be continuous
only at the interface (C0 continuity) for evaluation of [K]b or [K]s. However, evaluation of [K]p
also requires the continuity of the derivative (C1 continuity) at the interface. For one-
dimensional problem, the beam functions (Hermit polynomials), which satisfy C1 continuity
at the nodes have been encountered in Chapter 6. However, it is difficult in two dimension
to construct shape functions, which not only satisfy C1 continuity but are also
computationally efficient.
FEM is a numerical method where the domain is an assemblage of elements. Procedure
to form the global matrix for the domain is to evaluate the potential energy π(e) of each
element and then summing total energy π of the system as
and then minimizing π. Summation of Eq. (10.38) presumes that the displacements and
rotations are continuous at the inter-element boundaries. If the continuity is not
maintained, the gaps (overlays or separations) will form and the solution may not
converge. This aspect is discussed in the next section.
332
Finite Element Method with Applications in Engineering
Desirable Requirements of the Shape Functions: Continuum has infinite DOF and it
possesses minimum potential energy. Discretizing the domain by mesh of finite elements
limits the DOF and renders the system more stiff, resulting in higher potential energy π.
The displacement-based finite elements formulation yields an upper bound for π. The
energy approaches the true value of π from above, as shown in Figure 10.3. The true
minimum energy may never be reached even by refining the mesh, unless the shape
functions are solution of the governing equations. The shape functions should satisfy
some requirements to ensure that the numerical solution converges towards the true
minimum, as the mesh is refined.
Requirement 1: Interpolation function of an element must be able to represent the rigid
body displacement. Rigid body displacements are those displacement modes that an
element is able to undergo as a rigid body without stresses being developed.
Constant terms in the shape functions will ensure this requirement.
Requirement 2: Displacement functions must be capable of representing the constant
generalized strain states within elements as elements get smaller. Generalized strains
mean strains and/or curvatures.
An element is said to be complete if displacement functions satisfy these two
requirements.
Linear terms in the polynomial satisfy this requirement for strains while second-order terms
satisfy the requirement for curvatures. Reasoning for this requirement can easily be
explained.
333
Finite Element Method with Applications in Engineering
Area under a curve y(x) is evaluated by dividing the curve into small intervals ∆xe, as
shown in Figure 10.4 and integrating as
Similar reasoning can be made for higher dimensions. The state of strain in each element
approaches constant value, when elements of the assemblage approach small size. The
energy can then be found by the summation, as shown in one dimension.
Requirement 3: Elements must be compatible.
This requirement means that displacement within elements and across element
boundaries must be continuous. When only the translational DOF are defined at the
element nodes, only continuity of displacements must be preserved. However, when the
rotational DOF are also defined in addition to the displacement DOF, as in the case of
plate bending element, it is also necessary to satisfy the zero and first-order derivatives of
the displacements. If this condition is not satisfied, displacements across thickness of plate
will not be continuous at edges. Compatibility will also imply that elements have the same
number of nodes, co-ordinates and interpolation functions at the inter-element boundaries.
Elements that satisfy the above three requirements are called compatible or conforming
elements. If these requirements are violated, the element is referred to as incompatible or
non-confirming elements.
Physically, compatibility ensures that no gaps or overlaps occur between elements.
Requirement 4: An element should have no preferred direction. In other words, an
element should be geometrically invariant (geometrically isotropic or spatially isotropic).
334
Finite Element Method with Applications in Engineering
335
Finite Element Method with Applications in Engineering
Figure 10.6 Plate element (a) Rectangular plate geometry (b) Nodal DOF
Non-conformal Shape Function: One of the popular rectangular plate bending element
(Melosh, 1963) with 12-DOF is considered here. Figure 10.6 shows a rectangular plate
bending element with nodal displacements wi and the rotations θxi and θyi (i = 1,2,3,4)
where θx = ∂w /∂y and θy = –∂w / ∂x. The origin has been taken at (0, 0). Since the element
has 12-DOF, a 12-term polynomial is selected as
The polynomial is complete up to the third-order terms (see Figure 10.5) and is also
geometrically isotropic. Differentiating Eq. (10.41) with respect to x and y, vector {u} can
be written as
336
Finite Element Method with Applications in Engineering
From Eqs. (10.41) and (10.43), it is observed that the interpolation function satisfies
requirement 1 for rigid body displacement and requirement 2 for constant curvature as the
element becomes smaller. Thus, this element is complete. Consider the compatibility of
this element. Along edge 1–2 (y = 0)
In Eq. (10.44), it is noted that w(x, y) is cubic in x and the slope ∂w / ∂x is the same as in
beam element.
Constants a1, a2, a4, and a7 can be evaluated from the nodal displacements and rotations
w1,θy1, w2 and θy2 as was done in the derivation of beam functions (Hermite polynomial).
The resulting beam functions are given in Chapter 6, in Eq. (6.172) and are also listed later
on in Eq. (10.48).
Thus w and ∂w / ∂x are continuous along the edge 1 – 2. The slope ∂w/∂y is cubic in x
involving four constants a3, a5, a8 and a11. However, only two DOF (θx1 and θx2) remain to
determine these constants.
The slope ∂w/∂y is not uniquely defined and the slope discontinuity occurs. Therefore, this
element is non-conforming element and the solution may not render minimum potential
energy.
Evaluating Eq. (10.42) at each of the four nodes of the element, the following equation is
obtained.
{ qe } = [G]{a}
where
337
Finite Element Method with Applications in Engineering
is obtained.
Substitution of Eq. (10.46) in Eq. (10.41) yields
w(x, y) = [P]{a} = [P][G]-1 {qe} = [N]{qe}, thus the shape function matrix is given by
338
Finite Element Method with Applications in Engineering
339
Finite Element Method with Applications in Engineering
where {q}T = [u1 u2], [M] is the diagonal mass matrix, [C] is the damping matrix, and [K] is
the stiffness matrix.
Using the principle of virtual work, general finite element equations are formed.
where {U} is the displacement, {N} represents interpolation function matrix, {X} is the body
force vector, {T} represents the surface traction vector, {P} contains external nodal forces,
and {qe} contains the nodal displacement values.
340
Finite Element Method with Applications in Engineering
The body force vector has to be modified to include the inertia and damping forces.
The element force vector { e
} is now written as
In Eq. (10.55), m is the mass per unit volume and c is the damping per unit volume.
Thus, [Ke]{qe} = {Fe} of equation (7.69) modifies to
Rewriting this equation, the dynamic equilibrium equation takes the form
[M e] is the element consistent mass matrix, [C e] is the element consistent damping matrix
and [K e] is the consistent stiffness matrix. [K e], [B] and [D], were defined in earlier
chapters.
Assembling the contributions from all elements of the discretized domain, the global
dynamic equilibrium equation can be written as
In the sequel, it will be assumed that the matrices [M], [C], and [K] are symmetric of size n
× n, and the vectors {q} and {F(t)} are of size n × 1
In practice, determination of the damping matrix [C] is difficult and it is seldom known. Only
the following case will be considered.
Equation (10.58) is of the same form as equation (10.56). In the sequel, the hat is
suppressed and consider the form as
Equation (10.59) can be numerically solved by using either mode superposition method or
direct time integration method. The mode superposition method is presented first followed
341
Finite Element Method with Applications in Engineering
by a time integration method [Bathe (2001), Huebner et al. (1995), Clough and Penzien,
(1975)].
10.3.3 Mode Superposition Method
The method is applied in two steps. In the first step, the eigenvalues (frequencies) and the
eigenvectors (mode shapes) of the homogeneous Eq. (10.59) ({F(t)} = 0) are found. These
modes are then superposed to solve for the forced vibration problems.
To find the natural frequencies (eigenvalues) and the natural or principal modes
(eigenvectors) of Eq. (10.60), the nodal vector {q(t)} is expressed as
Eq. (10.62) has a non-trivial solution only when the determinant of Eq. (10.62) is zero, that
is,
Since, [K] and [M] are assumed to be of order n × n, Eq. (10.63) yields n eigenvalues ω2r (r
= 1,2,…, n). There will be a corresponding mode shape {(φ}r (r = 1,2,…, n) associated with
each frequency ωr. Frequencies ωr will be positive if [K] and [M] are positive definite, which
is generally the case. It is seldom practical to write the polynomial expansion for the
determinant of Eq. (10.63) for large matrices. A number of standard computer programs
are available in open literature as library subroutines for the purpose. In many cases, only
a few modes {(φ}r (r = 1,2,…, p, p ≤ n) are required. There are several iterative solution
procedures to solve for these modes (Clough and Penzien 1975; Bathe 2001).
An important property of the mode shapes, which is very useful for solving forced vibration
problems, is their orthogonality with respect to the weight [M]. The orthogonality condition
can be stated as
where {φ}r and {φ}s are mode shapes corresponding to frequencies ωr and ωs,
respectively.
The orthogonality relation for the stiffness matrix [K] can be established from Eq. (10.62)
as
342
Finite Element Method with Applications in Engineering
Mr and Kr are called generalized mass and stiffness, respectively and ωr is the natural
frequency of the r-th mode.
and {Y(t)} is the vector of unknown modal amplitudes. Note that [Ф] transforms the
generalized coordinates {Y(t)} to the physical coordinates {Q(t)}.
By substituting Eq. (10.66) in Eq. (10.59) and then pre-multiplying the resulting Eq. by [Ф]T,
the following equation set is obtained.
Using the orthogonality Eqs. (10.64) and (10.65), Eq. (10.67) reduces to a set of
uncoupled ordinary differential equations shown below.
where the generalized force Fr(t) = {(φ}Tr{F(t)}. Thus, the problem statement can be stated
as
It can be noted that Eq. (10.68) is a governing differential equation for a single-DOF
system.
Solution can be obtained using the Duhamel integral as
where the constant C1 and C2 are to be determined from the initial conditions. The integral
in the above equation may have to be evaluated numerically.
Once all p solutions of Eq. (10.68) are determined, the complete response is obtained by
superposing the modes as follows.
343
Finite Element Method with Applications in Engineering
The mode superposition method is favored if only a few modes are needed to describe the
response. For example, an earthquake usually has only a few dominant frequencies in its
frequency spectra. However, the method has also been used for a concentrated force
(Green's function) in wave propagation problems (Datta and Shah, 2008), employing few
modes p(p < n).
344
Finite Element Method with Applications in Engineering
where the effective stiffness matrix [ ] and the effective force { (t)} are given by
The algorithm starts at t = 0 incorporating the initial conditions {q}0 and 0. The initial
acceleration vector 0 can be found from Eq. [10.56(b)] using these conditions. The
displacement {q}−∆t needed to start the algorithm is evaluated from Eq. (10.72) as
where ωn is the largest frequency and Tn the shortest period of the equation (10.63) having
matrices [M] and [K] of size n × n.
The central difference method is said to be conditionally stable since it requires the use of
a time step ∆t smaller than a critical time step ∆tcr.
Eq. (10.78) is solved for t+∆t , which is then substituted in Eq. (10.79) to obtain t+∆t . The
resulting equations are
345
Finite Element Method with Applications in Engineering
Substitution of relations for t and t of Eqs. (10.80) and (10.81) into Eq. (10.82) results
in the following recursive algorithm.
The algorithm starts at t = 0 incorporating the initial conditions {q} and 0. 0 can be
found from Eq. [10.56(b)] using these conditions. Then, the algorithm can march forward
from Eq. (10.84).
Performance of the Newmark Beta method has been studied extensively for stability
(Bathe 2001; Zienkiewicz and Taylor 1989) and is not discussed here further. A good
choice of parameters for an implicit method that is conditionally stable is α = 0.5 and β =
0.25. This is called the constant average acceleration method, as seen from Eqs. (10.78)
and (10.79). For this choice of α and β there are no amplitude errors in any sine-wave
motion, regardless of the frequency. However, the periods of the sine-wave motion are
overestimated. The error magnifies as ∆t /T increases (Cook, 1981). The time integration
method is favored for short duration loads and for impulsive loads. For example, blast
loading has a wide frequency band and impact load has white noise as its frequency
spectra.
10.4 NON-LINEAR ANALYSIS
Final assembled equations arising from the application of FEM can be broadly represented
in one of the following forms.
Eq. set (10.85) arises from application of FEM to static (time independent) or steady-state
problems. Eq. sets (10.86) and (10.87), on the other hand, arise from the time-dependent
(transient) situations. However, these time-dependent equation sets can be transformed to
346
Finite Element Method with Applications in Engineering
an equivalent ‘pseudo static’ set by using appropriate numerical techniques (e.g. Section
10.3.4). Thus, the final equation set considered in an analysis is generally of the form
described by Eq. set (10.85).
If [K] is a constant coefficient matrix, the ensuing linear simultaneous equations can be
solved by using methods such as those described in Appendix A. However, in certain
cases, [K] = [K (q)]. For example, consider case of stress analysis of structural
system/continuum. When the constitute model itself is non-linear (due to non-linear
material behavior), or when original geometry deforms considerably with respect to the
original geometry (i.e., geometric non-linearity) under application of loads, the assembled
matrix will no longer be a constant coefficient matrix. In such cases of [K] = [K (q)], and the
resulting equations are non-linear.
Due to presence of non-linearity, principle of superposition cannot be used. The ensuing
equations are required to be solved incrementally, in an iterative manner. Moreover,
distinction has to be made between the deformed and the original undeformed state. Final
(equilibrium) equations are written with respect to the deformed geometry by using
reference system either as the original undeformed configuration (Lagrangian system) or
the current deformed configuration (updated Lagrangian or Eulerian system). Detailed
discussion of non-linear analyses is beyond the scope of this book. They can be found in
advanced finite element textbook like (Zienkiewicz and Taylor, 1989; Bathe, 2001).
Typical aspects of finite element formulation for non-linear stress analysis are discussed
next.
10.4.1 Finite Element Formulation for Non-Linear Analysis
Equilibrium conditions between internal and external forces must be satisfied irrespective
of geometric or material non-linearity. If continuous displacement field in a system is
represented by the nodal displacement vector stemming from the application of FEM,
equilibrium equations can be obtained from the virtual work principle as
where is the sum of internal and external forces and is equivalent external nodal
force vector (vector in the context of usual linear finite element analysis). On the other
hand, is strain-displacement relationship matrix and is stress vector, which depend on
the type of finite element used and dimensionality of the problem. In general, , and
depend on displacements and, thus, the set of Eq. (10.88) is non-linear.
Residuals can be visualized as nodal forces required to bring the assumed
displacement pattern into equilibrium and, thus, the residuals should be reduced to zero as
much as possible.
Eq. set (10.88) is generally cast in the incremental form for ease in formulating iterative
process, as
where is known as the tangent stiffness matrix, and is a combination of usual linear
stiffness matrix and non-linear stiffness matrices arising from large displacements and/or
stress levels.
Solution of the ensuing non-linear equation set is discussed next.
10.4.2 Solution of Non-Linear Equations
347
Finite Element Method with Applications in Engineering
Typical methods available in the literature to solve simultaneous non-linear equations are
listed below.
Newton–Raphson method
Modified Newton–Raphson method
Initial Stiffness method
Secant method
Arc-line method
Arc-line method with line search
Pre-conditioned conjugate gradient techniques
All these methods have their relative merits and demerits. For the purpose of illustration,
the Newton–Raphson method has been briefly discussed here.
When the Newton–Raphson method is used, system of non-linear equations is
represented as a set of functions for which roots are desired, that is,
These functions are expanded in a Taylor series about some arbitrary point, which
represents an initial estimate of solution. Linear solution of the problem is generally
considered as the initial estimate . Subsequently, the estimate is improved iteratively as
where
348
Finite Element Method with Applications in Engineering
Example 1
Consider the geometrically non-linear spring shown in the figure. If K (u) = 200 +
20u2N/mm and P = 1,140 N, find the displacement u.
Solution:
For the single-DOF system depicted above, the restoring force is k.u = 200 u + 20 u3.
Thus, the equivalent of Eq. set (10.88) can be shown to be
By comparing the above Eq. (2) with Eq. set (10.89), [KT] = 200 + 60u2.
Eqs. (10.91) through (10.94) can be rewritten for this example as
349
Finite Element Method with Applications in Engineering
The initial estimate u0 is obtained from the linear solution, which is obtained by setting
nonlinear stiffness term to zero, as u0 = 1140/200 = 5.7 mm.
Repeated application of Eq. (6) and then Eq. (3) for i = 0,1,2, … yields following results.
Similarly, for
Thus, it can be seen that the displacement is converging to 3 mm. It can be confirmed that
the restoring force for 3 mm displacement is 200× 3 + 20× 33 = 1,140 N, which is the
magnitude of externally applied force P.
Example 2
A single-DOF system was considered in the previous example to illustrate geometric non-
linear analysis. In this example, a two-DOF geometrically non-linear spring system is
considered to illustrate solution process for a set of non-linear simultaneous equations. For
the two spring assemblage shown below, stiffness of each geometrically non-linear spring
is as described in the previous example. Thus, k1 = 200 + 20uB2 and k2 = 200 + 20(uc −
uB)2. Consider PB = 580 N and PC = 560 N. Compute the displacements at nodes B and C.
Solution:
By following the formulation given in Chapter 6, the assembled matrix can be shown (after
the application of boundary condition uA = 0) to be
From the above equation set, an equivalent form of Eq. (10.88) can be shown to be
350
Finite Element Method with Applications in Engineering
By substituting expressions for K1 and K2 in the above equation and by using Eq. (10.89),
it can be shown that
where
The initial estimate is obtained from the linear equation set obtained from Eq. (1) by
considering only linear terms in K1 and K2 as
The residual force vector ψ (qi) required in the i-th iteration can be found from Eq. (2) by
substituting uBi and uCi as values of uB and uC, respectively.
Progress of numerical computations has been shown in the following table.
It can be seen from the table that as the iterative process progresses, (i) the residual
forces reduce [column (2)], (ii) elements of incremental solution vector become smaller
(column (4)) and (iii) solution converges to values uB= 3 mm and uC = 5 mm.
Example 3
The bar assemblage shown in Figure (a) has linear geometric properties and idealized bi-
linear stress strain properties, as shown in Figure (b). Consider cross sectional area as
A1= 500 mm2 and A2 = A3 = 300 mm2. Analyze the assemblage by using Newton–Raphson
method.
351
Finite Element Method with Applications in Engineering
Solution:
Consider the discretization shown in the Figure (c).
352
Finite Element Method with Applications in Engineering
On the other hand, the global element matrices are obtained from formulation presented in
Chapter 6 as
353
Finite Element Method with Applications in Engineering
Note that the numerical values of E1 and E2 depend on the strain levels.
Residual force can be computed by considering the nodal equilibrium of node 1, as shown
in the following figure.
Fe (1), Fe (2) and Fe (3) are magnitudes of forces in elements 1, 2 and 3, respectively, induced
due to application of vertical downward force F at node 1. By applying equilibrium
condition, following equations are obtained.
Here,
Eqs. (7) have been obtained from the given bi-linear stress–strain relations. Strain terms
can be obtained from the formulation presented in Chapter 6 as
In the next iteration, the residual is estimated by computing stress components from Eqs.
(7) and substituting the same in Eq. (9). The tangent stiffness matrix is simply considered
to be K, defined in Eq. (5). Then, the incremental and the total updated displacements are
354
Finite Element Method with Applications in Engineering
computed, respectively, by employing Eqs. (10.94) and (10.91), respectively. For example,
consider i = 0. From Eq. (8),
On the other hand, the residual force computed from Eq. (9) is obtained to be
Subsequently, the incremental displacement and the total displacement are computed,
respectively, from Eqs. (10.94) and (10.91) as
Progress of the iterative process has been summarized below in the tabular form.
It can be observed from the table that the converged value of vertical displacement at
node 1 isV1 = –25.0245 mm. It should be noted that a large load increment (like the one
used in the current example) can be used only for elastic system, where loading and
unloading paths are the same. For an inelastic system, however, smaller load increments
must be used to trace load-displacement history.
Eq. set (10.85) arises from application of FEM to static (time independent) or steady-state
problems. Eq. sets (10.86) and (10.87), on the other hand, arise from the time-dependent
(transient) situations. However, these time-dependent equation sets can be transformed to
an equivalent ‘pseudo static’ set by using appropriate numerical techniques (e.g. Section
355
Finite Element Method with Applications in Engineering
10.3.4). Thus, the final equation set considered in an analysis is generally of the form
described by Eq. set (10.85).
If [K] is a constant coefficient matrix, the ensuing linear simultaneous equations can be
solved by using methods such as those described in Appendix A. However, in certain
cases, [K] = [K (q)]. For example, consider case of stress analysis of structural
system/continuum. When the constitute model itself is non-linear (due to non-linear
material behavior), or when original geometry deforms considerably with respect to the
original geometry (i.e., geometric non-linearity) under application of loads, the assembled
matrix will no longer be a constant coefficient matrix. In such cases of [K] = [K (q)], and the
resulting equations are non-linear.
Due to presence of non-linearity, principle of superposition cannot be used. The ensuing
equations are required to be solved incrementally, in an iterative manner. Moreover,
distinction has to be made between the deformed and the original undeformed state. Final
(equilibrium) equations are written with respect to the deformed geometry by using
reference system either as the original undeformed configuration (Lagrangian system) or
the current deformed configuration (updated Lagrangian or Eulerian system). Detailed
discussion of non-linear analyses is beyond the scope of this book. They can be found in
advanced finite element textbook like (Zienkiewicz and Taylor, 1989; Bathe, 2001).
Typical aspects of finite element formulation for non-linear stress analysis are discussed
next.
where is the sum of internal and external forces and is equivalent external nodal
force vector (vector in the context of usual linear finite element analysis). On the other
hand, is strain-displacement relationship matrix and is stress vector, which depend on
the type of finite element used and dimensionality of the problem. In general, , and
depend on displacements and, thus, the set of Eq. (10.88) is non-linear.
Residuals can be visualized as nodal forces required to bring the assumed
displacement pattern into equilibrium and, thus, the residuals should be reduced to zero as
much as possible.
Eq. set (10.88) is generally cast in the incremental form for ease in formulating iterative
process, as
where is known as the tangent stiffness matrix, and is a combination of usual linear
stiffness matrix and non-linear stiffness matrices arising from large displacements and/or
stress levels.
Solution of the ensuing non-linear equation set is discussed next.
356
Finite Element Method with Applications in Engineering
These functions are expanded in a Taylor series about some arbitrary point, which
represents an initial estimate of solution. Linear solution of the problem is generally
considered as the initial estimate . Subsequently, the estimate is improved iteratively as
where
357
Finite Element Method with Applications in Engineering
Example 1
Consider the geometrically non-linear spring shown in the figure. If K (u) = 200 +
20u2N/mm and P = 1,140 N, find the displacement u.
Solution:
For the single-DOF system depicted above, the restoring force is k.u = 200 u + 20 u3.
Thus, the equivalent of Eq. set (10.88) can be shown to be
By comparing the above Eq. (2) with Eq. set (10.89), [KT] = 200 + 60u2.
Eqs. (10.91) through (10.94) can be rewritten for this example as
358
Finite Element Method with Applications in Engineering
The initial estimate u0 is obtained from the linear solution, which is obtained by setting
nonlinear stiffness term to zero, as u0 = 1140/200 = 5.7 mm.
Repeated application of Eq. (6) and then Eq. (3) for i = 0,1,2, … yields following results.
Similarly, for
Thus, it can be seen that the displacement is converging to 3 mm. It can be confirmed that
the restoring force for 3 mm displacement is 200× 3 + 20× 33 = 1,140 N, which is the
magnitude of externally applied force P.
Example 2
A single-DOF system was considered in the previous example to illustrate geometric non-
linear analysis. In this example, a two-DOF geometrically non-linear spring system is
considered to illustrate solution process for a set of non-linear simultaneous equations. For
the two spring assemblage shown below, stiffness of each geometrically non-linear spring
is as described in the previous example. Thus, k1 = 200 + 20uB2 and k2 = 200 + 20(uc − uB)2.
Consider PB = 580 N and PC = 560 N. Compute the displacements at nodes B and C.
Solution:
By following the formulation given in Chapter 6, the assembled matrix can be shown (after
the application of boundary condition uA = 0) to be
From the above equation set, an equivalent form of Eq. (10.88) can be shown to be
359
Finite Element Method with Applications in Engineering
By substituting expressions for K1 and K2 in the above equation and by using Eq. (10.89), it
can be shown that
where
The initial estimate is obtained from the linear equation set obtained from Eq. (1) by
considering only linear terms in K1 and K2 as
The residual force vector ψ (qi) required in the i-th iteration can be found from Eq. (2) by
substituting uBi and uCi as values of uB and uC, respectively.
Progress of numerical computations has been shown in the following table.
It can be seen from the table that as the iterative process progresses, (i) the residual
forces reduce [column (2)], (ii) elements of incremental solution vector become smaller
(column (4)) and (iii) solution converges to values uB= 3 mm and uC = 5 mm.
Example 3
The bar assemblage shown in Figure (a) has linear geometric properties and idealized bi-
linear stress strain properties, as shown in Figure (b). Consider cross sectional area as
A1= 500 mm2 and A2 = A3 = 300 mm2. Analyze the assemblage by using Newton–Raphson
method.
360
Finite Element Method with Applications in Engineering
Solution:
Consider the discretization shown in the Figure (c).
361
Finite Element Method with Applications in Engineering
On the other hand, the global element matrices are obtained from formulation presented in
Chapter 6 as
362
Finite Element Method with Applications in Engineering
Note that the numerical values of E1 and E2 depend on the strain levels.
Residual force can be computed by considering the nodal equilibrium of node 1, as shown
in the following figure.
Fe (1), Fe (2) and Fe (3) are magnitudes of forces in elements 1, 2 and 3, respectively, induced
due to application of vertical downward force F at node 1. By applying equilibrium
condition, following equations are obtained.
Here,
Eqs. (7) have been obtained from the given bi-linear stress–strain relations. Strain terms
can be obtained from the formulation presented in Chapter 6 as
In the next iteration, the residual is estimated by computing stress components from Eqs.
(7) and substituting the same in Eq. (9). The tangent stiffness matrix is simply considered
to be K, defined in Eq. (5). Then, the incremental and the total updated displacements are
363
Finite Element Method with Applications in Engineering
computed, respectively, by employing Eqs. (10.94) and (10.91), respectively. For example,
consider i = 0. From Eq. (8),
On the other hand, the residual force computed from Eq. (9) is obtained to be
Subsequently, the incremental displacement and the total displacement are computed,
respectively, from Eqs. (10.94) and (10.91) as
Progress of the iterative process has been summarized below in the tabular form.
It can be observed from the table that the converged value of vertical displacement at
node 1 isV1 = –25.0245 mm. It should be noted that a large load increment (like the one
used in the current example) can be used only for elastic system, where loading and
unloading paths are the same. For an inelastic system, however, smaller load increments
must be used to trace load-displacement history.
364
Finite Element Method with Applications in Engineering
365
Finite Element Method with Applications in Engineering
where Zb is the bottom level, measured from some horizontal reference level at the free
surface and W is vertical velocity. Here, computations may be complicated as the surface
may be moving by itself. Then, the relative normal velocity must vanish, as shown below.
where pa is the atmospheric pressure. The absolute pressure level is not important so it
can be considered to be zero.
366
Finite Element Method with Applications in Engineering
where n is the number of nodes (n = 3, for triangular element) per element. The Chezy's
coefficient is taken as constant (but it can vary in some cases). Here, Ni are shape
functions. In the present study, simple three node triangular elements are used to
represent the domain as shown in Figure 10.9. The shape function details are given in
Section 10.5.3.1.
Variation of quantity can be expressed in matrix form as
If Wi = Ni, method weighted residual is called Galerkin's weighted residuals method, that is,
Galerkin's method is applied to the continuity Eq. (10.145) and momentum Eq. (10.146),
Eq. (10.147) in the sequel.
Continuity Equation
367
Finite Element Method with Applications in Engineering
where
Momentum Equation in Y Direction
and .
Time Domain Discretization
Eqs. (10.153), (10.155) and (10.157) can be written in the form
Eqs. (10.153), (10.155) and (10.157) are rewritten below in form depicted by Eq. (10.159).
Continuity Equation
368
Finite Element Method with Applications in Engineering
where
where
where
369
Finite Element Method with Applications in Engineering
Generally, explicit or implicit scheme is used for time integration. In explicit scheme, {R} is
considered at time t. At time t, values of variable U, V and H are known. Thus, values of U,
V and H can be computed explicitly. Time steps to be used in explicit method should be
very small to get good accuracy in solution.
Here, w0 = 1– w1.
For implicit model, value of w1 can be taken as 0.7. For this value, system becomes
unconditionally stable (Reddy, 1993). Larger time step can be taken with small decrease in
accuracy of solution. Larger time step, in addition to decreasing accuracy of solution can
also introduce some unwanted, numerically induced oscillations into solution. Numerical
oscillation may occur, but they never become unstable for problems considered here.
By superimposing element matrices for all elements in proper order, the global matrix for
entire discretized domain can be obtained as follows.
Here, {x} is a matrix or column vector consist of H, U or V at time instant t + ∆t. On the
other hand, coefficient matrix [A] and column vector {R} are composed of values at time
instant t. Thus, H, U and V can be obtained at t + ∆t time step by knowing values at t by
using standard procedure such as Gauss elimination or iterative scheme discussed earlier.
10.6.3 Case Study
Based on the above formulation, an implicit FEM based model has been developed and is
applied to a straight simple channel (Figure 10.15) described by Gray and Lynch (1979).
The channel has a length of 871.65 Km and width of 160 km. Here, the unknowns are
horizontal velocities (U, V) and depth of water (H). Triangular elements have been used in
discretization as shown in Figure 10.16. Grid has 176 elements and 115 nodes. For
simulation, model is tested with constant bathymetry of 9.1435 meter. A sinusoidal tidal
forcing function period of 12 hours and amplitude of 0.091435 m has been applied to the
opened end of the channel. Cold start (U = V = 0, H = h) is taken as initial condition.
370
Finite Element Method with Applications in Engineering
Normal flux to solid boundaries is taken as zero. Coriolis effect is neglected. Time step of
∆t = 350 sec is used. Solution obtained with models are shown in Figures 10.17 and 10.18
for surface elevation and velocities (U) after the steady-state has been reached. Small
oscillations are present in solution when compared with analytical solution given by Gray
and Lynch (1979). This is expected since the present model is based on numerical
approximation.
Figure 10.16 Finite element grid used in computation of the rectangular channel
Figure 10.17 Surface elevation computed by FEM model compared with analytical
solution
371
Finite Element Method with Applications in Engineering
Figure 10.18 Velocity computed by FEM model compared with analytical solution
372
Finite Element Method with Applications in Engineering
this section, some of the commonly used software packages in structural engineering have
been briefly discussed.
STAAD
(http://www.bentley.com/en-US/Products/Structural+Analysis+and+Design)
STAAD family of FEM analysis and design packages (STAAD.Pro/STAAD.beava) can
be used for typical structures like multi-storied buildings, towers, culverts, plants, bridges,
stadiums, marine structures and so on. It can easily accommodate design and loading
requirements, in conformation of various international and national codes of practice.
RAM Products/ Bentley Structural
(http://www.bentley.com/en-US/Products/Structural+Analysis+and+Design)
There are number of RAM modules (RAM Advanse / RAM Frame / RAM Concrete
/RAM Concept / RAM Steel) for analysis and design of variety of structures, structural
components: Structures such as trusses, continuous beams, frames of all types, retaining
walls, masonry walls, tilt-up walls, shear walls, footings, etc. Static and dynamic analysis
of two- and three-dimensional structures made up of common construction materials can
also be performed for a variety of loading conditions
Bentley Structural software can be used in structural design and construction
documentation for structures in steel, concrete and timber in two- or three-dimensional. It
gives the integrated analytical model with finite elements, nodes, boundary conditions and
member releases, loads and load combinations.
NISA Products
(http://www.nisasoftware.com/Products)
NISA is a FEM software for design and analysis to address the Automotive, Aerospace,
Energy and Power, Civil, Electronics and Sporting Goods industries. NISA include
integrated pre-/post- processing environment within a GUI and inter-operability with
leading commercial CAD software. It can be used for solid and surface modelling, finite
element mesh generation, various types of analyses such as that for stress, vibration,
seismic, electromagnetic, fatigue, CFD/fluid structure interactions and so on. Some
products (NISA/CIVIL, NISA DesignStudio) can be used for analysis, design and
detailing of variety of RCC and steel structures.
MSC Nastran
(http://www.mscsoftware.com/products/msc_nastran.cfm)
MSC Nastran is a general purpose finite element analysis solution for small to complex
assemblies. It provides a wide range of modelling and analysis capabilities, including
linear statics, displacement, strain, stress, vibration, heat transfer and so on.
NEi Fatigue
(http://www.nenastran.com/newnoran/fatigue)
NEi Fatigue allows Engineers to calculate fatigue life of components under dynamic
loading. Applications of NEi Fatigue include fatigue analysis for bodywork structures, axle
components, crankshafts, rotary blades for wind power stations and so on.
ANSYS
(http://www.ansys.com/products/structural-mechanics)
373
Finite Element Method with Applications in Engineering
374
Finite Element Method with Applications in Engineering
375
Finite Element Method with Applications in Engineering
NEI Thermal Basic (TMG) provides solutions for linear and non-linear, steady-state
and transient heat transfer processes including conduction, radiation, and free convection.
It includes modelling of conduction, convection, radiation and phase change and it
provides a range of thermal boundary conditions and solver controls.
NISA/ HEAT (http://www.nisasoftware.com/Products/MechanicalApplications)
NISA/Heat is a general purpose finite element program to analyze a wide spectrum of
problems encountered in heat transfer dealing with concentrated heat flows, distributed
heat flux, internal heat generation, radiation effects and so on. It can analyze non-linearity
due to time and temperature-dependent materials and boundary conditions, such as
temperature-dependent thermal conductivity and phase change (melting and freezing) and
so on.
LS-DYNA (http://www.easi.com/software-products-ls-dyna.aspx)
LS-DYNA software is a general purpose transient dynamic finite element program used
by automotive industries to analyze vehicle designs, especially for crash worthiness. It can
be used for non-linear analysis; rigid body dynamics; quasi-static simulations; FEM-rigid
multi-body dynamics coupling (MADYMO, CAL3D); real-time acoustics; design
optimization; multi-physics coupling; structural-thermal coupling, adaptive re-meshing and
so on.
376
Finite Element Method with Applications in Engineering
Elmer (http://www.csc.fi/english/pages/elmer)
Elmer is an open source multi-physical simulation software. Elmer includes physical
models of fluid dynamics, structural mechanics, electromagnetics, heat transfer and
acoustics, for example. These are described by partial differential equations; which Elmer
solves by FEM. One can use basic element shapes in one-, two- and three-dimensional
domains with the Lagrange shape functions of k ≤ 2 and FEM solvers (without multiple
acceleration). Assembly and iterative solution can also be done in parallel.
FlexPDE6 (http://www.pdesolutions.com/)
FlexPDE6 is Multi-Physics Finite Element Solution Environment for Partial Differential
Equations. It can be used for one-, two- or three-dimensional Multi-Physics PDE problems
of heat flow, stress analysis, fluid mechanics, chemical reactions, electromagnetics,
diffusion, etc. It has a self-contained processing system that analyses problem description,
symbolically from Galerkin's finite element integrals, derivatives and dependencies. It
builds a coupling matrix and solves it and plots the results.
377
Finite Element Method with Applications in Engineering
applicability to complex geometry and flexibility for many types of linear and non-linear
problems. Most practical engineering problems related to solids, structures, fluids and
materials are currently solved using well developed FEM packages.
As a numerical method, it appears that FEM has reached a point where no significant
break though may be expected in the near future. However, future growth of FEM will
involve broader applications to further engineering problems, further refinement in the
basic theorems and formulations and further efficient pre-processing and post-processing
tools. Various sophisticated tools are available for pre-processing of data and post-
processing of FEM simulation results. However, further efforts are required to efficiently
automate pre- and post-processing tasks for more user friendly and error free operations.
Tremendous growth in computer technology will undoubtedly continue to have significant
impact on further evolution of FEM. Improved efficiency achieved in computer hardware
and software tools such as micro/nano processors and large-scale parallel processing will
need significant improvements in finite element model development and applications.
From Engineer's view point, FEM can always be made more efficient and easier to use
with sophisticated pre- and post-processing tools. As FEM is applied to very large and
complex problems, it is very important that the solution process remains efficient and
economical. With continuing demand and economic pressures to further improve
innovations, efficiency and engineering productivity, this century will see further growth of
FEM in engineering design and analysis. FEM will remain more exciting and will be an
important part of Engineer's design and analysis toolkit.
378
Finite Element Method with Applications in Engineering
Connors, J. J., and Brebbia, C. A. (1976). Finite Element Techniques for Fluid Flow,
Butterworth, London.
Cook, R. D. (1981). Concepts and Applications of Finite Element Analysis, John Wiley and
Sons.
Datta, S. K., and Shah, A. H. (2008). Elastic Waves in composite Media and Structures,
CRC Press, Boca Raton.
Desai, C. S., and Abel J. F. (1987). Introduction to the Finite Element Method — A
Numerical Method for Engineering Analysis, Wads Worth, California.
Dunne, P. (1968). Complete polynomial displacement fields for the finite element method,
Aeronaut. J., 72: 246–247.
Freeze, R. A., and Cherry, J. A. (1979). Groundwater, Prentice Hall, Englewood Cliffs, NJ.
Gray, W. G. (1977). An efficient finite element scheme for two-dimensional surface water
computation, Finite Element in Water Resources, Vol. I, Brebbia, C. A., Gray, W. G. and
Pinder, G. F., (eds.), Pentech Press, London, pp. 4.33–4.49.
Gray, W. G., and Lynch, D. R. (1979). On the control of noise in finite element tidal
computations: a semi-implicit approach, Computer and Fluids,7:47–67.
Hinwood, J. B., and Wallis, I. G. (1975). Review of Models of Tidal Waters, J. Hydra. Eng.,
ASCE, 101(10).
Hrabok, M. M, and Hrudey, T. M. (1984). A review and catalogue of plate bending finite
elements, Computers and Structures, 19(3):479–495.
Huebner, K. H., Thornton, E. A., and Byron, T. G. (1995). The Finite Element Method for
Engineers, John Wiley and Sons.
Huyakorn, P. S., and Pinder, G. F. (1983). Computational Methods in Subsurface Flow.
Academic Press, New York, pp. 473.
Irons, B. M., and Razzaque, A. (1977). Experience with the patch test for convergence of
finite element method, in Mathematical Foundation of the Finite Element Method, Aziz, A.
K. (ed.). Academy Press, pp. 557–587.
Istok, J. (1989). Groundwater Modeling by the Finite Element Method, American
Geophysical Union, Washington.
Kinsler, L. E., and Frey, A. R. (1950). Fundamentals of Acoustics, John Wiley and Sons,
New York.
Krishnamoorthy, C. S. (1994). Finite Element Analysis: Theory and Programming, Tata
McGraw Hill, New Delhi.
Liggett, J. A. (1994). Fluid Mechanics, McGraw Hill, Singapore.
Lynch, D. R., and Gray, W. G. (1979). A wave equation model for finite element tidal
computations, Computer and Fluids, 7:207–228.
MacCamy, R. C., and Fuchs, R. A. (1945). Wave Forces on Piles: A Diffraction Theory, US
Army Coastal Engineering Center, Tech. Mem. No. 69.
Martin, J. L., and McCutcheon, S. C. (1998). Hydrodynamics and Transport for Water
Quality Modelling, Lewis Publishers, London.
379
Finite Element Method with Applications in Engineering
Melosh, R. J. (1963). Basis for derivation of matrices for the direct stiffness method, J. Am.
Inst. Aeronaut. Astron. 1(7):1631–1637.
Mindlin, R. D. (1951). Influence of rotatory inertia and shear on flexural motion of isotropic,
elastic plates, J. Appl. Mech., 31–38.
Mohr, G. A. (1992). Finite Elements for Solids, Fluids and Optimization, Oxford University
Press, New York.
Pinder, G. F., and Gray, W. G. (1977). Finite Element Simulation in Surface and
Subsurface Hydrology, Academic Press, New York.
Pironneau, O. (1989). Finite Element Methods for Fluids, John Wiley and Sons,
Chichester.
Oden, J. T. (1969). A general theory of finite elements: II. Applications, Int. J. Numer.
Methods in Eng., 1(3).
Reddy, J. N. (1993). An Introduction to the Finite Element Method, McGraw Hill, New York.
Reddy, J. N. (1999). Theory and Analysis of Elastic Plates, Taylor and Francis, PA, USA.
Reddy, J. N., and Gartling, D. K. (1994). The Finite Element Method in Heat Transfer and
Fluid Dynamics, CRC Press, London.
Rice, J. (1993). Numerical Methods, Software, and Analysis, Academic Press, New York.
Segerlind, L. J. (1985). Applied Finite Element Analysis, John Wiley and Sons, New York.
Stasa, F. L. (1985). Applied Finite Element Analysis for Engineers, CBS Publ. Japan, New
York.
Streeter, V. L., Wylie, E. B., and Bedford, K. W. (1998). Fluid Mechanics, WCB/ McGraw
Hill, Boston.
Sun, N. (1996). Mathematical Modeling of Groundwater Pollution, Springer Publishing
House, New York.
Taylor, C., Patil, B. S., and Zienkiewicz, O. C. (1969). Harbor Oscillation: A Numerical
Treatment for Undamped Natural Modes, Proc. Inst. Civil Eng., 43:141–155.
Timoshenko, S. P., and Woinowsky-Krieger, S. (1959). Theory of plates and shells,
Second ed. McGraw Hill International ed., Singapore.
Vreugdenhil, C. B. (1994). Numerical Methods for Shallow-Water Flow, Kluwer Academic
Publishers, London.
Wang, H., and Anderson, M. P. (1982). Introduction to Groundwater Modeling Finite
Difference and Finite Element Methods, W. H. Freeman and Company, New York.
White, R. E. (1985). An Introduction to the Finite Element Method with Applications to
Nonlinear Problems, John Wiley and Sons, New York.
Zheng, C., and Bennett, G. D. (1995). Applied Contaminant Transport Modeling-Theory
and Practice, Van Nostrand Reinhold, New York, NY.
Zienkiewicz, O. C. (1980). Finite Element Method, 3rd ed., McGraw Hill Book, New York.
Zienkiewicz, O. C., and Taylor, R. L. (1989). The Finite Element Methods, 4th ed., Vol. 1:
Basic Formulation and Linear Problems, Vol. 2: Solid and Fluid Mechanics; Dynamics and
Non-linearity McGraw Hill Company Limited, London.
380
Finite Element Method with Applications in Engineering
Appendix A
REVIEW OF MATRIX ALGEBRA AND
MATRIX CALCULUS
A.1 REVIEW OF MATRIX ALGEBRA
Finite element method can be viewed as a means of forming matrix equation that
approximates behavior of a physical system. Hence, any finite element application results
in forming, manipulating and solving matrix equations. Therefore, matrix algebra pertaining
to finite element analysis is reviewed here.
A.1.1 Definition of a Matrix
A matrix is an m × n array of numbers arranged in m rows and n columns.
Size of [a] = m × n
ai j → element of [a] corresponding to i th row and j th column.
A.1.2 Types of Matrices
1. Column matrix (vector) – n = 1:
381
Finite Element Method with Applications in Engineering
5. Symmetric matrix:
8. Transposed matrix:
It is obtained by interchanging rows and columns.
bij = aji
Note: For a symmetric matrix [a] = [a].
T
9. Null matrix:
All elements are zero in the null matrix.
382
Finite Element Method with Applications in Engineering
Two matrices are said to be equal only when they are equal element by element.
A.1.4 Addition or Subtraction of Matrices
Matrices must be of the same size and elements must be added or subtracted term by
term.
Let
383
Finite Element Method with Applications in Engineering
So
Let
Then
A.1.6 Matrix Multiplication
Two matrices [a] and [b] can be multiplied only if the number of columns in matrix [a]
equals the number of rows in matrix [b].
Hence, [c] =
In general, matrix multiplication is not commutative.
i.e., [a][b] ≠ [b][a]
A.1.7 Inverse of a Square Matrix
384
Finite Element Method with Applications in Engineering
There are several ways of computing an inverse of a matrix. When the size of matrix is
small (m = n ≤ 4), inverse can be computed easily by employing cofactor method.
Co-factor or adjoint method:
Mij is the minor of aij and is defined as the determinant of the matrix obtained by deleting
the row and column belonging to aij from [a].
Then:
c11= (-1) (1 ×1 – 1 × 0) = 1
2
c12 = (-1) (2 × 1 – 1 × 0) = –2
3
c13 = (-1) (2 ×1 – 1 × 1) = 1
4
c21 = (-1) (2 × 1 – 1 × 1) = –1
3
c22= (-1) (2 ×1 – 1 × 1) = 1
4
c23 = (-1) (2 ×1 – 1 × 2) = 0
5
c33 = (-1) (2 ×1 – 2 × 2) = –2
6
Hence
385
Finite Element Method with Applications in Engineering
1.
2.
3.
4.
5. if λ is a scalar λ = λ
T
6.
7.
8. If [k] is symmetric then [A] [k][A] is symmetric.
T
9. Proof:
10.
11.
12.
13. If [a] is symmetric, [a] is also symmetric.
–1
14. Proof:
15.
Example:
386
Finite Element Method with Applications in Engineering
In matrix notation,
It is assumed that |K| ≠ 0 and { f } ≠ 0. Under these conditions, the above system is a non-
homogeneous equation system. A non-homogeneous equation system can be solved by
using any of the following methods:
1. Inversion of co-efficient matrix
2. Gauss–elimination method
3. Cramer's rule
4. Gauss–Siedel method
5. Gauss–Jordan method
6. LU decomposition method
7. Jacobi method
The first two methods will be discussed here.
(a) Inversion of co-efficient matrix
By pre-multiplying both sides of the equation [K]{ q} = {f } with the inverse of the coefficient
matrix [K], following equation is obtained.
387
Finite Element Method with Applications in Engineering
The method of inversion of coefficient matrix can be used for hand calculations of 2 × 2
and 3×3 matrices.
(b) Gauss-elimination method
This method is widely used in many commercially available finite element packages. It is
implemented in the teaching purpose finite element program SFEAP too. The method
involves triangularization of the coefficient matrix [K] and evaluation of the unknowns {q}
by back-substitution starting from the last equation.
Steps
1. Augment the n × n coefficient matrix [Kij] with the right hand side vector {f} to form n
× (n +1) matrix.
2. Inter-change rows if necessary to make the value of K11 the largest magnitude of
any coefficient in the first column.
3. Create zeros in the second through nth rows in the first column by subtracting
Ki1/K11 times the first row from the i-th row (i = 2, ………,n).
4. Repeat for each i = 2 to n − 1:
1. Inter-change rows if necessary to make Kii the largest magnitude in the i-th column
by inter-changing rows (consider rows only i to n).
2. After completion of step 4.a, for each row j = i +1, … n,
388
Finite Element Method with Applications in Engineering
Step 1: n = 3
Steps 5 and 6:
Summary of equations:
Step 1: Choose ranges of i, j, l.
389
Finite Element Method with Applications in Engineering
For l = 1, i = 2, j = 1, 2, 3, 4:
For l = 1, i = 3, j = 1, 2, 3, 4:
For l = 2, i = 3, j = 2, 3, 4:
i = n – 1 = 2:
390
Finite Element Method with Applications in Engineering
i = n – 2= 1:
READ (5,*)N
WRITE(6,5)
5 FORMAT(/1X,’MATRIX-A’/1X,10(‘=’)/)
DO 10 I = 1.N
10 WRITE(6,15)(A(I,J), J = 1, N)
15 FORMAT(10F12.5)
WRITE(6,25)(C(I),I = 1,N)
25 FORMAT(//1X,’VECTOR-C’/1X,10(‘=’)//(10F12.5))
C FORWARD ELIMINATION
391
Finite Element Method with Applications in Engineering
DO 20 L= 1, N − 1
DO 20 I = L + 1,N
TEMP = A(I,L)/A(L,L)
DO 30 J = L+ 1,N
20 C(I) = C(I)-TEMP*C(L)
C BACK – SUBSTITUTION…
C(N) = C(N)/A(N,N)
DO 40 II = 1, N–1
I = N-II
SUM = 0.0
DO 50 J = I + 1, N
50 SUM = SUM+A(I,J)*C(J)
40 C(I) = (C(I)-SUM)/A(I,I)
WRITE(6,35)(C(I),I = 1,N)
STOP
392
Finite Element Method with Applications in Engineering
END
393
Finite Element Method with Applications in Engineering
Appendix B
ELEMENTS OF CALCULUS OF
VARIATIONS
B.1 GENERAL
Governing equations in engineering are generally second (or fourth) order ordinary or
partial differential equations. This requires the function to be continuous having derivatives
up to order two (or four). Description of a problem is not complete until correct associated
boundary conditions are specified. If there is a function of the functions (functional) for the
governing equation, the governing equations as well as the appropriate boundary
conditions can be derived through the technique of Calculus of Variations (CV). The
functional requires the functions to be continuous having lower order derivatives. Rich
history of the CV of the last 300 years can be found in the book by Goldstine (1980).
One of the major advantages of CV is that it reduces the requirement of the order of
derivatives. In the Finite Element Method, this advantage is exploited to derive a system of
linear algebraic equations (designated as equilibrium equations) for an approximate
solution.
The stiffness matrix for a differential equation was derived using the variational approach
in Example 4.1 of Chapter 4. However, it may be mentioned that if the differential equation
is dispersive (dissipative) as in Example 4.2, no functional can be constructed. In such a
case, resort is taken to one of the weighted residual approach. Galerkin's method is one of
the widely used approaches, which is described in the Appendix C. The variational
technique is briefly described here.
394
Finite Element Method with Applications in Engineering
Figure B.1 Admissible comparison paths: (a) Single path, and (b) Family of paths
A function like I [u(x)] is actually called a functional, this name is used to distinguish I [u(x)]
from ordinary functions whose domain consist of ordinary variables. Function F(x; u, u′, u″)
in the integral is to be viewed as an ordinary function of the variables x, u, u′ and u″.
It is required to find u(x) such that I [u(x)] is stationary (minimum or maximum).
Let u(x) be the true solution which makes I [u(x)] stationary and U(x) be a comparison or
competing path as shown in Figure B.1(a).
Then U(x) = u(x) + η(x) where the neighboring curve η(x) is continuous having a derivative
up to order two and satisfies the boundary conditions
However, there are infinitely many comparison paths U1(x), U2(x), U3(x),…., etc. as shown
in Figure B.1(b). This dilemma can be circumvented by introducing a real parameter α,
such that
It can be noticed that Eq. (B.4) represents a family of curves, which includes u(x) when α =
0. Thus, a new problem can be posed as
Thus, the problem reduces to finding minimum or maximum (stationary) for a function of a
real variable α. A necessary condition from the calculus of single variable to find
maxima/minima is
After differentiating I(α) and setting α = 0 the sought maxima or minima can be recovered.
Using the chain rule the differentiation of Eq. (B.5) is evaluated as
395
Finite Element Method with Applications in Engineering
The governing differential equation and consistent boundary conditions can be recovered
by integrating by parts Eq. (B.8). Integrating by parts gives
Substituting Eq. (B.9) in Eq. (B.7), the resulting equation can be written as
1. Euler−Lagrange Equation:
Since η(x) is arbitrary, the integral in Eq. (B.10) yields the governing differential equation
as
2. Boundary Conditions:
The boundary terms in Eq. (B.10) yield the consistent boundary conditions
396
Finite Element Method with Applications in Engineering
Note that one term from each row has to be specified in the above boundary conditions. If
F(x; u, u′) is not a function of u″, Euler−Lagrange equation is
EXAMPLE B.1:
In pure bending of a prismatic beam having bending rigidity EI the functional for the
bending energy can be written as
Noting
397
Finite Element Method with Applications in Engineering
In order to contrast the differential and variation, consider a one-dimension case of the
function h(x) shown in Figure B.2. At point a the change in h(x), ∆h, resulting from a
change in the independent variable x, ∆x = dx, the differential dh = h′(a)dx, and δh are
shown in the figure. It can be seen that ∆h and δh are a very close approximation but not
the same, δh stands by itself and does not depend on the independent variable x.
The true path, u(x), is now varied by giving a small variation δu (refer to Figure B.1 (a) in
which η(x) is replaced by δu(x)). From Eq. (B.4),
U(x) = u(x) + αη(x) = u(x) + δu, which implies αη(x) = δu.
398
Finite Element Method with Applications in Engineering
The variational principle is now applied to functional I(u) where u is considered as being a
function of two independent variables x and y.
Noting δx = 0 and δy = 0,
Boundary conditions: .
EXAMPLE B.2
Find the governing differential equation and boundary condition for the functional
399
Finite Element Method with Applications in Engineering
where
But
The first integral yields the differential equation: and the second integral after
400
Finite Element Method with Applications in Engineering
Appendix C
EXAMPLE ILLUSTRATING USE OF
GALERKIN'S METHOD
C.1 GENERAL
Methods of weighted residual are used when differential equations (that describe the
behavior of physical system) are known. Of all the weighted residual methods, Galerkin's
method is employed extensively in the context of finite element analysis. The use of the
method is demonstrated by employing an illustrative example.
C.2 EXAMPLE
A physical phenomenon is described by the differential equation
such that
1. Derive a 2-node line element having length L, by employing Galerkin's method. Assume
approximate solution of the form
where
2. Solve the differential equation by employing (i) two; (ii) three and (iii) four such elements
in each case. Use equal length elements in each case.
Solution:
1. For an i-th generic element having length L, the Galerkin's equations are given from Eq.
(2.9) as
401
Finite Element Method with Applications in Engineering
and the expression for u into Eq. (C.2), following equations can be derived.
Then for m = 1,
402
Finite Element Method with Applications in Engineering
can be obtained from Eq. (C.7). Therefore, from Eqs. (C.6) and (C.8),
from which,
4.3334u2 = 0.25, or
u2 = 0.0577.
403
Finite Element Method with Applications in Engineering
404
Finite Element Method with Applications in Engineering
405
Finite Element Method with Applications in Engineering
Appendix D
REVIEW OF GAUSS QUADRATURE
PROCEDURE FOR NUMERICAL INTEGRATION
D.1 GENERAL
It was shown in Chapter 7 that integrals, which may need to be evaluated numerically, are
of the form
In finite element analysis, ‘Gauss Quadrature’ procedure is used extensively for numerical
integration.
where w = b – a = width of the trapezoid. the above equation can be alternatively written
as
By employing trapezoidal rule, the area under the curve between the limits a and b is
approximated as the area of the trapezoid. However, this approximation may give rise to
significant errors, especially when large trapezoids are considered.
By using Gauss Quadrature, on the other hand, instead of choosing A and B at the end of
interval of interest, two intermediate points C and D are chosen, as shown in Part (b) of
Figure D.1. A trapezoid is then constructed by drawing a straight line through these points
and extending it to the end of the interval. Thus, a part of the trapezoid lies outside the
curve (upper corners in the figure), while part of the curve lies outside the trapezoid. By
appropriately choosing points C and D, it is possible to balance the two areas so that the
area in the trapezoid equals the area under the curve. The resulting approximation can
then give exact integration. The Gauss Quadrature rule essentially consists of a simple
way of choosing C and D to get accurate integration. The C and D are termed as Gauss
points, and the integration is sought of the form given by Eq. (D.3). The W1 and W2 in the
equation are commonly referred to as weights associated with Gauss points.
406
Finite Element Method with Applications in Engineering
where m is the number of Gauss points and Wk indicates weight with the k th Gauss point.
A general m point Gauss Quadrature procedure is sketched in Figure D.2. The locations of
Gauss points and associated weights, for different Gauss Quadrature, on the other hand
are presented on Table D.1.
Note that generally, Gauss Quadrature, which employs n Gauss points, is exact if the
integration is polynomial of degree 2n – 1 or less.
407
Finite Element Method with Applications in Engineering
408
Finite Element Method with Applications in Engineering
409
Finite Element Method with Applications in Engineering
Example
Evaluate
by using 1, 2 and 3 Gauss points.
Solution:
Exact value of I is
Thus,
and
410
Finite Element Method with Applications in Engineering
Here, m and n are, respectively, the number of Gauss points in the ξ and η directions;
(ξk,η1) are the co-ordinates of Gauss points in the ξ–η plane; and Wk and Wl are Gauss
weights in ξ and η directions, respectively. Depending upon the number of Gauss points in
411
Finite Element Method with Applications in Engineering
the ξ and η directions, various Gauss quadrature rules can be established (refer to Figure
D.3).
(i) 1 × 1 Gauss Quadrature:
From Eq. (D.6), for 1×1 Gauss Quadrature,
412
Finite Element Method with Applications in Engineering
413
Finite Element Method with Applications in Engineering
Appendix E
USER'S MANUAL FOR THE SIMPLIFIED
FINITE ELEMENT ANALYSIS
PROGRAM (SFEAP)
E.1 PREAMBLE
The simplified finite element analysis program (sfeap) can be used for static linear-elastic
analysis of plane and space trusses, beam and plane frames, two- and three-dimensional
problems and axisymmetric solids. There are eight element subroutines, which are listed
in Table E.1. They are numbered as ELMT1 to ELMT8 for referencing. The program was
coded using the theory presented in the text. A copy of the program in PDF format is given
at the end of this appendix and the executable and the FORTRAN versions of the program
are included in the CD.
The first three subroutines employ one-dimensional element; ELMT1 and ELMT2 use truss
elements while ELMT3 employs beam elements. The next two subroutines use two-
dimensional elements in rectangular Cartesian co-ordinates; ELMT4 uses 3-node constant
strain triangles and ELMT5 employs three to nine nodes isoparametric elements. ELMT6
and ELMT7 use two-dimensional, three to nine node isoparametric elements in cylindrical
(r, z) co-ordinates. The subroutine ELMT8 employs 8-noded, three-dimensional brick
elements.
Table E.1 List of Programs
Program Program
Number
414
Finite Element Method with Applications in Engineering
415
Finite Element Method with Applications in Engineering
MAIN ROUTINE
FUNCTION
MAIN PROGRAM Reads control information and evaluates the space for arrays.
LOAD Read and write the concentrated nodal load data and compute the
global load vector stemming from the concentrated loads.
DISTRL Compute and assemble the equivalent, elemental load vectors due
to the distributed loads (if any).
STRESS Compute and print the ‘secondary’ unknowns i.e. compute element
stresses/forces (post-processing).
INTEGER VARIABLES
416
Finite Element Method with Applications in Engineering
ARRAYS
The FORTRAN program uses dynamic memory allocation. To achieve this feature
following integers are defined in the Main Program and passed on to the program Process.
MST=MNEL*NDF
NST=MST
NEQ2=NDF*NUMNP
N1=1
I2=1
N4=N1
N5=N1+NDM*NUMNP
I3=I2+NUMEL
I4=I3+NUMEL
I6=I4+MNEL*NUMEL
N8=N5+NPROP*NUMAT
I7=I6+NDF*NUMNP
N9=N8+NDF*NUMNP
N10=N9+MST*MST
N11=N10+NDM*MNEL
417
Finite Element Method with Applications in Engineering
N12=N11+NDF*MNEL
N13=N12+MST
N14=N13+NEQ2
I14=I7+NUMAT
N15=N14+NEQ2*NEQ2
N16=N15+3*NUMEL
NTOT=N16+NEQ2+1000
IATOT= I14
Integer Arrays
IA(I14) = NLD(NUMEL) Stores the element numbers which have distributed loads
418
Finite Element Method with Applications in Engineering
A(N14) = S(NEQ2,NEQ2) Stores global stiffness matrix, [K], in the banded form
SUBROUTINE ELMTn(DL,NEL,XL,SL,UL,RL,ICN)
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,N
PROP
COMMON/BLK3/MA,IELB,IELG,NST,NXSJ,MST
DIMENSION XL(NDM,1),SL(NST,1),DL(1),A(4)UL(1),RL(1)
1. This section (ICN=1) is activated by the subroutine READG to read all material
characteristics data that would be used at a later stage to compute stiffness matrix,
stress etc. Data generated in this section may be stored in the array
DL(NPROP,NUMAT).
2. This section (ICN=2) is activated by the subroutine DISTRL to calculate the
consistent nodal load vector RL(MST) due to traction forces, if any, acting on the
419
Finite Element Method with Applications in Engineering
NPROP Maximum number of material characteristics data associated with the element
type
420
Finite Element Method with Applications in Engineering
NXSJ This is a switch. Its value is set to one if negative Jacobian is encountered.
Otherwise it is zero.
ISWICH This is a logical switch. If it is set. TRUE. in the main program, the Jacobian of
each element will be printed (can be used to debug data.)
SL Local array to store element stiffness matrix. This array is initialized to zero
before the element subroutine is called.
RL Local array of equivalent nodal load vector. This array is initialized to zero
before the element subroutine is called.
ICN Switch used to direct control to appropriate part of the element subroutine. Its
value is automatically fixed depending upon the various level of the program.
A. TITLE (15A4)
421
Finite Element Method with Applications in Engineering
B. CONTROL (815)
INFORMATION
Column Variables
31–35 NSN No. of supported nodes (no. of nodes at which at least one
DOF is prescribed.)
Columns
422
Finite Element Method with Applications in Engineering
*(X1, X2) = (X, Y) for programs ELMT1, ELMT3, ELMT4, ELMT5; (X1, X2, X3) = (X, Y, Z)
for ELMT2 and ELMT8 and (X1, X2) = (R, Z) for ELMT6 and ELMT7.
Columns
423
Finite Element Method with Applications in Engineering
Columns
Columns
11–20 Displacement – 1
21–30 Displacement – 2
31–40 Displacement – 3
Columns
424
Finite Element Method with Applications in Engineering
Each material set input line must be followed immediately by the material property
data required for the element type. Refer to the Input/output information for
elements section.
Any change in the material property data will require a new material set number. Thus, the
total number of material sets, NUMAT, has to be properly estimated.
Columns
11–20 Force – 1
21–30 Force – 2
31–40 Force – 3
Columns
11–20 Intensity – 1
21–30 Intensity – 2
31–40 Intensity – 3
At present, the program can handle only normal distributed load for the beam element of
ELMT3, four node isoparametric elements of ELMT5, and four or higher than five nodes
elements for ELMT6 and ELMT7. Variation of the load for ELMT5 is assumed to be linear
acting on the edge ξ, of (ξ, η) or s = +1 of (s,t). For ELMT6 and ELMT7, intensities of the
normal stress at the local nodes 2 and 3 (and also node 6 if the element is quadratic) are
input.
E.2.3.1 Values of the variables in the ELMT n subroutine:
425
Finite Element Method with Applications in Engineering
Columns
Columns
426
Finite Element Method with Applications in Engineering
Columns
427
Finite Element Method with Applications in Engineering
Columns
21–30 TH Thickness
31–35 KODE KODE equal to zero for plane strain, 1 for plane
stress
2. Stresses at the center. Note that the stresses are constant throughout an
element.
Columns
21–30 TH Thickness
428
Finite Element Method with Applications in Engineering
31–35 KODE KODE equal to zero for plane strain, 1 for plane
stress
Columns
429
Finite Element Method with Applications in Engineering
Columns
* When KODE is 1, the program assumes that the nodes of a core element are numbered
in such a way that the local nodes 1 and 4 (and also node 8 if applicable) are located on
the z– axis.
Columns
430
Finite Element Method with Applications in Engineering
E.3.3 EXAMPLES
Example 1
Analyze the plane truss shown in the figure above. The number in parentheses beside
each member indicates the cross-sectional area in square centimeters (cm2). The truss is
subjected to concentrated loads at joints E and F as shown. Moreover, the support at C
sinks by 0.36 cm. Assume Young's modulus, E, for all members as 20,000 kN/cm2.
The finite element representation of the problem is shown in the figure above. Node
numbers are indicated by Arabic numbers, while element numbers are denoted by
encircled Arabic numbers.
Input Data
431
Finite Element Method with Applications in Engineering
Example 2
Analyze the space truss shown in the figure below. The truss is subjected to a
concentrated load at joint A as shown. Assume for all members, Young's modulus, E, as
200 GPa 5 200*106 kN / m2 and area, A, as 0.03 m2.
432
Finite Element Method with Applications in Engineering
The finite element representation of the problem is also shown in the figure. Node
numbers are indicated by Arabic numbers, while element numbers are denoted by
encircled Arabic numbers.
Input Data
Example 3(a)
Analyze the plane frame shown in the figure below. The frame has simple supports at
nodes 1 and 6. A load of P = 100 kN is acting at node 4. For each element (member)
assume Young's modulus, E = 200 GPa, Area, A = 0.01 m2, and Moment of Inertia, I = 2 ×
10–4 m4.
433
Finite Element Method with Applications in Engineering
The finite element representation of the problem is shown in the figure above. Node
numbers are indicated by Arabic numbers, while element numbers are denoted by
encircled Arabic numbers.
Input Data
Example 3(b)
Analyze the plane frame shown in the figure below. The finite element representation of
the problem is shown in the figure. Node numbers are indicated by Arabic numbers, while
element numbers are denoted by encircled Arabic numbers.
The frame is fixed at nodes 1 and 3.
434
Finite Element Method with Applications in Engineering
A load of 5 kN/m is acting on member 1. For each element (member) assume Young's
modulus, E = 200 GPa, Area, A = 0.01 m2, and Moment of Inertia, I = 2.0×10–4 m4.
Input Data
Example 4:
The figure below shows a 16 element model of a rectangular steel plate with one side fixed
and the opposite side under uniformly distributed tensile load of 1,000 N/m. Assume
Young's modulus, E as 20.0E + 06 N/m2, Poisson's ratio, v as 0.3 and thickness as 0.1 m.
Perform plane stress analysis.
435
Finite Element Method with Applications in Engineering
The finite element representation of the problem is shown in the figure above. Node
numbers are indicated by Arabic numbers, while element numbers are denoted by
encircled Arabic numbers.
Input Data
436
Finite Element Method with Applications in Engineering
Example 5:
A cantilever beam of span 9 m is subjected to a tip load of 4 kN. Analyze the beam by
employing 4-node elements under plane stress condition. Assume Young's modulus, E as
2,000 kN/m2, Poisson's ratio, v as 0.2 and width as 1 m.
The finite element representation of the problem is shown in the figure above. Node
numbers are indicated by Arabic numbers, while element numbers are denoted by
encircled Arabic numbers.
Input Data
437
Finite Element Method with Applications in Engineering
Example 6:
A cylinder, shown in the figure, is subjected to uniform external pressure σrr = 1 GPa.
Assume Young's modulus E = 200 GPa, Poisson's ratio v = 0.2, and radii a = 0.5 m and b
= 1.0 m.
The finite element representation of the problem is also shown in the figure above. Node
numbers are indicated by Arabic numbers, while element numbers are denoted by
encircled Arabic numbers.
The problem is purely axisymmetric and involves only one harmonic, m = 0. The rigid body
displacement in the z-direction is restrained at the nodes on the face z = 2.
Input Data
438
Finite Element Method with Applications in Engineering
Example 7:
A solid cylinder, shown in the figure, is subjected to external pressure of form
439
Finite Element Method with Applications in Engineering
The finite element representation of the problem is also shown in the figure above. Node
numbers are indicated by Arabic numbers, while element numbers are denoted by
encircled Arabic numbers.
The problem involves one harmonic, m = 1. The rigid body displacement in the z −
direction is restrained at the nodes on the face z = 2. Note that one side of elements 1
and 3 are on z − axis.
Input Data
Example 8:
A cantilever beam of span 120 cm is subjected to an end load of 40 kN as shown in the
figure below. Analyze the beam by employing 8 − node brick elements. The beam is 10 cm
deep and 2 cm wide. Assume for all members, Young's modulus, E, as 20,000 kN / cm2
and Poisson's ratio v = 0.3.
440
Finite Element Method with Applications in Engineering
The finite element representation of the problem is also shown in the figure. Node
numbers are indicated by Arabic numbers, while element numbers are denoted by
encircled Arabic numbers.
Input Data
441
Finite Element Method with Applications in Engineering
442
Finite Element Method with Applications in Engineering
443
Finite Element Method with Applications in Engineering
C * A(N12) = RL(MST) *
C * A(N13) = R(NEQ2) *
C * IA(I14) = NLD(NUMEL) *
C * A(N14) = S(NEQ2,NEQ2) *
C * A(N15) = STR(3,NUMEL) *
C * ISWICH =.TRUE. THEN *
C * ACTIVATES,PRINTING OF JACOBIAN OF EACH ELEMENT *
C * corrected versión January 8, 2000 *
Q *************************************************
IMPLICIT REAL*8 (A–H,O–Z)
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
COMMON/BLK2/ISWICH
COMMON/BLK3/MA,IELB,IELG,NST,NXSJ,MST
COMMON/BLK5/OM,NH
COMMON/BLK6/NNDS, NLN, NELDL
COMMON/BLK7/ N1,I2,N4,N5,I3,I4,I6,N8,I7,N9,N10,
*N11,N12,N13,N14,I14,N15,N16,N17,NTOT,IATOT
LOGICAL ISWICH
CHARACTER*4 HED(15)
ISWICH=.FALSE.
NH=0
C
C….READ & WRITE CONTROL INFORMATION
C
OPEN(5,FILE= ‘input.dat’)
OPEN(6,FILE=‘output.dat’)
OPEN(11,FILE=‘result.dat’)
READ(5,2) HED,NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NPROP
2 FORMAT(15A4/9I5)
WRITE(6,3) HED,NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NPROP
3 FORMAT(′′,15A4//
1 ‘ NO. OF NODES………………………………=’,I4/
2 ‘ NO. OF ELEMENTS…………………………=’,I4/
3 ‘ NO. OF DEGREES OF FREEDOM PER NODE…………………………=’,I4/
444
Finite Element Method with Applications in Engineering
4 ‘ NO. OF DIMENSIONS…………………………=’,I4/
5 ‘ MAXM. NO. OF NODES/ELEMENT………………………………..=’,I4/
6 ‘ NO. OF MATERIAL SETS…………………………=’,I4/
7 ‘ NO. OF SUPPORTED NODES…………………………=’,I4/
8 ‘ NO. OF MATERIAL DATA…………………………=’,I4/
C
C…. SET POINTERS FOR ALLOCATION OF DATA ARRAYS
C
MST=MNEL*NDF
NST=MST
C
NEQ2=NDF*NUMNP
C
N1=1
I2=1
N4=N1
N5=N1+NDM*NUMNP
I3=I2+NUMEL
I4=I3+NUMEL
I6=I4+MNEL*NUMEL
N8=N5+NPROP*NUMAT
I7=I6+NDF*NUMNP
N9=N8+NDF*NUMNP
N10=N9+MST*MST
N11=N10+NDM*MNEL
N12=N11+NDF*MNEL
N13=N12+MST
N14=N13+NEQ2
I14=I7+NUMAT
N15=N14+NEQ2*NEQ2
N16=N15+3*NUMEL
NTOT=N16+NEQ2+1000
IATOT= I14
CALL PROCESS
CLOSE (5)
445
Finite Element Method with Applications in Engineering
CLOSE (6)
CLOSE(11)
END
C****************************************************************
SUBROUTINE PROCESS
IMPLICIT REAL*8 (A-H,O-Z)
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
COMMON/BLK2/ISWICH
COMMON/BLK3/MA,IELB,IELG,NST,NXSJ,MST
COMMON/BLK5/OM,NH
COMMON/BLK6/NNDS, NLN, NELDL
COMMON/BLK7/ N1,I2,N4,N5,I3,I4,I6,N8,I7,N9,N10,
*N11,N12,N13,N14,I14,N15,N16,N17,NTOT,IATOT
LOGICAL ISWICH
REAL*8, POINTER :: A(:)
INTEGER*4, POINTER :: IA(:)
INTEGER*4 ERROR
ALLOCATE(A(NTOT),STAT=ERROR)
IF (ERROR.NE.0) THEN
PRINT*, “ERROR, A NOT ALLOCATED. ABORTING.”
PRINT*, “ERROR=”,ERROR
STOP
END IF
ALLOCATE(IA(IATOT),STAT=ERROR)
IF (ERROR.NE.0) THEN
PRINT*, “ERROR, IA NOT ALLOCATED. ABORTING.”
PRINT*, “ERROR=”,ERROR
STOP
END IF
ISWICH=.FALSE.
CALL READG(A(N1),IA(I2),IA(I3),IA(I4),A(N5),IA(I6),IA(I7),A(N8),
*A(N10),A(N9),A(N11),A(N12))
C SUBROUTINE READG(X,NELMAT,NELND,NP,D,ID,MEL,U,XL,SL,UL,RL)
CALL BANDW(IA(I3),IA(I4),MBAND)
446
Finite Element Method with Applications in Engineering
C SUBROUTINE BANDW(NELND,NP,MB)
N14=N13+NEQ
CALL LOAD(A(N13),IA(I6),A(N12))
C SUBROUTINE LOAD(R,ID,RL)
I14=I7+NUMAT
N15=N14+NEQ*MBAND
N16=N15+3*NUMEL
CALL DISTRL(A(N1),IA(I2),IA(I3),IA(I4),A(N5),A(N9),
*A(N10),A(N12),A(N13),IA(I6),IA(I7),IA(I14),A(N15))
C SUBROUTINE DISTRL(X,NELMAT,NELND,NP,D,SL,XL,RL,R,ID,MEL,NLD,STR)
N17=N14+NEQ*MBAND
CALL ASSEMB(A(N1),IA(I2),IA(I3),IA(I4),A(N5),A(N9),
*A(N10),A(N12),A(N14),A(N13),IA(I6),IA(I7),A(N11),A(N8))
C SUBROUTINE ASSEMB(X,NELMAT,NELND,NP,D,SL,XL,RL,S,R,ID,MEL,UL,U)
CALL BANSOL(A(N14),A(N13),NEQ,MBAND)
C SUBROUTINE BANSOL(S,R,NEQ,MBAND)
IF(NH.NE.1) CALL DISP(A(N13),A(N8),IA(I6))
C SUBROUTINE DISP(R,U,ID)
C
IF(NH.EQ.1) CALL DISP1(A(N13),A(N8),IA(I6),A(N1))
C SUBROUTINE DISP1(R,U,ID,X)
C
CALL STRESS(A(N1),IA(I2),IA(I3),IA(I4),A(N5),A(N8),A(N10), 1
A(N11),IA(I7),A(N12),A(N9))
C SUBROUTINE STRESS(X,NELMAT,NELND,NP,D,U,XL,UL,MEL,RL,SL)
END
C******************************************************************
SUBROUTINE READG(X,NELMAT,NELND,NP,D,ID,MEL,U,XL,SL,UL,RL)
C
C…. SUBROUTINE TO GENERATE THE MISSING DATA
C
IMPLICIT REAL*8 (A-H,O-Z)
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
DIMENSION X(NDM,1),NELMAT(1),NELND(1),NP(MNEL,1),XL(1),U(NDF,1), 1
D(NPROP,1),ID(NDF,1),MEL(1),SL(1),UL(1),RL(1)
447
Finite Element Method with Applications in Engineering
C
C…. READ & WRITE NODE DATA
C
WRITE(6,280)
280 FORMAT(//10H NODE DATA//
1 5H NODE,11X,5H1-ORD,11X,5H2-ORD,11X,5H3-ORD)
C
NOLD=0
NXOLD=0
10 READ (5,20) N,NX,(X(I,N),I=1,NDM)
IF (NXOLD.EQ.0) GO TO 40
NUMINC=(N-NOLD)/NXOLD
IF(NUMINC.LE.1) GO TO 40
XNUM=NUMINC
NUMINC=NUMINC-1
DO 30 I=1,NDM
NN=NOLD
ST=(X(I,N)-X(I,NOLD))/XNUM
DO 30 K=1,NUMINC
NN=NN+NXOLD
30 X(I,NN)=X(I,NOLD)+K*ST
40 NOLD=N
NXOLD=NX
IF(N.EQ.NUMNP) GO TO 300
GO TO 10
20 FORMAT(2I5,3E10.0)
C
300 DO 200 J=1,NUMNP
WRITE(6,210) J,(X(I,J),I=1,NDM)
200 CONTINUE
210 FORMAT(I5,3F16.3)
C
C…. READ & WRITE ELEMENT DATA
C
WRITE(6,240)
448
Finite Element Method with Applications in Engineering
MOLD=0
MXOLD=0
50 READ(5,60) M,MX,NELMAT(M),NEL,(NP(I,M),I=1,MNEL)
NELND(M)=NEL
IF(MXOLD.EQ.0) GO TO 70
NUMINC=(M-MOLD)
IF(NUMINC.LE.1) GO TO 70
NUMINC=NUMINC-1
DO 80 K=1,NUMINC
KK=K+MOLD
NELMAT(KK)=NELMAT(MOLD)
NELND(KK)=NELND(MOLD)
DO 80 I=1,NEL
80 NP(I,KK)=NP(I,MOLD)+MXOLD*K
70 MOLD=M
MXOLD=MX
IF(M.EQ.NUMEL) GO TO 310
GO TO 50
60 FORMAT(13I5)
C
310 DO 220 J=1,NUMEL
NEL=NELND(J)
WRITE(6,230) J,NELMAT(J),NELND(J),(NP(I,J),I=1,NEL)
220 CONTINUE
230 FORMAT(I5,I9,I5,1X,9(1X,I5))
240 FORMAT(///' ELEMENT DATA'//' ELMT MATERIAL NEL NOD-1 NOD-2', *1X,'NOD-3
NOD-4 NOD-5 NOD-6 NOD-7 NOD-8 NOD-9')
C
C…. READ & WRITE BOUNDARY CONDITIONS
C
DO 90 I=1,NDF
DO 90 J=1,NUMNP
U(I,J)=0.0
90 ID(I,J)=0
WRITE(6,120)
449
Finite Element Method with Applications in Engineering
DO 130 J=1,NSN
READ(5,100) N,(ID(I,N),I=1,NDF)
WRITE(6,110) N,(ID(I,N),I=1,NDF)
130 CONTINUE
110 FORMAT(I5,6I8)
100 FORMAT(7I5)
120 FORMAT(//' BOUNDARY CONDITION CODES'// 1 1X,'NODE',3X,'1-STF',3X,'2-
STF',3X,'3-STF')
C
C…. GENERATE ID NO FOR THE ENTIRE STRUCTURE
C
NEQ=0
DO 161 J=1,NUMNP
DO 163 I=1,NDF
IF(ID(I,J).EQ.0) GO TO 162
ID(I,J)=0
GO TO 163
162 NEQ=NEQ+1
ID(I,J)=NEQ
163 CONTINUE
161 CONTINUE
C
C…. READ & WRITE THE NODAL DISPLACEMENTS IF SPECIFIED
C
NN=0
18 READ(5,15) N,(UL(I),I=1,NDF)
IF(N.EQ.0) GO TO 16
NN=NN+1
IF(NN.EQ.1) WRITE(6,21)
WRITE(6,22) N,(UL(I),I=1,NDF)
DO 17 I=1,NDF
17 U(I,N)=UL(I)
GO TO 18
15 FORMAT(I5,5X,3E10.0)
22 FORMAT(I5,3E15.4)
450
Finite Element Method with Applications in Engineering
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
DIMENSION NELND(1),NP(MNEL,1)
C
MB=0
DO 10 J=1,NUMEL
NEL=NELND(J)
NLAR=NP(1,J)
NSMA=NP(1,J)
DO 20 I=1,NEL
451
Finite Element Method with Applications in Engineering
IF(NSMA.GT.NP(I,J)) NSMA=NP(I,J)
IF(NLAR.LT.NP(I,J)) NLAR=NP(I,J)
20 CONTINUE
MM=(NLAR−NSMA+1)*NDF
IF(MB.GT.MM) GO TO 10
MB=MM
MEL=J
10 CONTINUE
WRITE(6, 31) NEQ
31 FORMAT(/'NUMBER OF EQUATION, NEQ =' I5)
WRITE(6,30) MB,MEL
30 FORMAT(/' HALF BAND WIDTH =',I5,5X,' ELMT NUMBER =',I5/)
RETURN
END
C******************************************************************
SUBROUTINE LOAD(R,ID,RL)
IMPLICIT REAL*8 (A-H,O-Z)
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
DIMENSION R(1),RL(1),ID(NDF,1)
C
C…. INITIALIZE GLOBAL LOAD VECTOR
C
DO 10 I=1,NEQ
10 R(I)=0.0
C
C…. READ & WRITE NODAL LOAD DATA AND FORM GLOBAL LOAD VECTOR
C
NN=0
40 READ(5,50) N,(RL(I),I=1,NDF)
IF(N.EQ.0) GO TO 70
NN=NN+1
IF(NN.EQ.1) WRITE(6,20)
WRITE(6,60) N,(RL(I),I=1,NDF)
DO 80 I=1,NDF
452
Finite Element Method with Applications in Engineering
II=ID(I,N)
IF(II.EQ.0) GO TO 80
R(II)=R(II)+RL(I)
80 CONTINUE
GO TO 40
50 FORMAT(I5,5X,3E10.0)
60 FORMAT(I5,6X,3E16.4)
20 FORMAT(//' NODAL LOAD DATA'//
1 5H NODE,16X,6H1-LOAD,10X,6H2-LOAD,10X,6H3-LOAD)
C
70 RETURN
END
C****************************************************************
SUBROUTINE DISTRL(X,NELMAT,NELND,NP,D,SL,XL,RL,R,ID,MEL,NLD,STR)
IMPLICIT REAL*8 (A-H,O-Z)
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
COMMON/BLK3/MA,IELB,IELG,NST,NXSJ,MST
COMMON/BLK4/ICOUNT
DIMENSION X(NDM,1),NELMAT(1),NELND(1),NP(MNEL,1),D(NPROP,1),
*SL(1),XL(NDM,1),ID(NDF,1),LM(27),RL(1),R(1),MEL(1),NLD(1),STR(3,1)
C
NN=0
200 READ(5,10) IELG,P1,P2,P3
10 FORMAT(I5,5X,3E10.0)
IF(IELG.EQ.0) GO TO 100
NN=NN+1
IF(NN.EQ.1) WRITE(6,15)
15 FORMAT(/1X,'DISTRIBUTED LOAD'/
*1X,'ELMT',17X,'UDL-1',11X,'UDL-2',11X,'UDL-3')
NLD(NN)=IELG
STR(1,NN)=P1
STR(2,NN)=P2
STR(3,NN)=P3
WRITE(6,25) IELG,P1,P2,P3
453
Finite Element Method with Applications in Engineering
25 FORMAT(I5,6X,3E16.4)
GO TO 200
C
C…. EVALUATE AND ASSEMBLE THE CONSISTENT LOAD VECTOR
C
100 IF(NN.EQ.0) RETURN
DO 30 L=1,NN
IELG=NLD(L)
MA=NELMAT(IELG)
IELB=MEL(MA)
NEL=NELND(IELG)
ICOUNT=L
DO 40 J=1,NEL
NG=NP(J,IELG)
DO 40 I=1,NDM
40 XL(I,J)=X(I,NG)
NST=NDF*NEL
C
C…. INITIALIZE RL
C
DO 50 I=1,NST
50 RL(I)=0.0
CALL ELMLIB(D(1,MA),NEL,XL,SL,STR(1,L),RL,2,IELB)
C
C…. FORM LOCATION MATRIX
C
DO 60 J=1,NEL
N=NP(J,IELG)
NL=NDF*(J-1)
DO 60 K=1,NDF
60 LM(NL+K)=ID(K,N)
C
C…. ASSEMBLE
C
DO 70 I=1,NST
454
Finite Element Method with Applications in Engineering
IF(LM(I).EQ.0) GO TO 70
II=LM(I)
R(II)=R(II)+RL(I)
70 CONTINUE
30 CONTINUE
RETURN
END
C*******************************************************************
SUBROUTINE ASSEMB(X,NELMAT,NELND,NP,D,SL,XL,RL,S,R,ID,MEL,UL,U)
IMPLICIT REAL*8 (A-H,O-Z)
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
COMMON/BLK3/MA,IELB,IELG,NST,NXSJ,MST
DIMENSION X(NDM,1),NELMAT(1),NELND(1),NP(MNEL,1),U(NDF,1),
1 D(NPROP,1),SL(1),XL(NDM,1),ID(NDF,1),
2 LM(54),S(NEQ,1),RL(1),R(1),MEL(1),UL(NDF,1)
C
C… INITIALIZE GLOBAL STIFFNESS MATRIX
C
DO 10 I=1,NEQ
DO 10 J=1,MBAND
10 S(I,J)=0.0
NXSJ=0.0 C
C
DO 20 L=1,NUMEL
MA=NELMAT(L)
IELB=MEL(MA)
IELG=L
NEL =NELND(L)
DO 70 J=1,NEL
NG=NP(J,L)
DO 71 I=1,NDM
71 XL(I,J)=X(I,NG)
DO 72 I=1,NDF
72 UL(I,J)=U(I,NG)
455
Finite Element Method with Applications in Engineering
70 CONTINUE
NST=NDF*NEL
NST2=NST*NST
C
C….INITIALIZE RL & SL
C
DO 90 I=1,NST
90 RL(I)=0.0
DO 40 I=1,NST2
40 SL(I)=0.0
CALL ELMLIB(D(1,MA),NEL,XL,SL,UL,RL,3,IELB)
C
C…. FORM LOCATION MATRIX
C
DO 30 J=1,NEL
N=NP(J,L)
NL=NDF*(J-1)
DO 30 K=1,NDF
30 LM(NL+K)=ID(K,N)
C
C…. ASSEMBLE
C
DO 50 I=1,NST
IF(LM(I).EQ.0) GO TO 50
II=LM(I)
R(II)=R(II)+RL(I)
DO 60 J=1,NST
JJ=LM(J)-II+1
IF(JJ.LE.0) GO TO 60
K=NST*(J-1)+I
S(II,JJ)=S(II,JJ)+SL(K)
60 CONTINUE
50 CONTINUE
20 CONTINUE
IF(NXSJ.EQ.0) GO TO 45
456
Finite Element Method with Applications in Engineering
WRITE(6,55)
55 FORMAT(//' ****PROG TERMINATED: NEG JACOBIAN ENCOUNTERED****'//)
STOP
45 RETURN
END
C*******************************************************************
SUBROUTINE BANSOL(S,R,NEQ,MBAND)
IMPLICIT REAL*8 (A-H,O-Z)
DIMENSION S(NEQ,1),R(NEQ)
C
C…. REDUCE STIFFNESS MATRIX
C
DO 60 N=1,NEQ
IF (S(N,1).GT.1.0D-40) GO TO 30
WRITE (6,20) N
20 FORMAT(///30H ZERO ON DIAGONAL FOR EQUATION,I4)
STOP
30 DO 50 M=2,MBAND
FACT=S(N,M)/S(N,1)
I=N+M-1
IF (I.GT.NEQ) GO TO 50
J=0
DO 40 K=M,MBAND
J=J+1
40 S(I,J)=S(I,J)-FACT*S(N,K)
50 S(N,M)=FACT
60 CONTINUE
C
C…. REDUCE LOAD VECTOR
C
70 DO 90 N=1,NEQ
DO 80 M=2,MBAND
I=N+M-1
IF (I.GT.NEQ) GO TO 90
80 R(I)=R(I)-S(N,M)*R(N)
457
Finite Element Method with Applications in Engineering
90 R(N)=R(N)/S(N,1)
C
C…. BACK SUBSTITUTE
C
N=NEQ
100 N=N-1
IF (N.EQ.0) GO TO 120
DO 110 M=2,MBAND
I=N+M-1
IF (I.GT.NEQ) GO TO 110
R(N)=R(N)-S(N,M)*R(I)
110 CONTINUE
GO TO 100
C
120 RETURN
END
C*****7***********************************************************
SUBROUTINE DISP(R,U,ID)
IMPLICIT REAL*8 (A-H,O-Z)
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
COMMON/BLK2/ISWICH
COMMON/BLK5/OM,NH
LOGICAL ISWICH
DIMENSION R(1),U(NDF,1),ID(NDF,1)
ISWICH=.FALSE.
C
C…. WRITE NODE DISPLACEMENTS
C
WRITE (11,20)
20 FORMAT(//19H NODE DISPLACEMENTS//
1 5H NODE,16X,6H1-DISP,10X,6H2-DISP,10X,6H3-DISP)
C
DO 10 J=1,NUMNP
DO 30 I=1,NDF
458
Finite Element Method with Applications in Engineering
II=ID(I,J)
IF(II.NE.0) U(I,J)=R(II)
30 CONTINUE
WRITE(11,40) J,(U(I,J),I=1,NDF)
10 CONTINUE
40 FORMAT(I5,6X,3E16.4)
RETURN
END
C*******************************************************************
SUBROUTINE DISP1(R,U,ID,X)
IMPLICIT REAL*8 (A-H,O-Z)
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
COMMON/BLK5/OM,NH
DIMENSION R(1),U(NDF,1),ID(NDF,1),X(NDM,1)
C
C…. WRITE NODE DISPLACEMENTS
C
WRITE (11,20) NH
20 FORMAT(//19H NODE DISPLACEMENTS,5X,5X,'HARMONIC NUMBER =',I3//
1 5H NODE,16X,6HR-DISP,10X,6HZ-DISP,10X,6HT-DISP)
FACT=DSQRT(2.0D00)
DO 10 J=1,NUMNP
DO 30 I=1,NDF
II=ID(I,J)
IF(II.EQ.0) GO TO 50
U(I,J)=R(II)
GO TO 30
50 IF(DABS(X(1,J)).GT.1.0D-03) GO TO 30
IF(I.NE.3) GO TO 30
U(1,J)=U(1,J)/FACT
U(3,J)=U(1,J)
30 CONTINUE
WRITE(11,40) J,(U(I,J),I=1,NDF)
10 CONTINUE
459
Finite Element Method with Applications in Engineering
40 FORMAT(I5,6X,3E16.4)
RETURN
END
C*******************************************************************
SUBROUTINE STRESS(X,NELMAT,NELND,NP,D,U,XL,UL,MEL,RL,SL)
IMPLICIT REAL*8 (A-H,O-Z)
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
COMMON/BLK3/MA,IELB,IELG,NST,NXSJ,MST
DIMENSION X(NDM,1),NELMAT(1),NELND(1),NP(MNEL,1),
1 D(NPROP,1),U(NDF,1),XL(NDM,1),UL(NDF,1),MEL(1),RL(1),SL(1)
C
DO 20 L=1,NUMEL
MA=NELMAT(L)
IELB=MEL(MA)
IELG=L
NEL=NELND(L)
DO 70 J=1,NEL
NG=NP(J,L)
DO 90 I=1,NDM
90 XL(I,J)=X(I,NG)
DO 70 K=1,NDF
70 UL(K,J)=U(K,NG)
C
CALL ELMLIB(D(1,MA),NEL,XL,SL,UL,RL,4,IELB)
20 CONTINUE
RETURN
END
C*******************************************************************
SUBROUTINE ELMLIB(DL,NEL,XL,SL,UL,RL,ICN,IELB)
C
C…. THIS SUBROUTINE CALLS THE APPROPRIATE ELEMENT
C
IMPLICIT REAL*8 (A-H,O-Z)
DIMENSION DL(1),XL(1),SL(1),UL(1),RL(1)
460
Finite Element Method with Applications in Engineering
C
GO TO (1,2,3,4,5,6,7,8),IELB
1 CALL ELMT1(DL,NEL,XL,SL,UL,RL,ICN)
GO TO 100
2 CALL ELMT2(DL,NEL,XL,SL,UL,RL,ICN)
GO TO 100
3 CALL ELMT3(DL,NEL,XL,SL,UL,RL,ICN)
GO TO 100
4 CALL ELMT4(DL,NEL,XL,SL,UL,RL,ICN)
GO TO 100
5 CALL ELMT5(DL,NEL,XL,SL,UL,RL,ICN)
GO TO 100
6 CALL ELMT6(DL,NEL,XL,SL,UL,RL,ICN)
GO TO 100
7 CALL ELMT7(DL,NEL,XL,SL,UL,RL,ICN)
GO TO 100
8 CALL ELMT8(DL,NEL,XL,SL,UL,RL,ICN)
GO TO 100
9 CALL ELMT9(DL,NEL,XL,SL,UL,RL,ICN)
GO TO 100
10 CALL ELMT10(DL,NEL,XL,SL,UL,RL,ICN)
100 RETURN
END
C*******************************************************************
SUBROUTINE ELMT1(DL,NEL,XL,SL,UL,RL,ICN)
C
C…. PLANE TRUSS ELEMENT
C
IMPLICIT REAL*8 (A-H,O-Z)
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
COMMON/BLK3/MA,IELB,IELG,NST,NXSJ,MST
DIMENSION XL(NDM,1),SL(NST,1),DL(1),A(4),UL(1),RL(1)
C
GO TO (1,2,3,4),ICN
461
Finite Element Method with Applications in Engineering
C
C…. READ MATERIAL PROPERTIES
C
1 READ(5,10) E,AR
WRITE(6,15)E,AR
DL(1)=E
DL(2)=AR
10 FORMAT(2E10.0)
15 FORMAT(′ YOUNGS MODULAS ……… =′,E13.4/
* ′ AREA OF CROSS SECTION .. =′,E13.4)
RETURN
2 RETURN
C
C…. FORM ELEMENT STIFFNESS MATRIX
C
3 DX=XL(1,2)-XL(1,1)
DY=XL(2,2)-XL(2,1)
XXL=DSQRT(DX**2+DY**2)
A(1)=-DX/XXL
A(2)=-DY/XXL
A(3)=-A(1)
A(4)=-A(2)
EAL=DL(1)*DL(2)/XXL
C
DO 30 I=1,NST
DO 30 J=I,NST
SL(I,J)=A(I)*A(J)*EAL
30 SL(J,I)=SL(I,J)
CALL RLOAD(SL,UL,NST,RL)
RETURN
C
C…. EVALUATE STRESS RESULTANTS
C
4 IF(IELG.EQ.1) WRITE(11,40)
DX=XL(1,2)-XL(1,1)
462
Finite Element Method with Applications in Engineering
DY=XL(2,2)-XL(2,1)
XXL=DSQRT(DX*DX+DY*DY)
COS=DX/XXL
SIN=DY/XXL
DU=UL(3)-UL(1)
DV=UL(4)-UL(2)
EAL=DL(1)*DL(2)/XXL
P=EAL*(COS*DU+SIN*DV)
WRITE(11,50) IELG,P
50 FORMAT(I5,6X,E16.4)
40 FORMAT(/// ′ ELEMENT FORCES′//
*1X, ′ELMT′,17X, ′FORCE′)
RETURN
END
C*******************************************************************
SUBROUTINE RLOAD(SL,UL,NST,RL)
C
C…. FORM RHS VECTOR FOR SUPPORT SETTLEMENTS
C
IMPLICIT REAL*8 (A-H,O-Z)
DIMENSION SL(NST,1),UL(1),RL(1)
C
DO 110 J=1,NST
IF(DABS(UL(J)).LT.1.0D-10) GO TO 110
DO 115 I=1,NST
115 RL(I)=RL(I)-SL(I,J)*UL(J)
110 CONTINUE
RETURN
END
C*****7*************************************************************
SUBROUTINE ELMT2(DL,NEL,XL,SL,UL,RL,ICN)
C
C…. 3–D TRUSS ELEMENT
C
IMPLICIT REAL*8 (A−H,O−Z)
463
Finite Element Method with Applications in Engineering
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
COMMON/BLK3/MA,IELB,IELG,NST,NXSJ,MST
DIMENSION XL(NDM,1),SL(NST,1),DL(1),A(6),UL(1),RL(1)
C
GO TO (1,2,3,4),ICN
C
C…. READ MATERIAL PROPERTIES
C
1 READ(5,10) E,AR
WRITE(6,15)E,AR
DL(1)=E
DL(2)=AR
10 FORMAT(2E10.0)
15 FORMAT (′YOUNGS MODULAS ……… =′,E13.4/
* ′ AREA OF CROSS .. =′,E13.4/
RETURN
2 RETURN
C
C…. FORM ELEMENT STIFFNESS MATRIX
C
3 DX=XL(1,2)-XL(1,1)
DY=XL(2,2)-XL(2,1)
DZ=XL(3,2)-XL(3,1)
XXL=DSQRT(DX**2+DY**2+DZ**2)
A(1)=-DX/XXL
A(2)=-DY/XXL
A(3)=-DZ/XXL
A(4)=-A(1)
A(5)=-A(2)
A(6)=-A(3)
EAL=DL(1)*DL(2)/XXL
C
DO 30 I=1,NST
DO 30 J=I,NST
464
Finite Element Method with Applications in Engineering
SL(I,J)=A(I)*A(J)*EAL
30 SL(J,I)=SL(I,J)
CALL RLOAD(SL,UL,NST,RL)
RETURN
C
C…. EVALUATE STRESS RESULTANTS
C
4 IF(IELG.EQ.1) WRITE(11,40)
DX=XL(1,2)-XL(1,1)
DY=XL(2,2)-XL(2,1)
DZ=XL(3,2)-XL(3,1)
XXL=DSQRT(DX**2+DY**2+DZ**2)
C1=DX/XXL
C2=DY/XXL
C3=DZ/xxl
DU=UL(4)-UL(1)
DV=UL(5)-UL(2)
DW=UL(6)-UL(3)
EAL=DL(1)*DL(2)/XXL
P=EAL*(C1*DU+C2*DV+C3*DW)
WRITE(11,50) IELG,P
50 FORMAT(I5,6X,E16.4)
40 FORMAT(/// ′ ELEMENT
RETURN
END
C*******************************************************************
SUBROUTINE ELMT3(DL,NEL,XL,SL,UL,RL,ICN)
C
C…. PLANE BEAM ELEMENT
C
IMPLICIT REAL*8 (A-H,O-Z)
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
COMMON/BLK3/MA,IELB,IELG,NST,NXSJ,MST
COMMON/BLK4/ICOUNT
465
Finite Element Method with Applications in Engineering
DIMENSION XL(NDM,1),SL(NST,1),DL(1),UL(1),RL(1),A(3,6),EK(3,3),
1 EKAA(3,6),FEF(4)
C
GO TO (1,2,3,4),ICN
C
C…. READ & WRITE MATERIAL PROPERTIES
C
1 READ(5,10) E,AR,AI,IH,JH
WRITE(6,15) E,AR,AI,IH,JH
DL(1)=E*AR
DL(2)=E*AI
DL(3)=IH
DL(4)=JH
10 FORMAT(3E10.0,2I5)
15 FORMAT (′ YOUNGS MODULAS………. = ′,E13.4/
* ′ AREA OF CROSS SECTION … =′,E13.4/
* ′ SECOND MOMENT OF AREA … =′,E13.4/
* ′ HINGE AT I-END ………. =′,I13/
* ′ HINGE AT J-END ………. =′,I13)
RETURN
C
C…. EVALUATE THE CONSISTENT LOAD VECTOR
C
2 IF(ICOUNT.EQ.1) WRITE(6,105)
105 FORMAT(///1X, ′FIXED END FORCES′//
*1X, ′ELMT′,9X, ′SF-1′,9X, ′BM-1′,9X, ′SF-2′,9X, ′BM-2′)
P1=UL(1)
P2=UL(2)
DX=XL(1,2)-XL(1,1)
XXL=DABS(DX)
RL(2)= (7.0*P1+3.0*P2)*XXL/20.0
RL(5)= (3.0*P1+7.0*P2)*XXL/20.0
RL(3)= (P1/20.0+P2/30.0)*XXL*XXL
RL(6)=-(P1/30.0+P2/20.0)*XXL*XXL
FEF(1)=-RL(2)
466
Finite Element Method with Applications in Engineering
FEF(2)=-RL(3)
FEF(3)=-RL(5)
FEF(4)=-RL(6)
WRITE(6,115) IELG,(FEF(I),I=1,4)
115 FORMAT(I5,4E13.4)
cosA = DX/XXL
sinA = DY/XXL
RL(1) = -RL(2)*sinA
RL(2) = RL(2)*cosA
RL(4) = -RL(5)*sinA
RL(5) = RL(5)*cosA
RETURN
C
C…. FORM ELEMENT STIFFNESS MATRIX
C
3 DX=XL(1,2)-XL(1,1)
DY=XL(2,2)-XL(2,1)
XXL=DSQRT(DX*DX+DY*DY)
COSA=DX/XXL
SINA=DY/XXL
EAL=DL(1)/XXL
EIL=DL(2)/XXL
EK(1,1)=EAL
EK(1,2)=0.0
EK(1,3)=0.0
EK(2,1)=0.0
EK(2,2)=4.0*EIL
EK(2,3)=2.0*EIL
EK(3,1)=0.0
EK(3,2)=EK(2,3)
EK(3,3)=EK(2,2)
C
IH=DL(3)
JH=DL(4)
CALL TRAN(A,IH,JH,COSA,SINA,XXL)
467
Finite Element Method with Applications in Engineering
DO 30 I=1,3
DO 30 J=1,6
TEMP=0.0
DO 35 K=1,3
35 TEMP=TEMP+EK(I,K)*A(K,J)
30 EKAA(I,J)=TEMP
IF(ICN.EQ.4) GO TO 60
C
DO 50 I=1,6
DO 50 J=1,6
DO 50 K=1,3
50 SL(I,J)=SL(I,J)+A(K,I)*EKAA(K,J)
CALL RLOAD(SL,UL,NST,RL)
RETURN
C
C…. EVALUATE STRESSES
C
4 IF(IELG.EQ.1) WRITE(11,100)
GO TO 3
60 CALL TRAN(A,IH,JH,1.0D00,0.0D00,XXL)
DO 70 I=1,6
DO 70 J=1,6
SL(I,J)=0.0
DO 70 K=1,3
70 SL(I,J)=SL(I,J)+A(K,I)*EKAA(K,J)
C
DO 80 I=1,6
RL(I)=0.0
DO 80 J=1,6
80 RL(I)=RL(I)+SL(I,J)*UL(J)
WRITE(11,90) IELG,(RL(I),I=1,6)
90 FORMAT(I5,5X, ′1′,3E16.4/10X, ′2′,3E16.4)
100 FORMAT(/// ′ ELEMENT FORCES ′//
*1X, ′ELMT′,2X, ′NODE ′,11X, ′AXIAL′,11X, ′SHEAR′,9X, ′BENDING′/
* 22X, ′FORCE′,11X, ′FORCE′,9X,′ MOMENT′/)
468
Finite Element Method with Applications in Engineering
RETURN
END
C****************************************************************
SUBROUTINE TRAN(A,IHI,IHJ,COSA,SINA,XL)
C
C…. FORM ELEMENT TRANSFORMATION MATRIX
C
IMPLICIT REAL*8(A-H,O-Z)
DIMENSION A(3,6)
C
C…. NO HINGES
C
A(1,1)= −COSA
A(1,2)= −SINA
A(1,3)=0.0
A(1,4)= COSA
A(1,5)= SINA
A(1,6)= 0.0
A(2,1)= −SINA/XL
A(2,2)= COSA/XL
A(2,3)= 1.0
A(2,4)= SINA/XL
A(2,5)= −COSA/XL
A(2,6)= 0.0
A(3,1)= −SINA/XL
A(3,2)= COSA/XL
A(3,3)= 0.0
A(3,4)= SINA/XL
A(3,5)= −COSA/XL
A(3,6)= 1.0
C
IF (IHI.EQ.0.AND.IHJ.EQ.0) GO TO 60
IF (IHI.NE.0.AND.IHJ.EQ.0) GO TO 20
IF (IHI.EQ.0.AND.IHJ.NE.0) GO TO 40
C
469
Finite Element Method with Applications in Engineering
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
COMMON/BLK2/ISWICH
COMMON/BLK3/MA,IELB,IELG,NST,NXSJ,MST
LOGICAL ISWICH
DIMENSION XL(NDM,1),SL(NST,1),DL(1),RL(1),UL(1),EPS(3),SIG(3),
1 A(3),B(3)
ISWICH=.FALSE.
C
GO TO (1,2,3,4),ICN
470
Finite Element Method with Applications in Engineering
C
C…. READ & WRITE MATERIAL PROPERTIES
C
1 READ(5,10) E,ANU,TH,KODE
10 FORMAT(3E10.0,I5)
WRITE(6,11) E,ANU,TH,KODE
11 FORMAT (′ YOUNGS MODULAS ………………………. = ′,E13.4/
* ′ POISSONS RATIO ………………………. =′,E13.4/
* ′ THICKNESS …………………………… =′,E13.4/
* ′ KODE (1 FOR PL STRESS, ZERO FOR PL STRAIN) =′,I13/)
DL(1)=E
DL(2)=ANU
DL(3)=TH
DL(4)=KODE
RETURN
2 RETURN
C
C…. FORM THE ELEMENT STIFFNESS MATRIX
C
3 IF(ISWICH) WRITE(6,210) IELG
210 FORMAT(// ′ ELEMENT NUMBER =′,I3)
C
C…. IF KODE=0, THEN PLANE STRAIN. OTHERWISE PLANE STRESS.
C
KODE=DL(4)
I=KODE
IF(I.NE.0) I=1
IF(I.EQ.0) I=2
D1=DL(1)*(1.+(1-I)*DL(2))/(1.0+DL(2))/(1.0-I*DL(2))
D2=D1*DL(2)/(1.+(1-I)*DL(2))
D3=DL(1)*0.5/(1.+DL(2))
C
CALL AB(XL,A,B,AR)
IF(ISWICH) WRITE(6,420) AR
420 FORMAT(′ AREA = ′,F10.5)
471
Finite Element Method with Applications in Engineering
IF(AR.GT.1.0D-05) GO TO 25
NXSJ=1
WRITE(6,26) IELG
26 FORMAT(′ NEGATIVE AREA ENCOUNTERED FOR ELMT ′,I4)
25 DV=DL(3)*0.25/AR
D11=D1*DV
D12=D2*DV
D33=D3*DV
C
C…. FOR EACH J NODE COMPUTE DB=D*BJ
C
DO 50 J=1,NEL
DB11=D11*B(J)
DB12=D12*A(J)
DB21=D12*B(J)
DB22=D11*A(J)
DB31=D33*A(J)
DB32=D33*B(J)
C
C…. FOR EACH I NODE COMPUTE S=BI*DB
C
DO 60 I=1,J
SL(I+I-1,J+J-1)=SL(I+I-1,J+J-1)+DB11*B(I)+DB31*A(I)
SL(I+I-1,J+J )=SL(I+I-1,J+J )+DB12*B(I)+DB32*A(I)
SL(I+I ,J+J-1 )=SL(I+I ,J+J-1)+DB21*A(I)+DB31*B(I)
SL(I+I ,J+J )=SL(I+I ,J+J )+DB22*A(I)+DB32*B(I)
60 CONTINUE
50 CONTINUE
C
C…. COMPUTE LOWER TRIANGULAR PART BY SYMMETRY
C
DO 70 I=2,NST
DO 70 J=1,I
70 SL(I,J)=SL(J,I)
CALL RLOAD(SL,UL,NST,RL)
472
Finite Element Method with Applications in Engineering
RETURN
C
C…. EVALUATE THE STRESSES
C
4 IF(IELG.EQ.1) WRITE(11,100)
I=DL(4)
IF(I.NE.0) I=1
IF(I.EQ.0) I=2
D1=DL(1)*(1.+(1-I)*DL(2))/(1.0+DL(2))/(1.0-I*DL(2))
D2=D1*DL(2)/(1.+(1-I)*DL(2))
D3=DL(1)*0.5/(1.+DL(2))
CALL AB(XL,A,B,AR)
C
DO 13 I=1,3
13 EPS(I)=0.0
XX=(XL(1,1)+XL(1,2)+XL(1,3))/3.0
YY=(XL(2,1)+XL(2,2)+XL(2,3))/3.0
C
DO 14 J=1,NEL
EPS(1)=EPS(1)+B(J)*UL(J+J-1)
EPS(2)=EPS(2)+A(J)*UL(J+J)
14 EPS(3)=EPS(3)+A(J)*UL(J+J-1)+B(J)*UL(J+J)
C
SIG(1)=(D1*EPS(1)+D2*EPS(2))/(2.0*AR)
SIG(2)=(D2*EPS(1)+D1*EPS(2))/(2.0*AR)
SIG(3)=D3*EPS(3)/(2.0*AR)
WRITE(11,15) IELG,XX,YY,(SIG(I),I=1,3)
12 CONTINUE
15 FORMAT(I5,5E12.4)
100 FORMAT(/// ′ S T R E S S ′//
1 1X, ′ELMT ′,7X, ′1-ORD ′,7X, ′2-ORD ′,3X, ′XX-STRESS ′,3X,
2 ′YY-STRESS,3X, ′XY-STRESS ′)
RETURN
END
C*******************************************************************
473
Finite Element Method with Applications in Engineering
SUBROUTINE AB(XL,A,B,AR)
IMPLICIT REAL*8 (A-H,O-Z)
DIMENSION A(3),B(3),XL(2,3)
C
A(1)=XL(1,3)-XL(1,2)
A(2)=XL(1,1)-XL(1,3)
A(3)=XL(1,2)-XL(1,1)
C
B(1)=XL(2,2)-XL(2,3)
B(2)=XL(2,3)-XL(2,1)
B(3)=XL(2,1)-XL(2,2)
AR=0.5*(A(1)*B(3)-A(3)*B(1))
RETURN
END
C*****7*************************************************************
SUBROUTINE ELMT5(DL,NEL,XL,SL,UL,RL,ICN)
C
C…. 3-9 VARIABLE NODED ISOPARAMETRIC PLANE ELEMENT
C
IMPLICIT REAL*8 (A-H,O-Z)
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
COMMON/BLK2/ISWICH
COMMON/BLK3/MA,IELB,IELG,NST,NXSJ,MST
LOGICAL ISWICH
DIMENSION XL(NDM,1),SL(NST,1),DL(1),ZI(9),ET(9),WT(9),SHP(3,9),
1 XS(2,2),RL(1),UL(1),EPS(3),SIG(3)
C
GO TO (1,2,3,4),ICN
C
C…. READ & WRITE MATERIAL PROPERTIES
C
1 READ(5,10) E,ANU,TH,KODE,L,LS,LLD
10 FORMAT(3E10.0,4I5)
WRITE(6,11) E,ANU,TH,KODE,L,LS,LLD
474
Finite Element Method with Applications in Engineering
475
Finite Element Method with Applications in Engineering
476
Finite Element Method with Applications in Engineering
DB22=D11*SHP(2,J)
DB31=D33*SHP(2,J)
DB32=D33*SHP(1,J)
C
C…. FOR EACH I NODE COMPUTE S=BI*DB
C
DO 60 I=1,J
SL(I+I-1,J+J-1)=SL(I+I-1,J+J-1)+SHP(1,I)*DB11+SHP(2,I)*DB31
SL(I+I-1,J+J )=SL(I+I-1,J+J )+SHP(1,I)*DB12+SHP(2,I)*DB32
SL(I+I ,J+J-1)=SL(I+I ,J+J-1)+SHP(2,I)*DB21+SHP(1,I)*DB31
SL(I+I ,J+J )=SL(I+I ,J+J )+SHP(2,I)*DB22+SHP(1,I)*DB32
60 CONTINUE
50 CONTINUE
30 CONTINUE
C
C…. COMPUTE LOWER TRIANGULAR PART BY SYMMETRY
C
DO 70 I=2,NST
DO 70 J=1,I
70 SL(I,J)=SL(J,I)
CALL RLOAD(SL,UL,NST,RL)
RETURN
C
C…. EVALUATE THE STRESSES
C
4 IF(IELG.EQ.1) WRITE(11,100)
L=DL(6)
I=DL(4)
IF(I.NE.0) I=1
IF(I.EQ.0) I=2
D1=DL(1)*(1.+(1-I)*DL(2))/(1.0+DL(2))/(1.0-I*DL(2))
D2=D1*DL(2)/(1.+(1-I)*DL(2))
D3=DL(1)*0.5/(1.+DL(2))
IF(L*L.NE.LINT) CALL PGAUSS(L,LINT,ZI,ET,WT)
C
477
Finite Element Method with Applications in Engineering
DO 12 L=1,LINT
CALL SHAPE(ZI(L),ET(L),XL,SHP,XS,XSJ,NEL,2)
DO 13 I=1,3
13 EPS(I)=0.0
XX=0.0
YY=0.0
C
DO 14 J=1,NEL
XX=XX+SHP(3,J)*XL(1,J)
YY=YY+SHP(3,J)*XL(2,J)
EPS(1)=EPS(1)+SHP(1,J)*UL(J+J-1)
EPS(2)=EPS(2)+SHP(2,J)*UL(J+J)
14 EPS(3)=EPS(3)+SHP(1,J)*UL(J+J)+SHP(2,J)*UL(J+J-1)
C
SIG(1)=D1*EPS(1)+D2*EPS(2)
SIG(2)=D2*EPS(1)+D1*EPS(2)
SIG(3)=D3*EPS(3)
WRITE(11,15) IELG,XX,YY,(SIG(I),I=1,3)
12 CONTINUE
15 FORMAT(I5,5E12.4)
100 FORMAT(/// ′ S T R E S S ′//
1 1X, ′ELMT ′,7X, ′1-ORD ′,7X, ′2-ORD ′,3X, ′XX-STRESS ′,3X,
2 ′YY-STRESS ′,3X, ′XY-STRESS ′)
RETURN
END
C*******************************************************************
SUBROUTINE SHAPE(SS,TT,X,SHP,XS,XSJ,NEL,KEY)
C
C… SHAPE FUNCTIONS FOR ISOPARAMETRIC ELEMENTS
C… KEY=1 DERIVATIVES ARE WRT NATURAL COORDINATES
C… 2 DERIVATIVEA ARE WRT GLOBAL COORDINATES
C
IMPLICIT REAL*8 (A-H,O-Z)
DIMENSION SHP(3,1),X(2,1),S(4),T(4),XS(2,2),SX(2,2)
DATA S/-0.5D00,0.5D00,0.5D00,-0.5D00/
478
Finite Element Method with Applications in Engineering
DATA T/-0.5D00,-0.5D00,0.5D00,0.5D00/
C
C… FORM 4-NODE QUADRILATERAL SHAPE FUNCTIONS
C
DO 100 I=1,4
SHP(3,I)=(0.5+S(I)*SS)*(0.5+T(I)*TT)
SHP(1,I)=S(I)*(0.5+T(I)*TT)
100 SHP(2,I)=T(I)*(0.5+S(I)*SS)
IF(NEL.GT.3) GO TO 20
DO 10 I=1,3
10 SHP(I,3)=SHP(I,3)+SHP(I,4)
20 IF(NEL.GT.4) CALL SHAP2(SS,TT,SHP,NEL)
C
C…. CONSTRUCT JACOBIAN AND ITS INVERSE
C
DO 130 I=1,2
DO 130 J=1,2
XS(I,J)=0.0
DO 130 K=1,NEL
130 XS(I,J)=XS(I,J)+SHP(I,K)*X(J,K)
XSJ=XS(1,1)*XS(2,2)-XS(1,2)*XS(2,1)
IF(KEY.EQ.1) RETURN
C
SX(1,1)= XS(2,2)/XSJ
SX(1,2)=-XS(1,2)/XSJ
SX(2,1)=-XS(2,1)/XSJ
SX(2,2)= XS(1,1)/XSJ
C
C… FORM GLOBAL DERIVATIVES
C
DO 140 I=1,NEL
TEMP =SHP(1,I)*SX(1,1)+SHP(2,I)*SX(1,2)
SHP(2,I)=SHP(1,I)*SX(2,1)+SHP(2,I)*SX(2,2)
140 SHP(1,I)=TEMP
RETURN
479
Finite Element Method with Applications in Engineering
END
C****************************************************************
SUBROUTINE SHAP2(S,T,SHP,NEL)
IMPLICIT REAL*8 (A-H,O-Z)
DIMENSION SHP(3,1)
S2=(1.-S*S)/2
T2=(1.-T*T)/2
DO 100 I=5,8
DO 100 J=1,3
100 SHP(J,I)=0.0
C
SHP(1,5)=-S*(1.-T)
SHP(2,5)=-S2
SHP(3,5)= S2*(1.-T)
IF(NEL.LT.6) GO TO 107
C
SHP(1,6)= T2
SHP(2,6)=-T*(1.+S)
SHP(3,6)= T2*(1.+S)
IF(NEL.LT.7) GO TO 107
C
SHP(1,7)= -S*(1.+T)
SHP(2,7)= S2
SHP(3,7)= S2*(1.+T)
IF(NEL.LT.8) GO TO 107
C
SHP(1,8)= -T2
SHP(2,8)= -T*(1.-S)
SHP(3,8)= T2*(1.-S)
IF(NEL.LT.9) GO TO 107
C
SHP(1,9)= -S*T2*4.0
SHP(2,9)= -T*S2*4.0
SHP(3,9)= 4.*S2*T2
C
480
Finite Element Method with Applications in Engineering
481
Finite Element Method with Applications in Engineering
C… 2 PT INTEGRATION
C
2 G = 1.0D00/DSQRT(3.0D00)
ZI(1)=1.0
ZI(2)=1.0
ET(1)= G
ET(2)=-G
WT(1)=1.0D00
WT(2)=1.0D00
RETURN
C
C… 3 PT INTEGRATION
C
3 G = DSQRT(0.6D00)
ZI(1)=1.0
ZI(2)=1.0
ZI(3)=1.0
ET(1)=-G
ET(2)= 0.0
ET(3)= G
WT(1)= 5./9.
WT(2)= 8./9.
WT(3)= 5./9.
RETURN
END
C*******************************************************************
SUBROUTINE PGAUSS(L,LINT,ZI,ET,WT)
C
C… GAUSS POINTS AND WEIGHTS FOR TWO DIMENSIONS
C
IMPLICIT REAL*8 (A-H,O-Z)
DIMENSION LR(9),LZ(9),LW(9),ZI(1),ET(1),WT(1)
DATA LR/-1,1,1,-1,0,1,0,-1,0/,LZ/-1,-1,1,1,-1,0,1,0,0/
DATA LW/4*25,4*40,64/
LINT=L*L
482
Finite Element Method with Applications in Engineering
GO TO (1,2,3),L
C
C… 1*1 INTEGRATION
C
1 ZI(1)=0.
ET(1)=0.
WT(1)=4.
RETURN
C
C… 2*2 INTEGRATION
C
2 G = 1.0D00/DSQRT(3.0D00)
DO 21 I=1,4
ZI(I)=G*LR(I)
ET(I)=G*LZ(I)
21 WT(I)=1.0D00
RETURN
C
C… 3*3 INTEGRATION
C
3 G = DSQRT(0.6D00)
H = 1.0D00/81.0D00
DO 31 I=1,9
ZI(I)=G*LR(I)
ET(I)=G*LZ(I)
31 WT(I)=H*LW(I)
RETURN
END
C*****7*************************************************************
SUBROUTINE ELMT6(DL,NEL,XL,SL,UL,RL,ICN)
C
C…. 3-9 VARIABLE NODED ISOPARAMETRIC ELEMENT FOR AXISYMMETRIC
C…. ANALYSIS M=0
C
IMPLICIT REAL*8 (A-H,O-Z)
483
Finite Element Method with Applications in Engineering
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
COMMON/BLK2/ISWITCH
COMMON/BLK3/MA,IELB,IELG,NST,NXSJ,MST
COMMON/BLK5/OM,NH
LOGICAL ISWITCH
DIMENSION XL(NDM,1),SL(NST,1),DL(1),ZI(9),ET(9),WT(9),SHP(3,9),
*XS(2,2),RL(1),UL(1),EPS(4),SIG(4),DS(3,3),BJ(4,2),BI(4,2),DB(4,2)
C
GO TO (1,2,3,4),ICN
C
C…. READ & WRITE MATERIAL PROPERTIES
C
OM = 0.0
1 READ(5,10) E,ANU,L,LS,LLD
10 FORMAT(2E10.0,4I5)
WRITE(6,11) E,ANU,L,LS,LLD
11 FORMAT(′ YOUNGS MODULAS ……………………… = ′,E13.4/
* ′ POISSONS RATIO ………………………. = ′,E13.4/
* ′ ORDER OF QUADRATURE FOR STIFFNESS ……… = ′,I13/
* ′ NO. OF STRESS POINTS IN EACH DIRECTION …. = ′,I13/
* ′ ORDER OF QUAD FOR CONSISTENT LOAD ……… = ′,I13/)
RHO = 1.0
DL(1)=E
DL(2)=ANU
DL(3)=RHO
DL(4)=L
DL(5)=LS
DL(6)=LLD
PI=4.0*ATAN(1.0)
RETURN
C
C…. EVALUATE THE CONSISTENT LOAD VECTOR
C
2 P1=UL(1)
484
Finite Element Method with Applications in Engineering
P2=UL(2)
LINT=DL(6)
CALL PGAUSL(LINT,ZI,ET,WT)
DO 105 K=1,LINT
CALL SHAPE(ZI(K),ET(K),XL,SHP,XS,XSJ,NEL,1)
SIGMA=SHP(3,2)*P1+SHP(3,3)*P2
IF(NEL.GT.4) SIGMA=SIGMA+SHP(3,6)*UL(3)
RR=0.0
DO 125 J=1,NEL
125 RR=RR+SHP(3,J)*XL(1,J)
DV=2.0*PI*SIGMA*RR*WT(K)
DO 120 I=1,NEL
RL(I+I-1)=RL(I+I-1)+SHP(3,I)*XS(2,2)*DV
120 RL(I+I)=RL(I+I)-SHP(3,I)*XS(2,1)*DV
105 CONTINUE
RETURN
C
C…. FORM THE ELEMENT STIFFNESS MATRIX
C
3 IF(ISWITCH) WRITE(6,210) IELG
210 FORMAT(// ′ ELEMENT NUMBER = ′,I3)
C
6 E=DL(1)
ANU=DL(2)
FACT=E/(1.0+ANU)/(1.0-2.0*ANU)
DS(1,1)=FACT*(1.0-ANU)
DS(2,2)=DS(1,1)
DS(3,3)=DS(1,1)
DS(1,2)=FACT*ANU
DS(1,3)=DS(1,2)
DS(2,1)=DS(1,2)
DS(2,3)=DS(1,2)
DS(3,1)=DS(1,2)
DS(3,2)=DS(1,2)
DS44=FACT*(0.5-ANU)
485
Finite Element Method with Applications in Engineering
IF(ICN.EQ.4) GO TO 5
C
C…. INITIALIZE BI AND BJ MATRICES
C
DO 110 I=1,4
DO 110 J=1,2
BI(I,J)=0.0
110 BJ(I,J)=0.0
C
IF(IELG.EQ.1) LINT=0
L=DL(4)
IF(L*L.NE.LINT) CALL PGAUSS(L,LINT,ZI,ET,WT)
C
DO 30 K=1,LINT
CALL SHAPE(ZI(K),ET(K),XL,SHP,XS,XSJ,NEL,2)
IF(ISWITCH) WRITE(6,420) ZI(K),ET(K),XSJ
420 FORMAT (′ZI=′,F10.5,5X,′XSJ=′,F10.5)
IF(XSJ.GT.1.0D-05) GO TO 25
NXSJ=1
WRITE(6,26) IELG
26 FORMAT (′ NEGATIVE JACOBIAN ENCOUNTERED FOR ELMT’,I4)
C
25 RR=0.0
DO 35 I=1,NEL
35 RR=RR+SHP(3,I)*XL(1,I)
DV=2.0*PI*RR*XSJ*WT(K)
RHO=DL(3)
DM=2.0*PI*RR*XSJ*WT(K)*RHO*OM*OM
C
C….FORM BJ MATRIX
C
JJ=1
DO 50 J=1,NEL
BJ(1,1)=SHP(1,J)
BJ(2,1)=SHP(3,J)/RR
486
Finite Element Method with Applications in Engineering
BJ(4,1)=SHP(2,J)
BJ(3,2)=SHP(2,J)
BJ(4,2)=SHP(1,J)
C
C…. FOR EACH J NODE COMPUTE DB=D*BJ
C
DO 70 K2=1,2
DO 80 K1=1,3
DB(K1,K2)=0.0
DO 80 KKK=1,3
80 DB(K1,K2)=DB(K1,K2)+DS(K1,KKK)*BJ(KKK,K2)
70 DB(4,K2)=DS44*BJ(4,K2)
C
C…. FORM BI MATRIX
C
II=1
DO 60 I=1,J
BI(1,1)=SHP(1,I)
BI(2,1)=SHP(3,I)/RR
BI(4,1)=SHP(2,I)
BI(3,2)=SHP(2,I)
BI(4,2)=SHP(1,I)
C
C…. FOR EACH I NODE, COMPUTE S=BI*DB
C
DO 90 K1=1,2
IR=II+K1-1
DO 90 KK=1,2
IC=JJ+KK-1
IF(K1.EQ.KK) SL(IR,IC)=SL(IR,IC)-DM*SHP(3,I)*SHP(3,J)
DO 90 KKK=1,4
90 SL(IR,IC)=SL(IR,IC)+DV*BI(KKK,K1)*DB(KKK,KK)
60 II=II+NDF
50 JJ=JJ+NDF
30 CONTINUE
487
Finite Element Method with Applications in Engineering
C
C…. COMPUTE LOWER TRIANGULAR PART BY SYMMETRY
C
DO 75 I=2,NST
DO 75 J=1,I
75 SL(I,J)=SL(J,I)
CALL RLOAD(SL,UL,NST,RL)
RETURN
C
C…. EVALUATE THE STRESSES
C
4 IF(IELG.EQ.1) WRITE(11,100)
LS=DL(5)
GO TO 6
5 IF(LS*LS.NE.LINT) CALL PGAUSS(LS,LINT,ZI,ET,WT)
C
DO 12 L=1,LINT
CALL SHAPE(ZI(L),ET(L),XL,SHP,XS,XSJ,NEL,2)
DO 13 I=1,4
13 EPS(I)=0.0
RR=0.0
ZZ=0.0
C
DO 14 J=1,NEL
RR=RR+SHP(3,J)*XL(1,J)
ZZ=ZZ+SHP(3,J)*XL(2,J)
J1=J+J-1
J2=J+J
EPS(1)=EPS(1)+SHP(1,J)*UL(J1)
EPS(2)=EPS(2)+SHP(3,J)*UL(J1)
EPS(3)=EPS(3)+SHP(2,J)*UL(J2)
14 EPS(4)=EPS(4)+SHP(2,J)*UL(J1)+SHP(1,J)*UL(J2)
EPS(2)=EPS(2)/RR
C
SIG(1)=DS(1,1)*EPS(1)+DS(1,2)*EPS(2)+DS(1,3)*EPS(3)
488
Finite Element Method with Applications in Engineering
SIG(2)=DS(2,1)*EPS(1)+DS(2,2)*EPS(2)+DS(2,3)*EPS(3)
SIG(3)=DS(3,1)*EPS(1)+DS(3,2)*EPS(2)+DS(3,3)*EPS(3)
SIG(4)=DS44*EPS(4)
WRITE(11,15) IELG,RR,ZZ,(SIG(I),I=1,4)
12 CONTINUE
15 FORMAT(I5,2E12.4,4E11.3)
100 FORMAT(/// ′ S T R E S S′//
1 1X,′ELMT′,7X,′R-ORD′,7X,′Z-ORD′,3X,′RR-STRES′,3X,
2 ′ TT-STRES′,3X,′ZZ-STRES′,3X,′RZ-STRES′)
RETURN
END
C*****7*************************************************************
SUBROUTINE TRANS(SL,NST,NEL,NH)
IMPLICIT REAL*8 (A-H,O-Z)
DIMENSION SL(NST,1),IEQ(3)
DATA IEQ/1,10,22/
C
IF(NH.GT.1) RETURN
FACT=DSQRT(0.5D00)
KK=3
IF(NEL.LT.8) KK=2
DO 30 K=1,KK
IR=IEQ(K)
C
C…. MODIFY THE COLUMNS
C
DO 10 I=1,NST
SK1=SL(I,IR)
SK2=SL(I,IR+2)
SL(I,IR)=(SK1+SK2)*FACT
10 SL(I,IR+2)=(SK2-SK1)*FACT
C
C…. MODIFY THE ROWS
C
DO 20 J=1,NST
489
Finite Element Method with Applications in Engineering
SK1=SL(IR,J)
SK2=SL(IR+2,J)
SL(IR,J)=(SK1+SK2)*FACT
20 SL(IR+2,J)=(SK2/SK1)*FACT
30 CONTINUE
RETURN
END
C*******************************************************************
SUBROUTINE ELMT7(DL,NEL,XL,SL,UL,RL,ICN)
C
C…. 3-9 VARIABLE NODED ISOPARAMETRIC ELEMENT FOR AXISYMMETRIC
C…. ANALYSIS M > 0…
C
IMPLICIT REAL*8 (A-H,O-Z)
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
COMMON/BLK2/ISWITCH
COMMON/BLK3/MA,IELB,IELG,NST,NXSJ,MST
COMMON/BLK5/OM,NH
LOGICAL ISWITCH
DIMENSION XL(NDM,1),SL(NST,1),DL(1),ZI(9),ET(9),WT(9),SHP(3,9),
*XS(2,2),RL(1),UL(1),EPS(6),SIG(6),DS(3,3),BJ(6,3),BI(6,3),DB(6,3)
C
GO TO (1,2,3,4),ICN
C
C…. READ & WRITE MATERIAL PROPERTIES
C
1 READ(5,10) E,ANU,L,LS,LLD,KODE, NH
10 FORMAT(2E10.0,5I5)
OM = 0.0
RHO = 1.0
WRITE(6,11) E,ANU,L,LS,LLD,KODE,NH
11 FORMAT (′ YOUNGS MODULAS ………………………. =’,E13.4/
* ′ POISSONS RATIO ………………………. =’,E13.4/
* ′ ORDER OF QUADRATURE FOR STIFFNESS ……… =’,I13/
490
Finite Element Method with Applications in Engineering
491
Finite Element Method with Applications in Engineering
RETURN
C
C…. FORM THE ELEMENT STIFFNESS MATRIX
C
3 IF(ISWITCH) WRITE(6,210) IELG
210 FORMAT(// ′ ELEMENT NUMBER = ’, I3)
C
6 E=DL(1)
ANU=DL(2)
FACT=E/(1.0+ANU)/(1.0-2.0*ANU)
DS(1,1)=FACT*(1.0-ANU)
DS(2,2)=DS(1,1)
DS(3,3)=DS(1,1)
DS(1,2)=FACT*ANU
DS(1,3)=DS(1,2)
DS(2,1)=DS(1,2)
DS(2,3)=DS(1,2)
DS(3,1)=DS(1,2)
DS(3,2)=DS(1,2)
DS44=FACT*(0.5-ANU)
DS55=DS44
DS66=DS44
IF(ICN.EQ.4) GO TO 5
C
C…. INITIALIZE BI AND BJ MATRICES
C
DO 110 I=1,6
DO 110 J=1,3
BI(I,J)=0.0
110 BJ(I,J)=0.0
C
IF(IELG.EQ.1) LINT=0
L=DL(4)
IF(L*L.NE.LINT) CALL PGAUSS(L,LINT,ZI,ET,WT)
C
492
Finite Element Method with Applications in Engineering
DO 30 K=1,LINT
CALL SHAPE(ZI(K),ET(K),XL,SHP,XS,XSJ,NEL,2)
IF(ISWITCH) WRITE(6,420) ZI(K),ET(K),XSJ
420 FORMAT (′ ZI=’,F10.5,5X,’ET=’,F10.5,5X,’XSJ=’,F10.5)
IF(XSJ.GT.1.0D-05) GO TO 25
NXSJ=1
WRITE(6,26) IELG
26 FORMAT (′ NEGATIVE JACOBIAN ENCOUNTERED FOR ELMT’,I4)
C
25 RR=0.0
DO 35 I=1,NEL
35 RR=RR+SHP(3,I)*XL(1,I)
DV=PI*RR*XSJ*WT(K)
RHO=DL(3)
DM=PI*RR*XSJ*WT(K)*RHO*OM*OM
C
C…. FORM BJ MATRIX
C
JJ=1
DO 50 J=1,NEL
BJ(1,1)= SHP(1,J)
BJ(3,1)= SHP(3,J)/RR
BJ(4,1)= SHP(2,J)
BJ(5,1)=-SHP(3,J)*NH/RR
BJ(2,2)= SHP(2,J)
BJ(4,2)= SHP(1,J)
BJ(6,2)=-SHP(3,J)*NH/RR
BJ(3,3)=-SHP(3,J)*NH/RR
BJ(5,3)= SHP(3,J)/RR-SHP(1,J)
BJ(6,3)=-SHP(2,J)
C
C…. FOR EACH J NODE, COMPUTE DB=D*BJ
C
DO 70 KK=1,NDF
DO 80 K1=1,3
493
Finite Element Method with Applications in Engineering
DB(K1,KK)=0.0
DO 80 KKK=1,3
80 DB(K1,KK)= DB(K1,KK)+DS(K1,KKK)*BJ(KKK,KK)
DB(4,KK) = DS44*BJ(4,KK)
DB(5,KK) = DS55*BJ(5,KK)
70 DB(6,KK) = DS66*BJ(6,KK)
C
C…. FORM BI MATRIX
C
II=1
DO 60 I=1,J
BI(1,1)= SHP(1,I)
BI(3,1)= SHP(3,I)/RR
BI(4,1)= SHP(2,I)
BI(5,1)=-SHP(3,I)*NH/RR
BI(2,2)= SHP(2,I)
BI(4,2)= SHP(1,I)
BI(6,2)=-SHP(3,I)*NH/RR
BI(3,3)=-SHP(3,I)*NH/RR
BI(5,3)= SHP(3,I)/RR-SHP(1,I)
BI(6,3)=-SHP(2,I)
C
C…. FOR EACH I NODE, COMPUTE S=BI*DB
C
DO 90 K1=1,3
IR=II+K1-1
DO 90 KK=1,3
IC=JJ+KK-1
IF(K1.EQ.KK) SL(IR,IC)=SL(IR,IC)-DM*SHP(3,I)*SHP(3,J)
DO 90 KKK=1,6
90 SL(IR,IC)=SL(IR,IC)+DV*BI(KKK,K1)*DB(KKK,KK)
60 II=II+NDF
50 JJ=JJ+NDF
30 CONTINUE
C
494
Finite Element Method with Applications in Engineering
495
Finite Element Method with Applications in Engineering
BJ(6,2)=-SHP(3,J)*NH/RR
BJ(3,3)=-SHP(3,J)*NH/RR
BJ(5,3)= SHP(3,J)/RR-SHP(1,J)
BJ(6,3)=-SHP(2,J)
C
DO 65 I=1,6
DO 65 K=1,3
65 EPS(I)=EPS(I)+BJ(I,K)*UL(JJ+K)
55 JJ=JJ+NDF
C
SIG(1)=DS(1,1)*EPS(1)+DS(1,2)*EPS(2)+DS(1,3)*EPS(3)
SIG(2)=DS(2,1)*EPS(1)+DS(2,2)*EPS(2)+DS(2,3)*EPS(3)
SIG(3)=DS(3,1)*EPS(1)+DS(3,2)*EPS(2)+DS(3,3)*EPS(3)
SIG(4)=DS44*EPS(4)
SIG(5)=DS55*EPS(5)
SIG(6)=DS66*EPS(6)
WRITE(11,15) IELG,RR,ZZ,(SIG(I),I=1,6)
12 CONTINUE
15 FORMAT(I5,2E12.4,6E11.3)
100 FORMAT(/// ′ S T R E S S ′//
1 1X, ′ ELMT ′,7X, ′ R-ORD ′,7X, ′ Z-ORD ′,3X, ′RR-STRES′,3X,
2 ′ TT-STRES ′,3X,′ ZZ-STRES ′,3X,′ RZ-STRES ′,3X, ′RT-STRES ′,3X,
3 ′ ZT-STRES′)
RETURN
END
C
C******************************************************************
C
SUBROUTINE ELMT8(DL,NEL,XL,SL,UL,RL,ICN)
C
C…. 8 NODE BRICK ELEMENT FOR 3-D STRESS ANALYSIS
C
IMPLICIT REAL*8 (A-H,O-Z)
COMMON/BLK1/NUMNP,NUMEL,NDF,NDM,MNEL,NUMAT,NSN,NEQ,MBAND,NPROP
496
Finite Element Method with Applications in Engineering
COMMON/BLK2/ISWICH
COMMON/BLK3/MA,IELB,IELG,NST,NXSJ,MST
LOGICAL ISWICH
DIMENSION XL(NDM,1),SL(NST,1),DL(1),RL(1),UL(1),EPS(6),SIG(6)
DIMENSION SHP(4,8),RG(8),SG(8),TG(8),WG(8)
ISWICH=.FALSE.
IFLAG=0
C
GO TO (1,2,3,4),ICN
C
C…. READ & WRITE MATERIAL PROPERTIES
C
1 CONTINUE
READ(5,10) E,ANU
10 FORMAT(2E10.0)
WRITE(6,11) E,ANU
11 FORMAT (′ YOUNGS MODULUS …………………………..=′, E13.4/
* ′ POISSONS RATIO …………………………..=′,E13.4/)
DL(1)=E
DL(2)=ANU
RETURN
C
2 RETURN
C
C…. FORM THE ELEMENT STIFFNESS MATRIX
C
3 CONTINUE
E=DL(1)
ANU=DL(2)
DL1=E*(1.0D0-ANU)/(1.0D0+ANU)/(1.0D0-2.0D0*ANU)
DL2=ANU*DL1/(1.0D0-ANU)
DL3=E/2.0D0/(1.0D0+ANU)
IF(ISWICH) WRITE(11,310) IELG
310 FORMAT(//′ ELEMENT NUMBER =′,I3)
CALL PGAUSS3(RG,SG,TG,WG)
497
Finite Element Method with Applications in Engineering
DO 320 L=1,NEL
CALL SHAPE3(RG(L),SG(L),TG(L),XL,SHP,XSJ,NDM,NEL,.FALSE.)
DO 330 I =1,NEL
I3=3*I
I1=I3-2
I2=I3-1
DO 330 J =I,NEL
J3=3*J
J1=J3-2
J2=J3-1
SL(I1,J1) = SL(I1,J1)+(DL1*SHP(1,I)*SHP(1,J)
* +DL3*(SHP(2,I)*SHP(2,J)+SHP(3,I)*SHP(3,J)))*XSJ
SL(I1,J2)= SL(I1,J2)+(DL2*SHP(1,I)*SHP(2,J)
* +DL3*SHP(2,I)*SHP(1,J))*XSJ
SL(I1,J3)= SL(I1,J3)+(DL2*SHP(1,I)*SHP(3,J)
* +DL3*SHP(3,I)*SHP(1,J))*XSJ
SL(I2,J1)= SL(I2,J1)+(DL2*SHP(2,I)*SHP(1,J)
* +DL3*SHP(1,I)*SHP(2,J))*XSJ
SL(I2,J2) = SL(I2,J2)+(DL1*SHP(2,I)*SHP(2,J)
* +DL3*(SHP(1,I)*SHP(1,J)+SHP(3,I)*SHP(3,J)))*XSJ
SL(I2,J3)= SL(I2,J3)+(DL2*SHP(2,I)*SHP(3,J)
* +DL3*SHP(3,I)*SHP(2,J))*XSJ
SL(I3,J1)= SL(I3,J1)+(DL2*SHP(3,I)*SHP(1,J)
* +DL3*SHP(1,I)*SHP(3,J))*XSJ
SL(I3,J2)= SL(I3,J2)+(DL2*SHP(3,I)*SHP(2,J)
* +DL3*SHP(2,I)*SHP(3,J))*XSJ
330 SL(I3,J3) = SL(I3,J3)+(DL1*SHP(3,I)*SHP(3,J)+DL3*(SHP(1,I)*
* SHP(1,J)+SHP(2,I)*SHP(2,J)))*XSJ
320 CONTINUE
C
C…. COMPUTE LOWER TRIANGULAR PART BY SYMMETRY
C
DO 340 I = 1,24
DO 340 J = I,24
340 SL(J,I) = SL(I,J)
498
Finite Element Method with Applications in Engineering
CALL RLOAD(SL,UL,NST,RL)
RETURN
C
4 CONTINUE
C
C…. EVALUATE THE STRESSES
C
IF(IELG.EQ.1) WRITE(11,100)
CALL PGAUSS3(RG,SG,TG,WG)
DO 400 L=1,NEL
CALL SHAPE3(RG(L),SG(L),TG(L),XL,SHP,XSJ,NDM,NEL,.FALSE.)
DO 410 I=1,6
410 EPS(I)=0.0D0
XX=0.0D0
YY=0.0D0
ZZ=0.0D0
JJ=0
DO 420 J=1,NEL
C
XX=XX+SHP(4,J)*XL(1,J)
YY=YY+SHP(4,J)*XL(2,J)
ZZ=ZZ+SHP(4,J)*XL(3,J)
C
EPS(1)=EPS(1)+SHP(1,J)*UL(JJ+1)
EPS(2)=EPS(2)+SHP(2,J)*UL(JJ+2)
EPS(3)=EPS(3)+SHP(3,J)*UL(JJ+3)
EPS(4)=EPS(4)+SHP(2,J)*UL(JJ+1)+SHP(1,J)*UL(JJ+2)
EPS(5)=EPS(5)+SHP(3,J)*UL(JJ+2)+SHP(2,J)*UL(JJ+3)
EPS(6)=EPS(6)+SHP(3,J)*UL(JJ+1)+SHP(1,J)*UL(JJ+3)
C
420 JJ=JJ+NDF
C
SIG(1)=DL1*EPS(1)+DL2*EPS(2)+DL2*EPS(3)
SIG(2)=DL2*EPS(1)+DL1*EPS(2)+DL2*EPS(3)
SIG(3)=DL2*EPS(1)+DL2*EPS(2)+DL1*EPS(3)
499
Finite Element Method with Applications in Engineering
SIG(4)=DL3*EPS(4)
SIG(5)=DL3*EPS(5)
SIG(6)=DL3*EPS(6)
C
WRITE(11,200) IELG,L,XX,YY,ZZ,SIG
C
400 CONTINUE
RETURN
C
100 FORMAT(5X,′ELEMENT STRESSES′//4X,′ ELEM ′,4X,′ GP ′,2X,
* 3X,′ 1-COORD ′,5X,′ 2-COORD ′,5X,′ 3-COORD ′,3X,′ 11-STRESS ′,
* 3X,′ 22-STRESS ′,3X,′ 33-STRESS ′,3X,′ 12-STRESS ′,3X,′ 23-STRESS ′,
* 3X,′ 31-STRESS ′,3X)
200 FORMAT(1X,I5,2X,I5,2X,9E12.4)
END
C
C*************************************************************
C
SUBROUTINE PGAUSS3(R,S,T,W)
C
C…..2 POINT GAUSS INTEGRATION
C
IMPLICIT REAL*8(A-H,O-Z)
DIMENSION LR(8),LS(8),LT(8),R(1),S(1),T(1),W(1)
DATA LR/-1,1,1,-1,-1,1,1,-1/
DATA LS/-1,-1,1,1,-1,-1,1,1/
DATA LT/1,1,1,1,-1,-1,-1,-1/
G=1.0D0/SQRT(3.0D0)
DO 10 I=1,8
R(I)=G*LR(I)
S(I)=G*LS(I)
T(I)=G*LT(I)
10 W(I)=1.0D0
RETURN
END
500
Finite Element Method with Applications in Engineering
C
C*************************************************************
C
SUBROUTINE SHAPE3(RR,SS,TT,X,SHP,XSJ,NDM,NEL,IFLAG)
C
C…..SHAPE FUNCTIONS FOR 8 NODE 3-D BRICK ELEMENT
C
IMPLICIT REAL*8(A-H,O-Z)
LOGICAL IFLAG
DIMENSION SHP(4,1),X(NDM,1),R(8),S(8),T(8),SX(3,3),XS(3,3)
DATA R/-1.0D0,1.0D0,1.0D0,-1.0D0,-1.0D0,1.0D0,1.0D0,-1.0D0/
DATA S/-1.0D0,-1.0D0,1.0D0,1.0D0,-1.0D0,-1.0D0,1.0D0,1.0D0/
DATA T/1.0D0,1.0D0,1.0D0,1.0D0,-1.0D0,-1.0D0,-1.0D0,-1.0D0/
C
DO 10 I =1,8
SHP(4,I) =0.125D0*(1.0D0+RR*R(I))*(1.0D0+SS*S(I))*(1.0D0+TT*T(I))
SHP(1,I) =0.125D0*R(I)*(1.0D0+SS*S(I))*(1.0D0+TT*T(I))
SHP(2,I) =0.125D0*(1.0D0+RR*R(I))*S(I)*(1.0D0+TT*T(I))
SHP(3,I) =0.125D0*(1.0D0+RR*R(I))*(1.0D0+SS*S(I))*T(I)
10 CONTINUE
C
C…. CONTSTRUCTION OF JACOBIAN AND INVERSE
C
DO 30 I = 1,NDM
DO 30 J = 1,3
XS(I,J) = 0.0D0
DO 30 K=1,NEL
30 XS(I,J) =XS(I,J)+X(I,K)*SHP(J,K)
IF (NDM.LT.3) RETURN
XSJ = XS(1,1)*(XS(2,2)*XS(3,3)-XS(2,3)*XS(3,2))-XS(1,2)*(XS(2,1)
* *XS(3,3)-XS(2,3)*XS(3,1))+XS(1,3)*(XS(2,1)*XS(3,2)-XS(2,2)*
* XS(3,1))
IF (IFLAG) RETURN
SX(1,1) = (XS(2,2)*XS(3,3)-XS(2,3)*XS(3,2))/XSJ
SX(2,1) =-(XS(2,1)*XS(3,3)-XS(2,3)*XS(3,1))/XSJ
501
Finite Element Method with Applications in Engineering
SX(3,1) = (XS(2,1)*XS(3,2)-XS(2,2)*XS(3,1))/XSJ
SX(1,2) =-(XS(1,2)*XS(3,3)-XS(1,3)*XS(3,2))/XSJ
SX(2,2) = (XS(1,1)*XS(3,3)-XS(1,3)*XS(3,1))/XSJ
SX(3,2) =-(XS(1,1)*XS(3,2)-XS(1,2)*XS(3,1))/XSJ
SX(1,3) = (XS(1,2)*XS(2,3)-XS(1,3)*XS(2,2))/XSJ
SX(2,3) =-(XS(1,1)*XS(2,3)-XS(1,3)*XS(2,1))/XSJ
SX(3,3) = (XS(1,1)*XS(2,2)-XS(1,2)*XS(2,1))/XSJ
C
C…. FORM GLOBAL DERIVATIVES
C
DO 40 I=1,NEL
TP1 = SHP(1,I)*SX(1,1)+SHP(2,I)*SX(2,1)+SHP(3,I)*SX(3,1)
TP2 = SHP(1,I)*SX(1,2)+SHP(2,I)*SX(2,2)+SHP(3,I)*SX(3,2)
SHP(3,I) = SHP(1,I)*SX(1,3)+SHP(2,I)*SX(2,3)+SHP(3,I)*SX(3,3)
SHP(1,I) = TP1
40 SHP(2,I) = TP2
RETURN
END
C********************************************************************
SUBROUTINE ELMT9(DL,NEL,XL,SL,UL,RL,ICN)
RETURN
END
SUBROUTINE ELMT10(DL,NEL,XL,SL,UL,RL,ICN)
RETURN
END
C******************************************************************
502
Finite Element Method with Applications in Engineering
Appendix F
GRAPHICAL INTERFACE FOR THE SIMPLIFIED
FINITE ELEMENT ANALYSIS PROGRAM (SFEAP)
F.1 PROGRAMS
The simplified finite element analysis program (sfeap) can be used for static linear-elastic
analysis of plane and space trusses, beam and plane frames, two and three-dimensional
problems, and axisymmetric solids. There are eight Finite Element programs contained on
the accompanying CD-ROM. The programs are listed in Table F.1, and are numbered as
P1 to P8 for referencing. All the programs were coded using the theory presented in the
text.
F.1.1 Preamble
The first three programs use one dimensional element; P1 and P2 use truss elements
while P3 employs beam elements. The next two use two-dimensional elements in
rectangular Cartesian co-ordinates; P4 uses three nodes constant strain triangles and P5
employs three to nine nodes isoparametric elements. P6 and P7 use two-dimensional
three to nine nodes isoparametric elements in cylindrical (r, z) co-ordinates. The last
program P8 employs eight nodded three-dimensional brick elements.
The executables resulting from the finite element code written in FORTRAN 77 have been
“wrapped” in a graphical user interface (GUI) developed using Visual C# for ease of use.
The GUI requires at least Microsoft .Net (“dot” Net) framework 2.0 which can be
®
Windows GDI+ for drawing figures (more about drawing figures is discussed later on).
®
The software has been tested using 32 bit and 64 bit versions of Microsoft Windows XP.
® ®
It is recommended that the screen resolution be set to at least 1,024 × 768 pixels for
optimal visual experience.
All the programs are standard Microsoft Windows program. As such, it possesses the
® ®
standard controls including minimize, restore, and exit controls, as well as horizontal and
vertical scroll bars, if required. For each program data has to be entered in six separate
screens (frames). The screens are Control Information, Co-ordinates, Element Data,
Boundary Conditions and Nodal Displacement Data, Material Characteristic Data, and
Nodal and Distributed Load Data. All the screens will be explained in the section Executing
Programs. Note that all input (force, displacement, material properties, etc.) must use a
consistent set of units. Moreover, all inputs that are floating point quantities require the use
of a decimal point, and can, if desired, be entered in “E” format (e.g., 20,000.0 or 2.0E+04
or 2.0e+04). Each program has its own manual which can be viewed by Clicking the icon
503
Finite Element Method with Applications in Engineering
1. CONTROL INFORMATION
Note that the only buttons present at this time are the Control Information on the top left
region and the Load Sample Data, Browse Input and Exit buttons located on the bottom
right region of the screen. It can be seen that there are five entries, which are highlighted
yellow. The data in these are already filled in and they cannot be edited. All the programs
will have some of the entries highlighted. It is possible to load the sample data by
<Clicking> Load Sample Data button. Also it is possible to load previously stored input file
by <Clicking> Browse Input button. New data has to be typed in this screen. The input in
the Control Information screen dictates the number of rows and/or columns in the tables in
all subsequent screens. It is essential that in this as well as all other screens the entries
504
Finite Element Method with Applications in Engineering
including 0 (zero) be entered. Once the last entry is typed the Co-ordinates button, will
appear on the left side of the screen. <Clicking> the Co-ordinates button will open the
screen shown in Figure F.3
Figure F.1
2. CO-ORDINATES
Number of rows will be equal to the Number of Nodes and number of columns will be
equal Number of Dimensions specified in the Control Information. For programs P1, P3,
P4, P5, P6 and P7 there will be two columns and for P2 and P8 there will be three
columns. In programs P6 and P7 the co-ordinates are r and z. If there is large number of
nodes, then a vertical scroll bar will appear on the table to facilitate input of data.
505
Finite Element Method with Applications in Engineering
Figure F.2
506
Finite Element Method with Applications in Engineering
Figure F.3
Figure F.4
Note that it is possible to import coordinate data from a Microsoft Excel file. (Note that this
® ®
feature requires Microsoft Excel to be installed.) To import the coordinate data <Click>
® ®
the Import Co-ordinates from Excel button. It will open the window shown in Figure F.4.
Browse for the location and import the appropriate file. Typed coordinate data can also be
exported to excel for modification or reuse by <Clicking> the Save Co-ordinates to Excel
button. (Note that this feature also requires Microsoft Excel to be installed. Saving the
® ®
data to Microsoft Excel can be a time consuming process; do not interrupt the process
® ®
due to the risk of data loss from “crashing” the program.) It will open the window shown in
Figure F.4. Browse for the desired location and save the file with an appropriate file name.
As soon as the last entry is entered into the table the Element Data button will appear on
the screen. <Clicking> the Element Data button will open the screen shown in Figure F.5.
3. ELEMENT DATA
In addition to Material Set and No. of nodes per element columns, there will be number of
columns corresponding to Max Node per Elements specified in the Control Information.
For P1, P2 and P3 the Max Nodes per Elements are 2 and the pertinent column will be
highlighted. Similarly, for P4 there are 3 and for P8 there are 8. For programs P5, P6, and
P7 the Max Node per Elements can be from 3 to 9 and the pertinent column will not be
highlighted. If there is large number of elements and/or nodes in an element, then a
vertical and/or horizontal scroll bars will appear on the table to facilitate input of data.
Note that it is possible to import (export) the element data from (to) a Microsoft Excel file.
® ®
507
Finite Element Method with Applications in Engineering
with scale the 700 × 700 pixel screen in each direction. It will take
and multiply the x and y co-ordinates by Nmin. While selecting the selecting the Scale to
Panel option will scale the coordinates in x–direction by and in y–direction by . For
programs P6 and P7 r and z replace the role played by x and y. In programs P2 and P8
Figure F.5
Displays from both options are shown in Figure F.6 and F.7, respectively. The screen
contains two buttons, a Print button and Save button. To print the output, <Click> the Print
button. (Note that the output will be sent to the default Microsoft Windows printer.)
® ®
<Clicking> the Save button will open a window similar to the one shown in Figure F.4.
Browse for the desired location and save the JPG file with an appropriate file name.
508
Finite Element Method with Applications in Engineering
Figure F.6
Figure F.7
509
Finite Element Method with Applications in Engineering
Figure F.8
As soon as the last entry is entered in the table, the Boundary Conditions and Nodal
Displacement Data button will appear on the screen as seen. <Clicking> the Boundary
Conditions and Nodal Displacement Data button will open the screen shown in Figure
F.8.
510
Finite Element Method with Applications in Engineering
As soon as both the tables are filled Material Characteristic Data button will appear on
the screen. <Clicking> the Material Characteristic Data button will open the screen
shown in Figure F.9.
Figure F.9
511
Finite Element Method with Applications in Engineering
programs P3, P6 and P7) will have number of rows equal to the Number of Elements with
Distributed Load, and number of columns for P3 will be two and for P6 and P7 are three.
As soon as the last entry is filled in the table, the Execute button is enabled. Also enabled
at this time is the Save Input button. To store all the input data for later use or
modifications <Click> this button and the screen shown in Figure F.4 will be displayed;
browse for the desired location and save the .din file with an appropriate file name. The
program can be executed by <Clicking> the Execute button. When the execution is
finished, the Output and Result buttons will be enabled. <Click> the Output button to
view the output in a window that looks like Figure F.11.
Figure F.10
To view the complete output, scroll by using the scroll bar(s).
To print the output, <Click> the Print button. (Note that the output will be sent to the
default Microsoft Windows printer.) To save the output, <Click> the Save Output button
® ®
and the screen shown in Figure F.4 will be displayed; browse for the desired location and
save the file with an appropriate file name.
<Click> the Result button to view the results in a window that looks like Figure F.12.
To view the complete result, scroll by using the scroll bar(s).
To print the results, <Click> the Print button. (Note that the results will be sent to the
default Microsoft Windows printer.) To save the results, <Click> the Save Results button
® ®
and the screen shown in Figure F.4 will be displayed; browse for the desired location and
save the file with an appropriate file name.
512
Finite Element Method with Applications in Engineering
Figure F.11
513
Finite Element Method with Applications in Engineering
Figure F.12
514
Finite Element Method with Applications in Engineering
Appendix G
COMPUTER PROGRAMS FOR ONE-
DIMENSIONAL AND TWO-
DIMENSIONAL PROBLEMS
G.1 COMPUTER PROGRAM FOR THE FLOW NETWORK ANALYSIS
For the pipe network problem considered in Chapter 6, Section 6.11, a computer program
in one-dimensional has been developed using the Matlab package. The detailed program
listing is given below. The program is tested with the problem mentioned in Section 6.11.1.
The data file is embedded in the program listing.
%---------------------------Listing 1 Matlab Program-------------------------------------
% Program to analyse water distribution network
% written by B.V. Rao and modified by T.I. Eldho, C.E.Dept, I.I.T.,Bombay
% H - pressure heads in meters 1 × n
% pipe_length[1:m]
% Q Discharge in the pipe [1:m]
% A(n,n) global matrix
% n number of nodes
% m number of pipes
% C consumption array [1:n]
% f friction factor
% T transmittivity array [1:m] - (12.1*D^5/(f*L))^0.5
% HF headloss in pipes [1:m]
% R right hand side array [1:n]
% Conn_nodes(m,2) shows how the pipes are connected to nodes
% Valp(npv,2) values to be prescribed before solving global matrix
% npv numbers of nodes where the values are prescribed
% p(m) temporary array
% Dia(m) diameter of pipes
Q=[];HF=[];p=[];R=[];R1=[];
H=[2, 1.91, 1.92, 1.93, 1.94, 1.95];
pipe_length=[1,1,1,1,1,1,1.5,1.5,1.5];
Dia=[0.01,0.01,0.01,0.01,0.01,0.01,0.012,0.012,0.012];
515
Finite Element Method with Applications in Engineering
C=[125,-25,-25,-25,-25,-25]*1.0e-6/60;
Valp=[1,2];
Conn_nodes=[1 2;2 4;1 3;4 6;3 5;5 6;1 4;3 4;3 6];
m=9;n=6;npv=1;f=0.02; itmax=25;
A=[1:n;1:n];
for i=1:m
p(i)= sqrt(12.1*Dia(i)^5/pipe_length(i)/f);
end
it=0;s1=1.0;
% zeros(size(A));
while s1 > 1.0e-6 & it <= itmax
it=it+1;
for i=1:n
R(i)=C(i);
for j=1:n
A(i,j)=0.0;
end
end
for k=1:m
i=Conn_nodes(k,1);
j=Conn_nodes(k,2);
HF(k)=H(i)-H(j);
if abs(HF(k)) == 0, HF(k)=1.0;end
T=p(k)/sqrt(abs(HF(k)));
A(i,i)=A(i,i)+T;
A(j,j)=A(j,j)+T;
A(i,j)=A(i,j)-T;
A(j,i)=A(j,i)-T;
end
for i=1:npv
j=Valp(i,1);
c1=Valp(i,2);
for k=1:n
R(k)=R(k)-c1*A(j,k);A(k,j)=0.0;A(j,k)=0.0;
end
516
Finite Element Method with Applications in Engineering
A(j,j)=1.0;R(j)=c1;
end
R1=A\R';
% R1=inv(A)*R;
% error=norm(R1-H);
% H=R1;
% To find the error norm
s2=0.0;
for i=1:n
s3=R1(i)-H(i);
s2=s2+s3*s3;
H(i)=R1(i);
end
s1=sqrt(s2);
%fprintf(‘s1=_.5f it=%5.0f\n’,s1,it);
end
fprintf(‘s1=_.5f it=%5.0f\n’,s1,it);
% The following statements compute the discharge
for k=1:m
i=Conn_nodes(k,1);
j=Conn_nodes(k,2);
HF(k)=H(i)-H(j);
if HF(k) < 0,
Q(k)=-1000*p(k)*sqrt(abs(HF(k)));
else
Q(k)=1000*p(k)*sqrt((HF(k)));
end
end
disp(‘Print Pressure head values at different nodes in met.’);
for i=1:n
fprintf(‘%5.0f _.5f\n’,i,H(i));
end
disp(‘Discharge values in different pipes in lit/s’);
for i=1:m
fprintf(‘%5.0f _.5f\n’,i,Q(i));
517
Finite Element Method with Applications in Engineering
end
%--------------------program ends--------------------
518
Finite Element Method with Applications in Engineering
g1=1.0/resistance(k);
A(i,i)=A(i,i)+g1;
A(j,j)=A(j,j)+g1;
A(i,j)=A(i,j)-g1;
A(j,i)=A(j,i)-g1;
end
for i=1:npv
j= Valp(i,1);
c1=Valp(i,2);
for k=1:nnp
R(k)=R(k)-c1*A(k,j);
A(k,j)=0.0;
A(j,k)=0.0;
end
A(j,j)=1.0;
R(j)=c1;
end
Voltage=A\R';
% The following statements compute the currents
disp(‘ Print currents in elements and Voltages’);
disp(‘Element No. currents’);
for k=1:nel
i=Conn_nodes(k,1);
j=Conn_nodes(k,2);
v1=Voltage(i);v2=Voltage(j);
c=(v1-v2)/resistance(k);
current(k)=c;
fprintf(‘%3.0f_.5f\n’,k,c);
end
disp(‘Node No. Voltage’);
for i=1:nnp
v1=Voltage(i);
fprintf(‘%3.0f_.5f\n’,i,v1);
end
%---------------------------program ends--------------------------------
519
Finite Element Method with Applications in Engineering
520
Finite Element Method with Applications in Engineering
521
Finite Element Method with Applications in Engineering
Y1=Y(K1)
Y2=Y(K2)
Y3=Y(K3)
CK1=CK(K)
A1=X2*Y3-X3*Y2
A2=X3*Y1-X1*Y3
A3=X1*Y2-X2*Y1
B1=Y2-Y3
B2=Y3-Y1
B3=Y1-Y2
C1=X3-X2
C2=X1-X3
C3=X2-X1
DELT=(A1+A2+A3)
C------EVALUATION OF S-MATRIX IE. ELEMENT MATRIX------------------------------C
S(1,1)=CK1*(B1*B1+C1*C1)/(2.*DELT)
S(1,2)=CK1*(B1*B2+C1*C2)/(2.*DELT)
S(1,3)=CK1*(B1*B3+C1*C3)/(2.0*DELT)
C-------1ST ROW OVER--------------------------------------------C
S(2,1)=S(1,2)
S(2,2)=CK1*(B2*B2+C2*C2)/(2.*DELT)
S(2,3)=CK1*(B2*B3+C2*C3)/(2.*DELT)
C-------2ND ROW OVER------------------------------------------------------C
S(3,1)=S(1,3)
S(3,2)=S(2,3)
S(3,3)=CK1*(B3*B3+C3*C3)/(2.*DELT)
C-------3RD ROW OVER----------------------------------------------------C
DO 80 IM=1,NNODE
IR=NOD(K,IM)
DO 80 IN=1,NNODE
IC=NOD(K,IN)
A(IR,IC)=A(IR,IC)+S(IM,IN)
80 CONTINUE
500 CONTINUE
C*********************************************************************
522
Finite Element Method with Applications in Engineering
523
Finite Element Method with Applications in Engineering
8 A(J,K)=A(J,K)-A(I,K)*A(J,I)/A(I,I)
B(J)=B(J)-B(I)*A(J,I)/A(I,I)
10 CONTINUE
C COMPUTE THE LAST UNKNOWN
D(N)=B(N)/A(N,N)
C APPLY BACK-SUBSTITION TO COMPUTE THE REMAINING UNKNOWNS
DO 30 I=1,M
K=N-I
L=K+1
DO 20 J=L,N
20 B(K)=B(K)-D(J)*A(K,J)
D(K)=B(K)/A(K,K)
30 CONTINUE
DO 40 I=1,N
40 B(I)=D(I)
RETURN
END
C*********************************************************************
G.3.1 Example 1:
Here the input data and results of the Illustrative example problem given in Section 7.8.1
are described. For the problem considered, the potential variation in a homogeneous
isotropic porous media of length 100 m and width 30 m has been found. The Figures and
other details are given in Section 7.8.1.
Input Data:
524
Finite Element Method with Applications in Engineering
525
Finite Element Method with Applications in Engineering
Results:
NUMBER OF NODES : 20
NUMBER OF ELEMENTS : 24
NUMBER OF PRI., VAL: 8
NUMBER OF NODES/ELE: 3
POTENTIAL VARIATION AT NODES IN m.
1 100.00
2 100.00
3 100.00
4 100.00
5 150.00
6 150.00
7 150.00
8 150.00
9 200.00
10 200.00
11 200.00
12 200.00
13 250.00
14 250.00
15 250.00
16 250.00
17 300.00
18 300.00
19 300.00
20 300.00
G.3.2 Example 2:
Here the input data and results of the Illustrative example problem given in Section 7.8.2
are described. For the problem considered, the potential function variation beneath a
concrete dam on a homogeneous isotropic permeable foundation has been found. Figures
and other details are given in Section 7.8.2.
Input Data (for potential variation):
526
Finite Element Method with Applications in Engineering
527
Finite Element Method with Applications in Engineering
528
Finite Element Method with Applications in Engineering
Results:
NUMBER OF NODES : 39
NUMBER OF ELEMENTS : 44
NUMBER OF PRI., VAL: 4
NUMBER OF NODES/ELE: 3
POTENTIAL VARIATION AT NODES
1 9.39
2 9.44
3 9.56
4 9.75
5 10.00
6 9.22
7 9.28
8 9.41
9 9.65
10 10.00
11 8.59
12 8.82
13 8.83
14 9.13
15 9.16
16 8.92
529
Finite Element Method with Applications in Engineering
17 9.07
18 7.54
19 7.30
20 7.40
21 7.58
22 6.11
23 6.08
24 6.33
25 6.27
26 6.20
27 6.19
28 6.00
29 6.01
30 5.62
31 5.55
32 5.45
33 5.23
34 5.00
35 5.41
530
Finite Element Method with Applications in Engineering
36 5.36
37 5.28
38 5.13
39 5.00
Note: In a similar way, the input data for the stream function problem can be constructed
and solved the problem using the Computer Program Listing 7.1 and the results are
obtained.
Disclaimer
The programs contained here are intended for educational use. While every reasonable
effort has been made to ensure that the programs are accurate and error free, use of the
programs is at your own risk.
Nei-ther the authors nor publisher assume any responsibility for errors or omissions in
these materials.
These materials are provided “as is” without warranty of any kind, either express or
implied, including but not limited to, the implied warranties of merchantability or fitness for
a particular purpose.
The authors, publishers, and other parties involved in creating and delivering these
materials shall not be liable for any special, indirect, incidental, or consequential damages,
including without limitation, lost revenues or lost profits, or any other damages, which may
result from the use of these materials.
531
Finite Element Method with Applications in Engineering
ACKNOWLEDGEMENTS
Authors have gained immensely through the works of several researchers in the field of
FEM and are grateful to all of them. They have lectured FEM-based courses for over a
period of thirty years to under-graduate and post-graduate students at IIT Bombay in India
and at the University of Manitoba in Canada. In addition, they have given many FEM-
based Master's level and Ph.D. level projects. Also Drs Desai and Eldho have offered
FEM-based short-term courses several times to College Teachers and Engineers at IIT
Bombay, India. These activities have helped the authors to refine many ideas and
applications of FEM for teaching. The authors are thankful to all their students, teachers
and colleagues as well as participants of the FEM courses. Special thanks are extended to
all Master's and Ph.D. Scholars whose project-related works have been extensively
referred in the book by the authors. Specifically, the first two authors wish to express their
thanks to former and present students: Dr. G. S. Ramtekkar, M. Arpita, S. Sharique, Dr. S.
M. V. Sharief, M. Meenal and A. Kulkarni and their colleagues Professor Tarun Kant and
Professor E.P. Rao. They are thankful to IIT Bombay authorities and Quality Improvement
Programme (QIP) of IIT Bombay for the partial financial support received for writing this
book.
Dr. Desai acknowledges the help and support received from his former colleagues Dr. R.
Paskaramoorthy and Dr. W. M. Karunasena during initial draft version of the book and
development of simplified finite element analysis program (sfeap). Dr. Eldho wishes to
express his sincere gratitude to the late Professor B. Vasudeva Rao, Department of Civil
Engineering, IIT Bombay, with whom he had a long-term association as a student and
later as a colleague. Some of the text materials presented in this book (especially some
parts of chapters 2, 4 and 5 and MATLAB programs) have been developed by him in
collaboration with Professor Rao. Dr. Shah would like to acknowledge his former graduate
students for making this book a reality, his colleague Dr. J. Frye for assistance with
figures, his current doctoral student Professor D. Stoyko for his help with the manual, and
computer programmers for development of the Graphical User Interface for sfeap.
A book project like this could not have been completed without the full support and
cooperation of the author's family members. Authors are especially grateful to their family
members (Dr. Desai to his wife Nilima and daughter Adveta; Dr. Eldho to his wife and
sons: Dr. Manjush, Iype and Basil; Dr. Shah to his wife Ranjan and daughters: Ketki and
Seema) for their patience and understanding while enduring the “book syndrome”.
Authors wish to express sincere gratitude to the editorial team of Pearson Education,
especially, Thomas Rajesh Mathew, Anita Yadav, Ruchi Sachdev and Gauravjeet Singh.
Finally, the authors wish to thank all those who helped directly or indirectly and made this
book possible.
532