next up previous
Next: Creation of a new Up: neBEM toolkit - a Previous: The driver code

The interface

In addition, the user has to supply an interface between the code and neBEM which contains the following and usually resides in the src/Interface directory. Few templates exist there for easy reference. If the DeviceInputFile is not set to an empty string within the neBEMSetDefaults function, the initialization routine looks for the DeviceInputFile to read in the details of the problem.

int neBEMSetDefaults(void);
int neBEMGetInputsFromFiles(void);
int neBEMGetNbPrimitives(void)
int neBEMGetPrimitive(int prim, int *nvertex,
                      double xvert[], double yvert[], double zvert[],
                      double *xnorm, double *ynorm, double *znorm,
                      int *volref1, int *volref2)
int neBEMVolumeDescription(int volref1, int *shape1,
                           int *material1, double *epsilon1,
                           double *potential1, double *charge1,
                           int *boundarytype1)
int neBEMVolumePoint(double x, double y, double z)
int neBEMGetPeriodicities(int primitive,
													int *ix, int *jx, double *sx,
													int *iy, int *jy, double *sy,
                         	int *iz, int *jz, double *sz)



Supratik Mukhopadhyay 2019-03-05