Skip to content

Anisotropic diffusion coefficient #923

Answered by kinnala
Yeop-Jung asked this question in Q&A
Discussion options

You must be logged in to vote

There is no example AFAIK, but it should be something along the following lines:

from skfem.helpers import *

@BilinearForm
def anipoisson(u, v, w):
    C = np.array([[1.0, 0.1],
                  [0.1, 1.0]])
    return dot(mul(C, grad(u)), grad(v))

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Yeop-Jung
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kinnala
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #921 on September 20, 2022 17:39.