Program for generating segments that are concentrated at the corners and edges of a rectangle.

 

There are two programs:

(1) Prog27. This was originally written to generate the segments for test3d06, in which the capacitance of a cube is calculated with extremely high accuracy. For this it is necessary to concentrate the segments at the corners and edges of the cube, where the charge density is highest. The program can also be used to generate a strip or line of segments that are concentrated at one end and was used in this way to generate the segments at the flat edges of a carbon sheet -see xmpl3d79. The compiled version is included in the CPO package and has the name prog27.exe. To run the program simply click on \cpo\prog27 or type 'prog27' as a command line. The code prog27.f90 is also included in the CPO package -further information can be read in this.

(2) Prog28. This is derived from prog27 and was originally written to generate the segments at the rounded edges of a carbon sheet -see xmpl3d80. The code and compiled version are included with the CPO package.

 

Before running these programs, set up the relevant data file, which must be called 'tempin.dat'. Read-only examples are 'prog27.dat' and ‘prog28.dat’.