Search found 27 matches

by wiesi
09 Jan 2022, 00:48
Forum: ElmerSolver
Topic: List of keywords, by module
Replies: 13
Views: 2350

Re: List of keywords, by module

Yeah, there are quite some details to it. I also underestimated the work required for the static code analysis. It went from "I'll have a look at it this afternoon" to a few days of work. Regarding Peter's #1: If those keywords are only a few and no new ones of this style will be added, th...
by wiesi
04 Jan 2022, 14:31
Forum: ElmerSolver
Topic: List of keywords, by module
Replies: 13
Views: 2350

Re: List of keywords, by module

I am a very infrequent Elmer user, mostly for private projects and out of curiosity. So my opinions need to be taken with a grain of salt. The following options and thoughts are of varying complexity and required effort. Personally, I favor the options that leave less room for error (missing keyword...
by wiesi
29 Dec 2021, 20:54
Forum: ElmerSolver
Topic: List of keywords, by module
Replies: 13
Views: 2350

Re: List of keywords, by module

Hi everyone,

you can find the tool on GitLab: https://gitlab.com/wiesi/elmerkeywordextractor
Be sure to read the "Limitations" section in README.md to know what it can do and what not.
by wiesi
25 Dec 2021, 21:44
Forum: ElmerSolver
Topic: List of keywords, by module
Replies: 13
Views: 2350

Re: List of keywords, by module

A first version of the tool is ready. It generates HTML output to make some markup possible. I've attached the output for the src/modules/MagnetoDynamics subdirectory if you are interested (had to put it in an archive, because the forum software refuses to accept html files). What would be an approp...
by wiesi
22 Dec 2021, 21:28
Forum: ElmerSolver
Topic: List of keywords, by module
Replies: 13
Views: 2350

Re: List of keywords, by module

The second case is easy, once the first case works. I've started to implement some proof of concept using Python, but there are some difficulties: 1) Some keywords have "computed keyword names". For example, if the variable name in a solver section is selected via Variable = "xyz"...
by wiesi
19 Dec 2021, 22:04
Forum: ElmerSolver
Topic: List of keywords, by module
Replies: 13
Views: 2350

Re: List of keywords, by module

I think it would be nice to have some static code analysis tool that generates a list of all implemented keywords, so I dug a bit further. There are many more functions for retrieving the different data types from the sif file. Most seem to be implemented in Lists.F90 and DefUtils.F90. Additional si...
by wiesi
08 Dec 2021, 20:20
Forum: ElmerSolver
Topic: Unexpected behavior of (adaptive) BDF time stepping (with WhitneyAVSolver)
Replies: 7
Views: 1154

Re: Unexpected behavior of (adaptive) BDF time stepping (with WhitneyAVSolver)

@Rich: Thank you for checking the testcase with your installed version. Seems to have the same problem. @Peter: I just checked with a timestep of 1e-4. Is does converge to a meaningful constant stationary value. The transient part, however is still messed up and observing the transient behavior is t...
by wiesi
07 Dec 2021, 22:09
Forum: ElmerSolver
Topic: Unexpected behavior of (adaptive) BDF time stepping (with WhitneyAVSolver)
Replies: 7
Views: 1154

Re: Unexpected behavior of (adaptive) BDF time stepping (with WhitneyAVSolver)

Immediate reaction from the images is that the mesh is too coarse for meaningful results, I would try some mesh refinement, or higher order elements before proceeding. I just used such a coarse mesh for the uploaded example to keep the file size down. It happens with finer meshes, too. Hm. Setting ...
by wiesi
06 Dec 2021, 16:20
Forum: ElmerSolver
Topic: Unexpected behavior of (adaptive) BDF time stepping (with WhitneyAVSolver)
Replies: 7
Views: 1154

Unexpected behavior of (adaptive) BDF time stepping (with WhitneyAVSolver)

Hi, I try to simulate the current diffusion in a conductor and started with a simple testcase (straight wire). The initial condition is zero current and the boundary condition is a potential step at one end. The expected behavior is to see the current conduction starting at the outer surface of the ...
by wiesi
28 Sep 2011, 12:29
Forum: Bug reports
Topic: Segfault with WhitneyAVSolver and 2nd order elements
Replies: 1
Views: 3493

Segfault with WhitneyAVSolver and 2nd order elements

I'm calculating magnetic fields with the WhitneyAVSolver using Elmer 6.2 (Rev: 5385) on Ubuntu 11.04 x86_64. The mesh is generated by Gmsh 2.5.0. If I change the element order of a geometry-file (which works with 1st order elements) to 2nd order ones, Elmer crashes with a segfault, so there seems to...