-
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 theDiffusionIntegratorin a way very similar to Example 1.For the
ElementwiseMatrixCoefficientyou just need to implement the virtual methodEval(DenseMatrix &K, ElementTransformation &T, const IntegrationPoint &ip)-- you need to set the output parameterKbased on the input element index which is given byT.ElementNo.