Adaptive mesh - keywords ignored

General discussion about Elmer
Post Reply
david.bragason
Posts: 8
Joined: 13 Jan 2013, 02:40
Antispam: Yes

Adaptive mesh - keywords ignored

Post by david.bragason »

I'm trying to test adaptive remeshing/refinement in a simple 2D Poisson problem on a square. The edges have constant Dirichlet BCs, and the surface has concentration-dependent consumption. I add the following lines to the Solver section:

Adaptive Mesh Refinement = Logical True
Adaptive Save Mesh = Logical True
Adaptive Error Limit = Real 1.0e-5 !! have tried different values

The presence of these keywords has no effect on the output of ElmerSolver. I add them to the sif file manually, as, interestingly, if I enable the adaptive options in ElmerGUI, they don't get written to the sif file.

I draw the square in gmsh and import the .msh file into ElmerGUI. Manually converting the .msh file using ElmerGrid doesn't work either. I'm using 7.0.svn.6034+dfsg in Kubuntu.

Any tips would be greatly appreciated,
David
Attachments
case.sif
(2.47 KiB) Downloaded 432 times
stroop
Posts: 26
Joined: 22 Nov 2016, 17:26
Antispam: Yes
Location: Germany

Re: Adaptive mesh - keywords ignored

Post by stroop »

Have you solved this problem?
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Adaptive mesh - keywords ignored

Post by annier »

Hi Stroop,
1. The question in first post seems to be a long while ago and presently there are a numerous tutorials (nonGui) related to adaptive meshing in Elmer.
https://github.com/ElmerCSC/elmerfem/tr ... daptivity1
https://github.com/ElmerCSC/elmerfem/tr ... daptivity2
https://github.com/ElmerCSC/elmerfem/tr ... daptivity3
https://github.com/ElmerCSC/elmerfem/tr ... daptivity4

2. In relation to ElmerGUI, users of ElmerGUI may share their experiences as i am an user of ElmerNonGUI. Naively, i can say that generating of file from ElmerGUI and manual adding of keywords in sif file if again processed through ElmerGUI run will erase the manually added content and effectively it seems like the keywords are ignored. The solvers or keywords available as xml forms (in edf directory) will only be utilized for ElmerGUI processing. An ElmerGUI user may tell u whether there is a provision to add adaptive mesh keywords within the ElmerGUI itself. You can try yourself regarding it.


Yours Sincerely,
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Adaptive mesh - keywords ignored

Post by mzenker »

Hi,
david.bragason wrote: Adaptive Mesh Refinement = Logical True
Adaptive Save Mesh = Logical True
Adaptive Error Limit = Real 1.0e-5 !! have tried different values

The presence of these keywords has no effect on the output of ElmerSolver. I add them to the sif file manually, as, interestingly, if I enable the adaptive options in ElmerGUI, they don't get written to the sif file.
I have looked in to the ElmerGUI code, and if I understand correctly, the adaptive solver parameters are not written to the sif file. The corresponding function is simply missing if I didn't overlook something. For GUI users, a workaround would be to add those parameters or simply a free text field to the solver xml of the solver they are to be used with.

HTH,

Matthias
stroop
Posts: 26
Joined: 22 Nov 2016, 17:26
Antispam: Yes
Location: Germany

Re: Adaptive mesh - keywords ignored

Post by stroop »

Thanks Anil I will try these examples.
Post Reply