Several ElmerSolver problems

Numerical methods and mathematical models of Elmer
Post Reply
whizzer
Posts: 1
Joined: 06 Mar 2019, 19:39
Antispam: Yes

Several ElmerSolver problems

Post by whizzer »

Hi

I´m new to Elmer and based on the SEMTEC tutorial made by Pavel Ponomarev, see here: https://www.researchgate.net/publicatio ... e_Tutorial, I made my own model of induction motor. But not everything works as it should. I have contacted pavel for some tips, but he told me to go here and ask for some answers because he doesn't follow the development of new Elmer versions anymore. All of my problems that i have with the Elmer models are listed and described below in each section.

1. My own model doesn't work in transient and Time-harmonic solver
-------------------------------------------------------------------------------------------------------------------------

I created a complete geometry of my motor, set up all .sif files and created the cage.definitions file for my model.
But even as i followed instructions in the manuall, every time i executed the transient.sif or the harmonics.sif file i got
the same error message in the cmd. But it doesn't tell me much about the problem. Pavel told me that the problem might
be in the MATC settings and the problem lies somewhere in .sif file. But i don't know what to change.

The error message is shown below and you can find my model here or in attachment:

https://drive.google.com/drive/folders/ ... sp=sharing

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

ELMER SOLVER (v 8.3) STARTED AT: 2019/02/24 01:25:28
ParCommInit: Initialize #PEs: 1
MAIN:
MAIN: =============================================================
MAIN: ElmerSolver finite element software, Welcome!
MAIN: This program is free software licensed under (L)GPL
MAIN: Copyright 1st April 1995 - , CSC - IT Center for Science Ltd.
MAIN: Webpage http://www.csc.fi/elmer, Email elmeradm@csc.fi
MAIN: Version: 8.3 (Rev: 432ee0dd, Compiled: 2018-12-18)
MAIN: Running one task without MPI parallelization.
MAIN: Running with just one thread per task.
MAIN: Lua interpreted linked in.
MAIN: =============================================================
MAIN:
MAIN:
MAIN: -------------------------------------
MAIN: Reading Model: transient.sif
LoadInputFile: Scanning input file: transient.sif
LoadInputFile: Loading input file: transient.sif
Model Input: Unlisted keyword: [circuit model depth] in section: [simulation]
Model Input: Unlisted keyword: [u_u] in section: [body force 1]
Model Input: Unlisted keyword: [u_v] in section: [body force 1]
Model Input: Unlisted keyword: [u_w] in section: [body force 1]
Model Input: Unlisted keyword: [torque groups] in section: [body 1]
Model Input: Unlisted keyword: [torque groups] in section: [body 2]
Model Input: Unlisted keyword: [torque groups] in section: [body 3]
Model Input: Unlisted keyword: [torque groups] in section: [body 4]
Model Input: Unlisted keyword: [torque groups] in section: [body 5]
Model Input: Unlisted keyword: [torque groups] in section: [body 6]
Model Input: Unlisted keyword: [torque groups] in section: [body 7]
Model Input: Unlisted keyword: [torque groups] in section: [body 14]
Model Input: Unlisted keyword: [body] in section: [component 1]
Model Input: Unlisted keyword: [body] in section: [component 2]
Model Input: Unlisted keyword: [body] in section: [component 3]
Model Input: Unlisted keyword: [body] in section: [component 4]
Model Input: Unlisted keyword: [body] in section: [component 5]
Model Input: Unlisted keyword: [body] in section: [component 6]
Model Input: Unlisted keyword: [body] in section: [component 7]
Model Input: Unlisted keyword: [body] in section: [component 8]
Model Input: Unlisted keyword: [resistance] in section: [component 8]
Model Input: Unlisted keyword: [body] in section: [component 9]
Model Input: Unlisted keyword: [resistance] in section: [component 9]
Model Input: Unlisted keyword: [body] in section: [component 10]
Model Input: Unlisted keyword: [resistance] in section: [component 10]
Model Input: Unlisted keyword: [partition local constraints] in section: [solver 3]
Model Input: Unlisted keyword: [nonlinear system compute change in scaled system] in section: [solver 3]
Model Input: Unlisted keyword: [calculate magnetic torque] in section: [solver 4]
Model Input: Unlisted keyword: [a] in section: [boundary condition 1]
Model Input: Unlisted keyword: [a] in section: [boundary condition 5]
WARNING:: LoadInputFile: Entry missing for: Body Force 2
WARNING:: LoadInputFile: Entry missing for: Body Force 3
WARNING:: LoadInputFile: Entry missing for: Body Force 4
WARNING:: LoadInputFile: Entry missing for: Body Force 5
WARNING:: LoadInputFile: Entry missing for: Body Force 6
WARNING:: LoadInputFile: > Body Force 1 < not used in any Body!
WARNING:: LoadInputFile: > Body Force 2 < not used in any Body!
WARNING:: LoadInputFile: > Body Force 3 < not used in any Body!
WARNING:: LoadInputFile: > Body Force 4 < not used in any Body!
WARNING:: LoadInputFile: > Body Force 5 < not used in any Body!
WARNING:: LoadInputFile: > Body Force 6 < not used in any Body!
MAIN:
MAIN: -------------------------------------
MAIN: Time: 1/1250 8.0000000000000004E-004
MAIN: -------------------------------------
MAIN:
AddComponentsToBodyList: Body 1 associated to Component 1
AddComponentsToBodyList: Body 2 associated to Component 2
AddComponentsToBodyList: Body 3 associated to Component 3
AddComponentsToBodyList: Body 4 associated to Component 4
AddComponentsToBodyList: Body 5 associated to Component 5
AddComponentsToBodyList: Body 6 associated to Component 6
AddComponentsToBodyList: Body 7 associated to Component 7
AddComponentsToBodyList: Body 8 associated to Component 8
AddComponentsToBodyList: Body 9 associated to Component10
AddComponentsToBodyList: Body10 associated to Component 9

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0 ffffffffffffffff

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2. Iron losses

