rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
gen_model_data.m
1 function model_data = gen_model_data(dmodel)
2 %function model_data = gen_model_data(dmodel)
3 % method which produces all `H`-dependent data, that is required for a detailed
4 % simulations and is independent of the parameter `\mu`.
5 %
6 % Generated fields of model_data:
7 % W : inner product weighting matrix
8 
9 % Bernard Haasdonk 27.8.2009
10 
11 descr = dmodel.descr;
12 model_data = [];
13 model_data.grid = construct_grid(descr);
14 
15 % I think "inner_product_matrix_algorithm" should be replaced by mass_matrix,
16 % as the latter can be built generically by local_mass_matrix
17 % function, e.g. for ldg functions
18 %model_data.W = model.inner_product_matrix_algorithm(model, model_data);
19 % the following can, e.g. be set to fv_mass_matrix
20 model_data.W = descr.mass_matrix([], model_data.grid,[]);
21 %| \docupdate