You are on page 1of 27

ANYSYS LAB

STATIC ANALYSIS:

Ex: 1. Plane Truss and/or

2. Plane stress Bracket or

3. any model u have done in lab related to Static analysis

MODAL ANALYSIS:

Ex: 1. Modal analysis of Cantilever Beam and/or

2. Airplane Wing or

Any experiment you have done in lab related to Modal analysis

THERMAL ANALYSIS:

Ex: 1. Composite Wall or

2. any model u have done in lab

TRANSIENT ANALYSIS:

Ex: 1. Transient analysis of Cantilever Beam and /or

2. Transient Thermal analysis of Casting or

Any experiment you have done in lab related to Transient analysis

________________________________________________________________________________

This manual is just for your reference…


You can write your lab experiments in records as done in lab and note the results and tables
that u got in the lab according to the experiments… and draw the figures and tables wherever
necessary….for all the experiments, result diagrams should be shown.

Your internal lab marks will be based on your lab attendance, lab observation and lab record
And the internal exam that is going to be held on Friday (if it is going to be held).

Records and observation notes with no.of experminents you have done with faculty sign
should be submitted at the time of External End practical examination.Inform this to all.
PLANE TRUSS
Exercise:
Problem Description:
Determine the nodal deflections, reaction forces, and stress for the truss system shown below
(E = 200GPa, A = 3250mm2).

Preprocessing: Defining the Problem


1. Give the Simplified Version a Title (such as 'Bridge Truss Tutorial').
In the Utility menu bar select File > Change Title:
Enter the title and click 'OK'. This title will appear in the bottom left corner of the 'Graphics'
Window once you begin. Note: to get the title to appear immediately, select Utility Menu >
Plot > Replot
2. Enter Keypoints

coordinate
keypoint
x y
1 0 0
2 1800 3118
3 3600 0
4 5400 3118
5 7200 0
6 9000 3118
7 10800 0
Preprocessor > Modeling > Create > Keypoints > In Active CS
o To define the first keypoint which has the coordinates x = 0 and y = 0:
Enter keypoint number 1 in the appropriate box, and enter the x,y coordinates:
0, 0 in their appropriate boxes (as shown above).
Click 'Apply' to accept what you have typed.
o Enter the remaining keypoints using the same method.
3. Form Lines
The keypoints must now be connected
We will use the mouse to select the keypoints to form the lines.
In the main menu select: Preprocessor > Modeling > Create > Lines >
Lines > In Active Coord.
o Use the mouse to pick keypoint #1 (i.e. click on it). It will now be marked by
a small yellow box.
o Now move the mouse toward keypoint #2. A line will now show on the screen
joining these two points. Left click and a permanent line will appear.
o Connect the remaining keypoints using the same method.

4. Define the Type of Element


It is now necessary to create elements. This is called 'meshing'. ANSYS first needs to
know what kind of elements to use for our problem:
o From the Preprocessor Menu, select: Element Type > Add/Edit/Delete. The
following window will then appear:
o For this example, we will use the 2D spar element as selected in the above
figure. Select the element shown and click 'OK'. You should see 'Type 1
LINK1' in the 'Element Types' window.
o Click on 'Close' in the 'Element Types' dialog box.
o
5. Define Geometric Properties
o Real Constants > Add/Edit/Delete
o Click Add... and select 'Type 1 LINK1' (actually it is already selected). Click
on 'OK'. The following window will appear:
o As shown in the window above, enter the cross-sectional area (3250mm):
o Click on 'OK'.
o 'Set 1' now appears in the dialog box. Click on 'Close' in the 'Real Constants'
window.
6. Element Material Properties
You then need to specify material properties:
o In the 'Preprocessor' menu select Material Props > Material Models
o Double click on Structural > Linear > Elastic > Isotropic
We are going to give the properties of Steel. Enter the following field:
EX 200000

