for the purpose of using Elmer to calculate flux inside a torus, instead of using paraview, by using the boundary condition for the SaveData, SaveScalars procedure:
Code: Select all
Boundary Condition 4
Name = "Flux"
Magnetic Flux Average = Logical True
End
Code: Select all
SetFactory("OpenCASCADE");
Cylinder(1) = {0, 0, -0.15, 0, 0, 0.3, 0.002, 2*Pi};
Cylinder(2) = {0, 0, -0.15, 0, 0, 0.3, 0.100, 2*Pi};
Physical Volume("Wire", 4) = {1};
Physical Volume("Air", 7) = {4};
Coherence;
Torus(3) = {0, 0, 0, 0.02, 0.003, 2*Pi};
Curve Loop(15) = {8};
Surface(11) = {15};
Coherence;
Physical Volume("Core", 6) = {3};
Physical Surface("Sky", 8) = {12, 13, 14};
Physical Surface("Wire End 1", 9) = {3};
Physical Surface("Wire End 2", 10) = {2};
Physical Surface("Flux", 11) = {11};
Code: Select all
! ----- names for bodies -----
$ Wire = 4
$ Core = 6
$ Air = 7
! ----- names for boundaries -----
$ Sky = 8
$ Wire End 1 = 9
$ Wire End 2 = 10
If it is wrong what would be the right approach to measure the flux inside some volume, as torus?
My real case is based on a step file at which I had no luck and created above simple model. For a step, have tried creating planes, duplicating them, making surfaces bigger, cutting the volume (as per https://gmsh.info/doc/texinfo/gmsh.html#t20 example), etc.
Any help is appreciated.
Kind regards,
Uros