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.

zero mean value L^2

More
4 years 7 months ago #1774 by Presley
zero mean value L^2 was created by Presley
Hi guys,

I was wondering how to implement L^2 polynomial spaces with zero mean value?(i.e. L^2_0(\Omega)) space

Thanks a lot!

Rob
More
4 years 7 months ago - 4 years 7 months ago #1775 by hvwahl
Replied by hvwahl on topic zero mean value L^2
Hello Rob,

one option would be to enforce the constraint via a Lagrange multiplier:
Code:
V = L2(mesh, order = k) N = NumberSpace(mesh) X = FESpace([V,N]) (u,lam),(v,mu) = X.TnT()
and then add
Code:
u*mu + v*lam
to your bilinear form.

Besh wishes,
Henry
Last edit: 4 years 7 months ago by hvwahl.
More
4 years 7 months ago #1787 by Presley
Replied by Presley on topic zero mean value L^2
Hi Henry,

That works! Thanks a lot!

Best regards,
Rob
Time to create page: 0.166 seconds