bilinear form for divergence operator #891
-
Hello everyone, I have a question about bilinear form of Darcy problem: @BilinearForm where b_vector_field is defined as follows: def b_vector_field(x: np.ndarray): After these definitions, I want to assembling the matrix but it has some errors: asm(a,basis) Anyone can help me to fix this problem? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
So you want to find the second derivative of u? This is possible but you need to use e.g. ElementTriArgyris (or other subclass of ElementGlobal). Moreover, scikit-fem cannot chain grad and div like that because there is no symbolic engine under the hood. This means you need to apply product rule yourself and find grad of b also by hand. If you give more details I can help better. |
Beta Was this translation helpful? Give feedback.
So you want to find the second derivative of u? This is possible but you need to use e.g. ElementTriArgyris (or other subclass of ElementGlobal). Moreover, scikit-fem cannot chain grad and div like that because there is no symbolic engine under the hood. This means you need to apply product rule yourself and find grad of b also by hand. If you give more details I can help better.