Jump to content

Nonlinear finite elements/Solution procedure

From Wikiversity

Solution procedure

[edit | edit source]

The finite element system of equations is

๐Œ๐ฎยจ=๐Ÿextโˆ’๐Ÿint=๐Ÿ.

Let's assume that the mass matrix is diagonal. Let us also assume that we would like to solve this problem using an explicit method that uses central differencing.

Let the time step size be ฮ”t. Let us also assume that the time step is constant. Then, at time step n, the time is tn=nฮ”t.

Let

๐ฎn=๐ฎ(tn).

Let us take a half step to compute the velocity at the middle of the timestep. Then,

๐ฏn+1/2=๐ฎn+1โˆ’๐ฎnฮ”t.

We will use this half-step velocity to compute the acceleration

๐šn=๐ฎยจn=๐ฏn+1/2โˆ’๐ฏnโˆ’1/2ฮ”t.

Now,

๐ฎยจn=๐Œโˆ’1๐Ÿn.

Therefore,

๐Œโˆ’1๐Ÿn=๐ฏn+1/2โˆ’๐ฏnโˆ’1/2ฮ”t๐ฏn+1/2=๐ฏnโˆ’1/2+ฮ”t๐Œโˆ’1๐Ÿn.

Algorithm

[edit | edit source]
  1. Initialize:
    1. Set t=0 and n=0.
    2. Set the initial velocities (๐ฏ0) at the nodes.
    3. Set the initial accelerations (๐š0) at the nodes.
    4. Set the initial stresses (ฯƒ0) at the element Gauss points.
    5. Compute the lumped mass ๐Œ at the nodes.
  2. Set the displacements and velocities at the first time step:
    1. Displacement: ๐ฎ0=0.
    2. Velocity: ๐ฏ1/2=๐ฏ0+ฮ”t2๐š0.
  3. Apply essential BCs: [๐ฏ1/2]ฮ“v=๐ฏยฏ(๐ฑ,ฮ”t/2).
  4. Update the nodal displacements: ๐ฎ1=๐ฎ0+ฮ”t๐ฏ1/2.
  5. Set n=1 and t=ฮ”t.
  6. Loop through the following steps until t=tmax.
  7. For each element (at the Gauss points):
    1. Compute the strain measure: ฮตn=u,XorDn=v,x.
    2. Compute the stress: P=EPFฮตnorฯƒห™=EฯƒDDn.
  8. For each node:
    1. Compute the internal force (fin)int.
    2. Compute the external force (fin)ext.
    3. Compute the total force fin.
    4. Compute the acceleration ain: ain=Miiโˆ’1fin.
    5. Update the velocity vin+1/2. vin+1/2=vinโˆ’1/2+ฮ”tain.
    6. Apply the essential boundary conditions.
    7. Update the displacement uin+1. uin+1=uin+ฮ”tvin+1/2.
  9. Update the counters: n=n+1, t=t+ฮ”t.

Stability of the explicit algorithm

[edit | edit source]

If the time step ฮ”t is too large, the algorithm may not be stable and may give unreasonable results. To provide a check on the time step size, we use the CFL (Courant-Friedrichs-Lewy) condition to determine ฮ”t. This condition (in 1-D) states that

ฮ”tcrit=l0c0

where l0 is the initial length of the element, and c0 is speed of sound in the material (wavespeed) given by

c0=EPFฯ0.