### 15.5.19. massFlowInt

Integrates a variable or expression over the specified 2D location. A weighting function is applied to the variable or expression value at each point based on the mass flow assigned to that point. You can also specify the fluid(s) used to calculate the mass flow at each locator point.

    [<Phase>.]massFlowInt(<Variable|Expression>)@<Location>

where:

- `[<Phase>.]` is an optional prefix that is not required for single-phase flows. For details, see CEL Functions with Multiphase Flow.

- `<Variable|Expression>` is a variable or expression.

- `<Location>` is any fluid surfaces (such as Inlets, Outlets, Openings and fluid-fluid interfaces). An error is raised if the location specified is not 2D.

#### 15.5.19.1. Tools > Command Editor Example

    >calculate massFlowInt, <Variable|Expression>, <Location>, [<Phase>]

#### 15.5.19.2. Tools > Function Calculator Example

This example integrates pressure over `Plane1`. The result is the pressure force acting on Plane1 weighted by the mass flow assigned to each point on `Plane1`:

Function: `massFlowInt`, Location: `Plane1`, Variable: `Pressure`, Phase: `All Fluids`

Release 18.2 - © ANSYS, Inc. All rights reserved.