PHAST-Style Interpolation

  • Scroll to top of this topic Scroll to Top of Page

  • Print the current topic Print Topic

  • No expanding elements on this page Show/Hide Expanders

PHAST has a built-in interpolation method using the grid coordinate system that can be applied to some properties using keyword data blocks of the following types (Parkhurst and others, 2004):

CHEMISTRY_IC,

FLUX_BC,

HEAD_IC,

LEAKY_BC,

MEDIA, and

SPECIFIED_HEAD_BC.

In a PHAST-style interpolation, the user specifies a coordinate direction (X, Y, or Z), two distances, and two values. The coordinate direction is relative to the grid so if the grid is at an angle these are actually the X', Y' and Z directions (fig. 20). If the X', Y', or Z coordinate of the current node is less than or equal to the first distance, the first value (Value 1) is used. If the X', Y', or Z coordinate of the current node is greater than or equal to the second distance, the second value (Value 2) is used. For intermediate distances, linear interpolation between the two values is used.

Global and grid coordinate systems in ModelMuse

Figure 20. Global and grid coordinate systems in ModelMuse.

A related capability in PHAST is the ability to specify mixtures between two chemical compositions. In PHAST-style mixtures, the user specifies two values that represent chemical compositions and a series of proportions (between 0 and 1). The proportion represents the fraction of Value 1 in the mixture.

The following controls are used to specify the values needed for PHAST-style interpolation.

Interp. dir. or mixture: Interp. dir. or mixture indicates the direction in which the interpolation will take place. For some data sets, the user can specify Mix. If Mix is specified, the mixture formula is used to specify the fraction of Value 1 in the mixture.

Distance 1 and Distance 2: Distance 1 is the lower end of the distances used for interpolation. Distance 2 is the upper end of the distances used for interpolation. If the position of a cell or element is between Distance 1 and Distance 2, the value applied to a cell will be interpolated between Value 1 and Value 2. Otherwise, either Value 1 or Value 2 will be applied depending on which end of the range of distances is closest to the position of the cell or element.

Value 1 and Value 2: Value 1 and Value 2 are the two values that will be used for interpolation.

Mixture formula: Mixture formula is the fraction of Value 1 to use in the mixture of Value 1 and Value 2. The Mixture formula should range between 0 and 1. If the Mixture formula is outside the range of 0 to 1, a value of either 0 or 1 will be used depending on which is closest to the value of the mixture formula.

PHAST-style interpolation in ModelMuse can only be applied to data sets in PHAST that allow PHAST-style interpolation. This includes all the data sets directly used in the PHAST transport data file except Active, Print_Chemistry, and Print_XYZ_Chemistry. PHAST-style interpolation cannot be used with data sets created by the user. However, the user could specify a formula that would have the same effect as PHAST-style interpolation. Either of the following will emulate PHAST-style interpolation when applied to a real-number data set:

If((X_Prime < 1000.), 25., If((X_Prime > 10000.), 60., ((((X_Prime - 1000.) / 9000.) * 35.) + 25.)))

MultiInterpolate(X_Prime, 25, 1000, 60, 10000)

In these formulas, the interpolation direction is X', the two distances are 1,000 and 10,000, and the two values are 25 and 60.

Data sets that store integers and whose values are set by PHAST-style interpolation or mixtures should not be used in formulas for other data sets because the value used in the formula will be rounded to the nearest integer rather than representing a mixture between the two end member compositions. The formulas used in ModelMuse are strictly mathematical and are unable to interpret those numbers as chemical compositions.