7. Mesh Size :The last step before meshing is to tell ANSYS what size the elements
should be. There are a variety of ways to do this but we will just deal with one
method for now.
o In the Preprocessor menu select Meshing > Size Cntrls > ManualSize >
Lines > All Lines
o In the size 'NDIV' field, enter the desired number of divisions per line. For this
example we want only 1 division per line, therefore, enter '1' and then click
'OK'. Note that we have not yet meshed the geometry, we have simply defined
the element sizes.
8. Mesh
o In the 'Preprocessor' menu select Meshing > Mesh > Lines and click 'Pick
All' in the 'Mesh Lines' Window
Plot Numbering
From the Utility Menu (top of screen) select PlotCtrls > Numbering...
• Fill in the Window as shown below and click 'OK'

Solution Phase: Assigning Loads and Solving


1. Define Analysis Type
o From the Solution Menu, select Analysis Type > New Analysis.
o Ensure that 'Static' is selected; i.e. you are going to do a static analysis on the
truss as opposed to a dynamic analysis, for example.
o Click 'OK'.
2. Apply Constraints
o In the Solution menu, select Define Loads > Apply > Structural >
Displacement > On Keypoints
o Select the left end of the bridge (Keypoint 1) by clicking on it in the Graphics
Window and click on 'OK' in the 'Apply U,ROT on KPs' window.
o This location is fixed which means that all translational and rotational degrees
of freedom (DOFs) are constrained. Therefore, select 'All DOF' by clicking on
it and enter '0' in the Value field and click 'OK'.
o Using the same method, apply the roller connection to the right end (UY
constrained). Note that more than one DOF constraint can be selected at a time
in the "Apply U,ROT on KPs" window. Therefore, you may need to 'deselect'
the 'All DOF' option to select just the 'UY' option.
3. Apply Loads
As shown in the diagram, there are four downward loads of 280kN, 210kN, 280kN,
and 360kN at keypoints 1, 3, 5, and 7 respectively.
o Select Define Loads > Apply > Structural > Force/Moment > on
Keypoints.
o Select the first Keypoint (left end of the truss) and click 'OK' in the 'Apply
F/M on KPs' window.
o Select FY in the 'Direction of force/mom'. This indicate that we will be
applying the load in the 'y' direction
o Enter a value of -280000 in the 'Force/moment value' box and click 'OK'.
o Apply the remaining loads in the same manner.
The applied loads and constraints should now appear as shown below.
4. Solving the System
o In the 'Solution' menu select Solve > Current LS.
o Once the solution is done the following window will pop up. Click 'Close' and
close the /STATUS Command Window..

1. Results Using ANSYS


Reaction Forces
A list of the resulting reaction forces can be obtained for this element
o from the Main Menu select General Postproc > List Results > Reaction
Solu.
o Select 'All struc forc F' as shown above and click 'OK'
These values agree with the reaction forces claculated by hand above.
Deformation
o In the General Postproc menu, select Plot Results > Deformed Shape. The
following window will appear.
o Select 'Def + undef edge' and click 'OK' to view both the deformed and the
undeformed object.
o Observe the value of the maximum deflection in the upper left hand corner
(DMX=7.409). One should also observe that the constrained degrees of
freedom appear to have a deflection of 0 (as expected!)
Deflection
o From the 'General Postproc' menu select Plot results > Contour Plot > Nodal
Solution. The following window will appear.
o Select 'DOF solution' and 'USUM' as shown in the above window. Leave the
other selections as the default values. Click 'OK'.
o Looking at the scale, you may want to use more useful intervals. From the
Utility Menu select Plot Controls > Style > Contours > Uniform
Contours...
o Fill in the following window as shown and click 'OK'.
Axial Stress
For line elements (ie links, beams, spars, and pipes) you will often need to use the
Element Table to gain access to derived data (ie stresses, strains). For this example
we should obtain axial stress to compare with the hand calculations. The Element
Table is different for each element, therefore, we need to look at the help file for
LINK1 (Type help link1 into the Input Line). From Table 1.2 in the Help file, we can
see that SAXL can be obtained through the ETABLE, using the item 'LS,1'
o From the General Postprocessor menu select Element Table > Define
Table
o Click on 'Add...'
o As shown above, enter 'SAXL' in the 'Lab' box. This specifies the name of the
item you are defining. Next, in the 'Item,Comp' boxes, select 'By sequence
number' and 'LS,'. Then enter 1 after LS, in the selection box
o Click on 'OK' and close the 'Element Table Data' window.
o Plot the Stresses by selecting Element Table > Plot Elem Table
o The following window will appear. Ensure that 'SAXL' is selected and click
'OK'
o Because you changed the contour intervals for the Displacement plot to "User
Specified" - you need to switch this back to "Auto calculated" to obtain new
values for VMIN/VMAX.
Utility Menu > PlotCtrls > Style > Contours > Uniform
Contours ...

o List the Stresses


 From the 'Element Table' menu, select 'List Elem Table'
 From the 'List Element Table Data' window which appears ensure
'SAXL' is highlighted
 Click 'OK'
Note that the axial stress in Element 1 is 82.9MPa as predicted analytically.
PLANE STRESS BRACKET
Exercise:
Problem Description:
The problem to be modeled in this example is a simple bracket shown in the following figure.
This bracket is to be built from a 20 mm thick steel plate. A figure of the plate is shown
below.

This plate will be fixed at the two small holes on the left and have a load applied to the larger
hole on the right.

Preprocessing: Defining the Problem


1. Give the Bracket example a Title
Utility Menu > File > Change Title
2. Form Geometry
Again, Boolean operations will be used to create the basic geometry of the Bracket.
a. Create the main rectangular shape
The main rectangular shape has a width of 80 mm, a height of 100mm and the
bottom left corner is located at coordinates (0,0)
 Ensure that the Preprocessor menu is open. (Alternatively type
/PREP7 into the command line window)
 Now instead of using the GUI window we are going to enter code into
the 'command line'. Now I will explain the line required to create a
rectangle:
 BLC4, XCORNER, YCORNER, WIDTH, HEIGHT
 BLC4, X coord (bottom left), Y coord (bottom left), width, height
 Therefore, the command line for this rectangle is BLC4,0,0,80,100
b. Create the circular end on the right hand side
The center of the circle is located at (80,50) and has a radius of 50 mm
The following code is used to create a circular area:
CYL4, XCENTER, YCENTER, RAD1
CYL4, X coord for the center, Y coord for the center, radius
 Therefore, the command line for this circle is CYL4,80,50,50
c. Now create a second and third circle for the left hand side using the following
dimensions:

parameter circle 2 circle 3


XCENTER 0 0
YCENTER 20 80
RADIUS 20 20
d. Create a rectangle on the left hand end to fill the gap between the two small
circles.

XCORNER -20
YCORNER 20
WIDTH 20
HEIGHT 60
e. Your screen should now look like the following...
f. Boolean Operations - Addition
We now want to add these five discrete areas together to form one area.
 To perform the Boolean operation, from the Preprocessor menu select:
Modeling > Operate > Booleans > Add > Areas
 In the 'Add Areas' window, click on 'Pick All'
(Alternatively, the command line code for the above step is
AADD,ALL)
g. Create the Bolt Holes
We now want to remove the bolt holes from this plate.
 Create the three circles with the parameters given below:
parameter circle 1 circle 2 circle 3
WP X 80 0 0
WP Y 50 20 80
radius 30 10 10
 Now select
Preprocessor > Modeling > Operate > Booleans > Subtract
> Areas
 Select the base areas from which to subract (the large plate that was
created)
 Next select the three circles that we just created. Click on the three
circles that you just created and click 'OK'.
(Alternatively, the command line code for the above step is
ASBA,6,ALL)

3. Define the Type of Element


