1 function beta = stokes_infsup_constant(model, model_data)
2 %
function beta = stokes_infsup_constant(model, model_data)
5 old_decomp_mode = model.decomp_mode;
8 % assembly required matrix
9 S =
Fem.
Assembly.stokes_fd_nl_operator(model, model_data);
11 model.decomp_mode = old_decomp_mode;
14 K = getMatrix(model.get_inner_product_matrix(model_data));
15 dir_gids = model_data.bc_info.dirichlet_gids;
26 % compute constant using eigs
27 fun = @(X) S \ (K * (S' \ X));
33 beta = sqrt(eigs(fun, size(S, 1), K, 1, 'SM', opts));