rbmatlab  1.13.10
 All Classes Namespaces Files Functions Variables Groups Pages
multiscale_buckley_leverett.m
1 function res = multiscale_buckley_leverett(step)
2 % function performing the multiscale buckley leverett experiments
3 %
4 % step 1: simply call Frederikes test
5 % step 2: generate rbmatlab micromodel and run detailed simulation
6 % as nonlin_evol for different parameters and visualization
7 %
8 % later:
9 % step 3: generate approximation: empirical interpolation
10 % step 4: check empirical_interpolated detailed simulation
11 % step 5: generate reduced model: reduced basis
12 % step 6: reduced simulations and error to detailed one
13 % ...
14 
15 
16 % B. Haasdonk 4.5.2010
17 
18 if (nargin <1)
19  step = 1;
20 end;
21 
22 plot_params = [];
23 
24 switch step
25  case 1 % step 1: simply call Frederikes test
26  err = test(3*10^(-3),0.75,10,300)
27  case 2 % call micromodel as nonlin-evol model
29  model_data = gen_model_data(model);
30  mu = [1,1];
31  model = model.set_mu(model,mu);
32  sim_data = detailed_simulation(model,model_data);
33  plot_sim_data(model, model_data, sim_data, plot_params);
34  otherwise
35  error('step number unknown')
36 end;
37