Assembly with complex numbers #1042
Unanswered
gatling-nrl
asked this question in
Q&A
Replies: 1 comment
-
Perhaps this helps: scikit-fem/tests/test_assembly.py Line 432 in 6159aa3 I don't know if it was used anywhere. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to implement a form for$\int uv \ dx$ where u and v are complex.
Naively, I write$\int (u_{re} + iu_{im})(v_{re}+iv_{im}) \ dx$
which leads me to some bilinear form like$i\int u_{re} v_{im} \ dx$
Now I imagine code like
How do i accomplish this?
EDIT:
It seems like I'm thinking about it all wrong. In the Poisson equation, for example, it seems that the unknown (complex) potential is modelled by real basis functions? I.e.
the$\varphi_n$ basis functions are real, and only the $a_n$ are complex? In which case I would only need the one real_basis above?
Beta Was this translation helpful? Give feedback.
All reactions