- 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
Controllable:No
Description:Field to integrate
NekSideIntegral
Compute the integral of a field over a boundary of the NekRS mesh
Description
This postprocessor computes the integral of a specified field over a boundary in the NekRS mesh,
where is the value of the postprocessor, is the boundary of the NekRS mesh, and is the specified field.
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 the area.
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 area, and side-integrated temperature, pressure, and velocity magnitude on the boundaries of the NekRS mesh.
[Postprocessors]
[area_side1]
type = NekSideIntegral
field = unity
boundary = '1'
[]
[area_side2]
type = NekSideIntegral
field = unity
boundary = '2'
[]
[area_side3]
type = NekSideIntegral
field = unity
boundary = '3'
[]
[area_side4]
type = NekSideIntegral
field = unity
boundary = '4'
[]
[area_side5]
type = NekSideIntegral
field = unity
boundary = '5'
[]
[area_side6]
type = NekSideIntegral
field = unity
boundary = '6'
[]
[area_side7]
type = NekSideIntegral
field = unity
boundary = '7'
[]
[area_side8]
type = NekSideIntegral
field = unity
boundary = '8'
[]
[temp_side1]
type = NekSideIntegral
field = temperature
boundary = '1'
[]
[temp_side2]
type = NekSideIntegral
field = temperature
boundary = '2'
[]
[temp_side3]
type = NekSideIntegral
field = temperature
boundary = '3'
[]
[temp_side4]
type = NekSideIntegral
field = temperature
boundary = '4'
[]
[temp_side5]
type = NekSideIntegral
field = temperature
boundary = '5'
[]
[temp_side6]
type = NekSideIntegral
field = temperature
boundary = '6'
[]
[temp_side7]
type = NekSideIntegral
field = temperature
boundary = '7'
[]
[temp_side8]
type = NekSideIntegral
field = temperature
boundary = '8'
[]
[pressure_side1]
type = NekSideIntegral
field = pressure
boundary = '1'
[]
[pressure_side2]
type = NekSideIntegral
field = pressure
boundary = '2'
[]
[pressure_side3]
type = NekSideIntegral
field = pressure
boundary = '3'
[]
[pressure_side4]
type = NekSideIntegral
field = pressure
boundary = '4'
[]
[pressure_side5]
type = NekSideIntegral
field = pressure
boundary = '5'
[]
[pressure_side6]
type = NekSideIntegral
field = pressure
boundary = '6'
[]
[pressure_side7]
type = NekSideIntegral
field = pressure
boundary = '7'
[]
[pressure_side8]
type = NekSideIntegral
field = pressure
boundary = '8'
[]
[velocity_avg1]
type = NekSideIntegral
field = velocity
boundary = '1'
[]
[velocity_avg2]
type = NekSideIntegral
field = velocity
boundary = '2'
[]
[velocity_avg3]
type = NekSideIntegral
field = velocity
boundary = '3'
[]
[velocity_avg4]
type = NekSideIntegral
field = velocity
boundary = '4'
[]
[velocity_avg5]
type = NekSideIntegral
field = velocity
boundary = '5'
[]
[velocity_avg6]
type = NekSideIntegral
field = velocity
boundary = '6'
[]
[velocity_avg7]
type = NekSideIntegral
field = velocity
boundary = '7'
[]
[velocity_avg8]
type = NekSideIntegral
field = velocity
boundary = '8'
[]
[velocity_comp1]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '1'
[]
[velocity_comp2]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '2'
[]
[velocity_comp3]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '3'
[]
[velocity_comp4]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '4'
[]
[velocity_comp5]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '5'
[]
[velocity_comp6]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '6'
[]
[velocity_comp7]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '7'
[]
[velocity_comp8]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '8'
[]
[]
(test/tests/postprocessors/nek_side_integral/nek.i)Input 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.
- 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
- (test/tests/postprocessors/dimensionless_numbers/nondimensional/nek.i)
- (test/tests/nek_standalone/conj_ht/nek.i)
- (test/tests/cht/nondimensional/nek.i)
- (test/tests/nek_standalone/channel/nek.i)
- (test/tests/nek_mesh/sidesets/cube/nek_volume.i)
- (test/tests/userobjects/sideset_layered/z_bins.i)
- (test/tests/deformation/nek_standalone/nek_boundary.i)
- (test/tests/nek_standalone/lowMach/nek.i)
- (test/tests/deformation/mesh-velocity-areas/nek.i)
- (test/tests/nek_mesh/sidesets/cube/exact_volume.i)
- (test/tests/cht/nondimensional/nek_exact.i)
- (test/tests/postprocessors/nek_side_average/nek.i)
- (test/tests/deformation/nek_standalone/nek.i)
- (test/tests/cht/sfr_pincell/nek_vpp.i)
- (test/tests/nek_mesh/sidesets/pyramid/nek_volume.i)
- (test/tests/postprocessors/nek_side_integral/nek.i)
- (test/tests/cht/sfr_pincell/nek.i)
- (test/tests/griffin_coupling/nek.i)
- (test/tests/postprocessors/dimensionless_numbers/dimensional/nek.i)
- (test/tests/nek_errors/invalid_bid_postprocessor/nek.i)
- (test/tests/nek_mesh/sidesets/pyramid/exact_volume.i)
- (test/tests/multiple_nek_apps/subdirectory/nek.i)
Child Objects
(test/tests/postprocessors/nek_side_integral/nek.i)
[Problem]
type = NekRSProblem
casename = 'pyramid'
[]
[Mesh]
type = NekRSMesh
boundary = '1 2 3 4 5 6 7 8'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Outputs]
[out]
type = CSV
hide = 'flux_integral'
execute_on = 'final'
[]
[]
[Postprocessors]
[area_side1]
type = NekSideIntegral
field = unity
boundary = '1'
[]
[area_side2]
type = NekSideIntegral
field = unity
boundary = '2'
[]
[area_side3]
type = NekSideIntegral
field = unity
boundary = '3'
[]
[area_side4]
type = NekSideIntegral
field = unity
boundary = '4'
[]
[area_side5]
type = NekSideIntegral
field = unity
boundary = '5'
[]
[area_side6]
type = NekSideIntegral
field = unity
boundary = '6'
[]
[area_side7]
type = NekSideIntegral
field = unity
boundary = '7'
[]
[area_side8]
type = NekSideIntegral
field = unity
boundary = '8'
[]
[temp_side1]
type = NekSideIntegral
field = temperature
boundary = '1'
[]
[temp_side2]
type = NekSideIntegral
field = temperature
boundary = '2'
[]
[temp_side3]
type = NekSideIntegral
field = temperature
boundary = '3'
[]
[temp_side4]
type = NekSideIntegral
field = temperature
boundary = '4'
[]
[temp_side5]
type = NekSideIntegral
field = temperature
boundary = '5'
[]
[temp_side6]
type = NekSideIntegral
field = temperature
boundary = '6'
[]
[temp_side7]
type = NekSideIntegral
field = temperature
boundary = '7'
[]
[temp_side8]
type = NekSideIntegral
field = temperature
boundary = '8'
[]
[pressure_side1]
type = NekSideIntegral
field = pressure
boundary = '1'
[]
[pressure_side2]
type = NekSideIntegral
field = pressure
boundary = '2'
[]
[pressure_side3]
type = NekSideIntegral
field = pressure
boundary = '3'
[]
[pressure_side4]
type = NekSideIntegral
field = pressure
boundary = '4'
[]
[pressure_side5]
type = NekSideIntegral
field = pressure
boundary = '5'
[]
[pressure_side6]
type = NekSideIntegral
field = pressure
boundary = '6'
[]
[pressure_side7]
type = NekSideIntegral
field = pressure
boundary = '7'
[]
[pressure_side8]
type = NekSideIntegral
field = pressure
boundary = '8'
[]
[velocity_avg1]
type = NekSideIntegral
field = velocity
boundary = '1'
[]
[velocity_avg2]
type = NekSideIntegral
field = velocity
boundary = '2'
[]
[velocity_avg3]
type = NekSideIntegral
field = velocity
boundary = '3'
[]
[velocity_avg4]
type = NekSideIntegral
field = velocity
boundary = '4'
[]
[velocity_avg5]
type = NekSideIntegral
field = velocity
boundary = '5'
[]
[velocity_avg6]
type = NekSideIntegral
field = velocity
boundary = '6'
[]
[velocity_avg7]
type = NekSideIntegral
field = velocity
boundary = '7'
[]
[velocity_avg8]
type = NekSideIntegral
field = velocity
boundary = '8'
[]
[velocity_comp1]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '1'
[]
[velocity_comp2]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '2'
[]
[velocity_comp3]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '3'
[]
[velocity_comp4]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '4'
[]
[velocity_comp5]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '5'
[]
[velocity_comp6]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '6'
[]
[velocity_comp7]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '7'
[]
[velocity_comp8]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '8'
[]
[]
(test/tests/postprocessors/dimensionless_numbers/nondimensional/nek.i)
[Problem]
type = NekRSStandaloneProblem
casename = 'brick'
nondimensional = true
L_ref = 0.25
U_ref = 0.001
rho_0 = 834.5
Cp_0 = 1228.0
T_ref = 573.0
dT_ref = 10.0
[]
[Mesh]
type = NekRSMesh
boundary = '3'
scaling = 0.25
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Outputs]
[out]
type = CSV
execute_on = 'final'
[]
[]
[Postprocessors]
[Pe]
type = PecletNumber
boundary = '1'
[]
[Re]
type = ReynoldsNumber
boundary = '1'
[]
[area]
type = NekSideIntegral
field = unity
boundary = '1'
[]
[mdot]
type = NekMassFluxWeightedSideIntegral
field = unity
boundary = '1'
[]
[inlet_v]
type = NekSideAverage
field = velocity
boundary = '1'
[]
[]
(test/tests/nek_standalone/conj_ht/nek.i)
[Mesh]
type = NekRSMesh
volume = true
[]
[Problem]
type = NekRSStandaloneProblem
casename = 'conj_ht'
output = 'temperature'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Postprocessors]
[Area_BC3_flow]
type = NekSideIntegral
boundary = '3'
field = unity
mesh = 'fluid'
[]
[Area_BC3_all]
type = NekSideIntegral
boundary = '3'
field = unity
mesh = 'all'
[]
[SideAverage_T_BC3_flow]
type = NekSideAverage
boundary = '3'
field = temperature
mesh = 'fluid'
[]
[SideAverage_T_BC3_all]
type = NekSideAverage
boundary = '3'
field = temperature
mesh = 'all'
[]
[HeatFluxIntegral_BC3_flow]
type = NekHeatFluxIntegral
boundary = '3'
mesh = 'fluid'
[]
[HeatFluxIntegral_BC3_all]
type = NekHeatFluxIntegral
boundary = '3'
mesh = 'all'
[]
[MassFlowRate_BC1_flow]
type = NekMassFluxWeightedSideIntegral
boundary = '1'
field = unity
mesh = 'fluid'
[]
[MassFlowRate_BC1_all]
type = NekMassFluxWeightedSideIntegral
boundary = '1'
field = unity
mesh = 'all'
[]
[MflowAvgTemp_BC2_flow]
type = NekMassFluxWeightedSideAverage
boundary = '2'
field = temperature
mesh = 'fluid'
[]
[MflowAvgTemp_BC2_all]
type = NekMassFluxWeightedSideAverage
boundary = '2'
field = temperature
mesh = 'all'
[]
[Reynolds_BC1_flow]
type = ReynoldsNumber
boundary = '1'
L_ref = 0.5
mesh = 'fluid'
[]
[Reynolds_BC1_all]
type = ReynoldsNumber
boundary = '1'
L_ref = 0.5
mesh = 'all'
[]
[Peclet_BC1_flow]
type = PecletNumber
boundary = '1'
L_ref = 0.5
mesh = 'fluid'
[]
[Peclet_BC1_all]
type = PecletNumber
boundary = '1'
L_ref = 0.5
mesh = 'all'
[]
#
# Volume post processors
#
[Vol_flow]
type = NekVolumeIntegral
field = unity
mesh = 'fluid'
[]
[Vol_all]
type = NekVolumeIntegral
field = unity
mesh = 'all'
[]
[maxVol_T_flow]
type = NekVolumeExtremeValue
field = temperature
value_type = max
mesh = 'fluid'
[]
[maxVol_T_all]
type = NekVolumeExtremeValue
field = temperature
value_type = max
mesh = 'all'
[]
[avgVol_T_flow]
type = NekVolumeAverage
field = temperature
mesh = 'fluid'
[]
[avgVol_T_all]
type = NekVolumeAverage
field = temperature
mesh = 'all'
[]
[]
[Outputs]
csv = true
exodus = true
execute_on = final
[]
(test/tests/cht/nondimensional/nek.i)
[Problem]
type = NekRSProblem
casename = 'sfr_pin'
# This input is run in nondimensional form to verify that all the postprocessors
# and data transfers in/out of nekRS are properly dimensionalized.
nondimensional = true
U_ref = 0.0950466
T_ref = 628.15
dT_ref = 50.0
L_ref = 0.908e-2
rho_0 = 834.5
Cp_0 = 1228.0
[]
[Mesh]
type = NekRSMesh
boundary = '1'
# nekRS runs in non-dimensional form, which means that we shrunk the mesh
# from physical units of meters to our characteristic scale of 0.908e-2 m
# (the pin pitch, arbitrarily chosen). That means that we must multiply
# the nekRS mesh by 0.908e-2 to get back in units of meters that BISON is
# running in.
scaling = 0.908e-2
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Postprocessors]
[synchronization_in]
type = Receiver
[]
# side integral
[area_1]
type = NekSideIntegral
field = unity
boundary = '1'
[]
[pressure_1]
type = NekSideIntegral
field = pressure
boundary = '1'
[]
[temperature_1]
type = NekSideIntegral
field = temperature
boundary = '1'
[]
# side average
[avg_area_1]
type = NekSideAverage
field = unity
boundary = '1'
[]
[avg_pressure_1]
type = NekSideAverage
field = pressure
boundary = '1'
[]
[avg_temperature_1]
type = NekSideAverage
field = temperature
boundary = '1'
[]
# volume integral
[volume]
type = NekVolumeIntegral
field = unity
[]
[pressure_vol]
type = NekVolumeIntegral
field = pressure
[]
[temperature_vol]
type = NekVolumeIntegral
field = temperature
[]
# volume average
[avg_volume]
type = NekVolumeAverage
field = unity
[]
[avg_pressure_vol]
type = NekVolumeAverage
field = pressure
[]
[avg_temperature_vol]
type = NekVolumeAverage
field = temperature
[]
# heat flux integral
[nek_flux]
type = NekHeatFluxIntegral
boundary = '1'
[]
# mass flux weighted integral
[inlet_mdot]
type = NekMassFluxWeightedSideIntegral
field = unity
boundary = '3'
execute_on = initial
[]
[outlet_T]
type = NekMassFluxWeightedSideIntegral
field = temperature
boundary = '4'
[]
[inlet_P]
type = NekMassFluxWeightedSideIntegral
field = pressure
boundary = '4'
[]
# mass flux weighted integral
[inlet_mdot_avg]
type = NekMassFluxWeightedSideAverage
field = unity
boundary = '3'
execute_on = initial
[]
[outlet_T_avg]
type = NekMassFluxWeightedSideAverage
field = temperature
boundary = '4'
[]
[inlet_P_avg]
type = NekMassFluxWeightedSideAverage
field = pressure
boundary = '4'
[]
# extreme value postprocessors - VOLUME
[max_T]
type = NekVolumeExtremeValue
field = temperature
value_type = max
[]
[min_T]
type = NekVolumeExtremeValue
field = temperature
value_type = min
[]
[max_p]
type = NekVolumeExtremeValue
field = pressure
value_type = max
[]
[min_p]
type = NekVolumeExtremeValue
field = pressure
value_type = min
[]
[max_1]
type = NekVolumeExtremeValue
field = unity
value_type = max
[]
[min_1]
type = NekVolumeExtremeValue
field = unity
value_type = min
[]
# extreme value postprocessors - SIDE
[max_T_out]
type = NekSideExtremeValue
field = temperature
boundary = '4'
value_type = max
[]
[min_T_out]
type = NekSideExtremeValue
field = temperature
boundary = '4'
value_type = min
[]
[max_p_in]
type = NekSideExtremeValue
field = pressure
boundary = '3'
value_type = max
[]
[min_p_in]
type = NekSideExtremeValue
field = pressure
boundary = '3'
value_type = min
[]
[max_1_in]
type = NekSideExtremeValue
field = unity
boundary = '3'
value_type = max
[]
[min_1_in]
type = NekSideExtremeValue
field = unity
boundary = '3'
value_type = min
[]
[]
[Outputs]
exodus = true
execute_on = 'final'
[screen]
type = Console
hide = 'synchronization_in'
[]
[]
(test/tests/nek_standalone/channel/nek.i)
[Mesh]
type = NekRSMesh
volume = true
[]
[Problem]
type = NekRSStandaloneProblem
casename = 'channel'
output = 'pressure velocity'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Postprocessors]
[max_Vx]
type = NekVolumeExtremeValue
field = velocity_x
value_type = max
[]
[max_Vx_output]
type = NodalExtremeValue
variable = vel_x
value_type = max
[]
[max_Vx_diff]
type = DifferencePostprocessor
value1 = max_Vx
value2 = max_Vx_output
[]
[min_Vx]
type = NekVolumeExtremeValue
field = velocity_x
value_type = min
[]
[min_Vx_output]
type = NodalExtremeValue
variable = vel_x
value_type = min
[]
[min_Vx_diff]
type = DifferencePostprocessor
value1 = min_Vx
value2 = min_Vx_output
[]
[max_Vy]
type = NekVolumeExtremeValue
field = velocity_y
value_type = max
[]
[max_Vy_output]
type = NodalExtremeValue
variable = vel_y
value_type = max
[]
[max_Vy_diff]
type = DifferencePostprocessor
value1 = max_Vy
value2 = max_Vy_output
[]
[min_Vy]
type = NekVolumeExtremeValue
field = velocity_y
value_type = min
[]
[min_Vy_output]
type = NodalExtremeValue
variable = vel_y
value_type = min
[]
[max_p]
type = NekVolumeExtremeValue
field = pressure
value_type = max
[]
[max_p_output]
type = NodalExtremeValue
variable = P
value_type = max
[]
[max_p_diff]
type = DifferencePostprocessor
value1 = max_p
value2 = max_p_output
[]
[min_p]
type = NekVolumeExtremeValue
field = pressure
value_type = min
[]
[min_p_output]
type = NodalExtremeValue
variable = P
value_type = min
[]
[min_p_diff]
type = DifferencePostprocessor
value1 = min_p
value2 = min_p_output
[]
[area]
type = NekSideIntegral
field = unity
boundary = '1'
[]
[area_output]
type = AreaPostprocessor
boundary = '1'
[]
[area_diff]
type = DifferencePostprocessor
value1 = area
value2 = area_output
[]
[volume]
type = NekVolumeIntegral
field = unity
[]
[volume_output]
type = VolumePostprocessor
[]
[volume_diff]
type = DifferencePostprocessor
value1 = volume
value2 = volume_output
[]
[max_Vx_side]
type = NekSideExtremeValue
field = velocity_x
value_type = max
boundary = '1'
[]
[max_Vx_side_output]
type = NodalExtremeValue
variable = vel_x
value_type = max
boundary = '1'
[]
[max_Vx_side_diff]
type = DifferencePostprocessor
value1 = max_Vx_side
value2 = max_Vx_side_output
[]
[max_Vy_side]
type = NekSideExtremeValue
field = velocity_y
value_type = max
boundary = '1'
[]
[max_Vy_side_output]
type = NodalExtremeValue
variable = vel_y
value_type = max
boundary = '1'
[]
[max_Vy_side_diff]
type = DifferencePostprocessor
value1 = max_Vy_side
value2 = max_Vy_side_output
[]
[min_Vx_side]
type = NekSideExtremeValue
field = velocity_x
value_type = min
boundary = '1'
[]
[min_Vx_side_output]
type = NodalExtremeValue
variable = vel_x
value_type = min
boundary = '1'
[]
[min_Vx_side_diff]
type = DifferencePostprocessor
value1 = min_Vx_side
value2 = min_Vx_side_output
[]
[min_Vy_side]
type = NekSideExtremeValue
field = velocity_y
value_type = min
boundary = '1'
[]
[min_Vy_side_output]
type = NodalExtremeValue
variable = vel_y
value_type = min
boundary = '1'
[]
[min_Vy_side_diff]
type = DifferencePostprocessor
value1 = min_Vy_side
value2 = min_Vy_side_output
[]
[max_p_side]
type = NekSideExtremeValue
field = pressure
value_type = max
boundary = '1'
[]
[max_p_side_output]
type = NodalExtremeValue
variable = P
value_type = max
boundary = '1'
[]
[min_p_side_diff]
type = DifferencePostprocessor
value1 = min_p_side
value2 = min_p_side_output
[]
[min_p_side]
type = NekSideExtremeValue
field = pressure
value_type = min
boundary = '1'
[]
[min_p_side_output]
type = NodalExtremeValue
variable = P
value_type = min
boundary = '1'
[]
[max_p_side_diff]
type = DifferencePostprocessor
value1 = max_p_side
value2 = max_p_side_output
[]
[avg_p]
type = NekVolumeAverage
field = pressure
[]
[avg_p_output]
type = ElementAverageValue
variable = P
[]
[avg_p_diff]
type = DifferencePostprocessor
value1 = avg_p
value2 = avg_p_output
[]
[avg_Vx]
type = NekVolumeAverage
field = velocity_x
[]
[avg_Vx_output]
type = ElementAverageValue
variable = vel_x
[]
[avg_Vx_diff]
type = DifferencePostprocessor
value1 = avg_Vx
value2 = avg_Vx_output
[]
[avg_Vy]
type = NekVolumeAverage
field = velocity_y
[]
[avg_Vy_output]
type = ElementAverageValue
variable = vel_y
[]
[avg_Vy_diff]
type = DifferencePostprocessor
value1 = avg_Vy
value2 = avg_Vy_output
[]
[avg_Vx_side]
type = NekSideAverage
field = velocity_x
boundary = '1'
[]
[avg_Vx_side_output]
type = SideAverageValue
variable = vel_x
boundary = '1'
[]
[avg_Vx_side_diff]
type = DifferencePostprocessor
value1 = avg_Vx_side
value2 = avg_Vx_side_output
[]
[avg_Vy_side]
type = NekSideAverage
field = velocity_y
boundary = '1'
[]
[avg_Vy_side_output]
type = SideAverageValue
variable = vel_y
boundary = '1'
[]
[avg_Vy_side_diff]
type = DifferencePostprocessor
value1 = avg_Vy_side
value2 = avg_Vy_side_output
[]
[avg_p_side]
type = NekSideAverage
field = pressure
boundary = '1'
[]
[avg_p_side_output]
type = SideAverageValue
variable = P
boundary = '1'
[]
[avg_p_side_diff]
type = DifferencePostprocessor
value1 = avg_p_side
value2 = avg_p_side_output
[]
[]
[Outputs]
csv = true
exodus = true
execute_on = 'final'
hide = 'max_Vx_output min_Vx_output max_Vy_output min_Vy_output max_p_output min_p_output area_output volume_output max_Vx_side max_Vx_side_output max_Vy_side max_Vy_side_output max_p_side max_p_side_output min_Vx_side min_Vx_side_output min_Vy_side min_Vy_side_output min_p_side min_p_side_output avg_p avg_p_output avg_Vx avg_Vx_output avg_Vy avg_Vy_output avg_Vx_side avg_Vx_side_output avg_Vy_side avg_Vy_side_output avg_p_side avg_p_side_output max_Vx max_Vy max_p min_Vx min_Vy min_p area'
[]
(test/tests/nek_mesh/sidesets/cube/nek_volume.i)
[Problem]
type = NekRSStandaloneProblem
casename = 'cube'
[]
[Mesh]
type = NekRSMesh
order = SECOND
volume = true
boundary = '1 2 3 4 5 6'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Outputs]
csv = true
[]
[Postprocessors]
[area_side1_nek]
type = NekSideIntegral
field = unity
boundary = '1'
[]
[area_side1_moose]
type = AreaPostprocessor
boundary = '1'
[]
[area_side2_nek]
type = NekSideIntegral
field = unity
boundary = '2'
[]
[area_side2_moose]
type = AreaPostprocessor
boundary = '2'
[]
[area_side3_nek]
type = NekSideIntegral
field = unity
boundary = '3'
[]
[area_side3_moose]
type = AreaPostprocessor
boundary = '3'
[]
[area_side4_nek]
type = NekSideIntegral
field = unity
boundary = '4'
[]
[area_side4_moose]
type = AreaPostprocessor
boundary = '4'
[]
[area_side5_nek]
type = NekSideIntegral
field = unity
boundary = '5'
[]
[area_side5_moose]
type = AreaPostprocessor
boundary = '5'
[]
[area_side6_nek]
type = NekSideIntegral
field = unity
boundary = '6'
[]
[area_side6_moose]
type = AreaPostprocessor
boundary = '6'
[]
[]
(test/tests/userobjects/sideset_layered/z_bins.i)
[GlobalParams]
check_boundary_restricted = false
map_space_by_qp = true
[]
[Mesh]
type = NekRSMesh
volume = true
[]
[Problem]
type = NekRSStandaloneProblem
casename = 'sfr_7pin'
output = 'temperature'
[]
[AuxVariables]
[uo1_bin1]
family = MONOMIAL
order = CONSTANT
[]
[uo1_bin3]
family = MONOMIAL
order = CONSTANT
[]
[uo2_bin1]
family = MONOMIAL
order = CONSTANT
[]
[uo2_bin3]
family = MONOMIAL
order = CONSTANT
[]
[uo_1_2_bin3]
family = MONOMIAL
order = CONSTANT
[]
[T1_bin1]
family = MONOMIAL
order = CONSTANT
[]
[T1_bin3]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[T1_bin1]
type = SpatialUserObjectAux
variable = T1_bin1
user_object = T1_bin1
boundary = '1'
[]
[T1_bin3]
type = SpatialUserObjectAux
variable = T1_bin3
user_object = T1_bin3
boundary = '1'
[]
[uo1_bin1]
type = SpatialUserObjectAux
variable = uo1_bin1
user_object = side1_bin1
boundary = '1'
[]
[uo2_bin1]
type = SpatialUserObjectAux
variable = uo2_bin1
user_object = side2_bin1
boundary = '2'
[]
[uo1_bin3]
type = SpatialUserObjectAux
variable = uo1_bin3
user_object = side1_bin3
boundary = '1'
[]
[uo2_bin3]
type = SpatialUserObjectAux
variable = uo2_bin3
user_object = side2_bin3
boundary = '2'
[]
[uo_1_2_bin3]
type = SpatialUserObjectAux
variable = uo_1_2_bin3
user_object = side_1_2_bin3
boundary = '1 2'
[]
[]
[UserObjects]
[z1]
type = LayeredBin
direction = z
num_layers = 1
[]
[side1_bin1]
type = NekBinnedSideIntegral
bins = 'z1'
field = unity
boundary = '1'
[]
[side2_bin1]
type = NekBinnedSideIntegral
bins = 'z1'
field = unity
boundary = '2'
[]
[side_1_2_bin1] # should equal the sum of side1_bin1 and side1_bin2
type = NekBinnedSideIntegral
bins = 'z1'
field = unity
boundary = '1 2'
[]
[T1_bin1]
type = NekBinnedSideIntegral
bins = 'z1'
field = temperature
boundary = '1'
[]
[z3]
type = LayeredBin
direction = z
num_layers = 3
[]
[side1_bin3]
type = NekBinnedSideIntegral
bins = 'z3'
field = unity
boundary = '1'
[]
[side2_bin3]
type = NekBinnedSideIntegral
bins = 'z3'
field = unity
boundary = '2'
[]
[side_1_2_bin3] # should equal the sum of side1_bin3 and side2_bin3
type = NekBinnedSideIntegral
bins = 'z3'
field = unity
boundary = '1 2'
[]
[T1_bin3]
type = NekBinnedSideIntegral
bins = 'z3'
field = temperature
boundary = '1'
[]
[]
[Postprocessors]
[area1] # should match the value of the side1_bin1 user object
type = NekSideIntegral
field = unity
boundary = '1'
[]
[area_divided1] # should match the value of the side1_bin3 user object
type = LinearCombinationPostprocessor
pp_names = 'area1'
pp_coefs = '${fparse 1.0 / 3.0}'
[]
[area2] # should match the value of the side2_bin1 user object
type = NekSideIntegral
field = unity
boundary = '2'
[]
[area_divided2] # should match the value of the side2_bin3 user object
type = LinearCombinationPostprocessor
pp_names = 'area2'
pp_coefs = '${fparse 1.0 / 3.0}'
[]
[T1] # should match the value of the T1_bin1 user object
type = NekSideIntegral
field = temperature
boundary = '1'
[]
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Outputs]
execute_on = 'final'
exodus = true
# removed from output to get a smaller gold file
hide = 'temp'
[]
(test/tests/deformation/nek_standalone/nek_boundary.i)
[Mesh]
type = NekRSMesh
boundary = '1 2 3'
[]
[Problem]
type = NekRSStandaloneProblem
casename = 'mv_cyl'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Postprocessors]
[volume]
type = NekVolumeIntegral
field = unity
[]
[area]
type = NekSideIntegral
field = unity
boundary = '1 2 3'
[]
# these will not reflect the changing mesh, because we do not copy displacements
# from NekRS to MOOSE
[area_moose]
type = VolumePostprocessor
[]
[]
[Outputs]
csv = true
execute_on = 'final'
[]
(test/tests/nek_standalone/lowMach/nek.i)
[Mesh]
type = NekRSMesh
volume = true
order = SECOND
[]
[Problem]
type = NekRSStandaloneProblem
casename = 'lowMach'
output = 'pressure velocity temperature'
# We omit the non-dimensional settings here in order to just extract the
# non-dimensional solution as-is, without dimensionalizing it.
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Postprocessors]
# All the following postprocessors are applying operations both (a) directly to the NekRS
# solution arrays, and (b) to the variables extracted with the 'outputs = ...' syntax.
# Rather than check the actual values of these postprocessors (which might change if the
# NekRS development team changes the nature of their CI tests), we can just check that
# the difference between the Nek-style postprocessors from the MOOSE-style postprocessors
# (acting on the extract solution) are nearly zero. We only check the absolute value of
# the min/max volume values for Vx, temperature, and pressure because those values are printed to
# the screen and offer quick confirmation of any changes that are due to changes in NekRS itself.
[max_Vx]
type = NekVolumeExtremeValue
field = velocity_x
value_type = max
[]
[max_Vx_output]
type = NodalExtremeValue
variable = vel_x
value_type = max
[]
[max_Vx_diff]
type = DifferencePostprocessor
value1 = max_Vx
value2 = max_Vx_output
[]
[min_Vx]
type = NekVolumeExtremeValue
field = velocity_x
value_type = min
[]
[min_Vx_output]
type = NodalExtremeValue
variable = vel_x
value_type = min
[]
[min_Vx_diff]
type = DifferencePostprocessor
value1 = min_Vx
value2 = min_Vx_output
[]
[max_p]
type = NekVolumeExtremeValue
field = pressure
value_type = max
[]
[max_p_output]
type = NodalExtremeValue
variable = P
value_type = max
[]
[max_p_diff]
type = DifferencePostprocessor
value1 = max_p
value2 = max_p_output
[]
[min_p]
type = NekVolumeExtremeValue
field = pressure
value_type = min
[]
[min_p_output]
type = NodalExtremeValue
variable = P
value_type = min
[]
[min_p_diff]
type = DifferencePostprocessor
value1 = min_p
value2 = min_p_output
[]
[max_T]
type = NekVolumeExtremeValue
field = temperature
value_type = max
[]
[max_T_output]
type = NodalExtremeValue
variable = temp
value_type = max
[]
[max_T_diff]
type = DifferencePostprocessor
value1 = max_T
value2 = max_T_output
[]
[min_T]
type = NekVolumeExtremeValue
field = temperature
value_type = min
[]
[min_T_output]
type = NodalExtremeValue
variable = temp
value_type = min
[]
[min_T_diff]
type = DifferencePostprocessor
value1 = min_T
value2 = min_T_output
[]
[area]
type = NekSideIntegral
field = unity
boundary = '1'
[]
[area_output]
type = AreaPostprocessor
boundary = '1'
[]
[area_diff]
type = DifferencePostprocessor
value1 = area
value2 = area_output
[]
[volume]
type = NekVolumeIntegral
field = unity
[]
[volume_output]
type = VolumePostprocessor
[]
[volume_diff]
type = DifferencePostprocessor
value1 = volume
value2 = volume_output
[]
[max_T_side]
type = NekSideExtremeValue
field = temperature
value_type = max
boundary = '1'
[]
[max_T_side_output]
type = NodalExtremeValue
variable = temp
value_type = max
boundary = '1'
[]
[max_T_side_diff]
type = DifferencePostprocessor
value1 = max_T_side
value2 = max_T_side_output
[]
[min_T_side]
type = NekSideExtremeValue
field = temperature
value_type = min
boundary = '1'
[]
[min_T_side_output]
type = NodalExtremeValue
variable = temp
value_type = min
boundary = '1'
[]
[min_T_side_diff]
type = DifferencePostprocessor
value1 = min_T_side
value2 = min_T_side_output
[]
[max_Vx_side]
type = NekSideExtremeValue
field = velocity_x
value_type = max
boundary = '1'
[]
[max_Vx_side_output]
type = NodalExtremeValue
variable = vel_x
value_type = max
boundary = '1'
[]
[max_Vx_side_diff]
type = DifferencePostprocessor
value1 = max_Vx_side
value2 = max_Vx_side_output
[]
[min_Vx_side]
type = NekSideExtremeValue
field = velocity_x
value_type = min
boundary = '1'
[]
[min_Vx_side_output]
type = NodalExtremeValue
variable = vel_x
value_type = min
boundary = '1'
[]
[min_Vx_side_diff]
type = DifferencePostprocessor
value1 = min_Vx_side
value2 = min_Vx_side_output
[]
[max_p_side]
type = NekSideExtremeValue
field = pressure
value_type = max
boundary = '1'
[]
[max_p_side_output]
type = NodalExtremeValue
variable = P
value_type = max
boundary = '1'
[]
[min_p_side_diff]
type = DifferencePostprocessor
value1 = min_p_side
value2 = min_p_side_output
[]
[min_p_side]
type = NekSideExtremeValue
field = pressure
value_type = min
boundary = '1'
[]
[min_p_side_output]
type = NodalExtremeValue
variable = P
value_type = min
boundary = '1'
[]
[max_p_side_diff]
type = DifferencePostprocessor
value1 = max_p_side
value2 = max_p_side_output
[]
[avg_T]
type = NekVolumeAverage
field = temperature
[]
[avg_T_output]
type = ElementAverageValue
variable = temp
[]
[avg_T_diff]
type = DifferencePostprocessor
value1 = avg_T
value2 = avg_T_output
[]
[avg_Vx]
type = NekVolumeAverage
field = velocity_x
[]
[avg_Vx_output]
type = ElementAverageValue
variable = vel_x
[]
[avg_Vx_diff]
type = DifferencePostprocessor
value1 = avg_Vx
value2 = avg_Vx_output
[]
[avg_T_side]
type = NekSideAverage
field = temperature
boundary = '1'
[]
[avg_T_side_output]
type = SideAverageValue
variable = temp
boundary = '1'
[]
[avg_T_side_diff]
type = DifferencePostprocessor
value1 = avg_T_side
value2 = avg_T_side_output
[]
[avg_Vx_side]
type = NekSideAverage
field = velocity_x
boundary = '1'
[]
[avg_Vx_side_output]
type = SideAverageValue
variable = vel_x
boundary = '1'
[]
[avg_Vx_side_diff]
type = DifferencePostprocessor
value1 = avg_Vx_side
value2 = avg_Vx_side_output
[]
[avg_p_side]
type = NekSideAverage
field = pressure
boundary = '1'
[]
[avg_p_side_output]
type = SideAverageValue
variable = P
boundary = '1'
[]
[avg_p_side_diff]
type = DifferencePostprocessor
value1 = avg_p_side
value2 = avg_p_side_output
[]
[]
[Outputs]
csv = true
exodus = true
execute_on = 'final'
hide = 'max_Vx_output min_Vx_output max_p_output min_p_output area_output volume_output max_Vx_side max_Vx_side_output max_p_side max_p_side_output min_Vx_side min_Vx_side_output min_p_side min_p_side_output avg_Vx avg_Vx_output avg_Vx_side avg_Vx_side_output avg_p_side avg_p_side_output max_T_output min_T_output max_T_side max_T_side_output min_T_side min_T_side_output avg_T avg_T_output avg_T_side avg_T_side_output'
[]
(test/tests/deformation/mesh-velocity-areas/nek.i)
[Mesh]
type = NekRSMesh
order = SECOND
boundary = '2'
parallel_type = replicated
displacements = 'disp_x disp_y disp_z'
use_displaced_mesh =true
[]
[Problem]
type = NekRSProblem
has_heat_source = false
casename = 'pipe'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[Quadrature]
type = GAUSS_LOBATTO
order = SECOND
[]
[]
[Postprocessors]
[nek_area_initial]
type = NekSideIntegral
field = unity
boundary = '2'
execute_on = initial
[]
[nek_area]
type = NekSideIntegral
field = unity
boundary = '2'
[]
[nek_diff]
type = DifferencePostprocessor
value1 = nek_area
value2 = nek_area_initial
[]
[moose_area_initial]
type = VolumePostprocessor # for a side-only mesh, this is area
execute_on = initial
use_displaced_mesh = true
[]
[moose_area]
type = VolumePostprocessor
use_displaced_mesh = true
[]
[moose_diff]
type = DifferencePostprocessor
value1 = moose_area
value2 = moose_area_initial
[]
[]
[Outputs]
csv = true
execute_on = 'final'
hide = 'flux_integral nek_area_initial nek_area moose_area_initial moose_area'
[]
(test/tests/nek_mesh/sidesets/cube/exact_volume.i)
[Problem]
type = NekRSStandaloneProblem
casename = 'cube'
[]
[Mesh]
type = NekRSMesh
volume = true
exact = true
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Outputs]
file_base = 'nek_volume_out'
csv = true
[]
[Postprocessors]
[area_side1_nek]
type = NekSideIntegral
field = unity
boundary = '1'
[]
[area_side1_moose]
type = AreaPostprocessor
boundary = '1'
[]
[area_side2_nek]
type = NekSideIntegral
field = unity
boundary = '2'
[]
[area_side2_moose]
type = AreaPostprocessor
boundary = '2'
[]
[area_side3_nek]
type = NekSideIntegral
field = unity
boundary = '3'
[]
[area_side3_moose]
type = AreaPostprocessor
boundary = '3'
[]
[area_side4_nek]
type = NekSideIntegral
field = unity
boundary = '4'
[]
[area_side4_moose]
type = AreaPostprocessor
boundary = '4'
[]
[area_side5_nek]
type = NekSideIntegral
field = unity
boundary = '5'
[]
[area_side5_moose]
type = AreaPostprocessor
boundary = '5'
[]
[area_side6_nek]
type = NekSideIntegral
field = unity
boundary = '6'
[]
[area_side6_moose]
type = AreaPostprocessor
boundary = '6'
[]
[]
(test/tests/cht/nondimensional/nek_exact.i)
[Problem]
type = NekRSProblem
casename = 'sfr_pin'
# This input is run in nondimensional form to verify that all the postprocessors
# and data transfers in/out of nekRS are properly dimensionalized.
nondimensional = true
U_ref = 0.0950466
T_ref = 628.15
dT_ref = 50.0
L_ref = 0.908e-2
rho_0 = 834.5
Cp_0 = 1228.0
[]
[Mesh]
type = NekRSMesh
boundary = '1'
exact = true
# nekRS runs in non-dimensional form, which means that we shrunk the mesh
# from physical units of meters to our characteristic scale of 0.908e-2 m
# (the pin pitch, arbitrarily chosen). That means that we must multiply
# the nekRS mesh by 0.908e-2 to get back in units of meters that BISON is
# running in.
scaling = 0.908e-2
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Postprocessors]
# pressure is not a reliable quantity to compare in a short, few-timestep regression test.
# This line can be uncommented for comparing with the dimensional version.
inactive = 'avg_pressure_1 avg_pressure_vol max_p max_p_in min_p_in pressure_1 pressure_vol'
[synchronization_in]
type = Receiver
[]
# side integral
[area_1]
type = NekSideIntegral
field = unity
boundary = '1'
[]
[pressure_1]
type = NekSideIntegral
field = pressure
boundary = '1'
[]
[temperature_1]
type = NekSideIntegral
field = temperature
boundary = '1'
[]
# side average
[avg_area_1]
type = NekSideAverage
field = unity
boundary = '1'
[]
[avg_pressure_1]
type = NekSideAverage
field = pressure
boundary = '1'
[]
[avg_temperature_1]
type = NekSideAverage
field = temperature
boundary = '1'
[]
# volume integral
[volume]
type = NekVolumeIntegral
field = unity
[]
[pressure_vol]
type = NekVolumeIntegral
field = pressure
[]
[temperature_vol]
type = NekVolumeIntegral
field = temperature
[]
# volume average
[avg_volume]
type = NekVolumeAverage
field = unity
[]
[avg_pressure_vol]
type = NekVolumeAverage
field = pressure
[]
[avg_temperature_vol]
type = NekVolumeAverage
field = temperature
[]
# heat flux integral
[nek_flux]
type = NekHeatFluxIntegral
boundary = '1'
[]
# mass flux weighted integral
[inlet_mdot]
type = NekMassFluxWeightedSideIntegral
field = unity
boundary = '3'
execute_on = initial
[]
[outlet_T]
type = NekMassFluxWeightedSideIntegral
field = temperature
boundary = '4'
[]
[inlet_P]
type = NekMassFluxWeightedSideIntegral
field = pressure
boundary = '4'
[]
# mass flux weighted integral
[inlet_mdot_avg]
type = NekMassFluxWeightedSideAverage
field = unity
boundary = '3'
execute_on = initial
[]
[outlet_T_avg]
type = NekMassFluxWeightedSideAverage
field = temperature
boundary = '4'
[]
[inlet_P_avg]
type = NekMassFluxWeightedSideAverage
field = pressure
boundary = '4'
[]
# extreme value postprocessors - VOLUME
[max_T]
type = NekVolumeExtremeValue
field = temperature
value_type = max
[]
[min_T]
type = NekVolumeExtremeValue
field = temperature
value_type = min
[]
[max_p]
type = NekVolumeExtremeValue
field = pressure
value_type = max
[]
[min_p]
type = NekVolumeExtremeValue
field = pressure
value_type = min
[]
[max_1]
type = NekVolumeExtremeValue
field = unity
value_type = max
[]
[min_1]
type = NekVolumeExtremeValue
field = unity
value_type = min
[]
# extreme value postprocessors - SIDE
[max_T_out]
type = NekSideExtremeValue
field = temperature
boundary = '4'
value_type = max
[]
[min_T_out]
type = NekSideExtremeValue
field = temperature
boundary = '4'
value_type = min
[]
[max_p_in]
type = NekSideExtremeValue
field = pressure
boundary = '3'
value_type = max
[]
[min_p_in]
type = NekSideExtremeValue
field = pressure
boundary = '3'
value_type = min
[]
[max_1_in]
type = NekSideExtremeValue
field = unity
boundary = '3'
value_type = max
[]
[min_1_in]
type = NekSideExtremeValue
field = unity
boundary = '3'
value_type = min
[]
[]
[Outputs]
exodus = true
execute_on = 'final'
csv = true
[screen]
type = Console
hide = 'synchronization_in'
[]
[]
(test/tests/postprocessors/nek_side_average/nek.i)
[Problem]
type = NekRSProblem
casename = 'pyramid'
[]
[Mesh]
type = NekRSMesh
boundary = '1 2 3 4 5 6 7 8'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Outputs]
[out]
type = CSV
hide = 'flux_integral'
execute_on = 'final'
[]
[]
[Postprocessors]
[temp_avg1]
type = NekSideAverage
field = temperature
boundary = '1'
[]
[temp_avg2]
type = NekSideAverage
field = temperature
boundary = '2'
[]
[temp_avg3]
type = NekSideAverage
field = temperature
boundary = '3'
[]
[temp_avg4]
type = NekSideAverage
field = temperature
boundary = '4'
[]
[temp_avg5]
type = NekSideAverage
field = temperature
boundary = '5'
[]
[temp_avg6]
type = NekSideAverage
field = temperature
boundary = '6'
[]
[temp_avg7]
type = NekSideAverage
field = temperature
boundary = '7'
[]
[temp_avg8]
type = NekSideAverage
field = temperature
boundary = '8'
[]
[pressure_avg1]
type = NekSideAverage
field = pressure
boundary = '1'
[]
[pressure_avg2]
type = NekSideAverage
field = pressure
boundary = '2'
[]
[pressure_avg3]
type = NekSideAverage
field = pressure
boundary = '3'
[]
[pressure_avg4]
type = NekSideAverage
field = pressure
boundary = '4'
[]
[pressure_avg5]
type = NekSideAverage
field = pressure
boundary = '5'
[]
[pressure_avg6]
type = NekSideAverage
field = pressure
boundary = '6'
[]
[pressure_avg7]
type = NekSideAverage
field = pressure
boundary = '7'
[]
[pressure_avg8]
type = NekSideAverage
field = pressure
boundary = '8'
[]
[velocity_avg1]
type = NekSideAverage
field = velocity
boundary = '1'
[]
[velocity_avg2]
type = NekSideAverage
field = velocity
boundary = '2'
[]
[velocity_avg3]
type = NekSideAverage
field = velocity
boundary = '3'
[]
[velocity_avg4]
type = NekSideAverage
field = velocity
boundary = '4'
[]
[velocity_avg5]
type = NekSideAverage
field = velocity
boundary = '5'
[]
[velocity_avg6]
type = NekSideAverage
field = velocity
boundary = '6'
[]
[velocity_avg7]
type = NekSideAverage
field = velocity
boundary = '7'
[]
[velocity_avg8]
type = NekSideAverage
field = velocity
boundary = '8'
[]
[x_velocity_avg1]
type = NekSideAverage
field = velocity_x
boundary = '1'
[]
[x_velocity_avg2]
type = NekSideAverage
field = velocity_x
boundary = '2'
[]
[x_velocity_avg3]
type = NekSideAverage
field = velocity_x
boundary = '3'
[]
[x_velocity_avg4]
type = NekSideAverage
field = velocity_x
boundary = '4'
[]
[x_velocity_avg5]
type = NekSideAverage
field = velocity_x
boundary = '5'
[]
[x_velocity_avg6]
type = NekSideAverage
field = velocity_x
boundary = '6'
[]
[x_velocity_avg7]
type = NekSideAverage
field = velocity_x
boundary = '7'
[]
[x_velocity_avg8]
type = NekSideAverage
field = velocity_x
boundary = '8'
[]
[y_velocity_avg1]
type = NekSideAverage
field = velocity_y
boundary = '1'
[]
[y_velocity_avg2]
type = NekSideAverage
field = velocity_y
boundary = '2'
[]
[y_velocity_avg3]
type = NekSideAverage
field = velocity_y
boundary = '3'
[]
[y_velocity_avg4]
type = NekSideAverage
field = velocity_y
boundary = '4'
[]
[y_velocity_avg5]
type = NekSideAverage
field = velocity_y
boundary = '5'
[]
[y_velocity_avg6]
type = NekSideAverage
field = velocity_y
boundary = '6'
[]
[y_velocity_avg7]
type = NekSideAverage
field = velocity_y
boundary = '7'
[]
[y_velocity_avg8]
type = NekSideAverage
field = velocity_y
boundary = '8'
[]
[z_velocity_avg1]
type = NekSideAverage
field = velocity_z
boundary = '1'
[]
[z_velocity_avg2]
type = NekSideAverage
field = velocity_z
boundary = '2'
[]
[z_velocity_avg3]
type = NekSideAverage
field = velocity_z
boundary = '3'
[]
[z_velocity_avg4]
type = NekSideAverage
field = velocity_z
boundary = '4'
[]
[z_velocity_avg5]
type = NekSideAverage
field = velocity_z
boundary = '5'
[]
[z_velocity_avg6]
type = NekSideAverage
field = velocity_z
boundary = '6'
[]
[z_velocity_avg7]
type = NekSideAverage
field = velocity_z
boundary = '7'
[]
[z_velocity_avg8]
type = NekSideAverage
field = velocity_z
boundary = '8'
[]
[velocity_comp1]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '1'
[]
[velocity_comp2]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '2'
[]
[velocity_comp3]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '3'
[]
[velocity_comp4]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '4'
[]
[velocity_comp5]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '5'
[]
[velocity_comp6]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '6'
[]
[velocity_comp7]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '7'
[]
[velocity_comp8]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '8'
[]
[]
(test/tests/deformation/nek_standalone/nek.i)
[Mesh]
type = NekRSMesh
volume = true
[]
[Problem]
type = NekRSStandaloneProblem
casename = 'mv_cyl'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Postprocessors]
[volume]
type = NekVolumeIntegral
field = unity
[]
[area]
type = NekSideIntegral
field = unity
boundary = '1 2 3'
[]
# these will not reflect the changing mesh, because we do not copy displacements
# from NekRS to MOOSE
[volume_moose]
type = VolumePostprocessor
[]
[area_moose]
type = AreaPostprocessor
boundary = '1 2 3'
[]
[]
[Outputs]
csv = true
execute_on = 'final'
[]
(test/tests/cht/sfr_pincell/nek_vpp.i)
[Problem]
type = NekRSProblem
casename = 'sfr_pin'
conserve_flux_by_sideset = true
# we only technically need one scratch space slot for this problem,
# so we can skip allocating extra
n_usrwrk_slots = 1
[]
[Mesh]
type = NekRSMesh
boundary = '1'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Postprocessors]
[nek_flux]
type = NekHeatFluxIntegral
boundary = '1'
[]
[average_inlet_T]
type = NekSideAverage
field = temperature
boundary = '3'
execute_on = initial
[]
[average_outlet_T]
type = NekSideAverage
field = temperature
boundary = '4'
[]
[dT]
type = DifferencePostprocessor
value1 = average_outlet_T
value2 = average_inlet_T
[]
[inlet_mdot]
type = NekMassFluxWeightedSideIntegral
field = unity
boundary = '3'
execute_on = initial
[]
# postprocessors for comparing against non-dimensional version in ../nondimensional
# --> uncomment in order to get the reference values that the nondimensional boundary coupling
# was verified against
#
# # side integral
# [area_1]
# type = NekSideIntegral
# field = unity
# boundary = '1'
# []
# [pressure_1]
# type = NekSideIntegral
# field = pressure
# boundary = '1'
# []
# [temperature_1]
# type = NekSideIntegral
# field = temperature
# boundary = '1'
# []
# # side average
# [avg_area_1]
# type = NekSideAverage
# field = unity
# boundary = '1'
# []
# [avg_pressure_1]
# type = NekSideAverage
# field = pressure
# boundary = '1'
# []
# [avg_temperature_1]
# type = NekSideAverage
# field = temperature
# boundary = '1'
# []
# # volume integral
# [volume]
# type = NekVolumeIntegral
# field = unity
# []
# [pressure_vol]
# type = NekVolumeIntegral
# field = pressure
# []
# [temperature_vol]
# type = NekVolumeIntegral
# field = temperature
# []
# # volume average
# [avg_volume]
# type = NekVolumeAverage
# field = unity
# []
# [avg_pressure_vol]
# type = NekVolumeAverage
# field = pressure
# []
# [avg_temperature_vol]
# type = NekVolumeAverage
# field = temperature
# []
# # heat flux integral
# [nek_flux]
# type = NekHeatFluxIntegral
# boundary = '1'
# []
# # mass flux weighted integral
# [inlet_mdot]
# type = NekMassFluxWeightedSideIntegral
# field = unity
# boundary = '3'
# execute_on = initial
# []
# [outlet_T]
# type = NekMassFluxWeightedSideIntegral
# field = temperature
# boundary = '4'
# []
# [inlet_P]
# type = NekMassFluxWeightedSideIntegral
# field = pressure
# boundary = '4'
# []
# # mass flux weighted integral
# [inlet_mdot_avg]
# type = NekMassFluxWeightedSideAverage
# field = unity
# boundary = '3'
# execute_on = initial
# []
# [outlet_T_avg]
# type = NekMassFluxWeightedSideAverage
# field = temperature
# boundary = '4'
# []
# [inlet_P_avg]
# type = NekMassFluxWeightedSideAverage
# field = pressure
# boundary = '4'
# []
# # extreme value postprocessors - VOLUME
# [max_T]
# type = NekVolumeExtremeValue
# field = temperature
# value_type = max
# []
# [min_T]
# type = NekVolumeExtremeValue
# field = temperature
# value_type = min
# []
# [max_p]
# type = NekVolumeExtremeValue
# field = pressure
# value_type = max
# []
# [min_p]
# type = NekVolumeExtremeValue
# field = pressure
# value_type = min
# []
# [max_1]
# type = NekVolumeExtremeValue
# field = unity
# value_type = max
# []
# [min_1]
# type = NekVolumeExtremeValue
# field = unity
# value_type = min
# []
# # extreme value postprocessors - SIDE
# [max_T_out]
# type = NekSideExtremeValue
# field = temperature
# boundary = '4'
# value_type = max
# []
# [min_T_out]
# type = NekSideExtremeValue
# field = temperature
# boundary = '4'
# value_type = min
# []
# [max_p_in]
# type = NekSideExtremeValue
# field = pressure
# boundary = '3'
# value_type = max
# []
# [min_p_in]
# type = NekSideExtremeValue
# field = pressure
# boundary = '3'
# value_type = min
# []
# [max_1_in]
# type = NekSideExtremeValue
# field = unity
# boundary = '3'
# value_type = max
# []
# [min_1_in]
# type = NekSideExtremeValue
# field = unity
# boundary = '3'
# value_type = min
# []
[]
[Outputs]
exodus = true
execute_on = 'final'
csv = true
[screen]
type = Console
hide = 'average_inlet_T average_outlet_T'
[]
[]
(test/tests/nek_mesh/sidesets/pyramid/nek_volume.i)
[Problem]
type = NekRSProblem
casename = 'pyramid'
[]
[Mesh]
type = NekRSMesh
order = FIRST
volume = true
boundary = '1 2 3 4 5 6 7 8'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Outputs]
exodus = true
csv = true
hide = 'flux_integral source_integral'
[]
[Postprocessors]
[area_side1_nek]
type = NekSideIntegral
field = unity
boundary = '1'
[]
[area_side1_moose]
type = AreaPostprocessor
boundary = '1'
[]
[area_side2_nek]
type = NekSideIntegral
field = unity
boundary = '2'
[]
[area_side2_moose]
type = AreaPostprocessor
boundary = '2'
[]
[area_side3_nek]
type = NekSideIntegral
field = unity
boundary = '3'
[]
[area_side3_moose]
type = AreaPostprocessor
boundary = '3'
[]
[area_side4_nek]
type = NekSideIntegral
field = unity
boundary = '4'
[]
[area_side4_moose]
type = AreaPostprocessor
boundary = '4'
[]
[area_side5_nek]
type = NekSideIntegral
field = unity
boundary = '5'
[]
[area_side5_moose]
type = AreaPostprocessor
boundary = '5'
[]
[area_side6_nek]
type = NekSideIntegral
field = unity
boundary = '6'
[]
[area_side6_moose]
type = AreaPostprocessor
boundary = '6'
[]
[area_side7_nek]
type = NekSideIntegral
field = unity
boundary = '7'
[]
[area_side7_moose]
type = AreaPostprocessor
boundary = '7'
[]
[area_side8_nek]
type = NekSideIntegral
field = unity
boundary = '8'
[]
[area_side8_moose]
type = AreaPostprocessor
boundary = '8'
[]
[]
(test/tests/postprocessors/nek_side_integral/nek.i)
[Problem]
type = NekRSProblem
casename = 'pyramid'
[]
[Mesh]
type = NekRSMesh
boundary = '1 2 3 4 5 6 7 8'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Outputs]
[out]
type = CSV
hide = 'flux_integral'
execute_on = 'final'
[]
[]
[Postprocessors]
[area_side1]
type = NekSideIntegral
field = unity
boundary = '1'
[]
[area_side2]
type = NekSideIntegral
field = unity
boundary = '2'
[]
[area_side3]
type = NekSideIntegral
field = unity
boundary = '3'
[]
[area_side4]
type = NekSideIntegral
field = unity
boundary = '4'
[]
[area_side5]
type = NekSideIntegral
field = unity
boundary = '5'
[]
[area_side6]
type = NekSideIntegral
field = unity
boundary = '6'
[]
[area_side7]
type = NekSideIntegral
field = unity
boundary = '7'
[]
[area_side8]
type = NekSideIntegral
field = unity
boundary = '8'
[]
[temp_side1]
type = NekSideIntegral
field = temperature
boundary = '1'
[]
[temp_side2]
type = NekSideIntegral
field = temperature
boundary = '2'
[]
[temp_side3]
type = NekSideIntegral
field = temperature
boundary = '3'
[]
[temp_side4]
type = NekSideIntegral
field = temperature
boundary = '4'
[]
[temp_side5]
type = NekSideIntegral
field = temperature
boundary = '5'
[]
[temp_side6]
type = NekSideIntegral
field = temperature
boundary = '6'
[]
[temp_side7]
type = NekSideIntegral
field = temperature
boundary = '7'
[]
[temp_side8]
type = NekSideIntegral
field = temperature
boundary = '8'
[]
[pressure_side1]
type = NekSideIntegral
field = pressure
boundary = '1'
[]
[pressure_side2]
type = NekSideIntegral
field = pressure
boundary = '2'
[]
[pressure_side3]
type = NekSideIntegral
field = pressure
boundary = '3'
[]
[pressure_side4]
type = NekSideIntegral
field = pressure
boundary = '4'
[]
[pressure_side5]
type = NekSideIntegral
field = pressure
boundary = '5'
[]
[pressure_side6]
type = NekSideIntegral
field = pressure
boundary = '6'
[]
[pressure_side7]
type = NekSideIntegral
field = pressure
boundary = '7'
[]
[pressure_side8]
type = NekSideIntegral
field = pressure
boundary = '8'
[]
[velocity_avg1]
type = NekSideIntegral
field = velocity
boundary = '1'
[]
[velocity_avg2]
type = NekSideIntegral
field = velocity
boundary = '2'
[]
[velocity_avg3]
type = NekSideIntegral
field = velocity
boundary = '3'
[]
[velocity_avg4]
type = NekSideIntegral
field = velocity
boundary = '4'
[]
[velocity_avg5]
type = NekSideIntegral
field = velocity
boundary = '5'
[]
[velocity_avg6]
type = NekSideIntegral
field = velocity
boundary = '6'
[]
[velocity_avg7]
type = NekSideIntegral
field = velocity
boundary = '7'
[]
[velocity_avg8]
type = NekSideIntegral
field = velocity
boundary = '8'
[]
[velocity_comp1]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '1'
[]
[velocity_comp2]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '2'
[]
[velocity_comp3]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '3'
[]
[velocity_comp4]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '4'
[]
[velocity_comp5]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '5'
[]
[velocity_comp6]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '6'
[]
[velocity_comp7]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '7'
[]
[velocity_comp8]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '8'
[]
[]
(test/tests/cht/sfr_pincell/nek.i)
[Problem]
type = NekRSProblem
casename = 'sfr_pin'
synchronization_interval = parent_app
# we only technically need one scratch space slot for this problem,
# so we can skip allocating extra
n_usrwrk_slots = 1
[]
[Mesh]
type = NekRSMesh
boundary = '1'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Postprocessors]
[nek_flux]
type = NekHeatFluxIntegral
boundary = '1'
[]
[average_inlet_T]
type = NekSideAverage
field = temperature
boundary = '3'
execute_on = initial
[]
[average_outlet_T]
type = NekSideAverage
field = temperature
boundary = '4'
[]
[dT]
type = DifferencePostprocessor
value1 = average_outlet_T
value2 = average_inlet_T
[]
[inlet_mdot]
type = NekMassFluxWeightedSideIntegral
field = unity
boundary = '3'
execute_on = initial
[]
# postprocessors for comparing against non-dimensional version in ../nondimensional
# --> uncomment in order to get the reference values that the nondimensional boundary coupling
# was verified against
#
# # side integral
# [area_1]
# type = NekSideIntegral
# field = unity
# boundary = '1'
# []
# [pressure_1]
# type = NekSideIntegral
# field = pressure
# boundary = '1'
# []
# [temperature_1]
# type = NekSideIntegral
# field = temperature
# boundary = '1'
# []
# # side average
# [avg_area_1]
# type = NekSideAverage
# field = unity
# boundary = '1'
# []
# [avg_pressure_1]
# type = NekSideAverage
# field = pressure
# boundary = '1'
# []
# [avg_temperature_1]
# type = NekSideAverage
# field = temperature
# boundary = '1'
# []
# # volume integral
# [volume]
# type = NekVolumeIntegral
# field = unity
# []
# [pressure_vol]
# type = NekVolumeIntegral
# field = pressure
# []
# [temperature_vol]
# type = NekVolumeIntegral
# field = temperature
# []
# # volume average
# [avg_volume]
# type = NekVolumeAverage
# field = unity
# []
# [avg_pressure_vol]
# type = NekVolumeAverage
# field = pressure
# []
# [avg_temperature_vol]
# type = NekVolumeAverage
# field = temperature
# []
# # heat flux integral
# [nek_flux]
# type = NekHeatFluxIntegral
# boundary = '1'
# []
# # mass flux weighted integral
# [inlet_mdot]
# type = NekMassFluxWeightedSideIntegral
# field = unity
# boundary = '3'
# execute_on = initial
# []
# [outlet_T]
# type = NekMassFluxWeightedSideIntegral
# field = temperature
# boundary = '4'
# []
# [inlet_P]
# type = NekMassFluxWeightedSideIntegral
# field = pressure
# boundary = '4'
# []
# # mass flux weighted integral
# [inlet_mdot_avg]
# type = NekMassFluxWeightedSideAverage
# field = unity
# boundary = '3'
# execute_on = initial
# []
# [outlet_T_avg]
# type = NekMassFluxWeightedSideAverage
# field = temperature
# boundary = '4'
# []
# [inlet_P_avg]
# type = NekMassFluxWeightedSideAverage
# field = pressure
# boundary = '4'
# []
# # extreme value postprocessors - VOLUME
# [max_T]
# type = NekVolumeExtremeValue
# field = temperature
# value_type = max
# []
# [min_T]
# type = NekVolumeExtremeValue
# field = temperature
# value_type = min
# []
# [max_p]
# type = NekVolumeExtremeValue
# field = pressure
# value_type = max
# []
# [min_p]
# type = NekVolumeExtremeValue
# field = pressure
# value_type = min
# []
# [max_1]
# type = NekVolumeExtremeValue
# field = unity
# value_type = max
# []
# [min_1]
# type = NekVolumeExtremeValue
# field = unity
# value_type = min
# []
# # extreme value postprocessors - SIDE
# [max_T_out]
# type = NekSideExtremeValue
# field = temperature
# boundary = '4'
# value_type = max
# []
# [min_T_out]
# type = NekSideExtremeValue
# field = temperature
# boundary = '4'
# value_type = min
# []
# [max_p_in]
# type = NekSideExtremeValue
# field = pressure
# boundary = '3'
# value_type = max
# []
# [min_p_in]
# type = NekSideExtremeValue
# field = pressure
# boundary = '3'
# value_type = min
# []
# [max_1_in]
# type = NekSideExtremeValue
# field = unity
# boundary = '3'
# value_type = max
# []
# [min_1_in]
# type = NekSideExtremeValue
# field = unity
# boundary = '3'
# value_type = min
# []
[]
[Outputs]
exodus = true
execute_on = 'final'
csv = true
[screen]
type = Console
hide = 'average_inlet_T average_outlet_T transfer_in'
[]
[]
(test/tests/griffin_coupling/nek.i)
[Problem]
type = NekRSProblem
casename = 'pyramid'
[]
[Mesh]
type = NekRSMesh
boundary = '1 2 3 4 5 6 7 8'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Outputs]
[out]
type = CSV
hide = 'flux_integral'
execute_on = 'final'
[]
[]
[Postprocessors]
[area_side1]
type = NekSideIntegral
field = unity
boundary = '1'
[]
[area_side2]
type = NekSideIntegral
field = unity
boundary = '2'
[]
[area_side3]
type = NekSideIntegral
field = unity
boundary = '3'
[]
[area_side4]
type = NekSideIntegral
field = unity
boundary = '4'
[]
[area_side5]
type = NekSideIntegral
field = unity
boundary = '5'
[]
[area_side6]
type = NekSideIntegral
field = unity
boundary = '6'
[]
[area_side7]
type = NekSideIntegral
field = unity
boundary = '7'
[]
[area_side8]
type = NekSideIntegral
field = unity
boundary = '8'
[]
[temp_side1]
type = NekSideIntegral
field = temperature
boundary = '1'
[]
[temp_side2]
type = NekSideIntegral
field = temperature
boundary = '2'
[]
[temp_side3]
type = NekSideIntegral
field = temperature
boundary = '3'
[]
[temp_side4]
type = NekSideIntegral
field = temperature
boundary = '4'
[]
[temp_side5]
type = NekSideIntegral
field = temperature
boundary = '5'
[]
[temp_side6]
type = NekSideIntegral
field = temperature
boundary = '6'
[]
[temp_side7]
type = NekSideIntegral
field = temperature
boundary = '7'
[]
[temp_side8]
type = NekSideIntegral
field = temperature
boundary = '8'
[]
[pressure_side1]
type = NekSideIntegral
field = pressure
boundary = '1'
[]
[pressure_side2]
type = NekSideIntegral
field = pressure
boundary = '2'
[]
[pressure_side3]
type = NekSideIntegral
field = pressure
boundary = '3'
[]
[pressure_side4]
type = NekSideIntegral
field = pressure
boundary = '4'
[]
[pressure_side5]
type = NekSideIntegral
field = pressure
boundary = '5'
[]
[pressure_side6]
type = NekSideIntegral
field = pressure
boundary = '6'
[]
[pressure_side7]
type = NekSideIntegral
field = pressure
boundary = '7'
[]
[pressure_side8]
type = NekSideIntegral
field = pressure
boundary = '8'
[]
[velocity_avg1]
type = NekSideIntegral
field = velocity
boundary = '1'
[]
[velocity_avg2]
type = NekSideIntegral
field = velocity
boundary = '2'
[]
[velocity_avg3]
type = NekSideIntegral
field = velocity
boundary = '3'
[]
[velocity_avg4]
type = NekSideIntegral
field = velocity
boundary = '4'
[]
[velocity_avg5]
type = NekSideIntegral
field = velocity
boundary = '5'
[]
[velocity_avg6]
type = NekSideIntegral
field = velocity
boundary = '6'
[]
[velocity_avg7]
type = NekSideIntegral
field = velocity
boundary = '7'
[]
[velocity_avg8]
type = NekSideIntegral
field = velocity
boundary = '8'
[]
[velocity_comp1]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '1'
[]
[velocity_comp2]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '2'
[]
[velocity_comp3]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '3'
[]
[velocity_comp4]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '4'
[]
[velocity_comp5]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '5'
[]
[velocity_comp6]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '6'
[]
[velocity_comp7]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '7'
[]
[velocity_comp8]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '8'
[]
[]
(test/tests/postprocessors/dimensionless_numbers/dimensional/nek.i)
[Problem]
type = NekRSProblem
casename = 'brick'
[]
[Mesh]
type = NekRSMesh
boundary = '3'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Outputs]
[out]
type = CSV
hide = 'flux_integral'
execute_on = 'final'
[]
[]
[Postprocessors]
[Re]
type = ReynoldsNumber
L_ref = 0.25
boundary = '1'
[]
[Pe]
type = PecletNumber
L_ref = 0.25
boundary = '1'
[]
[area]
type = NekSideIntegral
field = unity
boundary = '1'
[]
[mdot]
type = NekMassFluxWeightedSideIntegral
field = unity
boundary = '1'
[]
[inlet_v]
type = NekSideAverage
field = velocity
boundary = '1'
[]
[]
(test/tests/nek_errors/invalid_bid_postprocessor/nek.i)
# The mesh file used for nekRS (brick.re2) has six sidesets numbered
# as 1, 2, 3, 4, 5, 6. Trying to construct the surface mesh corresponding
# to boundary 8 (a non-existent boundary ID) should throw an error.
[Mesh]
type = NekRSMesh
boundary = 1
[]
[Problem]
type = NekRSProblem
casename = 'brick'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Postprocessors]
[area_side]
type = NekSideIntegral
field = temperature
boundary = 8
[]
[]
(test/tests/nek_mesh/sidesets/pyramid/exact_volume.i)
[Problem]
type = NekRSStandaloneProblem
casename = 'pyramid'
[]
[Mesh]
type = NekRSMesh
volume = true
exact = true
boundary = '1 2 3 4 5 6 7 8'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Outputs]
csv = true
file_base = 'nek_volume_out'
[]
[Postprocessors]
[area_side1_nek]
type = NekSideIntegral
field = unity
boundary = '1'
[]
[area_side1_moose]
type = AreaPostprocessor
boundary = '1'
[]
[area_side2_nek]
type = NekSideIntegral
field = unity
boundary = '2'
[]
[area_side2_moose]
type = AreaPostprocessor
boundary = '2'
[]
[area_side3_nek]
type = NekSideIntegral
field = unity
boundary = '3'
[]
[area_side3_moose]
type = AreaPostprocessor
boundary = '3'
[]
[area_side4_nek]
type = NekSideIntegral
field = unity
boundary = '4'
[]
[area_side4_moose]
type = AreaPostprocessor
boundary = '4'
[]
[area_side5_nek]
type = NekSideIntegral
field = unity
boundary = '5'
[]
[area_side5_moose]
type = AreaPostprocessor
boundary = '5'
[]
[area_side6_nek]
type = NekSideIntegral
field = unity
boundary = '6'
[]
[area_side6_moose]
type = AreaPostprocessor
boundary = '6'
[]
[area_side7_nek]
type = NekSideIntegral
field = unity
boundary = '7'
[]
[area_side7_moose]
type = AreaPostprocessor
boundary = '7'
[]
[area_side8_nek]
type = NekSideIntegral
field = unity
boundary = '8'
[]
[area_side8_moose]
type = AreaPostprocessor
boundary = '8'
[]
[]
(test/tests/multiple_nek_apps/subdirectory/nek.i)
[Problem]
type = NekRSProblem
casename = 'pyramid/pyramid'
[]
[Mesh]
type = NekRSMesh
boundary = '1 2 3 4 5 6 7 8'
[]
[Executioner]
type = Transient
[TimeStepper]
type = NekTimeStepper
[]
[]
[Outputs]
[out]
type = CSV
hide = 'flux_integral'
execute_on = 'final'
[]
[]
[Postprocessors]
[temp_avg1]
type = NekSideAverage
field = temperature
boundary = '1'
[]
[temp_avg2]
type = NekSideAverage
field = temperature
boundary = '2'
[]
[temp_avg3]
type = NekSideAverage
field = temperature
boundary = '3'
[]
[temp_avg4]
type = NekSideAverage
field = temperature
boundary = '4'
[]
[temp_avg5]
type = NekSideAverage
field = temperature
boundary = '5'
[]
[temp_avg6]
type = NekSideAverage
field = temperature
boundary = '6'
[]
[temp_avg7]
type = NekSideAverage
field = temperature
boundary = '7'
[]
[temp_avg8]
type = NekSideAverage
field = temperature
boundary = '8'
[]
[pressure_avg1]
type = NekSideAverage
field = pressure
boundary = '1'
[]
[pressure_avg2]
type = NekSideAverage
field = pressure
boundary = '2'
[]
[pressure_avg3]
type = NekSideAverage
field = pressure
boundary = '3'
[]
[pressure_avg4]
type = NekSideAverage
field = pressure
boundary = '4'
[]
[pressure_avg5]
type = NekSideAverage
field = pressure
boundary = '5'
[]
[pressure_avg6]
type = NekSideAverage
field = pressure
boundary = '6'
[]
[pressure_avg7]
type = NekSideAverage
field = pressure
boundary = '7'
[]
[pressure_avg8]
type = NekSideAverage
field = pressure
boundary = '8'
[]
[velocity_avg1]
type = NekSideAverage
field = velocity
boundary = '1'
[]
[velocity_avg2]
type = NekSideAverage
field = velocity
boundary = '2'
[]
[velocity_avg3]
type = NekSideAverage
field = velocity
boundary = '3'
[]
[velocity_avg4]
type = NekSideAverage
field = velocity
boundary = '4'
[]
[velocity_avg5]
type = NekSideAverage
field = velocity
boundary = '5'
[]
[velocity_avg6]
type = NekSideAverage
field = velocity
boundary = '6'
[]
[velocity_avg7]
type = NekSideAverage
field = velocity
boundary = '7'
[]
[velocity_avg8]
type = NekSideAverage
field = velocity
boundary = '8'
[]
[x_velocity_avg1]
type = NekSideAverage
field = velocity_x
boundary = '1'
[]
[x_velocity_avg2]
type = NekSideAverage
field = velocity_x
boundary = '2'
[]
[x_velocity_avg3]
type = NekSideAverage
field = velocity_x
boundary = '3'
[]
[x_velocity_avg4]
type = NekSideAverage
field = velocity_x
boundary = '4'
[]
[x_velocity_avg5]
type = NekSideAverage
field = velocity_x
boundary = '5'
[]
[x_velocity_avg6]
type = NekSideAverage
field = velocity_x
boundary = '6'
[]
[x_velocity_avg7]
type = NekSideAverage
field = velocity_x
boundary = '7'
[]
[x_velocity_avg8]
type = NekSideAverage
field = velocity_x
boundary = '8'
[]
[y_velocity_avg1]
type = NekSideAverage
field = velocity_y
boundary = '1'
[]
[y_velocity_avg2]
type = NekSideAverage
field = velocity_y
boundary = '2'
[]
[y_velocity_avg3]
type = NekSideAverage
field = velocity_y
boundary = '3'
[]
[y_velocity_avg4]
type = NekSideAverage
field = velocity_y
boundary = '4'
[]
[y_velocity_avg5]
type = NekSideAverage
field = velocity_y
boundary = '5'
[]
[y_velocity_avg6]
type = NekSideAverage
field = velocity_y
boundary = '6'
[]
[y_velocity_avg7]
type = NekSideAverage
field = velocity_y
boundary = '7'
[]
[y_velocity_avg8]
type = NekSideAverage
field = velocity_y
boundary = '8'
[]
[z_velocity_avg1]
type = NekSideAverage
field = velocity_z
boundary = '1'
[]
[z_velocity_avg2]
type = NekSideAverage
field = velocity_z
boundary = '2'
[]
[z_velocity_avg3]
type = NekSideAverage
field = velocity_z
boundary = '3'
[]
[z_velocity_avg4]
type = NekSideAverage
field = velocity_z
boundary = '4'
[]
[z_velocity_avg5]
type = NekSideAverage
field = velocity_z
boundary = '5'
[]
[z_velocity_avg6]
type = NekSideAverage
field = velocity_z
boundary = '6'
[]
[z_velocity_avg7]
type = NekSideAverage
field = velocity_z
boundary = '7'
[]
[z_velocity_avg8]
type = NekSideAverage
field = velocity_z
boundary = '8'
[]
[velocity_comp1]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '1'
[]
[velocity_comp2]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '2'
[]
[velocity_comp3]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '3'
[]
[velocity_comp4]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '4'
[]
[velocity_comp5]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '5'
[]
[velocity_comp6]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '6'
[]
[velocity_comp7]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '7'
[]
[velocity_comp8]
type = NekSideIntegral
field = velocity_component
velocity_direction = '0.1 -0.2 0.3'
boundary = '8'
[]
[]
(include/postprocessors/NekMassFluxWeightedSideIntegral.h)
/********************************************************************/
/* SOFTWARE COPYRIGHT NOTIFICATION */
/* Cardinal */
/* */
/* (c) 2021 UChicago Argonne, LLC */
/* ALL RIGHTS RESERVED */
/* */
/* Prepared by UChicago Argonne, LLC */
/* Under Contract No. DE-AC02-06CH11357 */
/* With the U. S. Department of Energy */
/* */
/* Prepared by Battelle Energy Alliance, LLC */
/* Under Contract No. DE-AC07-05ID14517 */
/* With the U. S. Department of Energy */
/* */
/* See LICENSE for full restrictions */
/********************************************************************/
#pragma once
#include "NekSideIntegral.h"
#include "CardinalEnums.h"
/**
* Compute the integral of a specified quantity over the boundaries
* in the nekRS mesh, weighted by the mass flux,
* \f$\int_\Gamma \rho_f\vec{V}\cdot\hat{n} fd\Gamma\f$, where \f$f\f$ is the
* field to be integrated, \f$\Gamma\f$ is the boundary, and
* \f$\rho_f\vec{V}\cdot\hat{n}\f$ is the mass flux.
*
* Note that this calculation is done directly on the mesh that nekRS solves on,
* _not_ the mesh created for solution transfer in NekRSMesh.
*/
class NekMassFluxWeightedSideIntegral : public NekSideIntegral
{
public:
static InputParameters validParams();
NekMassFluxWeightedSideIntegral(const InputParameters & parameters);
virtual Real getValue() const override;
};
(include/postprocessors/NekSideAverage.h)
/********************************************************************/
/* SOFTWARE COPYRIGHT NOTIFICATION */
/* Cardinal */
/* */
/* (c) 2021 UChicago Argonne, LLC */
/* ALL RIGHTS RESERVED */
/* */
/* Prepared by UChicago Argonne, LLC */
/* Under Contract No. DE-AC02-06CH11357 */
/* With the U. S. Department of Energy */
/* */
/* Prepared by Battelle Energy Alliance, LLC */
/* Under Contract No. DE-AC07-05ID14517 */
/* With the U. S. Department of Energy */
/* */
/* See LICENSE for full restrictions */
/********************************************************************/
#pragma once
#include "NekSideIntegral.h"
/**
* Compute the average of a specified quantity over the boundaries
* in the nekRS mesh, \f$\frac{\int_\Gamma f d\Gamma}{\int_\Gamma d\Gamma}\f$,
* where \f$f\f$ is the field to be integrated, and \f$\Gamma\f$ is the boundary.
*
* Note that this calculation is done directly on the mesh that nekRS solves on,
* _not_ the mesh created for solution transfer in NekRSMesh.
*/
class NekSideAverage : public NekSideIntegral
{
public:
static InputParameters validParams();
NekSideAverage(const InputParameters & parameters);
virtual Real getValue() const override;
};