reduction#

High-level user-facing API for retrieving reduction data from Fluent.

Classes:

Reduction(service)

Reduction backed by the Reduction gRPC service.

class ansys.fluent.core.fields.reduction.reduction.Reduction(service)#

Bases: AbstractReduction

Reduction backed by the Reduction gRPC service.

Methods:

__init__(service)

Initialize Reduction.

area(locations[, ctxt])

Get area.

area_average(expression, locations[, ctxt])

Get area average.

area_integral(expression, locations[, ctxt])

Get area integral.

centroid(locations[, ctxt])

Get centroid.

count(locations[, ctxt])

Count the number of faces or cells within the locations.

count_if(condition, locations[, ctxt])

Count the number of faces or cells where the specified condition is satisfied.

force(locations[, ctxt])

Get force.

mass_average(expression, locations[, ctxt])

Get mass average.

mass_flow_average(expression, locations[, ctxt])

Get mass flow average.

mass_flow_average_absolute(expression, locations)

Compute the mass flow average of the absolute value of the given expression.

mass_flow_integral(expression, locations[, ctxt])

Get mass flow integral.

mass_integral(expression, locations[, ctxt])

Get mass integral.

maximum(expression, locations[, ctxt])

Get maximum.

minimum(expression, locations[, ctxt])

Get minimum.

moment(expression, locations[, ctxt])

Get moment.

pressure_force(locations[, ctxt])

Get pressure force.

set_context(ctxt)

Set the context over which reduction service should operate.

sum(expression, locations, weight[, ctxt])

Get sum.

sum_if(expression, condition, locations, weight)

Compute the weighted sum of the expression at locations where the given condition is satisfied.

viscous_force(locations[, ctxt])

Get viscous force.

volume(locations[, ctxt])

Get volume.

volume_average(expression, locations[, ctxt])

Get volume average.

volume_integral(expression, locations[, ctxt])

Get volume integral.

__init__(service)#

Initialize Reduction.

area(locations, ctxt=None)#

Get area.

area_average(expression, locations, ctxt=None)#

Get area average.

area_integral(expression, locations, ctxt=None)#

Get area integral.

centroid(locations, ctxt=None)#

Get centroid.

count(locations, ctxt=None)#

Count the number of faces or cells within the locations.

count_if(condition, locations, ctxt=None)#

Count the number of faces or cells where the specified condition is satisfied.

force(locations, ctxt=None)#

Get force.

mass_average(expression, locations, ctxt=None)#

Get mass average.

mass_flow_average(expression, locations, ctxt=None)#

Get mass flow average.

mass_flow_average_absolute(expression, locations, ctxt=None)#

Compute the mass flow average of the absolute value of the given expression.

mass_flow_integral(expression, locations, ctxt=None)#

Get mass flow integral.

mass_integral(expression, locations, ctxt=None)#

Get mass integral.

maximum(expression, locations, ctxt=None)#

Get maximum.

minimum(expression, locations, ctxt=None)#

Get minimum.

moment(expression, locations, ctxt=None)#

Get moment.

pressure_force(locations, ctxt=None)#

Get pressure force.

set_context(ctxt)#

Set the context over which reduction service should operate.

sum(expression, locations, weight, ctxt=None)#

Get sum.

sum_if(expression, condition, locations, weight, ctxt=None)#

Compute the weighted sum of the expression at locations where the given condition is satisfied.

viscous_force(locations, ctxt=None)#

Get viscous force.

volume(locations, ctxt=None)#

Get volume.

volume_average(expression, locations, ctxt=None)#

Get volume average.

volume_integral(expression, locations, ctxt=None)#

Get volume integral.