The next problem i have is with the Fourierlosses solver. I have tried the model in the manuall to see how it works but the outcome of this model is
weird. The simulation alone works prerfectly, every time i execute the ironlosses.sif file it starts to calculate. But when i open .vtu files
in paraview it doesn't show me anything. It's just a blank model and i realy don't know what i have done wrong.

The link for the model is here:

https://drive.google.com/drive/folders/ ... sp=sharing

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

3. DOL Startup

Every time i try to execute this solver, it immediately shows me error that is shown below even though i executed the
kinematics.f90 file. When i tried to copy some of the missing files, that are mentiond in the error message, to the
directory of elmer it still doens't work.

The link to this model is same as in the 2. section:

https://drive.google.com/drive/folders/ ... sp=sharing

C:\Users\Uziv\Desktop\Python>ElmerSolver transient_kinematics.sif
ELMER SOLVER (v 8.3) STARTED AT: 2019/02/24 01:23:31
ParCommInit: Initialize #PEs: 1
MAIN:
MAIN: =============================================================
MAIN: ElmerSolver finite element software, Welcome!
MAIN: This program is free software licensed under (L)GPL
MAIN: Copyright 1st April 1995 - , CSC - IT Center for Science Ltd.
MAIN: Webpage http://www.csc.fi/elmer, Email elmeradm@csc.fi
MAIN: Version: 8.3 (Rev: 432ee0dd, Compiled: 2018-12-18)
MAIN: Running one task without MPI parallelization.
MAIN: Running with just one thread per task.
MAIN: Lua interpreted linked in.
MAIN: =============================================================
MAIN:
MAIN:
MAIN: -------------------------------------
MAIN: Reading Model: transient_kinematics.sif
LoadInputFile: Scanning input file: transient_kinematics.sif
LoadInputFile: Loading input file: transient_kinematics.sif
Model Input: Unlisted keyword: [circuit model depth] in section: [simulation]
Model Input: Unlisted keyword: [jr] in section: [simulation]
Model Input: Unlisted keyword: [torque scaling factor] in section: [simulation]
Model Input: Unlisted keyword: [u_u] in section: [body force 1]
Model Input: Unlisted keyword: [u_v] in section: [body force 1]
Model Input: Unlisted keyword: [u_w] in section: [body force 1]
Model Input: Unlisted keyword: [torque groups] in section: [body 1]
Model Input: Unlisted keyword: [torque groups] in section: [body 2]
Model Input: Unlisted keyword: [torque groups] in section: [body 3]
Model Input: Unlisted keyword: [torque groups] in section: [body 4]
Model Input: Unlisted keyword: [torque groups] in section: [body 5]
Model Input: Unlisted keyword: [torque groups] in section: [body 6]
Model Input: Unlisted keyword: [torque groups] in section: [body 7]
Model Input: Unlisted keyword: [torque groups] in section: [body 8]
Model Input: Unlisted keyword: [torque groups] in section: [body 9]
Model Input: Unlisted keyword: [torque groups] in section: [body 10]
Model Input: Unlisted keyword: [torque groups] in section: [body 17]
Model Input: Unlisted keyword: [body] in section: [component 1]
Model Input: Unlisted keyword: [body] in section: [component 2]
Model Input: Unlisted keyword: [body] in section: [component 3]
Model Input: Unlisted keyword: [body] in section: [component 4]
Model Input: Unlisted keyword: [body] in section: [component 5]
Model Input: Unlisted keyword: [body] in section: [component 6]
Model Input: Unlisted keyword: [body] in section: [component 7]
Model Input: Unlisted keyword: [body] in section: [component 8]
Model Input: Unlisted keyword: [body] in section: [component 9]
Model Input: Unlisted keyword: [body] in section: [component 10]
Model Input: Unlisted keyword: [body] in section: [component 11]
Model Input: Unlisted keyword: [resistance] in section: [component 11]
Model Input: Unlisted keyword: [body] in section: [component 12]
Model Input: Unlisted keyword: [resistance] in section: [component 12]
Model Input: Unlisted keyword: [body] in section: [component 13]
Model Input: Unlisted keyword: [resistance] in section: [component 13]
Model Input: Unlisted keyword: [partition local constraints] in section: [solver 2]
Model Input: Unlisted keyword: [nonlinear system compute change in scaled system] in section: [solver 2]
Model Input: Unlisted keyword: [calculate magnetic torque] in section: [solver 3]
Model Input: Unlisted keyword: [a] in section: [boundary condition 1]
Model Input: Unlisted keyword: [a] in section: [boundary condition 5]
WARNING:: LoadInputFile: Entry missing for: Body Force 2
WARNING:: LoadInputFile: Entry missing for: Body Force 3
WARNING:: LoadInputFile: Entry missing for: Body Force 4
WARNING:: LoadInputFile: Entry missing for: Body Force 5
WARNING:: LoadInputFile: Entry missing for: Body Force 6
WARNING:: LoadInputFile: > Body Force 1 < not used in any Body!
WARNING:: LoadInputFile: > Body Force 2 < not used in any Body!
WARNING:: LoadInputFile: > Body Force 3 < not used in any Body!
WARNING:: LoadInputFile: > Body Force 4 < not used in any Body!
WARNING:: LoadInputFile: > Body Force 5 < not used in any Body!
WARNING:: LoadInputFile: > Body Force 6 < not used in any Body!
Can not find Kinematics.
Can not find Kinematics.dll.
Can not find .\Kinematics.
Can not find .\Kinematics.dll.
Can not find C:\Program Files (x86)\Elmer 8.3-432ee0dd/share/elmersolver/lib\Kinematics.
Can not find C:\Program Files (x86)\Elmer 8.3-432ee0dd/share/elmersolver/lib\Kinematics.dll.

