Loading

   

Solid and Structural Mechanics Demo 2: A 3-D linear elasticity problem

This code solves three-dimensional linearized elastostatics problems. Its main structure is exactly the same as the 2-D code.

  

An example

Let us run this program with the data presented in the following project file:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<OFELI_File>
<info>
   <title></title>
   <date></date>
   <author></author>
</info>
<Project name="beam">
   <verbose>1</verbose>
   <output>0</output>
   <save>1</save>
   <plot>1</plot>
   <init>1</init>
   <mesh_file>beam.m</mesh_file>
   <plot_file>beam.d</plot_file>
</Project>
<Prescription>
   <BodyForce dof="3">-1.0</BodyForce>
</Prescription>
</OFELI_File>

We note here that the file gives project parameters and prescriptions as well. Indeed, we have prescribed a vertical body force equal to -1 to the beam.

 
Copyright © 1998-2016 Rachid Touzani