Example 3322: Diffusion in a rod 2


The comfile run by this example is as follows:

#Example_3322 Transient diffusion example 2     
                                                                      
fem                             #Set the FEM environment 
fem define coordinates 1,1      #Set the coordinates to be 1 ie. 1D
fem define nodes;r;diffusion2;example #Read in 11 nodes at delta x = 0.10 
fem define bases;r;;example         #Defines a linear basis function
fem define elements;r;;example      #Read in ten 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 11 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.05 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_3322.com 10-Apr-2000 1.6k diffusion2.ipbase 10-Apr-2000 893 diffusion2.ipelem 10-Apr-2000 1.9k diffusion2.ipequa 26-May-2003 1.2k diffusion2.ipequa.old 18-Jun-2002 1.2k diffusion2.ipinit 10-Apr-2000 755 diffusion2.ipmate 07-Apr-2003 1.7k diffusion2.ipmate.old 10-Apr-2000 1.5k diffusion2.ipnode 10-Apr-2000 1.0k diffusion2.ipsolv 13-Apr-2007 1.6k

Download the entire example:

Name                           Modified     Size

examples_3_33_332_3322.tar.gz 14-Apr-2007 4.2k

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

Input last modified: Fri Apr 13 10:32:28 2007


CMISS Help / Examples / 3 / 33 / 332 / 3322