Programs for generating segments for a rectangular slot in a spherical cap, second method.


Please also see the powerful option for users to use their own equations to define electrode shapes.

 

The program itself and the compiled version are included in the CPO package: they have the names prog25.f90 and prog25.exe respectively. To run the program simply type 'prog25' as a command line.

 

Before doing that, set up the data file that is read by prog25. This data file must be called 'tempin.dat'. A read-only version of it is saved as 'prog25.dat', which contains (for xmpl3d25):

 

2. ! =radius of sphere

0.5 ! =z of centre of bounding circle

1.5 0.5 ! =x,y of a corner of the rectangular hole

400 ! =approximate total number of subdivisions

1 ! =voltage number

y ! the x=0 plane is a symmetry plane in the main CPO3D program (y/n)

y ! the y=0 plane is a symmetry plane in the main CPO3D program (y/n)

 

It is assumed here that:

(1) the centre of the sphere is at the origin,

(2) the centre of the rectangular hole is on the z axis.

In general these assuptions are not correct and so the resulting object will have to be shifted and/or rotated, as explained below.

 

After setting up tempin.dat and running prog25, a set of electrode data can be found in 'tempout.dat'.

These data should be copied and then pasted into a primary data file for CPO3D.

 

The 'transform' option should then be used to shift and/or rotate the object.

Finally the data for the object can be copied and pasted into the primary data file that deals with the complete system.

 

The data file shap3d25.dat was created in this way.