/usr/share/doc/netgen-doc/examples/trafo.geo is in netgen-doc 4.9.13.dfsg-8build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | algebraic3d
#
# a transformer
#
solid core =
plane (-8, 0, 0; -1, 0, 0)
and plane ( 8, 0, 0; 1, 0, 0)
and plane ( 0, -6, 0; 0, -1, 0)
and plane ( 0, 6, 0; 0, 1, 0)
and plane ( 0, 0, -1; 0, 0, -1)
and plane ( 0, 0, 1; 0, 0, 1)
and not
( plane (-6, 0, 0; -1, 0, 0)
and plane (-1, 0, 0; 1, 0, 0)
and plane ( 0, -4, 0; 0, -1, 0)
and plane ( 0, 4, 0; 0, 1, 0) )
and not
( plane ( 6, 0, 0; 1, 0, 0)
and plane ( 1, 0, 0; -1, 0, 0)
and plane ( 0, -4, 0; 0, -1, 0)
and plane ( 0, 4, 0; 0, 1, 0) );
solid coil1 =
cylinder (-7, -3, 0;-7, 3, 0; 3)
and not cylinder (-7, -3, 0;-7, 3, 0; 2)
and plane (0, -3, 0; 0, -1, 0)
and plane (0, 3, 0; 0, 1, 0);
solid coil2 =
cylinder ( 0, -3, 0; 0, 3, 0; 3)
and not cylinder ( 0, -3, 0; 0, 3, 0; 2)
and plane (0, -3, 0; 0, -1, 0)
and plane (0, 3, 0; 0, 1, 0);
solid coil3 =
cylinder ( 7, -3, 0; 7, 3, 0; 3)
and not cylinder ( 7, -3, 0; 7, 3, 0; 2)
and plane (0, -3, 0; 0, -1, 0)
and plane (0, 3, 0; 0, 1, 0);
solid box =
plane (-12, 0, 0; -1, 0, 0)
and plane ( 12, 0, 0; 1, 0, 0)
and plane ( 0, 8, 0; 0, 1, 0)
and plane ( 0,-8, 0; 0, -1, 0)
and plane ( 0, 0, 5; 0, 0, 1)
and plane ( 0, 0, -5; 0, 0, -1);
solid air = box and not core and not coil1 and not coil2 and not coil3;
tlo coil1 -col=[0,1,0];
tlo coil2 -col=[0,1,0];
tlo coil3 -col=[0,1,0];
tlo air -col=[0,0,1] -transparent;
tlo core -col=[1,1,0];
|