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

fv_space_operator(model,model_data,U,NU_ind,grid,weights) More...

Go to the source code of this file.

Functions

function [ INC
, fluxes ] = 
fv_space_operator (model, model_data, U, NU_ind, weights)
 fv_space_operator(model,model_data,U,NU_ind,grid,weights) More...
 

Detailed Description

fv_space_operator(model,model_data,U,NU_ind,grid,weights)

Definition in file fv_space_operator.m.

Function Documentation

function [ INC , fluxes ] = fv_space_operator (   model,
  model_data,
  U,
  NU_ind,
  weights 
)

fv_space_operator(model,model_data,U,NU_ind,grid,weights)

function applying an FV-space-discretization operator starting from old values U corresponding to the geometry given in model_data.grid producing a new vector of elementwise scalars NU but only on for the subelements with numbers given in NU_ind. If NU_ind is empty, all new values NU are determined, i.e. length(NU) = length(U) = grid.nelements

By this, the operator evaluation can be performed in a localized way, i.e. used for empirical interpolation in e.g. rb_nonlin_evol_simulation

usual timestepping can be performed afterwards by (NU = Id - deltat * INC).

Parameters
modelmodel
model_datamodel data
UU
NU_indNU ind
weightsweights
Return values
INCINC
fluxesfluxes
Required fields of model:
  • verbose —  a verbosity level model shall set the fields:
  • diff_weight —  weight for diffusive flux component
  • conv_weight —  weight for convective flux component
  • reac_weight —  weight for reaction term
  • debug —  flag indicating wether debug output shall be turned on
  • num_diff_flux_ptr —  num diff flux ptr
  • num_conv_flux_ptr —  num conv flux ptr
  • filecache_velocity_matrixfile_extract —  filecache velocity matrixfile extract
  • neumann_values_ptr —  neumann values ptr
Required fields of model_data:
  • grid —  a structure containing geometry information of a mesh used for discretizations
Required fields of weights:
  • diff_weight —  diff weight
  • conv_weight —  conv weight
  • react_weight —  react weight

Definition at line 17 of file fv_space_operator.m.

Here is the caller graph for this function: