Example 3321: Diffusion in a rod 1

The comfile run by this example is as follows:

#Example_3321 Transient diffusion example 1      
fem                             #Set the FEM environment 
fem define coordinates 1,1      #Set the coordinates to be 1 ie. 1D
fem define nodes;r;diffusion1;example #Read in 5 nodes at delta x = 0.25 
fem define bases;r;;example         #Defines a linear basis function
fem define elements;r;;example      #Read in four elements
fem define equation;p           #Define a TIME INTEGRATION analysis of 
#                               !  the ADVECTION-DIFFUSION equation
#                               !  using GALERKIN FINITE ELEMENTS with 
#                               !  LINEAR ANALYSIS. Default all other questions
fem list equation               #List the problem type parameters   
fem define material;p           #Define material properties. Set both the
#                               !  constant and linear source terms to zero,
#                               !  the storage and diffusion coefficient to
#                               !  1 and the mass flow to zero. 
fem define initial;p            #Define some initial conditions. The initial
#                               !  solution is zero. Node 1 is set to zero
#                               !  and node 5 is set to 1.     
fem define solve;p              #Defines solver options. Default all options
#                               !  except set the final time to 1 second and
#                               !  the time increment to 0.15 seconds.
fem solve                       #Solve the time integration problem
fem display history             #Display the nodal time history.

Files used by this example are:

Name                   Modified     Size

example_3321.com 10-Apr-2000 1.6k diffusion1.ipbase 10-Apr-2000 893 diffusion1.ipelem 10-Apr-2000 841 diffusion1.ipequa 26-May-2003 1.3k diffusion1.ipequa.old 18-Jun-2002 1.2k diffusion1.iphist 10-Apr-2000 3.5k diffusion1.ipinit 05-Mar-2009 855 diffusion1.ipmate 07-Apr-2003 1.7k diffusion1.ipmate.old 10-Apr-2000 1.5k diffusion1.ipnode 10-Apr-2000 625 diffusion1.ipsolv 13-Apr-2007 1.7k

Download the entire example:

Name                           Modified     Size

examples_3_33_332_3321.tar.gz 06-Mar-2009 4.7k

Html last generated: Sun Mar 6 05:50:17 2016

Input last modified: Thu Mar 5 14:50:24 2009

CMISS Help / Examples / 3 / 33 / 332 / 3321