Beruflich Dokumente
Kultur Dokumente
Using ANSYS
the greater your ANSYS, have become common tools in the hands of students as well as
practicing engineers. The objective of this book is to demonstrate the
discount!
use of one of the most commonly used Finite Element Analysis software,
THE CONTENT
• Manufacturing
ANSYS, for linear static, dynamic, and thermal analysis through a series
of tutorials and examples. Some of the topics covered in these tutorials
include development of beam, frames, and Grid Equations; 2-D elastic-
for Finite
Engineering
• Mechanical
ity problems; dynamic analysis; composites, and heat transfer problems.
Element
Analysis
These simple, yet, fundamental tutorials are expected to assist the users
Engineering with the better understanding of finite element modeling, how to control
• Materials Science modeling errors, and the use of the FEM in designing complex load
& Engineering bearing components and structures. These tutorials would supplement
• Civil & a course in basic finite element or can be used by practicing engineers
Environmental who may not have the advanced training in finite element analysis. Dynamic, Probabilistic
Engineering
• Advanced Energy Wael A. Altabey is an assistant professor in the department of Design and Heat
Technologies mechanical engineering, faculty of engineering, Alexandria University,
Alexandria, Egypt and has been a postdoctoral researcher at the Transfer Analysis
THE TERMS International Institute for Urban Systems Engineering, Southeast
• Perpetual access for University, Nanjing, China.
a one time fee
Mohammad Noori is a professor of mechanical engineering at California
Volume II
• No subscriptions or
Polytechnic State University in San Luis Obispo, California, USA, and a
access fees
fellow of the American Society of Mechanical Engineers. Dr Noori has
• Unlimited
over 34 years of experience as a scholar and educator. He has also been
concurrent usage
a distinguished visiting professor at the International Institute for Urban
• Downloadable PDFs
• Free MARC records
Systems Engineering, Southeast University, Nanjing, China. Wael A. Altabey
For further information,
Libin Wang is a professor and the dean of the school of civil engineer- Mohammad Noori
Libin Wang
ing at Nanjing Forestry University, in Nanjing, China. He has been an
a free trial, or to order,
contact: educator and scholar, for over 20 years, and has taught the subject of
sales@momentumpress.net finite element analysis both at the undergraduate and graduate level.
ISBN: 978-1-94708-322-6
Using ANSYS for
Finite Element
Analysis
Using ANSYS for
Finite Element
Analysis
Dynamic, Probabilistic Design and
Heat Transfer Analysis
Volume II
10 9 8 7 6 5 4 3 2 1
Keywords
List of Figures ix
Preface xi
1 Dynamic Analysis 1
1.1 Tutorial 1: Harmonic Analysis of Structure 1
1.2 Tutorial 2: Modal Analysis of Structure 11
2 Composite Materials 19
2.1 Composites—A Basic Introduction 19
2.2 Modeling Composites Using ANSYS 26
2.3 Tutorial 3: Simply Supported Laminated Plate
Under Pressure 38
3 Probabilistic Design Analysis 69
3.1 Probabilistic Design 69
3.2 Probability Distributions 75
3.3 Choosing a Distribution for a Random Variable 91
3.4 Probabilistic Design Techniques 96
3.5 Postprocessing Probabilistic Analysis Results 98
3.6 Tutorial 4: Probabilistic Design Analysis of Circular
Plate Bending 107
4 APDL Programming 145
4.1 Create the Analysis File 145
4.2 Tutorial 5: Stress Analysis of Bicycle Wrench 148
4.3 Tutorial 6: Heat Loss from a Cylindrical Cooling Fin 155
viii • Contents
• Dynamic Analysis
• Composite Materials
• Probabilistic Design
• Heat Transfer
• Design Optimization Problems.
Dynamic Analysis
0.01 m
0.01 m
1.0 m
Cyclic load
Magnitude: 100 N
Frequency range: 1–100 Hz.
3. Apply constraints
Select Solution > Define Loads > Apply >
Structural > Displacement > On Nodes
The following window will appear once you select the node
at x=0 (Note small changes in the window compared to the static
examples):
We want to observe the response at x=1 (where the load was applied)
as a function of frequency. We cannot do this with General PostProcess-
ing (POST 1); rather we must use TimeHist Post-Processing (POST26).
POST26 is used to observe certain variables as a function of either time
or frequency.
Select Add (the green “+” sign in the upper left corner) from this
window and the following window should appear:
8 • Using ANSYS for Finite Element Analysis
This is the response at node 2 for the cyclic load applied at this
node from 0–100 Hz.
Dynamic Analysis • 11
0.01 m
0.01 m
1.0 m
1. Apply constraints
Solution > Define Loads > Apply > Structural >
Displacement > On Keypoints Fix Keypoint 1
(i.e., all DOFs constrained).
2. Solve the system
Solution > Solve > Current LS
SOLVE
This method employs the use of MDOFs. These are DOFs that govern
the dynamic characteristics of a structure. For example, the MDOFs for
the bending modes of cantilever beam are:
Master degrees of freedom (MDOFs)
Note: For this example both the number of modes and frequency range
was specified. ANSYS then extracts the minimum number of modes
between the two.
Select Solution > Master DOF > User Selected > Define
When prompted, select all nodes except the left-most node (fixed).
Dynamic Analysis • 17
As you can see, the error does not change significantly. However,
for more complex structures, larger errors would be expected using the
reduced method.
Chapter 2
Composite Materials
Composite materials have been used in structures for a long time. In recent
times, composite parts have been used extensively in aircraft structures,
automobiles, sporting goods, and many consumer products. Composite
materials are those containing more than one bonded material, each with
different structural properties. The main advantage of composite materials
is the potential for a high ratio of stiffness to weight. Composites used for
typical engineering applications are advanced fiber or laminated compos-
ites, such as fiberglass, glass epoxy, graphite epoxy, and boron epoxy. To
fully appreciate the role and application of composite materials to a struc-
ture, an understanding is required of the component materials themselves
and of the ways in which they can be processed; this article therefore looks
at basic composite theory and properties of materials used.
In its most basic form a composite material is one that is composed of at
least two elements working together to produce material properties that are
different to the properties of those elements on their own. In practice, most
composites consist of a bulk material (the “matrix”), and a reinforcement
of some kind, added primarily to increase the strength and stiffness of the
matrix. This reinforcement is usually in fiber form. Today, the most com-
mon man-made composites can be divided into three main groups:
Resin systems such as epoxies and polyesters have limited use for the
manufacture of structures on their own, since their mechanical properties
are not very high when compared to, for example, most metals. How-
ever, they have desirable properties, most notably their ability to be easily
formed into complex shapes. Materials such as glass, aramid, and boron
have extremely high tensile and compressive strength but in “solid form”
these properties are not readily apparent. This is due to the fact that when
stressed, random surface flaws will cause each material to crack and fail
well below its theoretical “breaking point.” To overcome this problem,
the material is produced in fiber form, so that, although the same num-
ber of random flaws will occur, they will be restricted to a small number
of fibers with the remainder exhibiting the material’s theoretical strength.
Therefore a bundle of fibers will reflect more accurately the optimum per-
formance of the material. However, fibers alone can only exhibit tensile
properties along the fiber’s length, in the same way as fibers in a rope.
It is when the resin systems are combined with reinforcing fibers such
as glass, carbon, and aramid that exceptional properties can be obtained.
The resin matrix spreads the load applied to the composite between each
of the individual fibers and also protects the fibers from damage caused by
abrasion and impact. High strengths and stiffnesses, ease of molding com-
plex shapes, high environmental resistance all coupled with low densities,
make the resultant composite superior to metals for many applications.
Since PMCs combine a resin system and reinforcing fibers, the properties
of the resulting composite material will combine something of the proper-
ties of the resin on its own with that of the fibers on their own, as surmised
in Figure 2.1.
Overall, the properties of the composite are determined by:
Fiber
Tensile stress
FRP composite
Resin
Strain
Figure 2.1. Illustrating the combined effect on
modulus of the addition of fibers to a resin matrix.
The ratio of the fiber to resin derives largely from the manufacturing
process used to combine resin with fiber. However, it is also influenced by
the type of resin system used, and the form in which the fibers are incor-
porated. In general, since the mechanical properties of fibers are much
higher than those of resins, the higher the fiber volume fraction the higher
will be the mechanical properties of the resultant composite. In practice
there are limits to this, since the fibers need to be fully coated in resin to
be effective, and there will be an optimum packing of the generally cir-
cular cross-section fibers. In addition, the manufacturing process used to
combine fiber with resin leads to varying amounts of imperfections and
air inclusions. Typically, with a common hand lay-up process as widely
used in the boat-building industry, a limit for FVF is approximately 30–40
percent. With the higher quality, more sophisticated and precise processes
used in the aerospace industry, FVFs approaching 70 percent can be suc-
cessfully obtained.
The geometry of the fibers in a composite is also important since fibers
have their highest mechanical properties along their lengths, rather than
across their widths. This leads to the highly anisotropic properties of com-
posites, where, unlike metals, the mechanical properties of the compos-
ite are likely to be very different when tested in different directions. This
means that it is very important when considering the use of composites to
understand at the design stage, both the magnitude and the direction of the
applied loads. When correctly accounted for, these anisotropic properties
can be very advantageous since it is only necessary to put material where
loads will be applied, and thus redundant material is avoided.
It is also important to note that with metals the material supplier
largely determines the properties of the materials, and the person who
22 • Using ANSYS for Finite Element Analysis
2.1.1.1 Loading
There are four main direct loads that any material in a structure has to
withstand: tension, compression, shear, and flexure.
2,800
2,400
2,000
Tensile modulus (MPa)
1,600
1,200
800
400
0
Aramid composites
Woods
Al.Alloys
Titanium
Steels
E-Glass composites
S-Glass composites
HS carbon composites
IM carbon composites
0
30
60
90
120
150
180
210
0
200
400
600
800
1,000
1,200
1,400
1,600
1,800
2,000
Woods Woods
Al.Alloys Al.Alloys
Titanium Titanium
Steels Steels
HS carbon composites Figure 2.7. Tensile modulus of common structural materials. HS carbon composites
IM carbon composites
120
110
100
90
Specific tensile modulus
80
70
60
50
40
30
20
10
0
Aramid composites
Al.Alloys
Titanium
Steels
E-Glass composites
S-Glass composites
HS carbon composites
IM carbon composites
Woods
Layer 2
4
3 4 is dropped
2 3
1 1
You may also write your own subroutines to define the element and
layer coordinate systems (USERAN and USANLY); see the Guide to
ANSYS User Programmable Features for details.
Layer thickness—If the layer thickness is constant, you only need
to specify TK(I), the thickness at node I. Otherwise, the thicknesses at the
four corner nodes must be input. Dropped layers may be represented with
zero thickness.
Number of integration points per layer—This allows you to deter-
mine in how much detail the program should compute the results. For very
thin layers, when used with many other layers, one point would be appropri-
ate. But for laminates with few layers, more would be needed. The default
is three points. This feature applies only to sections defined through the sec-
tion commands. Currently, the graphical user interface (GUI) only allows
layer real constant input of up to 100 layers. If more layers are needed for
SHELL99 or SOLID46, the R and RMORE commands must be used.
Sandwich structures have two thin faceplates and a thick, but relatively
weak, core. Figure 2.11 illustrates sandwich construction.
32 • Using ANSYS for Finite Element Analysis
Faceplate
Ply 3
Ply 2
Ply 1
Failure criteria are used to learn if a layer has failed due to the applied loads.
You can choose from three predefined failure criteria or specify up to six fail-
ure criteria of your own (user-written criteria). The three predefined criteria
are:
• The criteria are orthotropic, so you must input the failure stress or
failure strain values for all directions. (The exception is that com-
pressive values default to tensile values.)
Composite Materials • 35
2.2.4 A
dditional Modeling and Postprocessing
Guidelines
Layer# Material#
1
1
Theta
2
2
45 2
3
–45
4 1
–45
45
Y Z
Po
uz = 0; ux = 0;
0° t
90° t
h X
90°
0°
a X
uz = 0;
uy = 0
uz = 0;
uy = 0
uz = 0; ux = 0
a
Geometric
properties Material properties Loading
Ex = 25 × 106 N/m2
a = 10 m Ey = 1 × 106 N/m2
h = 0.1 m υxy = 0.25 (Major Poisson’s ratio) po = 1.0 N/m2
t = 0.025 m Gxy = G = 0.5 × 106 N/m2
Gyz = 0.2 × 106 N/m2
1. Set preferences.
2. Define element types and options.
3. Define real constants.
4. Define material properties.
5. Build geometry.
6. Generate mesh.
7. Verification of data.
8. Apply displacement constraints.
40 • Using ANSYS for Finite Element Analysis
UZ = 0; UX = 0
Symmetric boundary
condition (ux=0)
a X
UZ = 0;
UY = 0
UZ = 0; Symmetric boundary
condition (uy=0)
UY = 0
UZ = 0; UX = 0
1. Set preferences
In preparation for defining materials, you will set preferences so
that only materials and elements that pertain to a structural analysis
are available for you to choose. To set preferences:
Composite Materials • 41
250 layers. If more than 250 layers are required, a user-input con-
stitutive matrix is available.
Main Menu> Preprocessor Element Type> Add/Edit/Delete
To find out more information about PLANE82, you will use the
ANSYS Help System in this step by clicking on a Help button from
within a dialog box.
Main Menu> Preprocessor> Real Constants>
Add/Edit/Delete
Enter material number, angle, and thickness for each layer. Because
of symmetry (0/90/90/0), enter data only for the first two layers.
Layer 1: 1, 0, 0.025
Layer 2: 1, 90, 0.025
OK to define the real constant and close the dialog box.
Close the real constant dialog box.
Composite Materials • 47
to that origin. The location of the origin is arbitrary. Here, use the
center of the plate. ANSYS does not need to know where the origin
is. Simply begin by defining a rectangle relative to that location. In
ANSYS, this origin is called the global origin.
6. Generate mesh
One nice feature of the ANSYS program is that you can automat-
ically mesh the model without specifying any mesh size controls.
This is using what is called a default mesh. If you’re not sure how
to determine the mesh density, let ANSYS try it first. Instead you
will specify a global element size to control overall mesh density.
Main Menu> Preprocessor> Meshing> Mesh Tool
50 • Using ANSYS for Finite Element Analysis
Type in 0.5.
OK
Composite Materials • 51
7. Verification of data
Since a large amount of input data is required for composites, you
should verify the data before proceeding with the solution. Several
commands are available for this purpose. Some of them are demon-
strated as follows:
EPLOT (Utility Menu> Plot> Elements) displays all
selected elements. Using the /ESHAPE,1 command (Utility
Menu> PlotCtrls> Style> Size and Shape) before EPLOT causes
shell elements to be displayed as solids with the layer thicknesses
obtained from real constants or section definition.
Utility Menu> PlotCtrls>Style>Size and Shape
Composite Materials • 53
Zoom in to clearly see the four layers along the thickness direction.
Pick the zoom tablet.
Select the region Enlarged view of the corner showing layers.
and color coded for clarity. The hatch lines indicate the layer
angle (real constant THETA) and the color indicates layer material
number (MAT). You can specify a range of layer numbers for the
display.
Utility Menu> Plot> Layered Elements
The beginning of the solution phase. A new, static analysis is the default,
so you will not need to specify analysis type for this problem. Also, there
are no analysis options for this problem.
Utility Menu > Plotctrls > Numbering
Select LINE numbers
Composite Materials • 57
Click on UX.
Enter 0 for zero displacement.
APPLY to apply constraints and return to dialog box.
1. Toolbar: Quit.
2. Choose Quit—No Save!
3. OK.
Probabilistic Design
Analysis
3.1.1 T
raditional (Deterministic) VERSUS
Probabilistic Design Analysis Methods
σtherm = E α ΔT
demand safety factors in certain procedural codes. If you are not faced with
such restrictions or demands, then using conservative assumptions and
safety factors can lead to inefficient and costly overdesign. You can avoid
overdesign by using probabilistic methods while still ensuring the safety of
the component. Probabilistic methods even enable you to quantify the safety
of the component by providing a probability that the component will survive
operating conditions. Quantifying a goal is the necessary first step toward
achieving it. Probabilistic methods can tell you how to achieve your goal.
Use probabilistic design when issues of reliability and quality are para-
mount. Reliability is usually always a concern because product or com-
ponent failures have significant financial consequences (costs of repair,
replacement, warranty, or penalties); worse, a failure can result in injury
or loss of life. Although perfection is neither physically possible nor
financially feasible, probabilistic design helps you to design safe and reli-
able products while avoiding costly overdesign and conserve manufac-
turing resources (machining accuracy, efforts in quality control, and so
on). Quality is the perception by a customer that the product performs as
expected or better. In a quality product, the customer rarely receives unex-
pected and unpleasant events where the product or one of its components
fails to perform as expected. By nature, those rare “failure” events are
driven by uncertainties in the design. Here, probabilistic design methods
help you to assess how often “failure” events may happen. In turn, you can
improve the design for those cases where the “failure” event rate is above
your customers’ tolerance limit.
(Continued )
PDS term Description
Mathematically, the mean value is the arithmetic aver-
age of the data. The mean value also represents the
center of gravity of the data points. Another name for
the mean value is the expected value.
The statistical point where 50% of the data is below the
median value and the 50% is above.
Median For symmetrical distribution functions (Gaussian, uni-
value form, etc.) the median value and the mean value are
identical, while for nonsymmetrical distributions they
are different.
A measure of variability (dispersion or spread) about
the arithmetic mean value, often used to describe the
width of the scatter of a random output parameter or
Standard
of a statistical distribution function.
deviation
The larger the standard deviation, the wider the scatter
and the more likely it is that there are data values
further apart from the mean value.
3.1.4 S
teps for Probabilistic Design Analysis using
ANSYS
The usual process for probabilistic design consists of the following gen-
eral steps:
1. Create an analysis file for use during looping. The file should
represent a complete analysis sequence and must do the following:
• Build the model parametrically (PREP7).
• Obtain the solution(s) (SOLUTION).
• Retrieve and assign to parameters the quantities that will be
used as RVs and RPs (POST1/POST26).
2. Establish parameters in the ANSYS database, which corre-
spond to those used in the analysis file. This step is typical, but not
required (Begin or PDS); however, if you skip this step, then the
parameter names are not available for selection in interactive mode.
3. Enter PDS and specify the analysis file (PDS).
4. Declare random input variables (PDS).
5. Visualize random input variables (PDS). Optional.
6. Specify any correlations between the RVs (PDS).
7. Specify random output parameters (PDS).
Probabilistic Design Analysis • 75
b
p [ a ≤ x ≤ b ] = ∫ f ( x ) dx
a
∞
∫−∞ f ( x) dx = 1
b
∫a f ( x) dx = pr [a ≤ X ≤ b]
For a discrete distribution, the pdf is the probability that the variate
takes the value x.
f ( x ) = Pr [ X = x ]
F ( x ) = Pr [ X ≤ x ] = ∞
x
F ( x ) = ∑ f (i )
i=0
0.4
0.35
0.3
0.25
Probability
0.2
0.15
0.1
0.05
0
-5 -4 -3 -2 -1 0 1 2 3 4 5
X
0.5
1
Probability
0.5
0.5
0
-4 -3 -2 -1 0 1 2 3 4
X
0.35
0.3
0.25
Probability
0.2
0.15
0.1
0.05
0
-5 -4 -3 -2 -1 0 1 2 3 4 5
X
Normal distribution
1.8
1.6
1.4
Probability
1.2
0.8
0.6
0.4
0.2
0
0 1 2 3 4 5 6 7 8 9 10
X
Uniform distribution
Probabilistic Design Analysis • 79
0.5
0.45
0.4
0.35
Probability
0.3
0.25
0.2
0.15
0.1
0.05
0
0 1 2 3 4 5 6 7 8 9 10
X
Exponential distribution
1.4
1.2
1
Probability
0.8
0.6
0.4
0.2
0
0 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
X
Weibull distribution
0.7
0.6
0.5
Probability
0.4
0.3
0.2
0.1
0
0 1 2 3 4 5 6 7 8 9 10
x
Lognormal distribution
80 • Using ANSYS for Finite Element Analysis
0.7
0.6
0.5
Probability
0.4
0.3
0.2
0.1
0
0 1 2 3 4 5 6 7 8
x
Fatigue life distribution
0.4
0.2
0
Probability
0.6
0.4
0.2
0
700 800 900 1000 1100 1200 1300
X
Gamma distribution
0.2
0.18
0.16
0.14
Probability
0.12
0.1
0.08
0.06
0.04
0.02
0
–15 –10 –5 0 5 10 15
x
Double exponential distribution
Probabilistic Design Analysis • 81
0.4
0.35
0.3
0.25
Probability
0.2
0.15
0.1
0.05
0
-6 -4 -2 0 2 4 6
X
Power normal distribution
0.7
0.6
0.5
Probability
0.4
0.3
0.2
0.1
0
0 2 4 6 8 10 12
x
Power lognormal distribution
The general formula for the probability density function of the normal
distribution is:
( )
e −( x − m) / 2s 2
2
f ( x) =
s 2p
e− x / 2
2
f ( x) =
2p
The formula for the cdf of the normal distribution does not exist in a s imple
closed formula. It is computed numerically. Figure 3.3 shows the normal cdf.
The location and scale parameters of the normal distribution can be esti-
mated with the sample mean and sample standard deviation, respectively.
3.2.2.5 Comments
• Many classical statistical tests are based on the assumption that the
data follow a normal distribution. This assumption should be tested
before applying these tests.
• In modeling applications, such as linear and nonlinear regression,
the error term is often assumed to follow a normal distribution with
fixed location and scale.
• The normal distribution is used to find significance levels in many
hypothesis tests and confidence intervals.
The general formula for the probability density function of the uniform
distribution is:
1
f ( x) = � for
� A≤ x≤ B
B− A
f ( x ) = 1 for 0 ≤ x ≤ 1
1.8
1.6
1.4
Probability
1.2
0.8
0.6
0.4
0.2
0
0 1 2 3 4 5 6 7 8 9 10
X
F ( x ) = x for 0 ≤ x ≤ 1
0.9
0.8
0.7
Probability
0.6
0.5
0.4
0.3
0.2
0.1
0
0 1 2 3 4 5 6 7 8 9 10
X
Mean ( A + B) / 2
Median ( A + B) / 2
Mode B−A
Range ( B − A )2
12
B− A
Standard Deviation
3 ( B + A)
Coefficient of Variation s/m
Skewness 0
Kurtosis 9/5
Probabilistic Design Analysis • 85
A = x − 3S
B = x + 3S
3.2.3.5 Comments
( ) / 2s 2
− ln (( x − q ) / m )
( )
2
e
f ( x) = � x ≥ q; m, s > 0
( x − q) s 2p
86 • Using ANSYS for Finite Element Analysis
e ( ) / 2s 2
− ln( x)
( ) � x ≥ 0, s > 0
2
f ( x) =
x s 2p
0.6
Probability
Probability
0.5 0.4
0.2
0 0
0 2 4 6 8 10 0 2 4 6 8 10
x x
lognormal PDF (σ = 2) lognormal PDF (σ = 5)
1.5 3
Probability
Probability
1 2
0.5 1
0 0
0 2 4 6 8 10 0 2 4 6 8 10
x x
Figure 3.6. The lognormal probability density function for four values of s.
ln ( x )
F ( x) = Φ � x ≥ 0, s > 0
s
Probability
Probability
0.5 0.5
0 0
0 2 4 6 8 10 0 2 4 6 8 10
x x
lognormal PDF (σ = 2) lognormal PDF (σ = 5)
1 0.8
0.6
Probability
Probability
0.5 0.4
0.2
0 0
0 2 4 6 8 10 0 2 4 6 8 10
x x
Figure 3.7. The lognormal cumulative distribution function for four values of s.
Mean e0.5s
2
( 2
)
Coefficient of Variation
( e + 2) e − 1
s2 s2
Skewness
(e ) + 2 (e ) + 3 (e ) − 3
4 3 2
s2 s2 s2
Kurtosis
es − 1
2
∑ i =1( ln ( X i ) − m )
N ∧ 2
∧
s =
N
88 • Using ANSYS for Finite Element Analysis
Where:
N�
∧
m=
∑ i =1 lnX i
N
3.2.4.3 Comments
The formula for the pdf of the general Weibull distribution is:
(g −1)
f ( x) =
g x − m
a a
( g
)
exp − (( x − m) / a ) x ≥ m; g, a > 0
Probabilistic Design Analysis • 89
f ( x) = g ( x)
(g −1)
( )
exp − xg x ≥ 0; g > 0
0.6
Probability
Probability
0.5 0.4
0.2
0 0
0 1 2 3 4 5 0 1 2 3 4 5
x x
Weibull PDF (g = 2) Weibull PDF (g = 5)
0.8 1
0.6
Probability
Probability
0.4 0.5
0.2
0 0
0 1 2 3 4 5 0 1 2 3 4 5
x x
Figure 3.8. The Weibull probability density function for four values of g.
F ( x) = 1 − e
( ) x ≥ 0; g > 0
− xg
Figure 3.9 shows the Weibull cdf with the same values of as the pdf
plots above.
90 • Using ANSYS for Finite Element Analysis
0.6
Probability
Probability
0.4 0.5
0.2
0 0
0 1 2 3 4 5 0 1 2 3 4 5
x x
Weibull CDF (g = 2) Weibull CDF (g = 5)
1 1
Probability
Probability
0.5 0.5
0 0
0 1 2 3 4 5 0 1 2 3 4 5
x x
Figure 3.9. The Weibull cumulative distribution function for four values of g.
g + 1
Γ ,
g
Mean ∞
Γ ( a ) = ∫t a −1e − t dt
a
where Γ is the gamma function
ln ( 2)
1
Median g
1
1 g
1 − g �g > 1
Mode
0 g ≤1
Range Zero to positive infinity.
2
g + 2 g + 1
Standard Deviation Γ − Γ
g g
g + 2
Γ
g
Coefficient of Variation 2
−1
g + 1
Γ g
Probabilistic Design Analysis • 91
3.2.5.4 Comments
The type and source of the data you have determines which distribution
functions can be used or are best suited to your needs.
If you have measured data then you first have to know how reliable that
data is. Data scatter is not just an inherent physical effect, but also includes
inaccuracy in the measurement itself. You must consider that the person
taking the measurement might have applied a “tuning” to the data. For
example, if the data measured represents a load, the person measuring the
load may have rounded the measurement values; this means that the data
you receive are not truly the measured values. Depending on the amount
of this “tuning,” this could provide a deterministic bias in the data that
you need to address separately. If possible, you should discuss any bias
that might have been built into the data with the person who provided that
data to you.
If you are confident about the quality of the data, then how to proceed
depends on how much data you have. In a single production field, the amount
of data is typically sparse. If you have only few data then it is reasonable to
use it only to evaluate a rough figure for the mean value and the standard
deviation. In these cases, you could model the random input variable as a
Gaussian distribution if the physical effect you model has no lower and upper
limit, or use the data and estimate the minimum and maximum limit for a
uniform distribution. In a mass production field, you probably have a lot of
data, in which case you could use a commercial statistical package that will
allow you to actually fit a statistical distribution function that best describes
the scatter of the data.
92 • Using ANSYS for Finite Element Analysis
3.3.2 M
ean Values, Standard Deviation, Exceedence
Values
The mean value and the standard deviation are most commonly used to
describe the scatter of data. Frequently, information about a physical quan-
tity is given in the form that its value is; for example, “100±5.5.” Often, but
not always, this form means that the value “100” is the mean value and “5.5”
is the standard deviation. To specify data in this form implies a Gaussian
distribution, but you must verify this (a mean value and standard deviation
can be provided for any collection of data regardless of the true distribution
type). If you have more information (e.g., you know that the data must be
lognormal distributed), then the PDS allows you to use the mean value and
standard deviation for a definition of a lognormal distribution.
Sometimes the scatter of data is also specified by a mean value and an
exceedence confidence limit. The yield strength of a material is sometimes given
in this way; for example, a 99 percent exceedence limit based on a 95 percent
confidence level is provided. This means that derived from the measured data
we can be sure by 95 percent that in 99 percent of all cases the property values
will exceed the specified limit and only in 1 percent of all cases they will drop
below the specified limit. The supplier of this information is using mean value,
the standard deviation, and the number of samples of the measured data to derive
this kind of information. If the scatter of the data is provided in this way, the best
way to pursue this further is to ask for more details from the data supplier. Since
the given exceedence limit is based on the measured data and its statistical assess-
ment, the supplier might be able to provide you with the details that were used.
If the data supplier does not give you any further information, then you
could consider assuming that the number of measured samples was large.
If the given exceedence limit is denoted with and the given mean value is
denoted with then the standard deviation can be derived from the equation:
X1− a / 2 − X m
s=
C
Exceedence Probability C
99.5% 2.5758
99.0% 2.3263
97.5% 1.9600
95.0% 1.6449
90.0% 1.2816
Probabilistic Design Analysis • 93
3.3.3 No Data
• If you are designing a prototype, you could assume that the actual
dimensions of the manufactured parts would be somewhere within
the manufacturing tolerances. In this case it is reasonable to use a
uniform distribution, where the tolerance bounds provide the lower
and upper limits of the distribution function.
• Sometimes the manufacturing process generates a skewed distri-
bution; for example, one half of the tolerance band is more likely
to be hit than the other half. This is often the case if missing half
of the tolerance band means that rework is necessary, while falling
outside the tolerance band on the other side would lead to the part
being scrapped. In this case a Beta distribution is more appropriate.
• Often a Gaussian distribution is used. The fact that the normal distribu-
tion has no bounds (it spans minus infinity to infinity) is theoretically
a severe violation of the fact that geometrical extensions are described
by finite positive numbers only. However, in practice this is irrelevant
if the standard deviation is very small compared to the value of the
geometric extension, as is typically true for geometric tolerances.
±5 percent around the measured mean value; then let’s assume that
for the material type you are using, you only know its mean value.
In this case, you could consider using a Gaussian distribution with
a standard deviation of ±5 percent around the given mean value.
• For temperature-dependent materials it is prudent to describe the
randomness by separating the temperature dependency from the
scatter effect. In this case, you need the mean values of your mate-
rial property as a function of temperature in the same way that you
need this information to perform a deterministic analysis. If M(T)
denotes an arbitrary temperature-dependent material property then
the following approaches are commonly used:
Multiplication equation:
M (T )rand = Crand M (T )
Additive equation:
M (T )rand = M (T ) + ∆M rand
Linear equation:
• For loads, you usually only have a nominal or average value. You
could ask the person who provided the nominal value the following
Probabilistic Design Analysis • 95
The Monte Carlo Simulation method is the most common and traditional
method for a probabilistic analysis. This method lets you simulate how
virtual components behave the way they are built. One simulation loop
represents one manufactured component that is subjected to a particular
set of loads and boundary conditions. For Monte Carlo simulations, you
can employ either the Direct Sampling method or the Latin Hypercube
Sampling method.
When you manufacture a component, you can measure its geometry
and all of its material properties (although typically, the latter is not done
because this can destroy the component). In the same sense, if you started
operating the component then you could measure the loads it is subjected
to. Again, to actually measure the loads is very often impractical. But the
bottom line is that once you have a component in your hand and start
using it, then all the input parameters have very specific values that you
could actually measure. With the next component you manufacture you
can do the same; if you compared the parameters of that part with the pre-
vious part, you would find that they vary slightly. This comparison of one
component to the next illustrates the scatter of the input parameters. The
Monte Carlo Simulation techniques mimic this process. With this method
you “virtually” manufacture and operate components or parts one after
the other.
The advantages of the Monte Carlo Simulation method are:
Direct Monte Carlo Sampling is the most common and traditional form of
a Monte Carlo analysis. It is popular because it mimics natural processes
that everybody can observe or imagine and is therefore easy to understand.
For this method, you simulate how your components behave based on the
way they are built. One simulation loop represents one component that is
subjected to a particular set of loads and boundary conditions. The Direct
Monte Carlo Sampling technique is not the most efficient technique, but it is
still widely used and accepted, especially for benchmarking and validating
probabilistic results. However, benchmarking and validating requires many
simulation loops, which is not always feasible. This sampling method is
also inefficient due to the fact that the sampling process has no “memory.”
For example, if we have two RVs X1 and X2 both having a uniform
distribution ranging from 0.0 to 1.0, and we generate 15 samples, we could
get a cluster of two (or even more) sampling points that occur close to
each other if we graphed the two variables (as shown in Figure 3.10).
While in the space of all RVs, it can happen that one sample has input
values close to another sample, this does not provide new information and
1
X2
0
0 X1 1
1
X2
0
0 X1 1
Figure 3.11. The graph of X1 and X2 illustrating
good sample distribution.
3.5 Postprocessing Probabilistic
Analysis Results
3.5.1.2 Histogram
The cdf is a primary review tool if you want to assess the reliability or the
failure probability of your component or product. Reliability is defined as
the probability that no failure occurs.
Hence, in a mathematical sense reliability and failure probability are
two sides of the same coin and numerically they complement each other
(are additive to 1.0). The cdf value at any given point expresses the prob-
ability that the respective parameter value will remain below that point.
Figure 3.12 shows the cdf of the random property X:
The value of the cdf at the location x0 is the probability that the values
of X stay below x0. Whether this probability represents the failure proba-
bility or the reliability of your component depends on how you define fail-
ure; for example, if you design a component such that a certain deflection
should not exceed a certain admissible limit then a failure event occurs if
the critical deflection exceeds this limit. Thus for this example, the cdf is
interpreted as the reliability curve of the component. On the other hand,
if you design a component such that the eigenfrequencies are beyond a
certain admissible limit then a failure event occurs if an eigenfrequency
drops below this limit. Thus for this example, the cdf is interpreted as the
failure probability curve of the component.
The cdf also lets you visualize what the reliability or failure probabil-
ity would be if you chose to change the admissible limits of your design.
Often you are interested in visualizing low probabilities and you want to
assess the more extreme ends of the distribution curve. In this case, plot-
ting the cdf in one of the following ways is more appropriate:
100% F(x)
90%
80%
70%
60%
50%
40%
30%
20%
10% x1 x2 xi X
0%
The PDS offers a function where you can determine the cdf at any point
along the axis of the probabilistic design variable, including an interpola-
tion function so you can evaluate the probabilities between sampling points.
This feature is most helpful if you want to evaluate the failure probability
or reliability of your component for a very specific and given limit value.
The PDS offers a function where you can probe the cdf by specifying a cer-
tain probability level; the PDS tells you at which value of the probabilistic
design variable this probability will occur. This is helpful if you want to
evaluate what limit you should specify to not exceed a certain failure prob-
ability, or to specifically achieve certain reliability for your component.
Trend postprocessing allows you several options for reviewing your results.
3.5.2.1 Sensitivities
ΔY1
Y2
ΔY2
Lower gradient=lower sensitivity
X
Y Range of Y Range of
scatter X Y1 scatter X
Range of
scatter Y1
Y2
Scatter
Range of
range
scatter Y2
Y2 Y2
X X
Probabilistic Design Analysis • 103
To display sensitivities, the PDS first groups the RVs into two groups:
those having a significant influence on a particular random output param-
eter and those that are rather insignificant, based on a statistical signif-
icance test. This tests the hypothesis that the sensitivity of a particular
random input variable is identical to zero and then calculates the proba-
bility that this hypothesis is true. If the probability exceeds a certain sig-
nificance level (determining that the hypothesis is likely to be true), then
the sensitivity of that random input variable is negligible. The PDS will
plot only the sensitivities of the RVs that are found to be significant. How-
ever, insignificant sensitivities are printed in the output window. You can
also review the significance probabilities used by the hypothesis test to
decide which group a particular random input variable belonged to the
PDS allows you to visualize sensitivities either as a bar chart, a pie chart,
or both. Sensitivities are ranked so the random input variable having the
highest sensitivity appears first.
104 • Using ANSYS for Finite Element Analysis
In a bar chart the most important random input variable (with the
highest sensitivity) appears in the leftmost position and the others fol-
low to the right in the order of their importance. A bar chart describes
the sensitivities in an absolute fashion (taking the signs into account);
a positive sensitivity indicates that increasing the value of the random
input variable increases the value of the random output parameter for
which the sensitivities are plotted. Likewise, a negative sensitivity indi-
cates that increasing the random input variable value reduces the ran-
dom output parameter value. In a pie chart, sensitivities are relative to
each other.
In a pie chart the most important random input variable (with the
highest sensitivity) will appear first after the 12 o’clock position, and the
others follow in clockwise direction in the order of their importance.
Using a sensitivity plot, you can answer the important questions.
How can I make the component more reliable or improve its quality? If
the results for the reliability or failure probability of the component do
not reach the expected levels, or if the scatter of an output parameter is
too wide and therefore not robust enough for a quality product, then you
should make changes to the important input variables first. Modifying an
input variable that is insignificant would be waste of time.
Of course you are not in control of all random input parameters.
A typical example where you have very limited means of control are mate-
rial properties. For example, if it turns out that the environmental tempera-
ture (outdoor) is the most important input parameter then there is probably
nothing you can do. However, even if you find out that the reliability or
quality of your product is driven by parameters that you cannot control,
this has importance—it is likely that you have a fundamental flaw in your
product design! You should watch for influential parameters like these.
If the input variable you want to tackle is a geometry-related param-
eter or a geometric tolerance, then improving the reliability and quality
of your product means that it might be necessary to change to a more
accurate manufacturing process or use a more accurate manufacturing
machine. If it is a material property, then there is might be nothing you
can do about it. However, if you only had a few measurements for a mate-
rial property and consequently used only a rough guess about its scatter
and the material property turns out to be an important driver of product
reliability and quality, then it makes sense to collect more raw data. In this
way, the results of a probabilistic analysis can help you spend your money
where it makes the most sense—in areas that affect the reliability and
quality of your products the most.
Probabilistic Design Analysis • 105
• Reduce the width of the scatter of the most important random input
variable(s) (that you have control over).
• Shift the range of the scatter of the most important random input
variable(s) (that you have control over).
The effect of reducing and shifting the scatter of a random input vari-
able is illustrated in the following figures. “Input range before” denotes
the scatter range of the random input variable before the reduction or shift-
ing, and “input range after” illustrates how the scatter range of the random
input variable has been modified. In both cases, the trendline tells how
much the scatter of the output parameter is affected and in which way the
range of scatter of the random input variable is modified.
106 • Using ANSYS for Finite Element Analysis
Output
range
after
Output range
after
Input range before Input range
before
Random input variable Random input variable
• Shifting the scatter range of a random input variable can only lead
to a reduction of the scatter of a random output parameter if the
trendline shows a clear nonlinearity. If the trendline indicates a
linear trend (if it is a straight line), then shifting the range of the
input variables anywhere along this straight line doesn’t make any
difference. For this, reducing the scatter range of the random input
variable remains your only option.
• It is obvious from the second illustration that shifting the range
of scatter of the random input variable involves an extrapolation
beyond the range where you have data. Extrapolation is always dif-
ficult and even dangerous if done without care. The more sampling
points the trendline is based on, the better you can extrapolate. Gen-
erally, you should not go more than 30–40 percent outside of the
range of your data. But the advantage of focusing on the important
RVs is that a slight and careful modification can make a difference.
review the correlation data that has been used to derive sensitivities and
decide if individual sensitivity values are significant or not. This infor-
mation is collected in the correlation matrix of the RPSs versus the RVs.
The PDS also lets you review the correlations that have been sampled
between RVs, which are stored in the RVs correlation matrix. The cor-
relations between RPs are important if you want to use the probabilistic
results of your probabilistic analysis as input for another probabilistic
analysis.
Y Z
Ma Ma
X
b
b t
a
1. Enter the PDS and execute the file for the deterministic model
(CIRCPLATE.txt).
2. Specify CIRCPLATE.txt as the analysis file for the probabilistic
analysis.
3. Define the RVs for your probabilistic analysis. For this problem,
you define the inner radius, outer radius and thickness of the plate,
Young’s modulus and poisson’s ratio, and applied moment as RVs
with various distribution functions.
4. Define the random output variables. You define the maximum
deflection and maximum equivalent stress at the fixed edges as the
output parameters.
Probabilistic Design Analysis • 109
File: CIRCPLATE.txt
/TITLE, Bending of Circular Plate (PDS by Al-Tabey)
/PREP7
Probabilistic Design Analysis • 111
RADIN=100
RADOUT=300
THICK=1
MOMENT=157.08 ! Total moment on a 30 deg segment
YOUNG=207000
PRATIO=0.3
ET,1,SHELL63
R,1,THICK MP,EX,1,YOUNG MP,NUXY,1,PRATIO
CSYS,1 ! DEFINE CYLINDRICAL C.S.
CYL4,0,0,RADIN,0,RADOUT,30
LESIZE,1, , ,30, , , , ,1
LESIZE,3, , ,30, , , , ,1
LESIZE,2, , ,20,0.5, , , ,1
LESIZE,4, , ,20,0.5, , , ,1
MSHKEY,0
AMESH,1
NROTAT,ALL DL,3,1,ALL,
DL,2,1,UY, DL,2,1,ROTX, DL,2,1,ROTZ, DL,4,1,UY,
DL,4,1,ROTX, DL,4,1,ROTZ, LSEL,S,,,1
NSLL,R,1
F,ALL,MY,-(MOMENT)/31
ALLSEL,ALL FINISH
/SOLUTION
SOLVE FINISH
/POST1
RSYS,1
PLNSOL,U,Z, LSEL,S,,,1
NSLL,S,1
NSORT,U,Z
*GET, DEFMAX, SORT, 0, MAX LSEL,S,,,3
NSLL,S,1
NSORT,S,EQV
*GET, STRMAX, SORT, 0, MAX ALLSEL, ALL
2. Specify analysis file.
Now define CIRCPLATE as the analysis file for the probabilis-
tic analysis. PDS uses CIRCPLATE to create a file for perform-
ing analysis loops. PDS uses the CIRCPLATE input and output
parameters as RVs and RPs.
Main Menu > Prob Design>-Analysis File-Assign
Choose the file CIRCPLATE from your working directory. Use
the Browse button if you choose.
112 • Using ANSYS for Finite Element Analysis
Enter RADIN-0.1 and RADIN+0.1 for the lower and upper bound-
ary, respectively.
OK.
114 • Using ANSYS for Finite Element Analysis
Enter YOUNG for the mean value and 0.05*YOUNG for the stan-
dard deviation.
OK.
Enter MOMENT for the mean value and 0.1*MOMENT for the
standard deviation.
OK.
Close.
Close.
Enter Result1 for the Solution Set Label. It is the name for the
results set.
OK.
(b) Histogram
You will also review a histogram plot for the maximum deflection
in order to visualize the scatter of this random output parameter.
To double check that the number of simulation loops is sufficient,
you will plot a histogram of the Young’s modulus random input
variable. The ANSYS PDS not only plots the histogram bars, but
also plots a curve for values derived from the distribution function
that you specified. If the number of simulations is sufficient, the
histogram for Young’s modulus will have bars close to the curve
derived for the distribution function, which are smooth and without
any major gaps.
Probabilistic Design Analysis • 129
The histogram bars resemble the pdf, indicating that the num-
ber of simulations is sufficient. However, further increase in num-
ber of simulation to 50 will improve the results.
Note: that the probability is 97.8 percent that the maximum deflec-
tion is below the value of 2.0 mm. After reviewing the information,
choose File>Close.
Note that the legend indicates that the RVs THICK and MOMENT
are important for the random output parameter DEFMAX and
STRMAX.
You will then request scatter plots of DEFMAX versus the
most significant random input variable THICK.
Main Menu> Prob Design> Prob Results-Trends>
Scatter Plot
OK.
Enter report file name, your first name, and your last name.
OK.
You will find the report and all related files in your current
directory in a subdirectory with the report file name.
Toolbar: Quit
Choose Quit—No Save! OK
APDL Programming
• The session log file is a text file that is saved in your working
directory.
• The database command log is saved in the ANSYS database. You
can copy this log to a file at any time by choosing Utility Menu>
File> Write DB Log File.
Both files are command logs that can be used as input to the ANSYS
program.
To establish a command log file from the session log file (Jobname.
LOG), perform these steps:
To establish a command log file from the database log, pick Utility
Menu> File> Write DB Log File. You can specify a file name or use the
default name, Jobname.LGW. You also have the option (with the Kedit
field) to write all commands (default), essential commands only (Kedit
= REMOVE), or essential commands with nonessential commands com-
mented out (Kedit = COMMENT).
In this tutorial will be found the von Mises stresses for the bicycle wrench
made of steel shown under the given distributed and boundary condition.
Material Properties:
Modulus of elasticity: E = 200 GPa (Steel)
Poisson’s ratio: ν = 0.32
Geometry:
Lengths and radii as shown
Thickness: 3mm
Loading: Distributed load: 88 N/cm
Constraints: ux, uy, uz = 0 at left hexagon
APDL Programming • 149
7 mm side R = 1.25 cm
88 N / cm
1.5 cm
1 cm 3 cm 1 cm
9 mm side
Fixed all around
FITEM,2,13
FITEM,2,15
FITEM,2,19
FITEM,2,21
FITEM,2,-22
!*
/GO
DK,P51X, , , ,0,ALL, , , , , ,
! SAVE, Tutorial 1,db,
! /AUTO,1
! /REP,FAST
FLST,2,1,4,ORDE,1
FITEM,2,7
/GO
!*
SFL,P51X,PRES,88,
! SAVE, Tutorial 1,db,
FINISH
/SOL
! /STATUS,SOLU
SOLVE
! SAVE, Tutorial 1,db,
FINISH
/POST1
! PLDISP,2
! SAVE, Tutorial 1,db,
! LGWRITE,’Tutorial
1’,’lgw’,’C:\A6_ANS~1\FINOPT~1\
OPTIMI~1\’,COMMENT
MPDATA,EX,1,,200e9
MPDATA,PRXY,1,,0.32
! Create geometric model
BLC4,2.25,0.5,3,1.5
BLC4,7.25,.5,3,1.5
CYL4,1.25,1.25,1.25
CYL4,6.25,1.25,1.25
CYL4,11.25,1.25,1.25
! Add rectangles with three circular areas
FLST,2,5,5,ORDE,2
FITEM,2,1
FITEM,2,-5
AADD,P51X
! Create three hexagonal areas
RPR4,6,1.25,1.25,0.7,120
RPR4,6,6.25,1.25,0.9,120
RPR4,6,11.25,1.25,0.7,120
! Subtract hexagonals to create final shape
FLST,3,3,5,ORDE,2
FITEM,3,1
FITEM,3,-3
ASBA, 6,P51X
! Meshing of the geometry
ESIZE,0.1,0,
MSHKEY,0
CM,_Y,AREA
ASEL, , , , 4
CM,_Y1,AREA
CHKMSH,’AREA’
CMSEL,S,_Y
AMESH,_Y1
CMDELE,_Y
CMDELE,_Y1
CMDELE,_Y2
!*
ANTYPE,0 ! Set analysis type for Static
Analysis
!
! Apply displacement boundary conditions
FLST,2,6,3,ORDE,6
FITEM,2,9
FITEM,2,13
APDL Programming • 155
FITEM,2,15
FITEM,2,19
FITEM,2,21
FITEM,2,-22
/GO
DK,P51X, , , ,0,ALL, , , , , ,
! Apply pressure
FLST,2,1,4,ORDE,1
FITEM,2,7
/GO
SFL,P51X,PRES,88,
FINISH ! Save and Exit the Preprocessor
(PREP7)
!
/SOL ! Enter Solution phase
SOLVE
FINISH
3. Read in the Edited Log File
In an interactive session, pick Utility Menu> File> Read Input
from to read in the edited command log file.
In this tutorial, a very long rod 25 mm in diameter has one end maintained
at 100°C. The surface of the rod is exposed to ambient air at 25°C with a
convection heat transfer coefficient of 10 W/m2.K. Determine the heat loss
from the rod constructed of pure copper.
Tb = 100° T∞ = 25°C
h = 10 W/m2.K
Air
D = 2.5 cm
L = 1.32 m
156 • Using ANSYS for Finite Element Analysis
KEYW,MAGNOD,0
KEYW,MAGEDG,0
KEYW,MAGHFE,0
KEYW,MAGELC,0
KEYW,PR_MULTI,0
KEYW,PR_CFD,0
/GO
!*
! /COM,
! /COM,Preferences for GUI filtering have
been set to display:
! /COM, Thermal
!*
/PREP7
!*
ET,1,PLANE55
!*
KEYOPT,1,1,0
KEYOPT,1,3,1
KEYOPT,1,4,0
KEYOPT,1,8,0
KEYOPT,1,9,0
!*
! SAVE, Tutorial 2,db,
!*
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,KXX,1,,398
! SAVE, Tutorial 2,db,
BLC4,0,0,12.5e-3,1.32
! SAVE, Tutorial 2,db,
! /PNUM,KP,0
! /PNUM,LINE,1
! /PNUM,AREA,0
! /PNUM,VOLU,0
! /PNUM,NODE,0
! /PNUM,TABN,0
! /PNUM,SVAL,0
! /NUMBER,0
!*
! /PNUM,ELEM,0
APDL Programming • 159
! /REPLOT
!*
! /DIST,1,0.729,1
! /REP,FAST
! /DIST,1,0.729,1
! /REP,FAST
! /DIST,1,0.729,1
! /REP,FAST
! /DIST,1,0.729,1
! /REP,FAST
! /DIST,1,0.729,1
! /REP,FAST
! /DIST,1,0.729,1
! /REP,FAST
! /DIST,1,0.729,1
! /REP,FAST
! /DIST,1,0.729,1
! /REP,FAST
! /DIST,1,0.729,1
! /REP,FAST
! /DIST,1,0.729,1
! /REP,FAST
! /DIST,1,0.729,1
! /REP,FAST
FLST,5,2,4,ORDE,2
FITEM,5,2
FITEM,5,4
CM,_Y,LINE
LSEL, , , ,P51X
CM,_Y1,LINE
CMSEL,,_Y
!*
LESIZE,_Y1, , ,600, , , , ,1
!*
FLST,5,2,4,ORDE,2
FITEM,5,1
FITEM,5,3
CM,_Y,LINE
LSEL, , , ,P51X
CM,_Y1,LINE
CMSEL,,_Y
160 • Using ANSYS for Finite Element Analysis
!*
LESIZE,_Y1, , ,5, , , , ,1
!*
MSHKEY,0
CM,_Y,AREA
ASEL, , , , 1
CM,_Y1,AREA
CHKMSH,’AREA’
CMSEL,S,_Y
!*
AMESH,_Y1
!*
CMDELE,_Y
CMDELE,_Y1
CMDELE,_Y2
!*
FINISH
/SOL
!*
ANTYPE,0
! /AUTO,1
! /REP,FAST
! /ZOOM,1,S
CRN,0.362883,-0.778990,0.337117,-0.538560
FLST,2,1,4,ORDE,1
FITEM,2,1
!*
/GO
DL,P51X, ,TEMP,100,0
FLST,2,3,4,ORDE,2
FITEM,2,2
FITEM,2,-4
/GO
!*
SFL,P51X,CONV,10, ,25,
! /STATUS,SOLU
SOLVE
FINISH
/POST1
!*
! /EFACET,1
! PLNSOL, TEMP,, 0
APDL Programming • 161
LGWRITE,’Tutorial 2’,’lgw’,’C:\A6_ANS~1\
!
FINOPT~1\OPTIMI~1\’,COMMENT
After editing
/PMETH,OFF,0 ! Setting preference
KEYW,PR_SET,1
KEYW,PR_STRUC,0
KEYW,PR_THERM,1
KEYW,PR_FLUID,0
KEYW,PR_ELMAG,0
KEYW,MAGNOD,0
KEYW,MAGEDG,0
KEYW,MAGHFE,0
KEYW,MAGELC,0
KEYW,PR_MULTI,0
KEYW,PR_CFD,0
/PREP7 ! Enter into preprocessor (PREP7)
!*
ET,1,PLANE55 ! Set element type with
axisymmetric option
!*
KEYOPT,1,1,0
KEYOPT,1,3,1
KEYOPT,1,4,0
KEYOPT,1,8,0
KEYOPT,1,9,0
MPTEMP,,,,,,,, ! Enter material properties
MPTEMP,1,0
MPDATA,KXX,1,,398
BLC4,0,0,12.5e-3,1.32 ! Geometric modeling
FLST,5,2,4,ORDE,2 ! Divide lines 2 and 4
into 600 divisions
FITEM,5,2
FITEM,5,4
CM,_Y,LINE
LSEL, , , ,P51X
CM,_Y1,LINE
CMSEL,,_Y
!*
LESIZE,_Y1, , ,600, , , , ,1
!*
FLST,5,2,4,ORDE,2 ! Divide lines 1 and 3
into 5 divisions
162 • Using ANSYS for Finite Element Analysis
FITEM,5,1
FITEM,5,3
CM,_Y,LINE
LSEL, , , ,P51X
CM,_Y1,LINE
CMSEL,,_Y
!*
LESIZE,_Y1, , ,5, , , , ,1
!*
MSHKEY,0 ! Mesh the area
CM,_Y,AREA
ASEL, , , , 1
CM,_Y1,AREA
CHKMSH,’AREA’
CMSEL,S,_Y
!*
AMESH,_Y1
!*
CMDELE,_Y
CMDELE,_Y1
CMDELE,_Y2
!*
FINISH ! Save and exit preprocessor
/SOL ! Enter Solution module
!*
ANTYPE,0 ! Set analysis type as steady-state
FLST,2,1,4,ORDE,1 ! Specify temperature
boundary conditions on line 1
FITEM,2,1
DL,P51X, ,TEMP,100,0
FLST,2,3,4,ORDE,2 ! Specify convective b/
conditions on lines, 2,3 & 4
FITEM,2,2
FITEM,2,-4
SFL,P51X,CONV,10, ,25,
SOLVE ! Solve the problem
FINISH
3. Read in the Edited Log File
In an interactive session, pick Utility Menu> File> Read Input
from to read in the edited command log file.
Further editing for design optimization:
APDL Programming • 163
FITEM,5,2
FITEM,5,4
CM,_Y,LINE
LSEL, , , ,P51X
CM,_Y1,LINE
CMSEL,,_Y
!*
LESIZE,_Y1, , ,600, , , , ,1
!*
FLST,5,2,4,ORDE,2 ! Divide lines 1 and 3
into 5 divisions
FITEM,5,1
FITEM,5,3
CM,_Y,LINE
LSEL, , , ,P51X
CM,_Y1,LINE
CMSEL,,_Y
!*
LESIZE,_Y1, , ,5, , , , ,1
!*
MSHKEY,0 ! Mesh the area
CM,_Y,AREA
ASEL, , , , 1
CM,_Y1,AREA
CHKMSH,’AREA’
CMSEL,S,_Y
!*
AMESH,_Y1
!*
CMDELE,_Y
CMDELE,_Y1
CMDELE,_Y2
!*
FINISH ! Save and exit preprocessor
!
!
**************************************SOLU-
TION
!
/SOL ! Enter Solution module
!*
APDL Programming • 165
Design Optimization
5.1 Optimum Design
The optimum design is the best design in some predefined sense. Among
many examples, the optimum design for a frame structure may be the
one with minimum weight or maximum frequency; in heat transfer, the
minimum temperature; or in magnetic motor design, the maximum peak
168 • Using ANSYS for Finite Element Analysis
X = [ X1 X2 X 3 X n ] (5.1)
X i ≤ X i ≤ X i (i = 1, 2, 3, ……, n) (5.2)
Subject to:
gi ( x ) ≤ gi (i = 1, 2, 3, ……, m1 ) (5.4)
hi ( x ) ≤ hi ( x ) (i = 1, 2, 3, ……, m2 ) (5.5)
Wi ≤ Wi ( x ) ≤ Wi (i = 1, 2, 3, ……, m3 ) (5.6)
Where:
f = objective function
gi, hi, wi = state variables containing the design, with under bar and
over bars representing lower and upper bounds respectively.
m1 + m2 + m3 = number of state variables constraints with various
upper and lower limit values. The state variables can also be referred
to as dependent variables in that they vary with the vector x of design
variables.
(Equation 5.3) through (Equation 5.6) represent a constrained min-
imization problem whose aim is the minimization of the objective func-
tion f under the constraints imposed by (Equations 5.2, 5.4, 5.5, and 5.6).
Design configurations that satisfy all constraints are referred to as feasible
designs. Design configurations with one or more violations are termed
Design Optimization • 169
X * = X *1 X *2 X *3 X *n (5.7)
( )
g *i = gi x* ≤ gi + ai (i = 1, 2, 3, ……, m1 ) (5.8)
( )
hi − bi ≤ h*i = hi x* (i = 1, 2, 3, ……, m2 ) (5.9)
( )
Wi − gi ≤ W *i = Wi x* ≤ Wi − gi (i = 1, 2, 3, ……, m3 ) (5.10)
X i ≤ X *i ≤ X i (i = 1, 2, 3, ……, n) (5.11)
1. If one or more feasible sets exist the best design set is the feasi-
ble one with the lowest objective function value. In other words,
it is the set that most closely agrees with the mathematical goals
expressed by (Equation 5.3) to (Equation 5.6).
2. If all design sets are infeasible, the best design set is the one closest
to being feasible, irrespective of its objective function value.
Gradient-based
methods Population-based Other methods
• Newton’s method
• Random search • Genetic algorithms
• Steepest descent
• Grid search • Memetic
• Conjugate
• Simulated annealing algorithms
gradient sequential
harmony search direct • Particle swarm
quadratic
search optimization
programming
5.1.2.1 Applications
5.1.2.2 Examples
5.2.1 D
esign Optimization Terminology and
Information Flow
File.DB
ANSYS
database
file
RESUME
SAVE
ANSYS
Model
database
File.LOOP
OPEXE Loop file
Analysis file Optimization
(parametrically OPEXE database
defined model) OPEXE
File.OPO
Last loop
OPRESU
OPSAVE
output
File.OPT
optimization
data file
The ANSYS optimization procedure offers several methods and tools that
in various ways attempt to address the mathematical problem stated ear-
lier. ANSYS optimization methods perform actual minimization of the
objective function of Equation 5.3. It will be shown that they transform
the constrained problem into an unconstrained one that is eventually min-
imized. Design tools, on the other hand, do not directly perform minimi-
zation. Use of the tools offer alternate means for understanding design
space and the behavior of the dependent variables. Methods and tools are
discussed in the following sections.
The ANSYS program uses two optimization methods to accommo-
date a wide range of optimization problems:
• The changes in all design variables from the current design to the
best feasible design are less than their respective tolerances.
• The changes in all design variables between the last two designs are
less than their respective tolerances.
• The change in objective function from the best design to the current
design is less than the objective function tolerance.
• The change in objective function from the previous design to the
current design is less than the objective function tolerance.
performed. The initial data points from the random design calculations can
serve as starting points to feed the optimization methods.
This is a simple and very direct tool for understanding design space. It is
not necessary but it may be useful to compute values of state variables or
the objective function. The design variables are all explicitly defined by
the user. A single loop is equivalent to one complete FEA. At the beginning
of each iteration, the user defines design variable values, X=X*=design
variables defined by the user, and executes a single loop or iteration. If
either state variables or the objective function are defined, corresponding
state variable and objective function values will result.
Multiple loops are performed, with random design variable values at each
loop. This design tool will fill the design variable vector with randomly
generated values for each iteration. Each random design iteration is equiv-
alent to one complete analysis loop. A maximum number of loops and a
desired number of feasible loops can be specified. This tool is useful for
studying the overall design space, and for establishing feasible design sets
for subsequent optimization analysis. Random iterations continue until
either one of the following conditions is satisfied:
n � r� = N r
n f =� N f
Where:
nr = number of random iterations performed per each execution
nf = total number of feasible design sets (including feasible sets from
previous executions)
Nr = maximum number of iterations
Nf = desired number of feasible design sets.
The sweep tool is used to scan global design space that is centered on a
user-defined, reference design set. Upon execution, a sweep is made in
Design Optimization • 179
the direction of each design variable while holding all other design vari-
ables fixed at their reference values. The state variables and the objective
function are computed and stored for subsequent display at each sweep
evaluation point.
A sweep execution will produce ns design sets calculated from:
n � s� = nN s
Where:
n = number of design variables
Ns = number of evaluations to be made in the direction of each design
variable.
The gradient tool computes the gradient of the state variables and the
objective function with respect to the design variables. A reference design
set is defined as the point of evaluation for the gradient. Using this tool,
you can investigate local design sensitivities.
establish the analysis file for your model. Then all operations within the
optimizer can be performed interactively, allowing the freedom to probe
your design space before the actual optimization is done. The insights
you gain from your initial investigations can help to narrow your design
space and achieve greater efficiency during the optimization process.
(The interactive features can also be used to process batch optimization
results.)
The process involved in design optimization consists of the following
general steps. The steps may vary slightly, depending on whether you are
performing optimization interactively (through the GUI), in batch mode,
or across multiple machines.
No matter how you intend to create the analysis file, the basic
information that it must contain is the same. The steps it must
include are explained next.
PREP7 is used to build the model in terms of the DV parameters. For our
beam example, the DV parameters are B (width) and H (height), so the
element real constants are expressed in terms of B and H:
/PREP7
! Initialize DV parameters:
B=2.0 ! Initialize width
H=3.0 ! Initialize height
!
ET,1,BEAM3 ! 2-D beam element
AREA=B*H ! Beam cross-sectional area
IZZ=(B*(H**3))/12 ! Moment of inertia about Z
R,1,AREA,IZZ,H ! Real constants in terms of DV
parameters
!
! Rest of the model:
MP,EX,1,30E6 ! Young’s modulus
N,1 ! Nodes
N,11,120
FILL
E,1,2 ! Elements
EGEN,10,1,-1
FINISH ! Leave PREP7
The SOLUTION processor is used to define the analysis type and analysis
options, apply loads, specify load step options, and initiate the finite element
solution. The SOLUTION input for the beam example could look like this:
/SOLU
ANTYPE,STATIC ! Static analysis (default)
D,1,UX,0,,11,10,UY ! UX=UY=0 at the two ends
of the beam
SFBEAM,ALL,1,PRES,100 ! Transverse pressure
(load per unit length) = 100
SOLVE
FINISH ! Leave SOLUTION
182 • Using ANSYS for Finite Element Analysis
FINISH
...
2. Enter OPT and specify the analysis file
The remaining steps are performed within the OPT processor.
When you first enter the optimizer, any parameters that exist in the
ANSYS database are automatically established as design set num-
ber 1. To enter the optimizer, use one of these methods:
Command(s): /OPT
GUI: Main Menu> Design Opt
In interactive mode, you must specify the analysis file name.
To specify the analysis file name, use one of these methods:
Command(s): OPANL
GUI: Main Menu> Design Opt> Analysis File> Assign
3. Declare optimization variables
The next step is to declare optimization variables, that is, specify
which parameters are DVs, which ones are SVs, and which one is
the objective function. As mentioned earlier, up to 60 DVs and up
to 100 SVs are allowed, but only one objective function is allowed.
To declare optimization variables, use one of these methods:
Command(s): OPVAR
GUI:
Main Menu> Design Opt> Design Variables
Main Menu> Design Opt> State Variables
Main Menu> Design Opt> Objective
Minimum and maximum constraints can be specified for SVs
and DVs. Constraints are needed for the objective function. Each
variable has a tolerance value associated with it, which you may
input or let default to a program-calculated value.
4. Choose optimization tool or method
In the ANSYS program, several different optimization tools and
methods are available. Single loop is the default. To specify a tool
or method to be used for subsequent optimization looping, use one
of these methods:
Command(s): OPTYPE
GUI: Main Menu> Design Opt> Method/Tool
5. Specify optimization looping controls
Each method and tool has certain looping controls associated with
it, such as maximum number of iterations, and so on. All of the
commands that you use to set these controls are accessed by the
menu path Main Menu> Design Opt> Method/Tool.
There are also a number of general controls that affect how
data is saved during optimization. They are as follows:
184 • Using ANSYS for Finite Element Analysis
for the best design set will also be available if OPKEEP,ON was
issued before looping. The “best results” will be in file Jobname.BRST
(.BRTH, etc.), and the “best database” will be in Jobname.BDB.
• Use as few DVs as possible. Obviously, more DVs demand more itera-
tions and, therefore, more computer time. One way to reduce the num-
ber of design variables is to eliminate some DVs by expressing them
in terms of others, commonly referred to as design variable linking.
• Specify a reasonable range of values for the design variables (MIN
and MAX). Too wide a range may result in poor representation
of design space, whereas too narrow a range may exclude “good”
designs. Remember that only positive values are allowed, and that
an upper limit must be specified.
• Choose DVs such that they permit practical optimum designs.
SVs are usually response quantities that constrain the design. Examples of
SVs are stresses, temperatures, heat flow rates, frequencies, deflections,
absorbed energy, elapsed time, and so on. A state variable need not be an
ANSYS-calculated quantity; virtually any parameter can be defined as a state
variable. Some points to keep in mind while choosing state variables are:
from loop to loop. Also avoid the other extreme, which would be to
choose the stress in every element as a state variable. The preferred
method is to define the stresses at a few key locations as state variables.
• For the subproblem approximation method, if possible, choose SVs
that have a linear or quadratic relationship with the DVs.
• If a state variable has both an upper and lower limit, specify a rea-
sonable range of limit values. Avoid very small ranges, because
feasible designs may not exist. A stress range of 500 to 1,000 psi,
for example, is better than 900 to 1,000 psi.
• If an equality constraint is to be specified (such as frequency =
386.4 Hz), define two state variables for the same quantity and
bracket the desired value, illustrated as follows:
*GET,FREQ,ACTIVE,,SET,FREQ ! Parameter FREQ
= calculated
frequency
FREQ1=FREQ
FREQ2=FREQ
/OPT
OPVAR,FREQ1,SV,,387 ! Upper limit on FREQ1 =
387
OPVAR,FREQ2,SV,386 ! Lower limit on FREQ2 =
386
• Avoid choosing SVs near singularities (such as concentrated
loads) by using selecting before defining the parameters.
The objective function is the quantity that you are trying to minimize or max-
imize. Some points to remember about choosing the objective function are:
1. Choose menu path Utility Menu> File> Clear & Start New.
Click on OK.
2. When the Verify dialog box appears, click Yes.
3. Change the jobname. Choose menu path Utility Menu> File>
Change Jobname. The Change Jobname dialog box appears.
4. Change the jobname to hexplate and click on OK.
5. Choose menu path Utility Menu> File> Read Input from. In
the Files list, click on hexplate.lgw. Then click on OK. You see
a replay of the entire analysis. Click on Close when the “Solu-
tion is done!” message appears.
! *******************************
! First Pass: Create analysis file.
! ********************************
*create,hexplate
!
! GEOMETRY (in mm)
!-----------------
*afun,deg !Degree units for trig. functions
inrad=200*cos(30)-20 ! Inner radius
t1=30 ! Thickness
fil=10 ! Fillet radius
/prep7
! Create the three bounding annuli
cyl4,-200,,inrad,-30,inrad+t1,30
cyl4,200*cos(60),200*sin(60),inrad,-
90,inrad+t1,-150
cyl4,200*cos(60),200*sin(-
60),inrad,90,inrad+t1,150
aplot
aadd,all
adele,all ! Delete area, keep lines
lplot
! Fillets on inner slot
lsel,,radius,,inrad+t1 ! Select inner arcs
l1 = lsnext(0) ! Get their line numbers
l2 = lsnext(l1)
l3 = lsnext(l2)
lfillet,l1,l2,fil ! Fillets
lfillet,l2,l3,fil
lfillet,l3,l1,fil
Design Optimization • 189
lsel,all
lplot
! Keep only symmetric portion
wprot,,90
lsbw,all
wprot,,,60
lsbw,all
csys,1
lsel,u,loc,y,0,60
ldele,all,,,1
lsel,all
ksll
ksel,inve
kdele,all ! Delete unnecessary keypoints
ksel,all
lplot
! Create missing lines and combine right
edge lines
csys,0
ksel,,loc,y,0
lstr,kpnext(0),kpnext(kpnext(0))
! Bottom symmetry edge
ksel,all
csys,1
ksel,,loc,y,60
lstr,kpnext(0),kpnext(kpnext(0))
! 60-deg. symm. edge
ksel,all
csys,0
lsel,,loc,x,100
lcomb,all ! Add lines at the right edge
lsel,all
! Create the area
al,all
aplot
! MESHING
! -------
et,1,82,,,3 ! Plane stress with thickness
r,1,10 ! Thickness
mp,ex,1,2.07e5 ! Young’s modulus of
steel, MPa
190 • Using ANSYS for Finite Element Analysis
6. Execute the run. Choose menu path Main Menu> Design Opt>
Run. Review the settings and click on OK. (If you receive any
warning messages during the run, close them.)
7. Notes will appear to let you know which design set ANSYS is
currently running. When the run converges, review the Execu-
tion Summary. Click on OK.
5. Review the results
In this step, you start by listing design sets, then graph the objective
function and state variables versus set number.
1. Choose menu path Main Menu> Design Opt> Design Sets>
List. The List Design Sets dialog box appears.
2. Verify that the ALL Sets option is selected. Click on OK.
3. Review the information that appears in the window. Click on
Close.
4. Choose menu path Main Menu> Design Opt> Graphs/
Tables. The Graph/List Tables of Design Set Parameters dialog
box appears.
5. For X-variable parameter, select Set number. For Y-variable
parameters, select VTOT. Click on OK. Review the graph.
6. Choose menu path Main Menu> Design Opt> Graphs/
Tables. The Graph/List Tables of Design Set Parameters dialog
box appears.
7. For X-variable parameter, select Set number. For Y-variable
parameters, select SMAX. Unselect VTOT by clicking on it.
Click on OK. Review the graph.
6. Restore the best design
In this step, you restore the best design. First, however, save the
optimization database to a file.
1. Choose menu path Main Menu> Design Opt> Opt Data-
base> Save. The Save Optimization Data dialog box appears.
2. In the Selection field, type hexplate.opt1. Then click on OK.
3. Choose menu path Main Menu> Finish.
4. Issue the following commands in the ANSYS Input window.
After you type each command in the window, press ENTER
resume, hexplate, bdb/post1 file,hexplate, brst lplot.
5. Choose menu path Main Menu> General Postproc> Read
Results> First Set.
6. Choose menu path Main Menu> General Postproc> Plot
Results> Contour Plot> Nodal Solu. The Contour Nodal
Solution Data dialog box appears.
7. Choose Stress from the list on the left. Choose von Mises
SEQV from the list on the right. Click on OK. Review the plot.
Design Optimization • 193
In this tutorial will be addressed the optimization of heat transfer rate from
a cylindrical pin fin. A very long rod 25 mm in diameter has one end main-
tained at 100°C. The surface of the rod is exposed to ambient air at 25°C
with a convection heat transfer coefficient of 10 W/m2.K. Determine the
heat loss from the rod constructed of pure copper.
Nominal
Material properties value Distribution
Thermal Conductivity At Average Temperature
398 W/m.K
Coefficient T = (Tb + T∞)/2 = 62.5°C ~ 355k
Convection Heat
10 W/m2.K
Transfer Coefficient
Nominal
Loading value Location
Temperature Thermal
100°C At the base of the fin.
Load
Convection Thermal At the cylindrical edge and the
10 W/m2.K
Load flat face at the tip of the fin.
5.3.2 Solutions/Results
/BATCH
! ***************************************
/PREP7
!
ET,1,PLANE55
!*
KEYOPT,1,1,0
KEYOPT,1,3,1
KEYOPT,1,4,0
KEYOPT,1,8,0
KEYOPT,1,9,0
!
! ************ Material Properties (Conduction
and Convection Coefficients):
Pure Copper
!* At Degree : 355 kelvin
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,KXX,1,,398
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,HF,1,,10
!
! ********************************************
Geometry
*SET,L,1.32 ! LENGTH IN M
*SET,R,12.5E-3 ! RADIUS IN M
BLC4,0,0,R,L
!
! ********************************************
Meshing
MSHKEY,0
CM,_Y,AREA
FLST,5,2,4,ORDE,2
FITEM,5,2
FITEM,5,4
CM,_Y,LINE
LSEL, , , ,P51X
CM,_Y1,LINE
CMSEL,,_Y
!*
LESIZE,_Y1, , ,600, , , , ,1
196 • Using ANSYS for Finite Element Analysis
!*
FLST,5,2,4,ORDE,2
FITEM,5,1
FITEM,5,3
CM,_Y,LINE
LSEL, , , ,P51X
CM,_Y1,LINE
CMSEL,,_Y
!*
LESIZE,_Y1, , ,5, , , , ,1
!*
CM,_Y,AREA
ASEL, , , , 1
CM,_Y1,AREA
CHKMSH,’AREA’
CMSEL,S,_Y
!*
MSHKEY,1
AMESH,_Y1
MSHKEY,0
!*
CMDELE,_Y
CMDELE,_Y1
CMDELE,_Y2
FINISH
! ********************************************
SOLUTION
/SOLU
!
ANTYPE,0 ! Steady-State Thermal Analysis
!
FLST,2,1,4,ORDE,1
FITEM,2,1
DL,P51X, ,TEMP,100,0 ! Prescribed temperature
at the left end
!
FLST,2,2,4,ORDE,2
FITEM,2,2
FITEM,2,-3
SFL,P51X,CONV,10, ,25, ! Convective boundary
condition
!
Design Optimization • 197
SOLVE
FINISH
!
! ********************************************
***** POST
PROCESSING
/POST1
FSUM
*GET,THEAT,FSUM,HEAT
*SET,TOTALHEAT,-THEAT
ObjFunct=10000-TOTALHEAT
ALLSEL
*GET,Tempend,NODE,607,TEMP,
FINISH
Using a BATCH file for the analysis describes this example optimization
analysis as consisting of two passes. In the first you create an analysis file,
and in the second you create the optimization input. It is better to avoid
graphical picking operations when defining a parametric model. Thus,
the GUI method is not recommended for performing the first pass of the
example analysis and will not be presented here. However, it is acceptable
to perform the optimization pass of the cylindrical fin example using the
GUI method instead of the ANSYS commands shown earlier. The GUI
procedure for performing the optimization pass follows.
1. Enter the Design Optimization (Design Opt) and execute the file for
the deterministic model (Fin.txt).
2. Specify Fin.txt as the analysis file for the design optimization analysis.
3. Define the design variables, state variables, and objective function
for your design optimization analysis. For this problem, you define
the length and radius of the cylindrical fin as design variables, tem-
perature at the tip of the fin as state variable, and total heat dissi-
pated as the objective function.
4. Run the optimization. Select a suitable method for optimization.
5. Obtain solution.
6. Perform postprocessing to visualize and evaluate the design sets of
optimization results.
198 • Using ANSYS for Finite Element Analysis
Close.
Click on TEMPEND.
Type 40°C in the MAX field.
OK.
204 • Using ANSYS for Finite Element Analysis
Click on TOTALHEAT.
OK.
Choose Sub-Problem
OK
OK.
OK.
Solution Converges
Click OK.
Type Fin.opt1.
OK.
7. Exit ANSYS.
Toolbar: Quit
Choose Quit—Select an option to Save! OK.
Congratulations! You have completed this tutorial.
Bibliography
Cook, R.D. 1995. Finite Element Modeling for Stress Analysis, 1st ed. H
oboken,
NJ: John Wiley & Sons.
Incropera, F.P. 1985. Fundamentals of Heat and Mass Transfer, Example 3.7,
2nd ed., 104. Singapore: John Wiley & Sons.
Reddy, J.N. 1993. An Introduction to the Finite Element Method, New York:
McGrawHill.
Logan, D.L. 2001. A First Course in the Finite Element Method, 3rd ed. Mason,
OH: Thomas Learning Publishing.
Reddy, J.N. 1972. “Exact Solutions of Moderately Thick Laminated Shells.”
Journal Engineering Mechanics 110, no. 5, pp. 794–805.
Timoshenko, S. 1956. Strength of Material, Part II, Elementary Theory and
Problems, 3rd ed., 111. New York, NY: D. Van Nostrand Co., Inc.
About the Authors
Libin Wang is a professor and the dean of the school of civil engineering
at Nanjing Forestry University, in Nanjing, China. He has been an e ducator
and scholar, for over 20 years, and has taught the subject of finite element
analysis both at the undergraduate and graduate level. Dr Wang’s research
is in the field of engineering mechanics, hazard mitigation, and bridge
engineering, as well as timber structures.
Email: jhwlb@163.com
Index
Momentum Press is one of the leading book publishers in the field of engineering,
mathematics, health, and applied sciences. Momentum Press offers over 30 collections,
including Aerospace, Biomedical, Civil, Environmental, Nanomaterials, Geotechnical,
and many others.
Momentum Press is actively seeking collection editors as well as authors. For more
information about becoming an MP author or collection editor, please visit
http://www.momentumpress.net/contact
The Momentum Press digital library is very affordable, with no obligation to buy in future years.
For more information, please visit www.momentumpress.net/library or to set up a trial in the US,
please contact mpsales@globalepress.com.
EBOOKS Using ANSYS for Finite Element
Using ANSYS
the greater your ANSYS, have become common tools in the hands of students as well as
practicing engineers. The objective of this book is to demonstrate the
discount!
use of one of the most commonly used Finite Element Analysis software,
THE CONTENT
• Manufacturing
ANSYS, for linear static, dynamic, and thermal analysis through a series
of tutorials and examples. Some of the topics covered in these tutorials
include development of beam, frames, and Grid Equations; 2-D elastic-
for Finite
Engineering
• Mechanical
ity problems; dynamic analysis; composites, and heat transfer problems.
Element
Analysis
These simple, yet, fundamental tutorials are expected to assist the users
Engineering with the better understanding of finite element modeling, how to control
• Materials Science modeling errors, and the use of the FEM in designing complex load
& Engineering bearing components and structures. These tutorials would supplement
• Civil & a course in basic finite element or can be used by practicing engineers
Environmental who may not have the advanced training in finite element analysis. Dynamic, Probabilistic
Engineering
• Advanced Energy Wael A. Altabey is an assistant professor in the department of Design and Heat
Technologies mechanical engineering, faculty of engineering, Alexandria University,
Alexandria, Egypt and has been a postdoctoral researcher at the Transfer Analysis
THE TERMS International Institute for Urban Systems Engineering, Southeast
• Perpetual access for University, Nanjing, China.
a one time fee
Mohammad Noori is a professor of mechanical engineering at California
Volume II
• No subscriptions or
Polytechnic State University in San Luis Obispo, California, USA, and a
access fees
fellow of the American Society of Mechanical Engineers. Dr Noori has
• Unlimited
over 34 years of experience as a scholar and educator. He has also been
concurrent usage
a distinguished visiting professor at the International Institute for Urban
• Downloadable PDFs
• Free MARC records
Systems Engineering, Southeast University, Nanjing, China. Wael A. Altabey
For further information,
Libin Wang is a professor and the dean of the school of civil engineer- Mohammad Noori
Libin Wang
ing at Nanjing Forestry University, in Nanjing, China. He has been an
a free trial, or to order,
contact: educator and scholar, for over 20 years, and has taught the subject of
sales@momentumpress.net finite element analysis both at the undergraduate and graduate level.
ISBN: 978-1-94708-322-6