-
Hi, thanks for this nice library. But I'm not sure how it's done in skfem. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
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)) |
Beta Was this translation helpful? Give feedback.
-
Oh yes, |
Beta Was this translation helpful? Give feedback.
-
@kinnala It uses "w.u_k" that's from "basis.interpolate(x)"
I think this only works when it's 1D. But what if I want to use a 2D tensor with a nonlinear term something like this.? Thanks! |
Beta Was this translation helpful? Give feedback.
There is no example AFAIK, but it should be something along the following lines: