A variable of piecewise constant functions can be defined as follows:
Grid grid(h,domain); Blockgrid grid(&cylinder,n); // Construction of grid ... Cell_variable<double> a(grid); ...
Now, a represents a piecewise constant function on the grid grid . This function is constant on every cell. Differential operators cannot be applied directly to such functions, but they can be used as variable coefficients in a calculation of a local stiffness matrix or stiffness matrix.
HandbookLast modified: Wed Jun 6 10:31:10 PDT 2001