function evaluating a function in the list of global coordinates specified in the columns of glob
.
More...
Go to the source code of this file.
Functions | |
function flux = | conv_flux_affine_decomposed (glob, U, params) |
function evaluating a function in the list of global coordinates specified in the columns of glob . More... | |
function evaluating a function in the list of global coordinates specified in the columns of glob
.
Definition in file conv_flux_affine_decomposed.m.
function flux = conv_flux_affine_decomposed | ( | glob, | |
U, | |||
params | |||
) |
function evaluating a function in the list of global coordinates specified in the columns of glob
.
The result is a matrix of flux vector results as columns of flux.
The function is given by function pointer to components and coefficients Linear combination of components by coefficients then yields the complete evaluation.
Convective flux functions are used e.g. by finite folume operators like fv_operators_conv_explicit_lax_friedrichs() or fv_num_conv_flux_engquist_osher().
glob | a matrix of row vectors for each coordinate dimension of the grid defining the coordinates where the flux function is evaluated, in case it is space dependent, i.e. we have something like \(f(u,x)\). |
U | a vector with evaluations of a solution \(u\) which are passed as an argument to the flux function \(f\) |
params | a structure with model parameters |
flux | a matrix which entries \(F_{ji}\) represent the \(i\)-th component of the flux vector \(f(u(x_{j}))\) in the edge midpoint \(x_{j}\) given by the glob argument. |
conv_flux_coefficients_ptr —
Function must allow call flux = f(params)
Return is a vector of length Q
with (parameter dependent) coefficients in flux. conv_flux_components_ptr —
Functions must allow call flux = f(glob,U,params)
Return of components is a cell array of matrices of the same size as glob
with the point values of the flux. debug —
flag indicating wether debug output shall be turned on decomp_mode —
flag indicating the operation mode of the function:mu_names
.mu_names
.Definition at line 17 of file conv_flux_affine_decomposed.m.