1 function model_data = stokes_gen_model_data(model)
2 %
function model_data = stokes_gen_model_data(model)
4 % generated fields of model_data:
7 % - bc_info: structure holding information on the boundary conditions. One
8 % can specify boundary parts via model.bnd_rect_corner1 and
9 % model.bnd_rect_corner2. For boundary integrals one has to group the
10 % rectangles with numbers < -1 in model.bnd_rect_index. The boundaries not
11 % assigned in
this way are used
for Dirichlet conditions by
default. It is
12 % also possible to define Dirichlet constraints
for chosen dimensions of
13 % the field variable in model.bnd_dimrange_index. Then the rectangles have
14 % to be given explicitly.
16 % I. Maier, 22.01.2014
20 grid = construct_grid(model);
23 %% discrete
function info
26 case 'lagrangian' % specify polynomial degree in model
30 ids = cell(1, model.dimrange);
31 for i = 1:model.dimrange
32 ids{i} = [
'dim', num2str(i)];
41 ids = {
'velocity',
'pressure'};
48 case 'taylor_hood' % specify polynomial degree of velocity components in model
51 ids = {
'velocity',
'pressure'};
60 %% boundary condition info
61 bc_info =
Fem.
BcInfo(model, grid, df_info);
65 model_data.grid = grid;
66 model_data.df_info = df_info;
67 model_data.bc_info = bc_info;
70 model_data.W = model.get_inner_product_matrix(model_data);
scalar Lagrange FE functions on triangular grid
Fem operators can be obtained from stored components.
scalar Lagrange FE functions (degree 1) with additional bubble function on triangular grid ...
Composite function space for composition of FE function spaces on same grid.
Class for boundary condition information. Allows more flexible usage.