Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Complex conjugates of test functions

More
2 years 6 months ago #4044 by Ben_Latham
Hello,

I'm working on implementing a DtN method for a problem involving complex waves. Is it the case that if you have lines like:
Code:
fes = H1(mesh, order, complex=True) u,v=fes.TnT()
then ngsolve will read all instances of v as Conj(v)? Or will I need to manually write Conj(v) in my weak form? If the former, and I want to create a matrix with elements which do not have a conjugate, can I use Conj(v) to get these? Any clarification on this point would be helpful.

Best,
Ben
More
2 years 6 months ago #4045 by christopher
Hi,
the basis functions are always real, even in a complex space. Just the coefficients are complex. Therefore you can just use v.
Best
Christopher
Time to create page: 0.128 seconds