CoilSolver - Normalize Coil Current

Numerical methods and mathematical models of Elmer
Post Reply
gforti
Posts: 81
Joined: 11 Jan 2022, 20:39
Antispam: Yes

CoilSolver - Normalize Coil Current

Post by gforti »

Hello all, I was helping a friend with CoilSolver and encoutered a few inconsistensies.

First, the only way to get results from Current Density is by using the Body Force without the keyword 'Use Elemental CoilCurrent' in the AVSolver. Other options gave zero for current density and actual current value one in the Coil current output varible.

Second, SaveData gave weird (wrong) results if I let it compute all variables. When the variable list is given and narrowed down, it gives correct results.

Third, if the keyword 'Normilize Coil Current' is set to false, results are very wrong.

Please find the simulation files attached.

Elmer version:
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: 9.0 (Rev: Release, Compiled: 2024-04-06)
MAIN: Running one task without MPI parallelization.
MAIN: Running with just one thread per task.
MAIN: Lua interpreter linked in.
MAIN: =============================================================
Attachments
mesh.zip
(698.01 KiB) Downloaded 29 times
femm.zip
(272.2 KiB) Downloaded 18 times
example_gam.zip
(432.14 KiB) Downloaded 19 times
thalesmaoa
Posts: 16
Joined: 01 Feb 2024, 05:11
Antispam: Yes

Re: CoilSolver - Normalize Coil Current

Post by thalesmaoa »

I always found this parameter strange. Given my lack of experience, I always thought it was my ignorance.
gforti
Posts: 81
Joined: 11 Jan 2022, 20:39
Antispam: Yes

Re: CoilSolver - Normalize Coil Current

Post by gforti »

Just to put a little more wood to the fire.
Here is the same example, but using WPotentialSolver.
I have simulated a harmonic model with the full coil, using CoilSolver, and half coil, with WSolver. Results from CoilSolver for massive coil is either divergent or VERY off. WSolver is ok, but has ZERO documentation.

The zip file contains:
half_coil.zip -> Salome file to get the mesh files. I have refined the mesh in the coil to 2 and core to 5. max size is 20 min is 1.
femm -> femm files for comparison
closed_coil -> sif files using CoilSolver
open_wpot -> sif filds using WPotentialSolver

Please, generate the mesh and put it in the respective simulation folders with tha name 'mesh'.

Edit: I've removed the attached file. Please download from the github:
https://github.com/gforti84/ElmerFiles/ ... in/debug_8
Last edited by gforti on 29 May 2024, 14:48, edited 1 time in total.
gforti
Posts: 81
Joined: 11 Jan 2022, 20:39
Antispam: Yes

Re: CoilSolver - Normalize Coil Current

Post by gforti »

Hey guys,

I've uploaded the files to my github and also included a pdf with some guidance to set the simulation and some results.

https://github.com/gforti84/ElmerFiles/ ... in/debug_8
Post Reply