4. Multi-slice

Doesn't work either. Every time i typed the following command: $ ElmerGrid 2 2 im -partdual -metis 12 3 -connect 2 3 4 5 7 8 -partconnect 4
It shows me an error message, that is shown below. When i tried to change some parametrs of this command it worked and i could even execute
the .sif file in cmd. But after the simulation i opend the model in paraview, the rotor geometry of the model was completle messed up. All
bars were missing and i couldn't even visualise any scalar fields in the rotor geometry. Plus it didn't even creat the multi-slice model
it was just the regular 2D model.

You can find all folders of the multi-slice model including simulation results here:

https://drive.google.com/drive/folders/ ... sp=sharing

Starting program Elmergrid
Elmergrid reading in-line arguments
Using dual (elemental) graph in partitioning.
The mesh will be partitioned with Metis to 12 partitions.
The connected BCs will be partitioned to 4 partitions in Z.
Output will be saved to file im.

Elmergrid loading data:
-----------------------
Loading mesh in ElmerSolver format from directory im.
Loading header from mesh.header
Maximum elementtype index is: 303
Maximum number of nodes in element is: 3
Allocating for 2345 knots and 4404 elements.
Loading 2345 Elmer nodes from mesh.nodes
Loading 4404 bulk elements from mesh.elements
Loading 282 boundary elements from mesh.boundary
Loading names for mesh parts from file mesh.names
Reading names for mesh bodies
Reading names for mesh boundaries
Elmer mesh loaded succesfully

Elmergrid creating and manipulating meshes:
-------------------------------------------
Dimension 3 not active but higher dimensions are?
Coordinates defined in 2 dimensions

Elmergrid partitioning meshes:
------------------------------
Setting connectivity group 1 for 12 nodes on boundary 2
Setting connectivity group 1 for 12 nodes on boundary 3
Setting connectivity group 1 for 95 nodes on boundary 4
Setting connectivity group 1 for 101 nodes on boundary 5
Setting connectivity group 1 for 10 nodes on boundary 7
Setting connectivity group 1 for 10 nodes on boundary 8
Making a Metis partitioning for 2345 nodes in 2-dimensions.
Making a simple 1D partitioing in z for the connected elements only
PartitionConnectedElements1D is only applicable in 3D
Extending boundary partitioning by majority rule
Creating an inverse topology of the finite element mesh
There are from 1 to 10 connections in the inverse topology.
Each node is in average in 5.634 elements
Initial partitioning does not exist!
The program encountered a major error...
Extend boundary partitioning returned error!
...now exiting to system...

----------------------------------------------------------------------------------------------------------------------------

I would really appreciate if someone would help me with these problems as soon as posible.
kevinarden
Posts: 2237
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Several ElmerSolver problems

Post by kevinarden »

Start with one at a time, the most prevalent seems to be unlisted keyword,
That means the variable isn't in Elmer's list to determine declaration type

Example:

circuit model depth = 1.0

should be

circuit model depth = Real 1.0

so that the variable type is declared.
Post Reply