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

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...
 

Detailed Description

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 Documentation

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

in case of sweep additionally required
divclean_sweeps: cell array with information on divergence cleaning
sweeps. Each element contains three fields
start_elements : vector of element indices used as starting points for the sweep steps : number of rows/cols divergence cleansed direction : main direction of the block for cleaning

Function supports affine decomposition, i.e. different operation modes guided by optional field decomp_mode in model.

See also
the contents.txt for general explanation
Parameters
modelmodel
model_datamodel data
UU
conv_flux_ptrconv flux ptr
Return values
flux_matflux mat
lambdalambda
Required fields of model:
  • 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.
  • conv_flux_ptr —  conv flux ptr
  • flux_linear —  flux linear
  • flux_quad_degree —  flux quad degree
Required fields of model_data:
  • grid —  a structure containing geometry information of a mesh used for discretizations
Optional fields of model:
  • divclean_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.

Here is the caller graph for this function: