Input point set:
The first line should give the number of points defined. The following lines should specify the point number, x coordinate, y coordinate, potential and whether the potential is fixed(1) or variable(0). The numbering of the points should start from 0.
Line set:
After the points, the detail about the lines or edges follow. It starts by giving the number of lines, below which on each line of the file, one edge is described. The format for describing an edge is: line number, first point, second point and whether the line is Neumann(0) or Dirichlet(1). As in points, numbering starts from 0.
Boundaries:
Finally, the boundaries should be specified. Boundaries are required to specify the problem geometry as well as to define material properties. In any problem there is at least one boundary i.e. the outer boundary.
The first line in the boundaries section should give the number of boundaries defined. There should be at least one. Then, the outer boundary detail should be specified and afterwards the remaining boundaries described in any order.
When describing any boundary, the following format should be used. In the first line, five items must be specified. The first one is the number of edges in the boundary. Next, either 1 or 0 should be given to keep or delete the triangles within this boundary.
The third item is the value of mu or permeability of the medium. Next, the fourth item is the permittivity or epsilon of the material. Finally, the charge density or current density should be specified. It should be noted that for most problems, all these values are not required and hence default (free space) values can be substituted. For instance, in an electrostatic problem, the permeability can be given as 1.
For the charge density or current density, an algebraic expression can be given. For instance, rho can be a constant like 1.00 or 2.11 or an expression like x+y*2, where x and y specify the coordinates.
The mathematical operators and functions that can be used are:

+

addition 2 + y



subtraction 1  x

*

multiplication y*5.5

^

power x^2

sin()

sine function

cos()

cosine function

log()

natural logarithm

step()

step function

abs()

modulus


It should be noted that some triangles would belong to more than one boundary. If so, the properties of these triangles will be dependent on the last updated boundary. Hence, it is advised to specify the smallest boundaries after specifying larger boundaries in the input file.
It is possible to import CAD Drawing Interchange Format (DXF) files to pdnMesh. Please see the tutorial for more detail.