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

fv_diff_explicit_space(U,NU_ind,grid,params) More...

Go to the source code of this file.

Functions

function INC = fv_diff_explicit_space (U, NU_ind,gridbase grid, params)
 fv_diff_explicit_space(U,NU_ind,grid,params) More...
 

Detailed Description

fv_diff_explicit_space(U,NU_ind,grid,params)

Definition in file fv_diff_explicit_space.m.

Function Documentation

function INC = fv_diff_explicit_space (   U,
  NU_ind,
gridbase  grid,
  params 
)

fv_diff_explicit_space(U,NU_ind,grid,params)

function applying an FV-space-discretization operator starting from old values U corresponding to the geometry given in 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 rb_nonlin_evol_simulation

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

Parameters
UU
NU_indNU ind
gridan object
paramsparams
Return values
INCINC
Required fields of params:
  • verbose —  a verbosity level
  • name_diffusivity_tensor —  name diffusivity tensor
Required fields of grid:
  • nelements —  number of elements
  • NBI —  NBI
  • nneigh —  number of neighbours of each element
  • ECX —  ECX(i,j) = \(x\)-coordinate of midpoint of edge from el i to NB j
  • ECY —  ECY(i,j) = \(y\)-coordinate of midpoint of edge from el i to NB j
  • NX —  NX(i,j) = \(x\)-coordinate of unit outer normal of edge from el i to NB j
  • NY —  NY(i,j) = \(y\)-coordinate of unit outer normal of edge from el i to NB j
  • EL —  EL
  • X —  vector of vertex \(x\)-coordinates.
  • VI —  matrix of vertex indices: VI(i,j) is the global index of the j-th vertex of element i
  • Y —  vector of vertex \(y\)-coordinates.
  • A —  vector of element areas
  • Ainv —  vector of inverted element areas
Syntax Update:
Syntax needs to be updated!
Documentation Update:

Definition at line 17 of file fv_diff_explicit_space.m.