As in the verification model, PLANE82 will be used for this example
o Preprocessor > Element Type > Add/Edit/Delete
o Use the 'Options...' button to get a plane stress element with thickness
(Alternatively, the command line code for the above step is ET,1,PLANE82
followed by KEYOPT,1,3,3)
o Under the Extra Element Output K5 select nodal stress.
2. Define Geometric Contants
o Preprocessor > Real Constants > Add/Edit/Delete
o Enter a thickness of 20mm.
(Alternatively, the command line code for the above step is R,1,20)
3. Element Material Properties
o Preprocessor > Material Props > Material Library > Structural > Linear
> Elastic > Isotropic
We are going to give the properties of Steel. Enter the following when
prompted:
EX 200000
PRXY 0.3
(The command line code for the above step is MP,EX,1,200000 followed by
MP,PRXY,1,0.3)
4. Mesh Size
o Preprocessor > Meshing > Size Cntrls > Manual Size > Areas > All Areas
o Select an element edge length of 5. Again, we will need to make sure the
model has converged.
(Alternatively, the command line code for the above step is AESIZE,ALL,5,)
5. Mesh
o Preprocessor > Meshing > Mesh > Areas > Free and select the area when
prompted
(Alternatively, the command line code for the above step is AMESH,ALL)
Saving Your Job
Utility Menu > File > Save as...

Solution Phase: Assigning Loads and Solving


You have now defined your model. It is now time to apply the load(s) and constraint(s) and
solve the the resulting system of equations.
1. Define Analysis Type
o 'Solution' > 'New Analysis' and select 'Static'.
(Alternatively, the command line code for the above step is ANTYPE,0)
2. Apply Constraints
o Solution > Define Loads > Apply > Structural > Displacement > On
Nodes
o Click on 'Apply' in the 'Apply U,ROT on Lines' window and constrain all
DOF's in the 'Apply U,ROT on Nodes' window.
o Repeat for the second bolt hole.
3. Apply Loads
As shown in the diagram, there is a single vertical load of 1000N, at the bottom of the
large bolt hole. Apply this force to the respective keypoint ( Solution > Define Loads
> Apply > Structural > Force/Moment > On Keypoints Select a force in the y
direction of -1000)

4. Solving the System


Solution > Solve > Current LS

Post-Processing: Viewing the Results


We are now ready to view the results. We will take a look at the deflected shape and the
stress contours once we determine convergence has occured.
Deformation
o General Postproc > Plot Results > Def + undeformed to view both the
deformed and the undeformed object.
The graphic should be similar to the following
o Observe the locations of deflection. Ensure that the deflection at the bolt hole
is indeed 0.
2. Deflection
o To plot the nodal deflections use General Postproc > Plot Results >
Contour Plot > Nodal Solution then select DOF Solution - USUM in the
window.
o Alternatively, obtain these results as a list. (General Postproc > List Results
> Nodal Solution...)
o Are these results what you expected? Note that all translational degrees of
freedom were constrained to zero at the bolt holes.
3. Stresses
o General Postproc > Plot Results > Nodal Solution... Then select von Mises
Stress in the window.
o You can list the von Mises stresses to verify the results at certain nodes
General Postproc > List Results. Select Stress, Principals SPRIN

COMPOSITE WALL
Exercise:
Introduction:
In this example you will learn to model a composite material and analyze one
dimensional conduction properties. Using ANSYS will allow you to output the temperature
distribution in an extremely simple and accurate way.
Problem Description:
• We are modeling heat transfer in a block with a gap filled with different gases.
• All units are S.I.
• Boundary Conditions:
1) The left side of the block has a constant temperature of 400 K.
2) The right side of the block has convection (h=20 W/m-K ; T= 300 K)
3) The Al section generates heat at a rate of 200 W/m3
4) The He section absorbs heat at a rate of 175 W/m3
• Material Properties:
Aluminum(1st layer): KAl = 235 W/m*K
Helium(2nd layer): KHe = 0.1513 W/m*K
Copper(3rd layer): KCu = 400 W/m*K
• Dimensions
Length = 3 m
Width = 3 m
Thickness of each Layer = 1 m
• Objective: Find the nodal temperature distribution and the rate of heat loss from the
furnace.
• Figure:

