Heat transfer simulation - Unable to start solver

The graphical user interface of Elmer
Post Reply
loremIpsum
Posts: 5
Joined: 28 Feb 2024, 16:31
Antispam: Yes

Heat transfer simulation - Unable to start solver

Post by loremIpsum »

Hello everyone,

I am first time working with ElmerGUI, and wanted to start with simple heat transfer on unfortunately not that simple body. Since I am quite new to this, I've generated body and unv file, and started looking at tutorials. I did material definitions, activated heat equation, and would say did everything according to the Tutorial 1 of "Elmer GUI Tutorials" document with few deviations:

- I didnt want a heat source, I wanted just to see heat distribution in object based on two different boundary conditions (two different environments)
- I didnt generate mesh in Elmer GUI, but I've imported unv gmsh file I've generated before in Salome.

With materials and boundary conditions defined on affected boundaries (surfaces) I did generate the next SIF file:

Code: Select all

Header
  CHECK KEYWORDS Warn
  Mesh DB "." "."
  Include Path ""
  Results Directory ""
End

Simulation
  Max Output Level = 5
  Coordinate System = Cartesian
  Coordinate Mapping(3) = 1 2 3
  Simulation Type = Steady state
  Steady State Max Iterations = 1
  Output Intervals(1) = 1
  Solver Input File = case.sif
  Post File = case.vtu
End

Constants
  Gravity(4) = 0 -1 0 9.82
  Stefan Boltzmann = 5.670374419e-08
  Permittivity of Vacuum = 8.85418781e-12
  Permeability of Vacuum = 1.25663706e-6
  Boltzmann Constant = 1.380649e-23
  Unit Charge = 1.6021766e-19
End

Body 1
  Target Bodies(1) = 1
  Name = "Body Property 1"
  Equation = 1
  Material = 1
End

Body 2
  Target Bodies(1) = 2
  Name = "Body Property 2"
  Equation = 1
  Material = 1
End

Body 3
  Target Bodies(1) = 3
  Name = "Body Property 3"
  Equation = 1
  Material = 2
End

Body 4
  Target Bodies(1) = 4
  Name = "Body 4"
  Equation = 1
  Material = 3
End

Body 5
  Target Bodies(1) = 5
  Name = "Body 5"
  Equation = 1
  Material = 4
End

Body 6
  Target Bodies(1) = 6
  Name = "Body 6"
  Equation = 1
  Material = 5
End

Body 7
  Target Bodies(1) = 7
  Name = "Body 7"
  Equation = 1
  Material = 6
End

Body 8
  Target Bodies(1) = 8
  Name = "Body 8"
  Equation = 1
  Material = 7
End

Body 9
  Target Bodies(1) = 9
  Name = "Body 9"
  Equation = 1
  Material = 8
End

Body 10
  Target Bodies(1) = 10
  Name = "Body 10"
  Equation = 1
  Material = 9
End

Body 11
  Target Bodies(1) = 11
  Name = "Body 11"
  Equation = 1
  Material = 3
End

Body 12
  Target Bodies(1) = 12
  Name = "Body 12"
  Equation = 1
  Material = 1
End

Body 13
  Target Bodies(1) = 13
  Name = "Body 13"
  Equation = 1
  Material = 1
End

Solver 1
  Equation = Heat Equation
  Procedure = "HeatSolve" "HeatSolver"
  Calculate Loads = True
  Variable = Temperature
  Exec Solver = Always
  Stabilize = True
  Optimize Bandwidth = True
  Steady State Convergence Tolerance = 1.0e-5
  Nonlinear System Convergence Tolerance = 1.0e-7
  Nonlinear System Max Iterations = 20
  Nonlinear System Newton After Iterations = 3
  Nonlinear System Newton After Tolerance = 1.0e-3
  Nonlinear System Relaxation Factor = 1
  Linear System Solver = Iterative
  Linear System Iterative Method = BiCGStab
  Linear System Max Iterations = 500
  Linear System Convergence Tolerance = 1.0e-10
  BiCGstabl polynomial degree = 2
  Linear System Preconditioning = ILU0
  Linear System ILUT Tolerance = 1.0e-3
  Linear System Abort Not Converged = False
  Linear System Residual Output = 10
  Linear System Precondition Recompute = 1
End

Equation 1
  Name = "Equation 1"
  Active Solvers(1) = 1
End

Material 1
  Name = "Leads Alloy42"
  Heat Conductivity = 11
End

Material 2
  Name = "Encapsulation resin Vitralit 1671"
  Heat Conductivity = 1.8
End

Material 3
  Name = "Solder SAC 305 Alloy"
  Heat Conductivity = 50
End

Material 4
  Name = "Backplate gold-alloy metalization"
  Heat Conductivity = 21
End

Material 5
  Name = "Si substrate"
  Heat Conductivity = 0.9
End

Material 6
  Name = "Si epitaxy"
  Heat Conductivity = 0.9
End

Material 7
  Name = "Si channel"
  Heat Conductivity = 0.9
End

Material 8
  Name = "SiO2 oxide"
  Heat Conductivity = 1.4
