1 function grid = construct_grid(params)
2 %
function grid = construct_grid(params)
4 %
function giving a simple common constructor syntax to different
5 % grid types. See the constructors of the grid types with a single
6 % params option
for details on specifications
8 % required fields of params:
9 % gridtype :
'rectgrid' or
'triagrid'
11 % Bernard Haasdonk 18.5.2007
13 if isfield(params,
'gridtype')
14 switch params.gridtype
21 grid = set_boundary_types(grid, params);
26 error('gridtype not known')
A triangular conforming grid in two dimensions.
A cartesian rectangular grid in two dimensions with axis parallel elements.
a one dimensional grid implementation