This card allows fields to be defined over the existing grid.

- SET(s)
- VALUE(s)

SET: [string]

- defines the name of the quantity to be assigned.

VALUE: [string]

- value is an expression to be evaluated across the grid. It can
include constants, other solution quantities, and the coordinates X, Y
and Z (uppercase).

- limits the application of the field statement to range
specified. For example, ``

- as XRANGE, but for y-direction.

- as XRANGE, but for y-direction.

- out some statistics for the specified field, such as
min, max, average and standard deviation. Typical usage:

field stats=electronsMATERIAL [string]

- MATERIAL keyword limits the application of the FIELD
command to the specified material.

- user can request that fluxes be calculated by setting
``

field set=flux solvar=electrons type=edgeThis command, issued before the solutions is calculated with a ``BIAS'' command, causes the currents to be stored in the field ``fluxelectrons.'' Note that this is an edge field, not a nodal field. PROFILE3D [string]

- 3-D field from file name specified. See PROFILE2D for
format information.

- 2-D field from file name specified.
The 2D and 3D file formats support
either uniform spacing or rectilinear spacing. The format is

<nx> <ny> [<nz>] 'u' | 'r' ;;; uniform or rectilinear spacing <tensor mesh coordinates> <ix> <iy> [<iz>] <value at (ix,iy[,iz])> ...where , , and are the number of grid lines in each dimension (minimum is 2) indicies run from 0 to n-1, inclusive

The indices and value need not be given in any specific order, but the set should be complete.

For a uniform mesh, the <tensor mesh coordinates> consists of a pair of two real numbers representing the bounds for that dimension ( ). Mesh spacing is (U - L) / ( -1).

For a rectilinear mesh, the <tensor mesh coordinates> consists of the two or three lists of real numbers of length (you can have one number per line). These numbers are the locations of mesh lines, and they are assumed to be sorted in increasing order.

The locations of the mesh lines in these files need not correlate to your prophet mesh. Linear interpolation is used to map file values onto the prophet mesh.

For 1d, the values at the endpoints extend to infinity. If you want to truncate assignment outside of the extent, just specify 0 for the value at the start and end of the range.

For 2d and 3d, assignment is truncated outside of the extent specified in the file.

DELETE [string]

- the specified field and free its memory.

- in 1-D data from file. The format is two reals per line,
the first being the x-coordinate, the second being the value.

- the names and types of all the fields found in the domain.

**Examples:**

`field set=boron value=1e18*exp(-(X-0.1)*(X-0.1)/(2*0.01*0.01))`

`field set=phosphorus value=1e19*gbox(X,0,0.1,0.01)*gbox(Y,0.5,0.8,0.01)`

The function gbox has a constant value in the interval between its second and third arguments, with gaussian fall-off behavior outside that interval with a characteristic length equal to the fourth argument. The first argument is the axis to substitute. This example specifies a flat profile of 1e19 inside the interval (X,Y) = (0-0.1 , 0.5-0.8) with Gaussian decay of characteristic length 0.01 outside.

TYPE [string]

- to specify one of two special field types, either ``edge''
or ``scalar''. An edge field is defined for each of the edges
in the structure, e.g., for currents. A scalar field has one
value defined for the entire geometry.

- the class type of this field (default = ``permanent'').

- reading in 1-D data using the FILENAME command, the AXIS
keyword determines whether the data is stored in the x, y, or z
direction. The axis is specified by either
``

- reading in 1-D data from a file using FILENAME, multiply
the data values by -1. (Not implemented for 2-D or 3-D data).

- each node in the field, find the minimum distance to the
interface of the material specified. Typical usage:

field set=fromOxide distance=oxidefinds minimum distance to the oxide interface for each node.

Mon Jul 1 14:45:00 PDT 2002