ENTER_GRID_COORDINATES

The Diffusion Module (DICTRA) in Graphical Mode uses a Diffusion Calculator instead of the Console Mode commands. Most of the Console Mode functionality is available on the Diffusion Calculator. However, you cannot use both Graphical Mode and Console Mode in the same simulation.

Enter the size and gridpoint distribution of the grid in each region separately. The size of the region is specified in the units that the diffusion data is entered in. The grid in a specific region may also be subdivided into several parts, where the type of each part is chosen independently, by first entering SUB_REGION as the overall grid type.

SET_AUTO_GRID_OPTION

Syntax

enter_grid_coordinates

Prompts

Region name

Name of the region into which a grid is to be entered.

 

Width of region /1/

The actual size of the region is entered.

The size of the region is specified in units compatible with those of the diffusion data.

Options

Description

TYPE of grid

Type /Automatic/

Type of grid to enter, options are:

  • AUTOMATIC: Use this for automatic grid point distribution. An appropriate grid is generated at the start of the simulation where the grid points are automatically distributed according to the entered composition profile and boundary conditions.
  • LINEAR: For an equally spaced grid.
  • READ_POINT_BY_POINT: Can be done either from the keyboard or from a predefined file. When grid coordinates are read from a file it may often be the case that both grid coordinates and the composition at the grid points are given on the same line, e.g. the grid coordinates in the first column, the mole fraction of the first component at that grid point in the second column and so on. The column that contain the grid coordinates can then be specified in a macro file by, for example, having a line "read_point_by_point 30 foo.dat 1". The "1" mean that the grid coordinates are in the 1st column in the file foo.dat (and "30" is the total number of grid points). In a corresponding manner the column that contain the composition of a specific component can be specified (see ENTER_COMPOSITIONS).
  • GEOMETRIC: Yields a higher number of gridpoints at the lower end of the region if a geometrical factor larger than one is given and a higher number of gridpoints at the upper end of the region if the factor is smaller than one.
  • DOUBLE_GEOMETRIC: Divides the region in two halves and generates a separate geometrical grid in each half. It gives a high number of gridpoints in the middle or at both ends of a region, two geometrical factors should be entered.

Sub_region

If SUB_REGION is entered when you are prompted to enter the grid type, then the next prompt is

End coordinate in Sub-Region /1/

Enter a value equal to or less than the total width of the region. You are then prompted for the number of grid points and the grid type to be used between the left-hand side of the region and the end coordinate. As long as the end coordinate is less than the total width of the region you are prompted for an end coordinate and the grid to be used in the sub region starting at the end of the former sub region. Thus, progressively higher end coordinates must be entered and the final end coordinate must be equal to the total width of the region.

 

Number of points /50/

The number of points present in the region. Please consider the interspacing of the grid when determining the number of points.

 

Input file

The input source from which to read the points when entering values point by point, default is TERMINAL.

 

Value of point

The value of the point when entering values point by point.

 

Value of R in the geometrical series

Value in the geometrical factor in the series determining the distribution of the grid points. A geometrical factor larger than one yields a higher density of gridpoints at the lower end of the region and a factor is smaller than one yields a higher density of gridpoints at the upper end of the region.

 

Value of R in the geometrical serie for lower part of region

The geometrical factor in the series for the lower (left) part of a region in a double geometrical grid

 

Value of R in the geometrical serie for upper part of region

The geometrical factor in the series for the upper (right) part of a region in a double geometrical grid.