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.

Setting order for node-types ( Using SetOrder() )

More
4 years 11 months ago #1516 by Elsakori
Hello,

I recently started to work with NGSolve.
I am using NGSolve to solve Maxwell’s equations in time-harmonic form. I created a finite element space as: fes = HCurl(mesh, order=1), and I tried setting order for node-types:
fes.SetOrder(TRIG,2)
fes.SetOrder(TET,3)
fes.Update()
, but I noticed that fes.SetOrder(TRIG,2) doesn't work and 3 face DOFs is what I would expect based on Nedelec’s definition of the second kind elements.

I am grateful for any explanation

Here are my python script and output file.
More
4 years 11 months ago #1530 by mneunteufel
Hi Elsakori,

in the latest version of NGSolve this feature has been added.
Your code should now work.

Best,
Michael
The following user(s) said Thank You: Elsakori
More
4 years 11 months ago - 4 years 11 months ago #1531 by Elsakori
Hi Michael,

Thank you for your response.
I downloaded the last version of NGSolve (6.2.1902) and tried the code, actually it is still not working.

Is the last version of NGSolve for both Window and Mac?. I am using Mac.

Thanks

Elsakori
Last edit: 4 years 11 months ago by Elsakori.
More
4 years 11 months ago #1532 by mneunteufel
Hi Elsakori ,

I was talking from the latest nightly-build not the release-version, sry.

Best,
Michael
More
4 years 11 months ago #1562 by Elsakori
Hi Michael,

It is working now.
Thanks

Elsakori
Time to create page: 0.137 seconds