function computing the flux matrix of a convection problem. simply reformatting the grid data suitably for pointwise evaluation by conv_flux. As evaluation points the points of suitable gauss-quadratures are chosen. The degree can be chosen in the model structure. More...
Go to the source code of this file.
Functions | |
function [
flux_mat , lambda ] = | fv_conv_flux_matrix (model, model_data, U, conv_flux_ptr) |
function computing the flux matrix of a convection problem. simply reformatting the grid data suitably for pointwise evaluation by conv_flux. As evaluation points the points of suitable gauss-quadratures are chosen. The degree can be chosen in the model structure. More... | |
function computing the flux matrix of a convection problem. simply reformatting the grid data suitably for pointwise evaluation by conv_flux. As evaluation points the points of suitable gauss-quadratures are chosen. The degree can be chosen in the model structure.
Definition in file fv_conv_flux_matrix.m.
function [ flux_mat , lambda ] = fv_conv_flux_matrix | ( | model, | |
model_data, | |||
U, | |||
conv_flux_ptr | |||
) |
function computing the flux matrix of a convection problem. simply reformatting the grid data suitably for pointwise evaluation by conv_flux. As evaluation points the points of suitable gauss-quadratures are chosen. The degree can be chosen in the model structure.
in complete
(decomp_mode = 0) mode, flux_mat is a 2 x nelements x nfaces matrix. In decomp_mode = 1 a cell array of such and in decomp_mode = 2 a simple vector of coefficients.
Optionally, a divergence cleaning is performed. Ensure, that the divergence cleaning is not performed out of a neuman boundary, as these values will be reevaluated in setting of the boundary values, so an inconsistency would occur in that case. Instead lead the cleaning sweeps out of the domain by dirichlet boundaries. alternatively a divergence cleaning by optimization is possible.
required fields of model as required by conv_flux
Function supports affine decomposition, i.e. different operation modes guided by optional field decomp_mode in model.
model | model |
model_data | model data |
U | U |
conv_flux_ptr | conv flux ptr |
flux_mat | flux mat |
lambda | lambda |
decomp_mode —
flag indicating the operation mode of the function:mu_names
.mu_names
. conv_flux_ptr —
conv flux ptr flux_linear —
flux linear flux_quad_degree —
flux quad degreegrid —
a structure containing geometry information of a mesh used for discretizationsdivclean_mode —
field, which indicates the divergence cleaning if it is set, further fields must be set: possibility —
none
, sweep
or optimize
Definition at line 17 of file fv_conv_flux_matrix.m.