Basic Outline of the Problem:


Preprocessing:
1. Start ANSYS.
2. Create areas through keypoints.
3. Define the material properties.
4. Define element type. (Quad 8node 77 element, which is a 2-D element for heat
transfer analysis.)
5. Specify meshing controls / Mesh the areas to create nodes and elements.
Solution:
6. Specify boundary conditions.
7. Solve.

Postprocessing:
8. List the results of the temperature distribution.
9. Plot the results of the temperature distribution.
Exit:
10. Exit the ANSYS program, saving all data.
Starting ANSYS:
• Click on ANSYS 6.1 in the programs menu.
• Select Interactive.
• The following menu comes up. Enter the working directory. All your files will be
stored in this directory. Also under Use Default Memory Model make sure the
values 64 for Total Workspace, and 32 for Database are entered. To change
these values unclick Use Default Memory Model.
Modeling the Structure:
• Go to the ANSYS Utility Menu (the top bar). Click Workplane>WP Settings…
• The following widow comes up: (notice the numbers are different)
• Check the Cartesian and Grid Only buttons
• Enter the values shown in the figure above. Click OK
• Go to the ANSYS Utility Menu (the top bar). Click Workplane>Display Working
Plane. This will display the working grid on the workspace.
• Use Utility Menu>PlotCtrls>Pan Zoom Rotate to display the grid as shown in the
next step below.
• Next, go to the ANSYS Main Menu (on the left hand side of the screen) and click
Preprocessor>Modeling>Create>Keypoints>On Working Plane.
• The following window comes up:

• Now you have created the points to make the block.


• Now select Preprocessor>Modeling>Create>Areas>Arbitrary>Through KPs.
A window will now appear on the left of the screen.
• Select the points that form the 1st section. Click Apply such that it is formed
separate from the other two areas.
• Repeat the step of selecting the KPs that make up each area, and clicking Apply
until all three layers are defined. (Click OK for the last one)

Material Properties:
• Now that we have built the model, material properties need to be defined such that
ANSYS understands how heat travels through this composite solid.
• Go to the ANSYS Main Menu
• Select Preferences. We will set up the drop menus only to include thermal tasks, to
make everything easy to navigate.
• Select Thermal and hit ok. Now you are ready.
• Click Preprocessor>Material Props>Material Models.
• In the window that comes up, select Material>New Material
• Hit OK. Repeat the process for the third material. (repeat the last step once more)
• Choose Thermal>Conductivity>Isotropic.
• Fill in 235 for Thermal conductivity. Click OK. This is the Thermal Conductivity of Al.
• Now repeat the steps of clicking Thermal>Conductivity>Isotropic and then
defining the Thermal Conductivity as 0.1513 for the Model 2.
• You have now defined the k value of Helium.
• Define the last section and this time use K = 400. This is the Thermal Conductivity
of Copper.
• Now exit the “Define Material Model Behavior” Window.

Element Properties:
• Click Preprocessor>Element Type>Add/Edit/Delete... In the 'Element Types'
window that opens click on Add...:
• Type 1 in the Element Type reference number.
• Click on Thermal Mass>Solid and select Quad 8node 77. Click OK. Close the
'Element Types' window.
• Now we have selected Element Type 1 to be a Thermal Solid 8node Element.
• This finishes the section defining how the part is to be analyzed.

Meshing:
• Go to Preprocessor>Meshing>Size Controls>Manual Size>Lines>All Lines. In
the menu that comes up type 0.05 in the field for Element edge length and 1 for
the Spacing Ratio.
• Click on OK. Now when you mesh the figure ANSYS will automatically create square
meshes that have an edge length of 0.05m along the lines you selected.
• Now go to Preprocessor>Meshing>Mesh Attributes>Default Attributes. The
window is shown below:

