NekSideExtremeValue

Compute the extreme value (max/min) of a field over a boundary of the NekRS mesh

Description

This postprocessor computes the extreme value (maximum or minimum) of a specified field over a boundary in the NekRS mesh. For value_type = max, this postprocessor computes

where is the value of the postprocessor, is the boundary of the NekRS mesh, and is the specified field. For value_type = min, this postprocessor instead computes

The boundaries over which to compute this postprocessor in the NekRS mesh are specified with the boundary parameter; these boundaries are the sidesets in NekRS's mesh (i.e. the .re2 file). You can specify more than one boundary, with syntax such as boundary = '1 2'. To be clear, this postprocessor is not evaluated on the NekRSMesh mesh mirror, but instead on the mesh actually used for computation in NekRS.

The field is specified with the field parameter, which may be one of:

  • pressure

  • temperature

  • velocity (magnitude of velocity)

  • velocity_x (-component of velocity)

  • velocity_y (-component of velocity)

  • velocity_z (-component of velocity)

  • velocity_component (velocity vector projected onto another vector)

  • scalar01

  • scalar02

  • scalar03

  • unity

Setting field = unity is equivalent to computing 1, since the extreme value is also 1 (unity is of more use for other postprocessors).

If running NekRS in non-dimensional form (and you have indicated the appropriate nondimensional scales by setting nondimensional = true for the [Problem], then the value of this postprocessor is shown in dimensional units. On the otherhand, NekRS scalars (scalar01, scalar02 or scalar03) are never dimensionalized because their dimensions are problem-dependent.

Example Input Syntax

As an example, the following code snippet will evaluate the maximum and minimum temperature, pressure, velocity magnitude, and velocity components on the boundaries of the NekRS mesh.

[Postprocessors]
  [max_temp_side1]
    type = NekSideExtremeValue
    field = temperature
    boundary = '1'
    value_type = max
  []
  [max_temp_side2]
    type = NekSideExtremeValue
    field = temperature
    boundary = '2'
    value_type = max
  []
  [max_temp_side3]
    type = NekSideExtremeValue
    field = temperature
    boundary = '3'
    value_type = max
  []
  [max_temp_side4]
    type = NekSideExtremeValue
    field = temperature
    boundary = '4'
    value_type = max
  []
  [max_temp_side5]
    type = NekSideExtremeValue
    field = temperature
    boundary = '5'
    value_type = max
  []
  [max_temp_side6]
    type = NekSideExtremeValue
    field = temperature
    boundary = '6'
    value_type = max
  []
  [max_temp_side7]
    type = NekSideExtremeValue
    field = temperature
    boundary = '7'
    value_type = max
  []
  [max_temp_side8]
    type = NekSideExtremeValue
    field = temperature
    boundary = '8'
    value_type = max
  []
  [min_temp_side1]
    type = NekSideExtremeValue
    field = temperature
    boundary = '1'
    value_type = min
  []
  [min_temp_side2]
    type = NekSideExtremeValue
    field = temperature
    boundary = '2'
    value_type = min
  []
  [min_temp_side3]
    type = NekSideExtremeValue
    field = temperature
    boundary = '3'
    value_type = min
  []
  [min_temp_side4]
    type = NekSideExtremeValue
    field = temperature
    boundary = '4'
    value_type = min
  []
  [min_temp_side5]
    type = NekSideExtremeValue
    field = temperature
    boundary = '5'
    value_type = min
  []
  [min_temp_side6]
    type = NekSideExtremeValue
    field = temperature
    boundary = '6'
    value_type = min
  []
  [min_temp_side7]
    type = NekSideExtremeValue
    field = temperature
    boundary = '7'
    value_type = min
  []
  [min_temp_side8]
    type = NekSideExtremeValue
    field = temperature
    boundary = '8'
    value_type = min
  []

  [max_pressure_side1]
    type = NekSideExtremeValue
    field = pressure
    boundary = '1'
  []
  [max_pressure_side2]
    type = NekSideExtremeValue
    field = pressure
    boundary = '2'
  []
  [max_pressure_side3]
    type = NekSideExtremeValue
    field = pressure
    boundary = '3'
  []
  [max_pressure_side4]
    type = NekSideExtremeValue
    field = pressure
    boundary = '4'
  []
  [max_pressure_side5]
    type = NekSideExtremeValue
    field = pressure
    boundary = '5'
  []
  [max_pressure_side6]
    type = NekSideExtremeValue
    field = pressure
    boundary = '6'
  []
  [max_pressure_side7]
    type = NekSideExtremeValue
    field = pressure
    boundary = '7'
  []
  [max_pressure_side8]
    type = NekSideExtremeValue
    field = pressure
    boundary = '8'
  []
  [min_pressure_side1]
    type = NekSideExtremeValue
    field = pressure
    boundary = '1'
    value_type = min
  []
  [min_pressure_side2]
    type = NekSideExtremeValue
    field = pressure
    boundary = '2'
    value_type = min
  []
  [min_pressure_side3]
    type = NekSideExtremeValue
    field = pressure
    boundary = '3'
    value_type = min
  []
  [min_pressure_side4]
    type = NekSideExtremeValue
    field = pressure
    boundary = '4'
    value_type = min
  []
  [min_pressure_side5]
    type = NekSideExtremeValue
    field = pressure
    boundary = '5'
    value_type = min
  []
  [min_pressure_side6]
    type = NekSideExtremeValue
    field = pressure
    boundary = '6'
    value_type = min
  []
  [min_pressure_side7]
    type = NekSideExtremeValue
    field = pressure
    boundary = '7'
    value_type = min
  []
  [min_pressure_side8]
    type = NekSideExtremeValue
    field = pressure
    boundary = '8'
    value_type = min
  []

  [max_velocity_side1]
    type = NekSideExtremeValue
    field = velocity
    boundary = '1'
    value_type = max
  []
  [max_velocity_side2]
    type = NekSideExtremeValue
    field = velocity
    boundary = '2'
    value_type = max
  []
  [max_velocity_side3]
    type = NekSideExtremeValue
    field = velocity
    boundary = '3'
    value_type = max
  []
  [max_velocity_side4]
    type = NekSideExtremeValue
    field = velocity
    boundary = '4'
    value_type = max
  []
  [max_velocity_side5]
    type = NekSideExtremeValue
    field = velocity
    boundary = '5'
    value_type = max
  []
  [max_velocity_side6]
    type = NekSideExtremeValue
    field = velocity
    boundary = '6'
    value_type = max
  []
  [max_velocity_side7]
    type = NekSideExtremeValue
    field = velocity
    boundary = '7'
    value_type = max
  []
  [max_velocity_side8]
    type = NekSideExtremeValue
    field = velocity
    boundary = '8'
    value_type = max
  []
  [min_velocity_side1]
    type = NekSideExtremeValue
    field = velocity
    boundary = '1'
    value_type = min
  []
  [min_velocity_side2]
    type = NekSideExtremeValue
    field = velocity
    boundary = '2'
    value_type = min
  []
  [min_velocity_side3]
    type = NekSideExtremeValue
    field = velocity
    boundary = '3'
    value_type = min
  []
  [min_velocity_side4]
    type = NekSideExtremeValue
    field = velocity
    boundary = '4'
    value_type = min
  []
  [min_velocity_side5]
    type = NekSideExtremeValue
    field = velocity
    boundary = '5'
    value_type = min
  []
  [min_velocity_side6]
    type = NekSideExtremeValue
    field = velocity
    boundary = '6'
    value_type = min
  []
  [min_velocity_side7]
    type = NekSideExtremeValue
    field = velocity
    boundary = '7'
    value_type = min
  []
  [min_velocity_side8]
    type = NekSideExtremeValue
    field = velocity
    boundary = '8'
    value_type = min
  []

  [max_x_velocity_side1]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '1'
    value_type = max
  []
  [max_x_velocity_side2]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '2'
    value_type = max
  []
  [max_x_velocity_side3]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '3'
    value_type = max
  []
  [max_x_velocity_side4]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '4'
    value_type = max
  []
  [max_x_velocity_side5]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '5'
    value_type = max
  []
  [max_x_velocity_side6]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '6'
    value_type = max
  []
  [max_x_velocity_side7]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '7'
    value_type = max
  []
  [max_x_velocity_side8]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '8'
    value_type = max
  []
  [min_x_velocity_side1]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '1'
    value_type = min
  []
  [min_x_velocity_side2]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '2'
    value_type = min
  []
  [min_x_velocity_side3]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '3'
    value_type = min
  []
  [min_x_velocity_side4]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '4'
    value_type = min
  []
  [min_x_velocity_side5]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '5'
    value_type = min
  []
  [min_x_velocity_side6]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '6'
    value_type = min
  []
  [min_x_velocity_side7]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '7'
    value_type = min
  []
  [min_x_velocity_side8]
    type = NekSideExtremeValue
    field = velocity_x
    boundary = '8'
    value_type = min
  []
  [max_y_velocity_side1]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '1'
    value_type = max
  []
  [max_y_velocity_side2]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '2'
    value_type = max
  []
  [max_y_velocity_side3]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '3'
    value_type = max
  []
  [max_y_velocity_side4]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '4'
    value_type = max
  []
  [max_y_velocity_side5]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '5'
    value_type = max
  []
  [max_y_velocity_side6]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '6'
    value_type = max
  []
  [max_y_velocity_side7]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '7'
    value_type = max
  []
  [max_y_velocity_side8]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '8'
    value_type = max
  []
  [min_y_velocity_side1]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '1'
    value_type = min
  []
  [min_y_velocity_side2]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '2'
    value_type = min
  []
  [min_y_velocity_side3]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '3'
    value_type = min
  []
  [min_y_velocity_side4]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '4'
    value_type = min
  []
  [min_y_velocity_side5]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '5'
    value_type = min
  []
  [min_y_velocity_side6]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '6'
    value_type = min
  []
  [min_y_velocity_side7]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '7'
    value_type = min
  []
  [min_y_velocity_side8]
    type = NekSideExtremeValue
    field = velocity_y
    boundary = '8'
    value_type = min
  []
  [max_z_velocity_side1]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '1'
    value_type = max
  []
  [max_z_velocity_side2]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '2'
    value_type = max
  []
  [max_z_velocity_side3]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '3'
    value_type = max
  []
  [max_z_velocity_side4]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '4'
    value_type = max
  []
  [max_z_velocity_side5]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '5'
    value_type = max
  []
  [max_z_velocity_side6]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '6'
    value_type = max
  []
  [max_z_velocity_side7]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '7'
    value_type = max
  []
  [max_z_velocity_side8]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '8'
    value_type = max
  []
  [min_z_velocity_side1]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '1'
    value_type = min
  []
  [min_z_velocity_side2]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '2'
    value_type = min
  []
  [min_z_velocity_side3]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '3'
    value_type = min
  []
  [min_z_velocity_side4]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '4'
    value_type = min
  []
  [min_z_velocity_side5]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '5'
    value_type = min
  []
  [min_z_velocity_side6]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '6'
    value_type = min
  []
  [min_z_velocity_side7]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '7'
    value_type = min
  []
  [min_z_velocity_side8]
    type = NekSideExtremeValue
    field = velocity_z
    boundary = '8'
    value_type = min
  []
[]
(test/tests/postprocessors/nek_side_extrema/nek.i)

Input Parameters

  • boundaryBoundary ID(s) for which to compute the postprocessor

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

    Controllable:No

    Description:Boundary ID(s) for which to compute the postprocessor

  • fieldField to integrate

    C++ Type:MooseEnum

    Options:velocity_component, velocity_x, velocity_y, velocity_z, velocity, temperature, pressure, scalar01, scalar02, scalar03, unity

    Controllable:No

    Description:Field to integrate

Required Parameters

  • execute_onTIMESTEP_ENDThe list of flag(s) indicating when this object should be executed, the available options include NONE, INITIAL, LINEAR, NONLINEAR, POSTCHECK, TIMESTEP_END, TIMESTEP_BEGIN, MULTIAPP_FIXED_POINT_END, MULTIAPP_FIXED_POINT_BEGIN, FINAL, CUSTOM.

    Default:TIMESTEP_END

    C++ Type:ExecFlagEnum

    Options:NONE, INITIAL, LINEAR, NONLINEAR, POSTCHECK, TIMESTEP_END, TIMESTEP_BEGIN, MULTIAPP_FIXED_POINT_END, MULTIAPP_FIXED_POINT_BEGIN, FINAL, CUSTOM, TRANSFER

    Controllable:No

    Description:The list of flag(s) indicating when this object should be executed, the available options include NONE, INITIAL, LINEAR, NONLINEAR, POSTCHECK, TIMESTEP_END, TIMESTEP_BEGIN, MULTIAPP_FIXED_POINT_END, MULTIAPP_FIXED_POINT_BEGIN, FINAL, CUSTOM.

  • meshallNekRS mesh to compute postprocessor on

    Default:all

    C++ Type:MooseEnum

    Options:fluid, solid, all

    Controllable:No

    Description:NekRS mesh to compute postprocessor on

  • prop_getter_suffixAn optional suffix parameter that can be appended to any attempt to retrieve/get material properties. The suffix will be prepended with a '_' character.

    C++ Type:MaterialPropertyName

    Controllable:No

    Description:An optional suffix parameter that can be appended to any attempt to retrieve/get material properties. The suffix will be prepended with a '_' character.

  • use_interpolated_stateFalseFor the old and older state use projected material properties interpolated at the quadrature points. To set up projection use the ProjectedStatefulMaterialStorageAction.

    Default:False

    C++ Type:bool

    Controllable:No

    Description:For the old and older state use projected material properties interpolated at the quadrature points. To set up projection use the ProjectedStatefulMaterialStorageAction.

  • value_typemaxWhether to give the maximum or minimum extreme value

    Default:max

    C++ Type:MooseEnum

    Options:max, min, average

    Controllable:No

    Description:Whether to give the maximum or minimum extreme value

  • velocity_directionDirection in which to evaluate velocity, for 'field = velocity_component'. For example, velocity_direction = '1 0 0' will get the x-component of velocity.

    C++ Type:libMesh::Point

    Controllable:No

    Description:Direction in which to evaluate velocity, for 'field = velocity_component'. For example, velocity_direction = '1 0 0' will get the x-component of velocity.

Optional Parameters

  • allow_duplicate_execution_on_initialFalseIn the case where this UserObject is depended upon by an initial condition, allow it to be executed twice during the initial setup (once before the IC and again after mesh adaptivity (if applicable).

    Default:False

    C++ Type:bool

    Controllable:No

    Description:In the case where this UserObject is depended upon by an initial condition, allow it to be executed twice during the initial setup (once before the IC and again after mesh adaptivity (if applicable).

  • 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:Yes

    Description:Set the enabled status of the MooseObject.

  • execution_order_group0Execution order groups are executed in increasing order (e.g., the lowest number is executed first). Note that negative group numbers may be used to execute groups before the default (0) group. Please refer to the user object documentation for ordering of user object execution within a group.

    Default:0

    C++ Type:int

    Controllable:No

    Description:Execution order groups are executed in increasing order (e.g., the lowest number is executed first). Note that negative group numbers may be used to execute groups before the default (0) group. Please refer to the user object documentation for ordering of user object execution within a group.

  • force_postauxFalseForces the UserObject to be executed in POSTAUX

    Default:False

    C++ Type:bool

    Controllable:No

    Description:Forces the UserObject to be executed in POSTAUX

  • force_preauxFalseForces the UserObject to be executed in PREAUX

    Default:False

    C++ Type:bool

    Controllable:No

    Description:Forces the UserObject to be executed in PREAUX

  • force_preicFalseForces the UserObject to be executed in PREIC during initial setup

    Default:False

    C++ Type:bool

    Controllable:No

    Description:Forces the UserObject to be executed in PREIC during initial setup

  • outputsVector of output names where you would like to restrict the output of variables(s) associated with this object

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

    Controllable:No

    Description:Vector of output names where you would like to restrict the output of variables(s) associated with this object

  • use_displaced_meshFalseWhether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.

    Default:False

    C++ Type:bool

    Controllable:No

    Description:Whether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.

Advanced Parameters

Input Files