Back to Finite Element (MFEM)
mfem.gridfunction.projectDiscCoefficient
Projects a discontinuous coefficient onto a grid function with averaging.
Syntax
mfem.gridfunction.projectDiscCoefficient(gf, coeffPtr, avgType?)
Description
Projects a discontinuous coefficient onto a grid function with averaging. When a coefficient has different values on different sides of an element interface, this function uses the specified averaging type to determine the value at shared DOFs.
Parameters
| Name | Description |
|---|---|
| gf | - The grid function to modify |
| coeffPtr | - Pointer to a Coefficient in WASM memory |
| avgType(optional) | - Averaging type for interface values (default: ARITHMETIC) |
Returns
void