programmer's documentation
Lagrangian volume statistical variable (uslaen.f90)

For the writing of the listing and the post-processing: Average of the Lagrangian volume statistical variables. Possible intervention of the user.

Local variables to be added

The following local variables need to be defined for the examples in this section:

Initialization and finalization

The following initialization block needs to be added for the following examples:

At the end of the subroutine, it is recommended to deallocate the work array:

In theory Fortran 95 deallocates locally-allocated arrays automatically, but deallocating arrays in a symetric manner to their allocation is good pratice, and avoids using a different logic for C and Fortran.

Zone of standard statistics

Pinpoint the cells where stats are to be calculated.

General case:

Average

Variance

Volume fraction (ilfv)

Average

Variance

Sum of the statistical weights

Format

Zone of the user intervention: example

Example 1: Statistic calculated in uslast.90 and stored in the array statis.