- binsUserobjects providing a spatial bin given a point
C++ Type:std::vector<UserObjectName>
Controllable:No
Description:Userobjects providing a spatial bin given a point
- boundaryBoundary ID(s) over which to compute the bin values
C++ Type:std::vector<int>
Controllable:No
Description:Boundary ID(s) over which to compute the bin values
- fieldField to apply this object to
C++ Type:MooseEnum
Controllable:No
Description:Field to apply this object to
NekBinnedSideIntegral
Compute the spatially-binned side integral of a field over a boundary of the NekRS mesh
Description
This user objects performs a side integral of a specified field over a sideset in the NekRS mesh that overlap with volume "bins." For a bin on (a patch of a sideset), the user object value in that bin is
where is the value of the user object in bin and is the specified field. In other words, this object integrates on a sideset in the NekRS domain, by splitting up the integral according to a specified volume binning strategy. To be clear, this user object 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
: pressuretemperature
: temperature, a.k.a. zeroth passive scalarvelocity
: magnitude of velocityvelocity_x
: -component of velocityvelocity_y
: -component of velocityvelocity_z
: -component of velocityvelocity_x_squared
: -component of velocity, squaredvelocity_y_squared
: -component of velocity, squaredvelocity_z_squared
: -component of velocity, squaredvelocity_component
: velocity vector dotted against another vectorscalar01
: first passive scalarscalar02
: second passive scalarscalar03
: third passive scalarunity
: the value 1.0
Setting field = unity
is equivalent to computing the area.
When using field = velocity_component
, the manner in which the velocity direction is selected is given by the velocity_component
parameter, which may be one of:
normal
: normal to the face bins (only valid for the side binning user objects)user
: arbitrary user-specified direction, provided with thevelocity_direction
parameter
When using a velocity component as the field, this user object computes the dot product of the velocity with the specified direction. To retain the components of the dot product, such as for visualizing vector glyphs of the user object result in Paraview, you can use a NekSpatialBinComponentAux.
If running NekRS in non-dimensional form (and you have indicated the appropriate nondimensional scales with the Dimensionalize sub-block for the [Problem]
) then the value of this object is shown in dimensional units.
The bins are specified by providing a list of binning user objects with the bin
parameter. Available user objects for specifying spatial bins are:
If more than one bin is provided, then the bins are taken as the product of each individual bin distribution.
You can visualize this user object (i.e., the bin integrals) using a SpatialUserObjectAux.
Example Input Syntax
As an example, the input below defines three individual bin distributions (named x
, y
, and z
to represent 1-D binning in each coordinate direction). These bins are then combined to integrate over sideset 2 in equal-size spatial bins.
[UserObjects<<<{"href": "../../syntax/UserObjects/index.html"}>>>]
[x]
type = LayeredBin<<<{"description": "Creates a unique spatial bin for layers in a specified direction", "href": "LayeredBin.html"}>>>
direction<<<{"description": "The direction of the layers (x, y, or z)"}>>> = x
num_layers<<<{"description": "The number of layers between the bounding box of the domain"}>>> = 2
[]
[y]
type = LayeredBin<<<{"description": "Creates a unique spatial bin for layers in a specified direction", "href": "LayeredBin.html"}>>>
direction<<<{"description": "The direction of the layers (x, y, or z)"}>>> = y
num_layers<<<{"description": "The number of layers between the bounding box of the domain"}>>> = 2
[]
[z]
type = LayeredBin<<<{"description": "Creates a unique spatial bin for layers in a specified direction", "href": "LayeredBin.html"}>>>
direction<<<{"description": "The direction of the layers (x, y, or z)"}>>> = z
num_layers<<<{"description": "The number of layers between the bounding box of the domain"}>>> = 3
[]
[avg_T]
type = NekBinnedSideAverage<<<{"description": "Compute the spatially-binned average of a field over a sideset of the NekRS mesh", "href": "NekBinnedSideAverage.html"}>>>
bins<<<{"description": "Userobjects providing a spatial bin given a point"}>>> = 'x y z'
field<<<{"description": "Field to apply this object to"}>>> = temperature
boundary<<<{"description": "Boundary ID(s) over which to compute the bin values"}>>> = '2'
[]
[avg_p]
type = NekBinnedSideAverage<<<{"description": "Compute the spatially-binned average of a field over a sideset of the NekRS mesh", "href": "NekBinnedSideAverage.html"}>>>
bins<<<{"description": "Userobjects providing a spatial bin given a point"}>>> = 'x y z'
field<<<{"description": "Field to apply this object to"}>>> = pressure
boundary<<<{"description": "Boundary ID(s) over which to compute the bin values"}>>> = '2'
[]
[avg_v]
type = NekBinnedSideAverage<<<{"description": "Compute the spatially-binned average of a field over a sideset of the NekRS mesh", "href": "NekBinnedSideAverage.html"}>>>
bins<<<{"description": "Userobjects providing a spatial bin given a point"}>>> = 'x y z'
field<<<{"description": "Field to apply this object to"}>>> = velocity
boundary<<<{"description": "Boundary ID(s) over which to compute the bin values"}>>> = '2'
[]
[integral_T]
type = NekBinnedSideIntegral<<<{"description": "Compute the spatially-binned side integral of a field over a boundary of the NekRS mesh", "href": "NekBinnedSideIntegral.html"}>>>
bins<<<{"description": "Userobjects providing a spatial bin given a point"}>>> = 'x y z'
field<<<{"description": "Field to apply this object to"}>>> = temperature
boundary<<<{"description": "Boundary ID(s) over which to compute the bin values"}>>> = '2'
[]
[integral_p]
type = NekBinnedSideIntegral<<<{"description": "Compute the spatially-binned side integral of a field over a boundary of the NekRS mesh", "href": "NekBinnedSideIntegral.html"}>>>
bins<<<{"description": "Userobjects providing a spatial bin given a point"}>>> = 'x y z'
field<<<{"description": "Field to apply this object to"}>>> = pressure
boundary<<<{"description": "Boundary ID(s) over which to compute the bin values"}>>> = '2'
[]
[integral_v]
type = NekBinnedSideIntegral<<<{"description": "Compute the spatially-binned side integral of a field over a boundary of the NekRS mesh", "href": "NekBinnedSideIntegral.html"}>>>
bins<<<{"description": "Userobjects providing a spatial bin given a point"}>>> = 'x y z'
field<<<{"description": "Field to apply this object to"}>>> = velocity
boundary<<<{"description": "Boundary ID(s) over which to compute the bin values"}>>> = '2'
[]
[]
(test/tests/userobjects/side/nondimensional/nek.i)The result of the user object can then be visualized with a SpatialUserObjectAux.
Input Parameters
- check_zero_contributionsTrueWhether to throw an error if no GLL points/element centroids in the NekRS mesh map to a spatial bin; this can be used to ensure that the bins are sufficiently big to get at least one contributing point from the NekRS mesh.
Default:True
C++ Type:bool
Controllable:No
Description:Whether to throw an error if no GLL points/element centroids in the NekRS mesh map to a spatial bin; this can be used to ensure that the bins are sufficiently big to get at least one contributing point from the NekRS mesh.
- interval1Frequency (in number of time steps) with which to execute this user object; user objects can be expensive and not necessary to evaluate on every single time step. NOTE: you probably want to match with 'time_step_interval' in the Output
Default:1
C++ Type:unsigned int
Controllable:No
Description:Frequency (in number of time steps) with which to execute this user object; user objects can be expensive and not necessary to evaluate on every single time step. NOTE: you probably want to match with 'time_step_interval' in the Output
- map_space_by_qpFalseWhether to map the NekRS spatial domain to a bin according to the element centroids (true) or quadrature point locations (false).
Default:False
C++ Type:bool
Controllable:No
Description:Whether to map the NekRS spatial domain to a bin according to the element centroids (true) or quadrature point locations (false).
- velocity_componentuserDirection in which to evaluate velocity when 'field = velocity_component.' Options: user (you then need to specify a direction with 'velocity_direction'); normal
Default:user
C++ Type:MooseEnum
Controllable:No
Description:Direction in which to evaluate velocity when 'field = velocity_component.' Options: user (you then need to specify a direction with 'velocity_direction'); normal
- velocity_directionUnit vector to dot with velocity, for 'field = velocity_component'. For example, velocity_direction = '1 1 0' will get the velocity dotted with (1/sqrt(2), 1/sqrt(2), 0).
C++ Type:libMesh::Point
Controllable:No
Description:Unit vector to dot with velocity, for 'field = velocity_component'. For example, velocity_direction = '1 1 0' will get the velocity dotted with (1/sqrt(2), 1/sqrt(2), 0).
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).
- execute_onTIMESTEP_ENDThe list of flag(s) indicating when this object should be executed. For a description of each flag, see https://mooseframework.inl.gov/source/interfaces/SetupInterface.html.
Default:TIMESTEP_END
C++ Type:ExecFlagEnum
Controllable:No
Description:The list of flag(s) indicating when this object should be executed. For a description of each flag, see https://mooseframework.inl.gov/source/interfaces/SetupInterface.html.
- 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
Execution Scheduling Parameters
- control_tagsAdds user-defined labels for accessing object parameters via control logic.
C++ Type:std::vector<std::string>
Controllable:No
Description:Adds user-defined labels for accessing object parameters via control logic.
- enableTrueSet the enabled status of the MooseObject.
Default:True
C++ Type:bool
Controllable:Yes
Description:Set the enabled status of the MooseObject.
- 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
- 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
Unit:(no unit assumed)
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.