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.

hp-refinement

More
6 years 2 months ago #368 by arieder
hp-refinement was created by arieder
Hi,
I'm having trouble using the hp-refinement of ngsolve with the attached code. While the mesh generated looks reasonable, the error increases from 5.708879679178683e-13 to 0.015308713648027968 when I do one mesh.RefineHP step.

The console output also says something about "used dof inconsistency". Am I doing something wrong or is there some bug somewhere?
More
6 years 2 months ago #369 by cwinters
Replied by cwinters on topic hp-refinement
Hi,

if you have two edges with hp-refinement which are connected, you also have to add a hpref at the crosspoint. In your case at all points of the geometry.
Code:
p1 = geo.AppendPoint (0,0,hpref=1) p2 = geo.AppendPoint (1,0,hpref=1) p3 = geo.AppendPoint (1,1,hpref=1) p4 = geo.AppendPoint (0,1,hpref=1)

My errors are now [5.708775518541384e-13, 4.975185600311657e-13].

Best,
Christoph
More
6 years 2 months ago #370 by arieder
Replied by arieder on topic hp-refinement
thanks. Now it works as expected!
Time to create page: 0.147 seconds