3 %
function [A, r, A_gamma, r_gamma] =
6 %
function computing all required matrizes
for the simulation
8 % Required fields of model:
9 % decomp_mode:
if 0 or 1, matrizes of the detailed systems are
10 % assembled,
if 2 , coefficients
for the matrix of the reduced
13 % I. Maier, 19.07.2011
15 model.base_model.decomp_mode = model.decomp_mode;
21 if isfield(model_data,
'operators')
22 [A{i}, r{i}] = model_data.operators(i);
25 if model.decomp_mode < 2
26 model_data.df_info = model_data.df_infos{i};
28 [A{i}, r{i}] = model.base_model.operators(model.base_model, ...
37 % modification on the interface
38 if model.decomp_mode == 0
43 %
delete and insert dirichlet rows:
44 gids = model_data.gamma_dofs{i};
45 ndofs = model_data.df_infos{i}.ndofs;
47 A_tmp = sparse(gids,gids,ones(size(gids)),ndofs,ndofs);
49 A_gamma{i}(gids,:) = 0;
52 A_gamma{i} = A_gamma{i} + A_tmp;