• Make sure that the window matches the one above, click OK, and proceed to
Preprocessor>Meshing>Mesh>Areas>Free
• A popup window will appear on the left hand side of the screen. This window allows
you to select the area to be meshed.
• Choose the 1st area and then click OK in the pop-up window. This both meshes the
area and defines it as Material 1. Material 1 (as you recall from before) was set to
Aluminum originally by defining the k value of the material as 235 W/m*K.
• Now return to Preprocessor>Meshing>Mesh Attributes>Default Attributes.
This time, select Material Number 2 from the dropdown menu and click OK.
• Once the pop-up window appears, select the middle layer and click OK.
• Repeat this process of defining each layer as a different material for Material 3 and
mesh it so that all three layers have been meshed.

Boundary Conditions and Constraints:


• Go to Preprocessor>Loads>Define Loads>Apply>Thermal (from here one can
apply any of the loads, or Boundary Conditions, offered by ANSYS.)

Apply Constant Temperature

• Now we’ll apply the given temperature boundary condition on the right side of the
block.
• This time, within the Thermal Load category select Temperature>On Lines.
• A popup window will appear on the left hand side of the screen. This window allows
you to select the line you wish the load to be applied to.
• Click the innermost boundary of the block and then OK.
• Enter 400 in the popup window as the set temperature for the left edge of the first
section:

Apply Convection
• Now we will apply convection to the right side of the composite block. Select
Convection>On Lines
• Enter the appropriate values and hit OK.
Apply Heat Generation and Heat Absorption

• The next step is to add heat generation to the composite block.


• Choose Heat Generat>On Areas
• Enter 200 W/m3 for the generation and the hit ok.
• Repeat this step for the second area but input -175 W/m3 to imply absorption.
Solution:
• Go to ANSYS Main Menu>Solution>Analysis Type>New Analysis.
• Select Steady State and click on OK.
• Go to Solution>Solve>Current LS.
• Wait for ANSYS to solve the problem.
• Click on OK and close the 'Information' window.

Post-Processing:
• This section is designed so that one can present the results of their analysis in the
most appropriate way. This presentation can be in the form of tabulated nodal values,
curves, etc.
• Go to the ANSYS Main Menu. Click General Postprocessing>List Results>Nodal
Solution.
Select DOF solution and Temperature. Click on OK. The nodal temperatures will
be listed as follows:
Modification / Plotting the Results:
• First go to General Post processing>Plot Results>Contour Plot>Nodal
Solution.
• Select DOF solution and Temperature to be plotted and click OK. The output will
be like this:
• This is the Final Solution
• To find extra information on Saving an ANSYS model see the Appendix on the ANSYS
tutorial main page.
Modal Analysis of a Cantilever Beam
Exercise:
Introduction:

This tutorial was created using ANSYS 5.7.1 The purpose of this tutorial is to outline the
steps required to do a simple modal analysis of the cantilever beam shown below.

Preprocessing: Defining the Problem

Solution: Assigning Loads and Solving

1. Define Analysis Type

Solution > New Analysis > Modal


ANTYPE,2

2. Set options for analysis type:


o Select: Solution > Analysis Options..

As shown, select the Subspace method and enter 5 in the 'No. of


modes to extract'

• Check the box beside 'Expand mode shapes' and enter 5 in the
'No. of modes to expand'Click 'OK'

o For this problem, we will use the default options so click on OK.
Transient Analysis of a Cantilever Beam

Exercise:
Introduction:
Tutorial was created using ANSYS 7.0 The purpose of this tutorial is to show the steps
involved
Perform a simple transient analysis.

Transient dynamic analysis is a technique used to determine the dynamic response of a


structure under aTime-varying load.The time frame for this type of analysis is such that
inertia or damping effects of the structure areConsidered to be important. Cases where such
effects play a major role are under step or impulse
Loading conditions, for example, where there is a sharp load change in a fraction of time.
If inertia effects are negligible for the loading conditions being considered, a static analysis
may be used Instead.For our case, we will impact the end of the beam with an impulse force
and view the response at theLocation of impact.

