DMPlexInsertBoundaryValuesFVM#

Reconstruct cell gradients and insert non-essential (e.g. outflow) boundary values into a local finite-volume solution vector.

Synopsis#

#include "petscdmplex.h"   
PetscErrorCode DMPlexInsertBoundaryValuesFVM(DM dm, PetscFV fv, Vec locX, PetscReal time, Vec *locGradient)

Collective

Input Parameters#

  • dm - the DMPLEX

  • fv - the PetscFV discretization

  • locX - the local solution vector; updated with non-essential boundary values

  • time - the current time

Output Parameter#

  • locGradient - if non-NULL, the local vector holding the reconstructed cell gradients

Note#

The caller receives ownership of *locGradient via DMGetLocalVector() and must return it with DMRestoreLocalVector().

See Also#

DMPlex: Unstructured Grids, DM, DMPLEX, PetscFV, DMPlexInsertBoundaryValues(), DMPlexReconstructGradientsFVM()

Level#

developer

Location#

src/dm/impls/plex/plexfem.c


Index of all DMPlex routines
Table of Contents for all manual pages
Index of all manual pages