Numbers of values in ScalarData is limited to 20?

Numerical methods and mathematical models of Elmer
Post Reply
MartinHoeijmakers
Posts: 37
Joined: 22 Oct 2017, 21:03
Antispam: Yes

Numbers of values in ScalarData is limited to 20?

Post by MartinHoeijmakers »

Hi all,

ElmerSolver gave an error in the case of more than 20 variables in ScalarData using masks.

In my sif file, I used for the solvers:

Code: Select all

Solver 2
  Equation = ScalarsDiffusiveFlux
  Procedure = "SaveData" "SaveScalars"
  Exec Solver = After Timestep
  Filename = flow_diffusive_flux.dat
  Variable    1 = Temperature
  Operator    1 = diffusive flux
  Mask Name   1 = String "mask_boundary01"
  Coefficient 1 = Heat Conductivity
...
  Variable    21 = Temperature
  Operator    21 = diffusive flux
  Mask Name   21 = String "mask_boundary21"
  Coefficient 21 = Heat Conductivity
End
I used for the boundaries:

Code: Select all

Boundary Condition 1 
  Name = boundary01
  External Temperature = 20.0
  Heat Transfer Coefficient = 40.0
  mask_boundary01 = Logical True
End
...
Boundary Condition 21 
  Name = boundary21
  External Temperature = 20.0
  Heat Transfer Coefficient = 40.0
  mask_boundary21 = Logical True
End
I got the error:

Code: Select all

LoadInputFile: Reading base load of sif file
ERROR:: LoadInputFile:
ERROR:: LoadInputFile:  Unknown specifier: [temperature]
ERROR:: LoadInputFile:  In section: [solver 2]
ERROR:: LoadInputFile:  For property name:[variable 21]
STOP 1
To reproduce the problem, I made a body with a regular polygon with 24 edges. Each edge corresponds with a convection boundary (all equal). I would like to find the flux through each boundary (all the same).
The example is in in ScalarDataTest.zip. case20.sif is with 20 variables and case21.sif is with 21 variables.

Any help would be helpful.

Kind regards,
Martin Hoeijmakers
ScalarDataTest.zip
(38.82 KiB) Downloaded 9 times
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Numbers of values in ScalarData is limited to 20?

Post by raback »

Hi

No, this is just the numerated keywords in SOLVER.KEYWORDS file of your local installation.

To fix this, you can

1) Have a more recent ElmerSolver compilation which uses different logic to determine the type.

2) Provide the types as in:

Code: Select all

  Variable    21 = String "Temperature"
  Operator    21 = String "diffusive flux"
  Mask Name   21 = String "mask_boundary21"
  Coefficient 21 = String "Heat Conductivity"
-Peter
MartinHoeijmakers
Posts: 37
Joined: 22 Oct 2017, 21:03
Antispam: Yes

Re: Numbers of values in ScalarData is limited to 20?

Post by MartinHoeijmakers »

Hello Peter,

Thank you for the very fast reply. For the moment option 2 was the simplest method and it worked well!

Nice weekend!
Martin
Post Reply