## 30.5.3 Sample Custom Field Functions

When you are checking the results of your simulation, you may find it useful to define some of the following field functions:

• To define a function that determines the ratio of static pressure to inlet total pressure, use the relationship

 (30.5-1)

where is the static pressure calculated by the solver, is the inlet total pressure, and is the operating pressure for the problem. Use the solver-defined function Static Pressure for , and the numerical value that you specified for Gauge Total Pressure in the Pressure Inlet panel for . Specify the value of the operating pressure to be the value that you set in the Operating Conditions panel. As discussed in Section  8.14, all pressures in FLUENT are gauge pressures relative to the operating pressure. If the operating pressure is zero, as is generally the case for compressible flow calculations, the expression for the pressure ratio reduces to

 (30.5-2)

• To define a function that determines the critical velocity ratio , a parameter that is sometimes used in turbomachinery calculations, use the relationship

 (30.5-3)

In this relationship, is the critical velocity (i.e., the velocity that would occur for the same stagnation conditions if ), is the ratio of specific heats, and is the pressure ratio defined in Equation  30.5-2 for which you created your own function. For , ratio of specific heats, select Specific Heat Ratio (gamma) in the Properties... category. To include , select Custom Field Functions... in the first drop-down list under Field Functions, and then select from the second list the function name that you assigned .

• Suppose you have swirling flow in a pipe, aligned with the axis, and you want to calculate the flow rate of angular momentum through a cross-sectional plane:

 (30.5-4)

You can create a function for the product , where is the Radial Coordinate and is the Tangential Velocity. Then use the Surface Integrals panel to compute the flow rate of this quantity.

 The custom field function containing model dependent functions (like temperature when the energy equation is enabled) will be computed only when those models are still active.

Previous: 30.5.2 Manipulating, Saving, and
Up: 30.5 Custom Field Functions
Next: 31. Parallel Processing