Encyclopaedia Index

(u) Getting patchwise values

PHOENICS users working in a GROUND subroutine may require to obtain the values of the COefficient, VALue, or net source associated with a PATCH of which they know the name, and for a variable which they designate. If so, they can make use of the subroutines GETCOV and GETSOR.

The first is activated by the statement:

which will set COEF and VALU equal to the required quantities, which may then be printed or used in whatever ways the user requires.

The second is activated by the statement:

which sets the variable SOR as follows:

where 'avecoeff' is the average value of the COefficient over the PATCH, 'avephi' is the average value of the variable in question over the PATCH, and 'area etc.' equals the relevant area where TYPE equals NORTH, SOUTH, etc; it equals the volume when TYPE equals VOLUME; and it equals unity when TYPE equals CELL, etc.

wbs