DiscretizationEvaluateOperatorGalerkin

This function calculates the weak form of an operator over a single element.

Synopsis

#include "discretization.h" 
int DiscretizationEvaluateOperatorGalerkin(Discretization disc, Mesh mesh, int elemSize, int rowStart, int colStart,
                                           int op, PetscScalar alpha, int elem, PetscScalar *field, PetscScalar *mat, void *ctx)
Collective on Discretization

Input Parameters

disc - The discretization for the basis functions
mesh - The associated mesh
elemSize - The size of the element matrix
rowStart - The starting row index in the element matrix
colStart - The starting column index in the element matrix
op - The operator index (of registered operators)
alpha - The scalar multiple of the operator
elem - The local element number
field - The field values
ctx - The user-supplied context

Output Parameter

mat -The element matrix for the given element

Keywords

discretization, operator, weak form

See Also

DiscretizationEvaluateFunctionGalerkin(), DiscretizationEvaluateALEOperatorGalerkin(), DiscretizationEvaluateOperatorGalerkinMF(),
DiscretizationEvaluateNonlinearOperatorGalerkin()

Level:beginner
Location:
src/grid/discretization/interface/discretization.c
Index of all Discretization routines
Table of Contents for all manual pages
Index of all manual pages