MFEMScalarTimeAverageAux

Overview

AuxKernel for calculating the running time average of a scalar coefficient during a transient simulation using the rectangle rule.

where is the scalar coefficient to take the average of, or is the scalar variable holding the time average of , and is a timeskip, i.e. a timespan at the beginning of the simulation, prescribed by the user, during which no time averaging occurs.

Example Input File Syntax

[AuxKernels<<<{"href": "../../../syntax/AuxKernels/index.html"}>>>]
  inactive<<<{"description": "If specified blocks matching these identifiers will be skipped."}>>> = average_field
  [average_field]
    type = MFEMScalarTimeAverageAux<<<{"description": "Calculates a running time average of a scalar coefficient projected onto an auxvariable", "href": "MFEMScalarTimeAverageAux.html"}>>>
    variable<<<{"description": "The name of the variable that this object applies to"}>>> = average_temperature
    source<<<{"description": "Scalar coefficient to average. A functor is any of the following: a variable, an MFEM material property, a function, a postprocessor or a number."}>>> = temperature
  []
[]
(test/tests/mfem/kernels/heattransfer.i)

Input Parameters

  • sourceScalar coefficient to average. A functor is any of the following: a variable, an MFEM material property, a function, a postprocessor or a number.

    C++ Type:MFEMScalarCoefficientName

    Controllable:No

    Description:Scalar coefficient to average. A functor is any of the following: a variable, an MFEM material property, a function, a postprocessor or a number.

  • variableThe name of the variable that this object applies to

    C++ Type:AuxVariableName

    Unit:(no unit assumed)

    Controllable:No

    Description:The name of the variable that this object applies to

Required Parameters

  • execute_onTIMESTEP_ENDThe list of flag(s) indicating when this object should be executed. For a description of each flag, see https://mooseframework.inl.gov/source/interfaces/SetupInterface.html.

    Default:TIMESTEP_END

    C++ Type:ExecFlagEnum

    Options:XFEM_MARK, FORWARD, ADJOINT, HOMOGENEOUS_FORWARD, ADJOINT_TIMESTEP_BEGIN, ADJOINT_TIMESTEP_END, NONE, INITIAL, LINEAR, LINEAR_CONVERGENCE, NONLINEAR, NONLINEAR_CONVERGENCE, POSTCHECK, TIMESTEP_END, TIMESTEP_BEGIN, MULTIAPP_FIXED_POINT_END, MULTIAPP_FIXED_POINT_BEGIN, MULTIAPP_FIXED_POINT_CONVERGENCE, FINAL, CUSTOM

    Controllable:No

    Description:The list of flag(s) indicating when this object should be executed. For a description of each flag, see https://mooseframework.inl.gov/source/interfaces/SetupInterface.html.

  • time_skip0Time to skip before beginning the average

    Default:0

    C++ Type:double

    Unit:(no unit assumed)

    Controllable:No

    Description:Time to skip before beginning the average

Optional Parameters

  • control_tagsAdds user-defined labels for accessing object parameters via control logic.

    C++ Type:std::vector<std::string>

    Controllable:No

    Description:Adds user-defined labels for accessing object parameters via control logic.

  • enableTrueSet the enabled status of the MooseObject.

    Default:True

    C++ Type:bool

    Controllable:No

    Description:Set the enabled status of the MooseObject.

Advanced Parameters

Input Files