##### Posted by: william

«**on:**May 11, 2012, 09:54:56 PM »

The gradient of temperature is not a standard variable but it can be represented by a vector Additional Variable (AV) which is created in CFX-Pre. The components of the AV are defined as the components of the gradient, as shown in the excerpt of CCL below:

LIBRARY:

ADDITIONAL VARIABLE: GradT

Option = Definition

Tensor Type = VECTOR

Units = [K m^-1 ]

Variable Type = Unspecified

END

END

FLOW:

DOMAIN: MyDomain

FLUID MODELS:

ADDITIONAL VARIABLE: GradT

Option = Vector Algebraic Equation

Vector xValue = Temperature.Gradient X

Vector yValue = Temperature.Gradient Y

Vector zValue = Temperature.Gradient Z

END

END

END

END

LIBRARY:

ADDITIONAL VARIABLE: GradT

Option = Definition

Tensor Type = VECTOR

Units = [K m^-1 ]

Variable Type = Unspecified

END

END

FLOW:

DOMAIN: MyDomain

FLUID MODELS:

ADDITIONAL VARIABLE: GradT

Option = Vector Algebraic Equation

Vector xValue = Temperature.Gradient X

Vector yValue = Temperature.Gradient Y

Vector zValue = Temperature.Gradient Z

END

END

END

END