-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello, does one of the MatrixCoefficients work for you? |
Beta Was this translation helpful? Give feedback.
-
You can define a custom For the |
Beta Was this translation helpful? Give feedback.
You can define a custom
MatrixCoefficicient
, e.g.ElementwiseMatrixCoefficient
, to use with theDiffusionIntegrator
in a way very similar to Example 1.For the
ElementwiseMatrixCoefficient
you just need to implement the virtual methodEval(DenseMatrix &K, ElementTransformation &T, const IntegrationPoint &ip)
-- you need to set the output parameterK
based on the input element index which is given byT.ElementNo
.