/usr/share/doc/netgen-doc/examples/period.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 | ##
## Example with periodic boundary conditions
## by Joachim Schoeberl
##
##
algebraic3d
solid p1 = plane (0, 0, 0; 0, 0, -1);
solid p2 = plane (1, 1, 1; 0, 0, 1);
solid p3 = plane (0, 0, 0; 0, -1, 0);
solid p4 = plane (1, 1, 1; 0, 1, 0);
solid p5 = plane (0, 0, 0; -1, 0, 0);
solid p6 = plane (1, 1, 1; 1, 0, 0);
solid cube = p1 and p2 and p3 and p4 and p5 and p6;
solid cyls =
cylinder (0.5, 0.5, 0; 0.5, 0.5, 1; 0.3)
or cylinder (0, 0.5, 0.2; 1, 0.5, 0.2; 0.1);
solid matrix = cube and not cyls;
solid inner = cube and cyls;
tlo matrix -transparent;
tlo inner -col=[1,0,0];
identify periodic p1 p2;
identify periodic p3 p4;
identify periodic p5 p6;
|