This tutorial was completed using ANSYS 7.0 The purpose of the tutorial is to show the required steps to account for the weight of an object in ANSYS.

Loads will not be applied to the beam shown below in order to observe the deflection caused by the weight of the beam itself. The beam is to be made of steel with a modulus of elasticity of 200 GPa.

**Give example a Title**Utility Menu > File > Change Title ...

`/title, Effects of Self Weight for a Cantilever Beam`**Open preprocessor menu**ANSYS Main Menu > Preprocessor

`/PREP7`**Define Keypoints**Preprocessor > Modeling > Create > Keypoints > In Active CS...

`K,#,x,y,z`We are going to define 2 keypoints for this beam as given in the following table:

**Keypoint****Coordinates (x,y,z)**1 (0,0) 2 (1000,0) **Create Lines**Preprocessor > Modeling > Create > Lines > Lines > In Active Coord

`L,1,2`Create a line joining Keypoints 1 and 2

**Define the Type of Element****Define Real Constants**- Cross-sectional area AREA: 500
- Area moment of inertia IZZ: 4166.67
- Total beam height: 10
**Define Element Material Properties**Preprocessor > Material Props > Material Models > Structural > Linear > Elastic > Isotropic In the window that appears, enter the following geometric properties for steel:

- Young's modulus EX: 200000
- Poisson's Ratio PRXY: 0.3

**Define Element Density**Preprocessor > Material Props > Material Models > Structural > Linear > Density In the window that appears, enter the following density for steel:

- Density DENS: 7.86e-6

**Define Mesh Size**Preprocessor > Meshing > Size Cntrls > ManualSize > Lines > All Lines... For this example we will use an element edge length of 100mm.

**Mesh the frame**Preprocessor > Meshing > Mesh > Lines > click 'Pick All'

For this problem we will use the BEAM3 (Beam 2D elastic) element. This element has 3 degrees of freedom (translation along the X and Y axes, and rotation about the Z axis).

In the 'Real Constants for BEAM3' window, enter the following geometric properties:

This defines a beam with a height of 10 mm and a width of 50 mm.

**Define Analysis Type****Apply Constraints****Define Gravity**- Select
**Solution > Define Loads > Apply > Structural > Inertia > Gravity...** - The following window will appear. Fill it in as shown to define an acceleration of 9.81m/s
^{2}in the y direction.**Note:**Acceleration is defined in terms of meters (not 'mm' as used throughout the problem). This is because the units of acceleration and mass must be consistent to give the product of force units (Newtons in this case). Also note that a positive acceleration in the y direction stimulates gravity in the negative Y direction.There should now be a red arrow pointing in the positive y direction. This indicates that an acceleration has been defined in the y direction.

`DK,1,ALL,0,`

`ACEL,,9.8` **Solve the System**

Fix keypoint 1 (ie all DOF constrained)

It is necessary to define the direction and magnitude of gravity for this problem.

The applied loads and constraints should now appear as shown in the figure below.

**Hand Calculations**Hand calculations were performed to verify the solution found using ANSYS:

The maximum deflection was shown to be 5.777mm

**Show the deformation of the beam**General Postproc > Plot Results > Deformed Shape ... > Def + undef edge

`PLDISP,2`As observed in the upper left hand corner, the maximum displacement was found to be 5.777mm. This is in agreement with the theortical value.