Parameterizing an Integrated Quantity at a Specified Time

How to parameterize an integrated quantity at a specified time?

An integrated quantity at a specified instant can be parameterized by making use of a UDF, a UDS, and a report definition. Attached is an example which demonstrates this.

1) Create a UDS
-User Defined > Scalar
-Adjust scalar properties (inlet diffusion = unchecked, flux function = none, unsteady function = none)
-Set Material properties to have UDS diffusivity = 0
2) Create a UDF that adjusts the scalar only at the specified time (in this example, it sets it to the volume weighted average)
3) Create a report definition (report type = Max, Field Variable = User Defined Scalars, enable Create Output Parameter)
In the attached case, the inlet temperature is linearly ramped from 100 K to 200 K over 10 seconds.
Notice that the report plot only changes at 1 second and holds at that value for the remainder of the
simulation.

You can access the relevant files by clicking on this link: Download Files