Since an ideal impulse force excites all modes of a structure, the response of the beam should
contain allmode frequencies. However, we cannot produce an ideal impulse force
numerically. We have to apply aload over a discrete amount of time dt.
After the application of the load, we track the response of the beam at discrete time points for
as long aswe like (depending on what it is that we are looking for in the response).
The size of the time step is governed by the maximum mode frequency of the structure we
wish tocapture. The smaller the time step, the higher the mode frequency we will capture.
The rule of thumb inANSYS istime_step = 1 / 20f
Where f is the highest mode frequency we wish to capture. In other words, we must resolve
our step size such that we will have 20 discrete points per period of the highest mode
frequency.
It should be noted that a transient analysis is more involved than a static or harmonic
analysis. It requires a good understanding of the dynamic behavior of a structure.
Therefore, a modalanalysis of the structure should be initially performed to provide
information about thestructure's dynamic behavior.
In ANSYS, transient dynamic analysis can be carried out using 3 methods.

The Full Method: This is the easiest method to use. All types of non-linearities are allowed.
It is
However very CPU intensive to go this route as full system matrices are used.
The Reduced Method: This method reduces the system matrices to only consider the Master
Degrees of Freedom (MDOFs). Because of the reduced size of the matrices, the calculations
are
much quicker. However, this method handles only linear problems (such as our cantilever
case).
� The Mode Superposition Method: This method requires a preliminary modal analysis, as
factored mode shapes are summed to calculate the structure's response. It is the quickest of
the
three methods, but it requires a good deal of understanding of the problem at hand.
We will use the Reduced Method for conducting our transient analysis. Usually one need
not go furtherthan reviewing the Reduced Results. However, if stresses and forces are of
interest than, we would haveto Expand the Reduced Solution.

ANSYS Command Listing


Finish
/clear
/TITLE, Dynamic Analysis
/FILNAME,Dynamic,0 ! This sets the jobname to 'Dynamic'
/PREP7 ! Enter preprocessor
K,1,0,0 ! Keypoints
K,2,1,0
L,1,2 ! Connect keypoints with line
ET,1,BEAM3 ! Element type
R,1,0.0001,8.33e-10,0.01 ! Real constants
MP,EX,1,2.068e11 ! Young's modulus
MP,PRXY,1,0.33 ! Poisson's ratio
MP,DENS,1,7830 ! Density
LESIZE,ALL,,,10 ! Element size
LMESH,1 ! Mesh the line
FINISH
/SOLU ! Enter solution phase
ANTYPE, TRANS ! Transient analysis
TRNOPT,REDUC, ! reduced solution method
DELTIM,0.001 ! Specifies the time step sizes
!At time equals 0s
NSEL,S,,,2,11, ! select nodes 2 - 11
M,All,UY, , , ! Define Master DOFs
NSEL, ALL ! Reselect all nodes
D, 1, ALL! Constrain left end
F, 2,FY,-100 ! Load right end
! At time equals 0.001s
TIME, 0.001 ! Sets time to 0.001 seconds
KBC,0 ! Ramped load step
FDELE, 2, ALL! Delete the load at the end
!*
! At time equals 1s
TIME, 1 ! Sets time to 1 second
KBC, 0 ! Ramped load step
!*
LSSOLVE, 1, 3, 1 ! Solve multiple load steps
FINISH
/POST26 ! Enter time history
FILE,'Dynamic','rdsp','.' ! Calls the dynamic file
NSOL,2,2,U,Y, UY_2 ! Calls data for UY deflection at node 2
STORE, MERGE! Stores the data
PLVAR, 2, ! Plots vs. time

! Please note, if you are using a later version of ANSYS,


!you will probably have to issue the LSWRITE command at the
!end of each load step for the LSSOLVE command to function
!properly. In this case, replace the !* found in the code
!with LSWRITE and the problem should be solved.

You might also like