Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update reduction doc. #1626

Merged
merged 7 commits into from
May 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions doc/source/api/solver/reduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ an area-average of absolute pressure over the velocity inlet.

Similarly one can use the other functions available currently with PyFluent.

.. note::
For reduction functions like "volume", "mass_flow", "mass_average" and,
prmukherj marked this conversation as resolved.
Show resolved Hide resolved
"mass_integrated_average" the fluxes are evaluated on boundaries and face zones,
so the chosen location cannot be a user-defined surface.

Usage of context
----------------

Expand Down Expand Up @@ -104,6 +109,9 @@ Compute the total volume of the specified locations.

>>> reduction.volume(locations)

.. note::
Only boundaries and face zones are allowed locations. It cannot be an user-defined surface.
prmukherj marked this conversation as resolved.
Show resolved Hide resolved

Volume average
~~~~~~~~~~~~~~
Compute the volume averaged value of the specified expression over the specified locations.
Expand Down Expand Up @@ -193,6 +201,9 @@ Compute the mass-weighted average value of the specified expression over the spe

>>> reduction.mass_average(expression, locations)

.. note::
Only boundaries and face zones are allowed locations. It cannot be an user-defined surface.
prmukherj marked this conversation as resolved.
Show resolved Hide resolved

Mass integrated average
~~~~~~~~~~~~~~~~~~~~~~~
Compute the total mass-weighted value of the specified expression over the specified locations.
Expand All @@ -201,6 +212,9 @@ Compute the total mass-weighted value of the specified expression over the speci

>>> reduction.mass_integrated_average(expression, locations)

.. note::
Only boundaries and face zones are allowed locations. It cannot be an user-defined surface.
prmukherj marked this conversation as resolved.
Show resolved Hide resolved

Mass flow
~~~~~~~~~
Compute the total mass flow rate of the specified locations.
Expand All @@ -209,6 +223,9 @@ Compute the total mass flow rate of the specified locations.

>>> reduction.mass_flow(locations)

.. note::
Only boundaries and face zones are allowed locations. It cannot be an user-defined surface.
prmukherj marked this conversation as resolved.
Show resolved Hide resolved

Mass flow average
~~~~~~~~~~~~~~~~~
Compute the mass-flow-weighted average value of the specified expression over the specified locations.
Expand Down