[fixed] bug in WhitneyAVHarmonicSolver with potential

Clearly defined bug reports and their fixes
Post Reply
uwestoehr
Posts: 38
Joined: 05 Aug 2022, 14:42
Antispam: Yes

[fixed] bug in WhitneyAVHarmonicSolver with potential

Post by uwestoehr »

- I use Elmer daily build from February 8 2023
- in Elmer GUI, create a Body Force for the equation "MgHarm"
- there enter a number of your choice to the field "Electric Potential Im"
- generate the case.sif and you will see e.g. this:

Code: Select all

Body Force 1
  Name = "BodyForce 1"
  Electric Potential Im = 2
  Electric Potential = 3
End
Now run the solver.

result: you get the error

Code: Select all

LoadInputFile: Reading base load of sif file

ERROR:: LoadInputFile: 
ERROR:: LoadInputFile:  Unknown specifier: [2]
ERROR:: LoadInputFile:  In section: [body force 1]
ERROR:: LoadInputFile:  For property name:[electric potential im]
So despite the manual and ElmerGui states that one can set an imaginary potential, the WhitneyAVHarmonicSolver does not know about it.
Last edited by uwestoehr on 13 Feb 2023, 13:27, edited 1 time in total.
kevinarden
Posts: 2315
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: bug in WhitneyAVHarmonicSolver with potential

Post by kevinarden »

try like, below, sometimes not declaring type causes that error
Electric Potential Im = Real 2
Electric Potential = Real 3
Rich_B
Posts: 423
Joined: 24 Aug 2009, 20:18

Re: bug in WhitneyAVHarmonicSolver with potential

Post by Rich_B »

Hello Uwe,

As Kevin mentioned, the error message is typical of a missing type, in this case 'Real'. Adding Real in the data entry box eliminates the error message. If one searches the file 'SOLVER.KEYWORDS', then the keyword 'Electric Potential' shows up, but not 'Electric Potential Im', and so Elmersolver doesn't know what type to use for the variable. This error could be corrected by adding the keyword to SOLVER.KEYWORDS.

Please note that adding a minimal working example is always useful, and usually will help with getting timely and specific advice.

Thanks, Rich.
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: bug in WhitneyAVHarmonicSolver with potential

Post by raback »

I just added the keyword in the SOLVER.KEYWORDS db. -Peter
uwestoehr
Posts: 38
Joined: 05 Aug 2022, 14:42
Antispam: Yes

Re: bug in WhitneyAVHarmonicSolver with potential

Post by uwestoehr »

raback wrote: 09 Feb 2023, 16:32 I just added the keyword in the SOLVER.KEYWORDS db. -Peter
Many thanks! I can conform the bug is fixed in the latest nightly build.
Post Reply