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.

How to change the Element Order

More
6 years 4 months ago #288 by Zebri
Hi

How can I change the element order? I tried: "mesh.SetElementOrder(5)" but SetElementOrder needs the ElementIds. How can I specify them?

Is it possible to increase just the order of the elements which are used for the holes?

The jupyter sheet is attached.

Kind regards

Michael
More
6 years 4 months ago #289 by cwinters
Hi,

would you like to have a high order approximation of the circles or a higher polynomial degree in your finite element space?
"SetElementOrder" sets the polynomial order of your finite element.

I just saw a problem with your geometry. If the holes touch the box, the meshing does not work properly.

Best regards,

Christoph
More
6 years 4 months ago #290 by Zebri
Hi,

Thank you for the fast response. I will reduce the hole diameter so that the holes don't touch the outer geometry.

I would like to get a better representation of the form of the holes without needing more elements. How can this be achieved?

kind regards,

Michael
More
6 years 4 months ago #292 by cwinters
Hi,

if you have a NGSolve mesh, you can call the "Curve" function.
Code:
myGeo = MyGeometry(0.02,90,0.02,8,8,0.2,0.5,1.1,0.04) myGeo.createEquidistantGeometry() myGeo.mesh.Curve(5)
The argument defines the order of the splines, which are used to approximate the curved geometry.

Best regards,
Christoph
More
6 years 4 months ago #293 by Zebri
Merci
Time to create page: 0.119 seconds