rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
Functions
init_values_gradient_box.m File Reference

init value function with a gradient box profile in Y-direction as output More...

Go to the source code of this file.

Functions

function U0 = init_values_gradient_box (glob, params)
 init value function with a gradient box profile in Y-direction as output More...
 

Detailed Description

init value function with a gradient box profile in Y-direction as output

Definition in file init_values_gradient_box.m.

Function Documentation

function U0 = init_values_gradient_box (   glob,
  params 
)

init value function with a gradient box profile in Y-direction as output

function constructing the initial values of the convection diffusion problem in the specified global points glob and parameters.

\[u_0 = ( c_0 (y-y_{\min}) + c_1 (y_{\max}-y) ) \cdot \frac{1}{y_{\max}-y_{\min}} \cdot \chi_{B}\]

where \(B=[x_{\min},x_{\max}] \times [y_{\min},y_{\max}]\) denotes the gradient box with \((x_{\min},x_{\max}) = (0.35,0.55)\) and \((y_{\min},y_{\max}) = (0.2,0.9)\).

Parameters
globglob
paramsa structure with model parameters
Return values
U0U0
Required fields of params:
  • c_init_up —  constant value at upper boundary of gradient box \(c_0\)
  • c_init_low —  constant value at lower boundary of gradient box \(c_1\)
  • debug —  flag indicating wether debug output shall be turned on
  • decomp_mode —  flag indicating the operation mode of the function:
    • 0 (complete) : no affine parameter dependence or decomposition is performed.
    • 1 (components) : for each output argument a cell array of output matrices is returned representing the \(q\)-th component independent of the parameters given in mu_names.
    • 2 (coefficients) : returns a vector where each coordinate represents the \(q\)-the coefficient \(\sigma_{\cdot}^{q}(\mu)\) dependent on the parameters given in mu_names.
  • c_init_lo —  c init lo

Definition at line 17 of file init_values_gradient_box.m.