TimeAverageVolumeOutput#
- class TimeAverageVolumeOutput[source]#
Bases:
VolumeOutputTimeAverageVolumeOutputclass for time average volume output settings.Example
Calculate the average value starting from the \(4^{th}\) physical step. The results are output every 10 physical step starting from the \(14^{th}\) physical step (14, 24, 34 etc.).
>>> fl.TimeAverageVolumeOutput( ... output_format="paraview", ... output_fields=["primitiveVars"], ... start_step=4, ... frequency=10, ... frequency_offset=14, ... )
Attributes
- output_fields: UniqueItemList[Union]#
List of output variables. Including universal output variables, variables specific to VolumeOutput and
UserDefinedField.
- frequency: int | Literal[-1]#
Frequency at which output is saved, counted in physical time steps in unsteady simulations. Volume, surface, slice, isosurface and render outputs can also be saved during a steady simulation, where the frequency is counted in pseudo steps instead; the remaining outputs accept a frequency in unsteady simulations only. -1 is at end of simulation. Important for unsteady child cases - this parameter refers to the global time step, which gets transferred from the parent case. Example: if the parent case finished at time_step=174, the child case will start from time_step=175. If frequency=100 (child case), the output will be saved at time steps 200 (25 time steps of the child simulation), 300 (125 time steps of the child simulation), etc. For steady child cases the pseudo-step count restarts at 0, so the frequency is counted from the start of the child run. Time-averaged outputs are only supported in unsteady simulations.
- Default:
-1
- frequency_offset: int#
Offset at which output starts to be saved, counted in physical time steps in unsteady simulations. Volume, surface, slice, isosurface and render outputs can also be saved during a steady simulation, where the offset is counted in pseudo steps instead; the remaining outputs accept an offset in unsteady simulations only. 0 is at beginning of simulation. Important for unsteady child cases - this parameter refers to the global time step, which gets transferred from the parent case (see frequency parameter for an example). Example: if an output has a frequency of 100 and a frequency_offset of 10, the output will be saved at global time step 10, 110, 210, etc. For steady child cases the pseudo-step count restarts at 0, so the offset is counted from the start of the child run. Time-averaged outputs are only supported in unsteady simulations.
- Default:
0
- output_format: list[Literal['paraview', 'tecplot', 'vtkhdf', 'ensight']] | Literal['paraview', 'tecplot', 'both']#
List of output formats, Supported formats:
paraview,tecplot,vtkhdf,ensight. A single string is accepted for backward compatibility but deprecated.- Default:
['paraview']
- start_step: int | Literal[-1]#
Physical time step to start calculating averaging. Important for child cases - this parameter refers to the global time step, which gets transferred from the parent case (see frequency parameter for an example).
- Default:
-1
- statistics: list[Literal['mean', 'rms']] | Literal['mean', 'rms']#
Statistic(s) accumulated over the averaging window, as a list:
meanfor the time average and/orrmsfor the root-mean-square of the raw signal,sqrt(<f^2>), with no mean subtraction. The mean is written under each field’s normal name and the rms under<field>_rms, so requesting["mean", "rms"]writes each field twice in one output. A single string is also accepted. The sameoutput_fieldsapply to every requested statistic. The rms accumulates over its own window, which starts whenrmsis first requested: on a case forked from a parent that averaged withoutrms, the mean continues the parent’s window while the rms covers only the time since the fork.- Default:
['mean']