The accompanying Jupyter notebook can be obtained here 1_3d_uniaxial

3D Uniaxial bar

The objective of this exercise is to implement a 3D finite element analysis (FEA) program using FEniCS. You are required to create a FEniCS code that performs the analysis, solve for the displacements and stresses in the bar, and visualize the results.

Materials: - Steel material properties: - Young's Modulus (E): 200 GPa - Poisson's Ratio (ν): 0.3 - Density (ρ): 7850 kg/m^3

Bar Dimensions: - Length (Lx): 1 meter - Ly and Lz: 0.02 meters (20 mm)

Boundary Conditions: - One end of the bar is fixed (fixed boundary condition). - The other end is subjected to a uniaxial tensile load: - Load (F): 10,000 N

Mesh: - Use a simple 3D mesh for the bar, consisting of tetrahedral elements.


Steps:

  1. Import FEniCS and Necessary Libraries
  2. Define the Geometry and Mesh
  3. Define the Material Properties
  4. Define the Boundary Conditions
  5. Define the Finite Element Function Space
  6. Formulate the Governing Equations.
  7. Solve the System
  8. Calculate Stress
  9. Post-Processing and Visualization:

from dolfin import *
mesh =  BoxMesh(Point(0,0,0), Point(1,1,1),3,3,3)
mesh
FEniCS/DOLFIN X3DOM plot