how to set discretization in Elmer

Numerical methods and mathematical models of Elmer
Post Reply
xiejinzhi
Posts: 22
Joined: 16 Jun 2023, 09:45
Antispam: Yes

how to set discretization in Elmer

Post by xiejinzhi »

Hi
In COMSOL, the discretization could be setted by this
Image
Could Elmer do this?
Xiejinzhi
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: how to set discretization in Elmer

Post by raback »

Hi

If you have Lagrange/Serendipity-elements then what is used is the elements in the mesh file. All shapes are supported to 2nd degree, some shapes even up to 4th.

More convenient way to increase basis power is to use hierarchical p-basis. This does not work for all solvers, but does for HeatSolveVec, for example. There you can say

Code: Select all

Element = p:n
where n defines the polynomial degree. Usually n=2..4 but it could be at least 10 (which is usually an overkill).

For curved shapes you may have to pull some additional keywords to obtain ideal convergence rate.

-Peter
kevinarden
Posts: 2319
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: how to set discretization in Elmer

Post by kevinarden »

In ElmerGUI you can edit solver settings on on the general options tab there is free field input, so you can add
Element="p:2" or Element = "p:4", etc.
Capture.PNG
Capture.PNG (62.3 KiB) Viewed 247 times
Post Reply