AddPeriodicRelativeNodalDifference

This Action automatically adds the necessary objects to calculate the relative periodic difference. Relative Difference will be outputted as a Postprocessor named: 'var'_periodic_difference

Overview

The PeriodicRelativeNodalDifference provides the objects necessary to calculate the relative periodic difference of a variable (either in logarithmic or non-logarithmic form).

The relative periodic difference is defined as:

Where:

  • is the variable of interest,

  • is the spatial average of the variable,

  • is the beginning of the current cycle,

  • is the beginning of the previous cycle,

  • is the nodal index, and

  • is the total number of nodes.

Example Input File Syntax

[PeriodicRelativeNodalDifference<<<{"href": "../../syntax/PeriodicRelativeNodalDifference/index.html"}>>>]
  [Periodic_Y_Diff]
    periodic_variable<<<{"description": "The periodic variables (Not in log form)."}>>> = y
    cycle_frequency<<<{"description": "The cycle's frequency in Hz"}>>> = 1.0
    num_cycles<<<{"description": "The number of cycles this object is active."}>>> = 75
    starting_cycle<<<{"description": "The number of the cycles before starting the difference calculation"}>>> = 25
  []
[]
(test/tests/PeriodicRelativeNodalDifference/Sample_Periodic_Diffusion.i)

Input Parameters

  • cycle_frequencyThe cycle's frequency in Hz

    C++ Type:double

    Unit:(no unit assumed)

    Controllable:No

    Description:The cycle's frequency in Hz

Required Parameters

  • active__all__ If specified only the blocks named will be visited and made active

    Default:__all__

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

    Controllable:No

    Description:If specified only the blocks named will be visited and made active

  • blockThe subdomain that this action applies to.

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

    Controllable:No

    Description:The subdomain that this action applies to.

  • familyLAGRANGESpecifies the family of FE shape functions to use for this variable

    Default:LAGRANGE

    C++ Type:MooseEnum

    Options:LAGRANGE, MONOMIAL, HERMITE, SCALAR, HIERARCHIC, CLOUGH, XYZ, SZABAB, BERNSTEIN, L2_LAGRANGE, L2_HIERARCHIC, NEDELEC_ONE, LAGRANGE_VEC, MONOMIAL_VEC, RAVIART_THOMAS, RATIONAL_BERNSTEIN, SIDE_HIERARCHIC, L2_HIERARCHIC_VEC, L2_LAGRANGE_VEC, L2_RAVIART_THOMAS

    Controllable:No

    Description:Specifies the family of FE shape functions to use for this variable

  • inactiveIf specified blocks matching these identifiers will be skipped.

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

    Controllable:No

    Description:If specified blocks matching these identifiers will be skipped.

  • initial_conditionSpecifies a constant initial condition for this variable

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

    Unit:(no unit assumed)

    Controllable:No

    Description:Specifies a constant initial condition for this variable

  • initial_from_file_varGives the name of a variable for which to read an initial condition from a mesh file

    C++ Type:std::string

    Controllable:No

    Description:Gives the name of a variable for which to read an initial condition from a mesh file

  • num_cycles2000The number of cycles this object is active.

    Default:2000

    C++ Type:double

    Unit:(no unit assumed)

    Controllable:No

    Description:The number of cycles this object is active.

  • orderFIRSTSpecifies the order of the FE shape function to use for this variable (additional orders not listed are allowed)

    Default:FIRST

    C++ Type:MooseEnum

    Options:CONSTANT, FIRST, SECOND, THIRD, FOURTH

    Controllable:No

    Description:Specifies the order of the FE shape function to use for this variable (additional orders not listed are allowed)

  • periodic_variableThe periodic variables (Not in log form).

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

    Unit:(no unit assumed)

    Controllable:No

    Description:The periodic variables (Not in log form).

  • periodic_variable_logThe periodic variables that are in log form.

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

    Unit:(no unit assumed)

    Controllable:No

    Description:The periodic variables that are in log form.

  • scalingSpecifies a scaling factor to apply to this variable

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

    Unit:(no unit assumed)

    Controllable:No

    Description:Specifies a scaling factor to apply to this variable

  • starting_cycle0The number of the cycles before starting the difference calculation

    Default:0

    C++ Type:double

    Unit:(no unit assumed)

    Controllable:No

    Description:The number of the cycles before starting the difference calculation

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.

Advanced Parameters