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.

defining a function space on a subdomain

More
3 years 3 months ago #3466 by cdietz
Hello,

I experience some problems when defining a function space on a subdomain of my mesh:
Code:
fes = H1(mesh, order=1, definedon=mesh.Materials('core'))
The assembly of any system matrix throws the following error/warning:
used dof inconsistency (silence this warning by setting BilinearForm(...check_unused=False) )
I guess this is why i cannot find a solution to my problem.
I have already visualized the function space using a gridfunction and it looks good to me.

Interestingly, if I define the function space on the entire domain everything works great. I can assemble the system matrices without the above warning and get a reasonable solution to my problem.
Code:
fes = H1(mesh, order=1)

Can this error be related to my mesh? I have already tried this restricted function space on a simple geometry and i didn't get the error.

Best Regards
Christoph Dietz
More
3 years 3 months ago - 3 years 3 months ago #3467 by christopher
Did you invert the matrix only on the freedofs? can you post a minimal example?

Best
Christopher
Last edit: 3 years 3 months ago by christopher.
Time to create page: 0.145 seconds