rbmatlab  1.13.10
 All Classes Namespaces Files Functions Variables Groups Pages
gradient_approx_matrix_common_settings.m
1 mparams.model_type = 'nonlinear';
2 
3 
4 params = richards_fv_model(mparams);
5 
6 params.gridtype = 'rectgrid';
7 params.tstep = 1;
8 params.gravity = 0;
9 
10 params.xrange = [0,1];
11 params.yrange = [0,1];
12 params.xnumintervals = 2;
13 params.ynumintervals = 2;
14 
15 % set all to dirichlet-boundary by specifying "rectangles", all
16 % boundary within is set to boundary type by bnd_rect_index
17 params.bnd_rect_corner1 = [-0.999999, 0; ...
18  0, -0.9999999];
19 params.bnd_rect_corner2 = [ 2, 0.999999; ...
20  0.999999, 2];
21 
22 % -1 means dirichlet, -2 means neumann
23 params.bnd_rect_index = [ -1, -2];
24 
25 % name of function in rbmatlab/datafunc/dirichlet_values
26 params.dirichlet_values_ptr = @dirichlet_values_leftright;
27 
28 params.c_dir_left = 1;
29 params.c_dir_right = 1;
30 params.dir_middle = 0.5;
31 params.c_dir_correct = 1;
32 params.decomp_mode = 0;
33 
34 params.neumann_values_ptr = @neumann_values_homogeneous;
35 params.c_neu = 0;
36 
37 params.rb_init_values = @fv_init_values;
38 params.init_values_ptr = @init_values_homogeneous;
39 params.implicit_operators_algorithm = @fv_operators_implicit;
40 params.operators_diff_implicit = @fv_operators_diff_implicit_gradient_tensor;
41 params.operators_neumann_implicit = @fv_operators_zero;
42 params.fv_impl_conv_weight = 0;
43 params.fv_impl_react_weight = 0;
44 params.fv_impl_diff_weight = 1.0;
45 params.get_rb_size = @get_rb_size_default;
46 
47 params.inner_product_matrix_algorithm = @fv_inner_product_matrix;
48 params.model_type = 'nonlinear';
49 params.diffusivity_ptr = @diffusivity_homogeneous;
50 params.diffusivity_tensor_ptr = @diffusivity_tensor_richards;
51 params.k = 0.005;
52 
53 params.geometry_transformation = 'spline';
54 params.geometry_spline_type = 'cubic';
55 params.hill_height = 0.0;
56 params.geometry_transformation_spline_x = [ 0 0.5 1 ];
57 params.geometry_transformation_spline_y = [ 0 -0.033 0 ];
58 
59 params.t = 0;
60 params.tstep = 1;
61 params.dt = 0.1;
62 
63 params.debug = true;
64 params.verbose = 0;
65 
66 model_data = nonlin_evol_gen_model_data(params);
67 %| \docupdate