End

Material 9
  Name = "Aluminum front contact"
  Heat Conductivity = 237
End

Boundary Condition 1
  Target Boundaries(13) = 1 2 5 6 10 15 21 195 196 199 204 206 207 
  Name = "tempAirEnclosure"
  External Temperature = 313.15
  Heat Transfer Coefficient = 5
End

Boundary Condition 2
  Target Boundaries(3) = 7 146 205 
  Name = "tempPCB"
  Heat Transfer Coefficient = 15
  External Temperature = 293.15
End
Unfortunately, when I try to run the solver, "Unable to start solver" message appears as the only feedback. I am using Elmer 9.0-Release on Win11 machine. Is anyone able to give some hint about what could go wrong with this example?
kevinarden
Posts: 2313
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Heat transfer simulation - Unable to start solver

Post by kevinarden »

It means the path variable is not defined to tell the operating system where ElmerSolver is located

Search for “path” in your Windows system and choose “Edit environment variables for your account” and set “Variable” to “Value” as follows:

ELMER_HOME = c:\ElmerFEM-gui-nompi-Windows-AMD64
ELMERGUI_HOME = %ELMER_HOME%\share\ElmerGUI
ELMER_LIB = %ELMER_HOME%\share\elmersolver\lib
PATH = %PATH%;%ELMER_HOME%\bin;%ELMER_HOME%\lib
loremIpsum
Posts: 5
Joined: 28 Feb 2024, 16:31
Antispam: Yes

Re: Heat transfer simulation - Unable to start solver

Post by loremIpsum »

Hello Kevin, thank you very much for your reply.

Generally, you were right, not all env variables were set, I had to set EMBER_LIB, and i had to add another entry in system path variable:

Image
Image

But, situation is still the same, "Unable to start solver" as an only feedback.
kevinarden
Posts: 2313
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Heat transfer simulation - Unable to start solver

Post by kevinarden »

doesn't look like path is right somehow
If you open a cmd window you should be able to type
ElmerSolver
if it says command not found the path is somehow broken
if you type in the cmd window
D:\Program Files\Elmer 9.0-Release\bin\ElmerSolver_mpi
does it work?

Did you use the zip or the installer?
loremIpsum
Posts: 5
Joined: 28 Feb 2024, 16:31
Antispam: Yes

Re: Heat transfer simulation - Unable to start solver

Post by loremIpsum »

When I navigate to the project folder containing .sif file, and I manually from cmd on that folder run "D:\Program Files\Elmer 9.0-Release\bin\ElmerSolver_mpi", .vtu is successfully generated:

Image

But despite that, I am still unable to run the solver from GUI (and I've checked it just now, I cant run post processor as well). For instalation, I was using "ElmerFEM-gui-mpi-Windows-AMD64.exe".
kevinarden
Posts: 2313
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Heat transfer simulation - Unable to start solver

Post by kevinarden »

Confirms it is a path issue, I notice that you have the variables, i.e. ELMER_HOME under user variables, and the PATH set under System variables, perhaps System Variables are set before user variables and the values are empty under the system variables. you could set the system variable directly to
D:\Program Files\Elmer 9.0-Release\bin and D:\Program Files\Elmer 9.0-Release\bin without using variables

Also see this document about setting path to paraview

https://www.nic.funet.fi/pub/sci/physic ... dElmer.pdf
loremIpsum
Posts: 5
Joined: 28 Feb 2024, 16:31
Antispam: Yes

Re: Heat transfer simulation - Unable to start solver

Post by loremIpsum »

First of all Kevin, thank you very much for your try to help! You were indeed right, part of the problem were env variables.

When I've transferred env variables to a system domain (non-user-specific), I was able to call ElmerSolver_mpi as an standard command from cmd. First step forward :)

Unfortunatelly, even after correctly added env variables, I was still not able to call ElmerSolver as an command from cmd. This already ment something sketchy. I've went to the D:\Program Files\Elmer 9.0-Release\bin to check a bit the content, when I've seen that there is no ElmerSolver.exe at all in it!

As soon as I've made a copy ElmerSolver_mpi.exe and renamed it to ElmerSolver.exe, first restart of ElmerGUI was fruitful: I've been able to run solver from GUI, with proper convergence history and vtu file generated.

Most likely root cause: Both ElmerSolver.exe and ElmerSolver_mpi.exe are reported by Avast as a virus. It is very likely that Avast has during instalation of Elmer put ElmerSolver directly in quarantine.
kevinarden
Posts: 2313
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Heat transfer simulation - Unable to start solver

Post by kevinarden »

That is why people do not like windows, windows is a virus.
loremIpsum
Posts: 5
Joined: 28 Feb 2024, 16:31
Antispam: Yes

Re: Heat transfer simulation - Unable to start solver

Post by loremIpsum »

Unfortunately, because of some cross-discipline topics and tooling oftenly used, in some cases Win is still more "supported" :/ I do however have a separate machine on switch with Ubuntu :)

Nevertheless, thank you very much for your help. Whoever is the moderator of this section, feel free to close the topic.
Post Reply