rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
fv_operators_conv_implicit_engquist_osher.m
Go to the documentation of this file.
1 function [L_I_conv,bdir_I_conv] = fv_operators_conv_implicit_engquist_osher(varargin)
2 %function [L_I_conv,bdir_I_conv] = fv_operators_conv_explicit_engquist_osher(...
3 % model,model_data[,U,NU_ind])
4 % computes convection contribution to finite volume time evolution matrices,
5 % <b> or their Frechet derivative </b>
6 %
7 %% Return values:
8 % L_I_conv : sparse matrix `L_{\text{eo}}`
9 % bdir_I_conv : offset vector `b_{\text{eo}}`
10 
11 % Bernard Haasdonk 13.7.2006
12 
13 % determine affine_decomposition_mode as integer
14 model = varargin{1};
15 decomp_mode = model.decomp_mode;
16 
17 % switch matrix of explicit discretization
18 if decomp_mode == 2
19  [L_I_conv,bdir_I_conv] = ...
21  L_I_conv = L_I_conv;
22 elseif decomp_mode == 1
23  [L_I_conv,bdir_I_conv] = fv_operators_conv_explicit_engquist_osher(varargin{:});
24 else
25  error('should not be required!');
26 end;
function [ L_E_conv , bdir_E_conv ] = fv_operators_conv_explicit_engquist_osher(model, model_data, U, NU_ind)
computes convection contribution to finite volume time evolution matrices, or their Frechet derivati...
function [ L_I_conv , bdir_I_conv ] = fv_operators_conv_implicit_engquist_osher(varargin)
computes convection contribution to finite volume time evolution matrices, or their Frechet derivati...