SET_CONDITION

Define conditions to reduce the degrees of freedom at equilibrium or defines the boundary conditions at the outer rims of the system. Use it to set the temperature, pressure or heat extracted from the system.

Conditions can be a function of time and different time-dependent functions can be specified at different time intervals. The syntax for this is approximately the same as used in the GES to specify temperature ranges for thermodynamic parameters.

DICTRA uses a constant molar volume, which is included in the flux, i.e. the unit of flux as entered in boundary conditions is:

flux*molar volume = mol*m-2*s-1*m3*mol-1 = m*s-1

Syntax

set_condition

Prompts

Global or Boundary Condition /Global/

Type of condition to be specified. A global condition is either pressure (P), temperature (T) or heat content removal (P) and may be specified as a function of time. Boundary conditions determine how the cell interacts with the world outside the cell.

 

Variable

Legal variables are pressure (P), temperature (T) or heat extracted (Q) as a function of time (TIME), TIME_TEMPERATURE_PAIRS (T-T-P) that specifies temperature at a specific time and lets the program calculate the cooling or heating rate, or LOOKUP_TABLE_TEMPERATU that reads a file with time-temperature pairs. For Q the amount of extracted heat per time unit is normalized and the size of the system is normalized to 1 mole of atoms.

For example, if you enter T-T-P at the Variable prompt then at the next prompt:

TIME,TEMPERATURE

Specify temperature and time pairwise such as e.g.:

0 1400

60 1200

* 1200

Where entering an asterisk(*)" is required in order to indicate the end time of a simulation.

For LOOKUP_TABLE_TEMPERATU the file should look similar except for the end time:

0 1473

60 1273

1000 1173

For the lookup table some optimization is done. Redundant pairs are removed when reading the data.

 

Boundary

Defines on which side of the system the boundary conditions are to be specified. Options are UPPER (the rightmost side of the system) and LOWER (the leftmost side of the system).

 

Condition type

Defines the type of boundary condition to be specified. The options may in most cases be functions of both TIME, T (temperature) and P (pressure). The default is CLOSED_SYSTEM which is equivalent to setting the fluxes of all components to zero at the boundary.

Options are:

  • FIX_FLUX_VALUE: Enter functions that yield the flux times the molar volume for the independent components. May be a function of time, temperature and pressure.
  • STATE_VARIABLE_VALUE: A legal expression in POLY-3 syntax that reduces the degrees of freedom. This type of boundary condition should be used with the uttermost care as no checks are done if it is a legal expression in advance.
  • ACTIVITY_FLUX_FUNCTION or POTENTIAL_FLUX_FUNCTION: These types of boundary conditions are used to take into account the finite rate of a surface reaction. The flux for the independent components must be given in the format:

    The flux for the independent components must be given in the format where f and g may be functions of time (TIME), temperature (T), and pressure (P), and N is an integer.

    or

    The flux for the independent components must be given in the format where f and g may be functions of time (TIME), temperature (T), and pressure (P), and N is an integer.

    where f and g may be functions of time (TIME), temperature (T), and pressure (P), and N is an integer.

The activities are those with user defined reference states. The function mass transfer coefficient is the mass transfer coefficient,  activity of the corresponding species in the gas is the activity of the corresponding species in the gas and N is a stoichiometric coefficient.

For more details see L. Sproge and J. Ågren, “Experimental and theoretical studies of gas consumption in the gas carburizing process” J. Heat Treat. 6, 9–19 (1988).

  • ITERATIVE_ACTIVITY_FLUX_FUNCTION: Same as activity flux function above. However, an iterative scheme is used to determine the flux. This method may be used instead of activity flux function when the latter has problems.
  • CLOSED_SYSTEM: Corresponds to a fix flux value, which is set to zero at all times.
  • MIXED_ZERO_FLUX_AND_ACTIVITY: The flux of selected components is set to zero and the activity of others may be set to a prescribed value.
  • GAS: The flux of selected components is set to zero and the activity of others may be set to a prescribed value. This option is used for treating an expanding system, e.g. the growth of an external oxide scale.
 

Low time limit

The lower time limit to be used when entering a time dependent function.

 

High time limit

The upper time limit to be used when entering a time dependent function. An asterisk * indicates the high limit as infinity.

 

Any more ranges

To specify whether any additional time dependent functions exists or not.

 

Type of condition for component

The type of condition when setting a boundary condition of the type MIXED. Options are ZERO_FLUX and ACTIVITY.