Closed coil with core simulation

Numerical methods and mathematical models of Elmer
raback
Site Admin
Posts: 4851
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Closed coil with core simulation

Post by raback »

Hi Frederic,

There should not be any empty files. There can be may .vtu files if you run in parallel and the .pvtu file is then the wrapper file.

Perhaps you could share a listing of your problem?

-Peter
ftrillaudp
Posts: 42
Joined: 23 May 2012, 05:26
Antispam: Yes

Re: Closed coil with core simulation

Post by ftrillaudp »

Dear Peter an all,

Here is the case study. It involves 4 coils and an iron core around them. I join the case study as well as the log.txt file. There is no error indicated in the log.txt file that I have pinpointed.

When running the case, I get 18 vtu files labelled case_t0001.vtu to case_t0018.vtu. Some of these files have no results such as case_t0003.vtu for instance and some results are repeated through some of the files. I did not attached the results since there are two heavy to uploaded, running the case study should create the vtu files. It creates also a results.pos in Gmsh format (some issue there to open in the lasses Gmsh release).

I do not understand why so many files are created first and then why some of them have empty results only providing the "GeometryIDs".

Best,

Frederic
Attachments
Shared.zip
case study
(774.16 KiB) Downloaded 278 times
raback
Site Admin
Posts: 4851
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Closed coil with core simulation

Post by raback »

Hi

Join solvers 4 and 8 by adding keywords "Vtu Format = Logical True" and "Gmsh Format = Logical True" and keep the "After Simulation" active.

-Peter
thalesmaoa
Posts: 16
Joined: 01 Feb 2024, 05:11
Antispam: Yes

Re: Closed coil with core simulation

Post by thalesmaoa »

I'm not able to open this example. I made a fresh new compilation, I also tested with the VM. When I load the mesh I get segfault using ElmerGUI.
Any help?
kevinarden
Posts: 2419
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Closed coil with core simulation

Post by kevinarden »

If you run
ElmerGrid 2 2 MESH -autoclean
it will open in ElmerGUI
but it renumbers the BCs

The ElmerSolver should run with the mesh as is.
thalesmaoa
Posts: 16
Joined: 01 Feb 2024, 05:11
Antispam: Yes

Re: Closed coil with core simulation

Post by thalesmaoa »

Thanks Kevin, that worked. I also run with Elmer solver.

However, after opening the result with Paraview, there was a huge value for flux. The value seems odd. Thus I decided to simulate it with femm. It seems that the value is doubled.

Image

Image

Do I need to adjust anything for postprocessing Elmer results?
thalesmaoa
Posts: 16
Joined: 01 Feb 2024, 05:11
Antispam: Yes

Re: Closed coil with core simulation

Post by thalesmaoa »

Just a quick correction. Since I wasn't able to see the model, I wrongly assumed that the picture lack of core material. I will perform again my simulation.
thalesmaoa
Posts: 16
Joined: 01 Feb 2024, 05:11
Antispam: Yes

Re: Closed coil with core simulation

Post by thalesmaoa »

I still get the same result. I need to double the current to reach the same potential. I can't understand what can be the problem.
Attachments
femm_simulation.zip
(1.79 KiB) Downloaded 31 times
thalesmaoa
Posts: 16
Joined: 01 Feb 2024, 05:11
Antispam: Yes

Re: Closed coil with core simulation

Post by thalesmaoa »

Just a quick followup.
There is a problem with the example. Body 2 and 3 are switched. The correct config is:

Code: Select all

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

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

Body 2
  Name = "Air"
  Target Bodies(1) = 3
  Equation = 1
  Material = 2
End
Post Reply