how to set discretization in Elmer

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

how to set discretization in Elmer

Post by xiejinzhi »

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

Re: how to set discretization in Elmer

Post by raback »


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.

Posts: 2083
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 (62.3 KiB) Viewed 143 times
Post Reply