- axis_directionDirection of the structural component's axis
C++ Type:libMesh::Point
Controllable:No
Description:Direction of the structural component's axis
- lengthsDistance(s) along axis of from reference_point at which to compute average values.
C++ Type:std::vector<double>
Controllable:No
Description:Distance(s) along axis of from reference_point at which to compute average values.
- reference_pointStructural component reference starting point from which the input parameter 'lengths' applies.
C++ Type:libMesh::Point
Controllable:No
Description:Structural component reference starting point from which the input parameter 'lengths' applies.
- variablesVariables for the cross section output. These variables must be nodal.
C++ Type:std::vector<VariableName>
Controllable:No
Description:Variables for the cross section output. These variables must be nodal.
AverageSectionValueSampler
Compute the section's variable average in three-dimensions given a user-defined definition of the cross section.
Description
This computes the average value of specified nodal variables at nodes located within cross-sectional planes at user-specified locations along the axis of a mesh. For example, this is designed to work on bodies whose mesh discretization is created by extrusion, so that sets of nodes that make up the mesh lie within planes regularly.
The location of the nodes is given by a direction and an associated set of lengths. This postprocessor is particularly indicated for structural components that deform in a way analogous to beams, thereby freeing the user from performing additional postprocessing tasks on a different software. One use case of this postprocessor is the definition of cross sections in ducts that bend or bow (see Figure 1).

Figure 1: Undeformed and deformed configurations of a duct with a cross section defined by nodes in a regularly meshed geometry.
This postprocessor should only be used for regularly meshed geometries as it relies on nodes having the same weights on the cross section. There is no check within the code for this condition, so the user must ensure that the mesh is reasonably uniform.
Example Syntax
See below an input file excerpt which locates the cross section along the direction at distances of 10 and 18.
[VectorPostprocessors]
[section_output]
type = AverageSectionValueSampler
axis_direction = '0 0 1'
lengths = '10.0 18.0'
block = '1'
variables = 'disp_x disp_y disp_z'
reference_point = '0 0 0'
[]
[]
(modules/solid_mechanics/test/tests/cross_section_deflection/test_one_step.i)Additionally, if multiple structural components share the same mesh block, one can set the input parameters reference_point
and cross_section_maximum_radius
to point to the structural component's local frame and the maximum in-cross-section-plane distance within. These parameters disambiguate which structural component the nodes belong. An example of computing average section variables for multiple strucutral components sharing the same mesh block is given below:
[VectorPostprocessors]
[section_output]
type = AverageSectionValueSampler
axis_direction = '0 0 1'
lengths = '10.0 18.0'
block = '1'
variables = 'disp_x disp_y disp_z'
reference_point = '0 0 0'
cross_section_maximum_radius = 1.5
[]
[section_output_two]
type = AverageSectionValueSampler
axis_direction = '0 0 1'
lengths = '10.0 18.0'
block = '1'
variables = 'disp_x disp_y disp_z'
reference_point = '2.1 2.1 0'
cross_section_maximum_radius = 1.5
[]
[]
(modules/solid_mechanics/test/tests/cross_section_deflection/test_one_step_two_ducts.i)Input Parameters
- blockThe list of blocks in which to search for cross sectional nodes to compute the variable average.
C++ Type:std::vector<SubdomainName>
Controllable:No
Description:The list of blocks in which to search for cross sectional nodes to compute the variable average.
- contains_complete_historyFalseSet this flag to indicate that the values in all vectors declared by this VPP represent a time history (e.g. with each invocation, new values are added and old values are never removed). This changes the output so that only a single file is output and updated with each invocation
Default:False
C++ Type:bool
Controllable:No
Description:Set this flag to indicate that the values in all vectors declared by this VPP represent a time history (e.g. with each invocation, new values are added and old values are never removed). This changes the output so that only a single file is output and updated with each invocation
- cross_section_maximum_radius1.79769e+308Radial distance with respect to the body axis within which nodes are considered to belong to this structural component. Used to disambiguate multiple components that share the same mesh block.
Default:1.79769e+308
C++ Type:double
Controllable:No
Description:Radial distance with respect to the body axis within which nodes are considered to belong to this structural component. Used to disambiguate multiple components that share the same mesh block.
- execute_onTIMESTEP_ENDThe list of flag(s) indicating when this object should be executed, the available options include FORWARD, ADJOINT, HOMOGENEOUS_FORWARD, ADJOINT_TIMESTEP_BEGIN, ADJOINT_TIMESTEP_END, NONE, INITIAL, LINEAR, NONLINEAR, TIMESTEP_END, TIMESTEP_BEGIN, MULTIAPP_FIXED_POINT_END, MULTIAPP_FIXED_POINT_BEGIN, FINAL, CUSTOM.
Default:TIMESTEP_END
C++ Type:ExecFlagEnum
Controllable:No
Description:The list of flag(s) indicating when this object should be executed, the available options include FORWARD, ADJOINT, HOMOGENEOUS_FORWARD, ADJOINT_TIMESTEP_BEGIN, ADJOINT_TIMESTEP_END, NONE, INITIAL, LINEAR, NONLINEAR, TIMESTEP_END, TIMESTEP_BEGIN, MULTIAPP_FIXED_POINT_END, MULTIAPP_FIXED_POINT_BEGIN, FINAL, CUSTOM.
- parallel_typeREPLICATEDSet how the data is represented within the VectorPostprocessor (VPP); 'distributed' indicates that data within the VPP is distributed and no auto communication is performed, this setting will result in parallel output within the CSV output; 'replicated' indicates that the data within the VPP is correct on processor 0, the data will automatically be broadcast to all processors unless the '_auto_broadcast' param is set to false within the validParams function.
Default:REPLICATED
C++ Type:MooseEnum
Controllable:No
Description:Set how the data is represented within the VectorPostprocessor (VPP); 'distributed' indicates that data within the VPP is distributed and no auto communication is performed, this setting will result in parallel output within the CSV output; 'replicated' indicates that the data within the VPP is correct on processor 0, the data will automatically be broadcast to all processors unless the '_auto_broadcast' param is set to false within the validParams function.
- 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.
- tolerance1e-06Maximum axial distance of nodes from the specified axial lengths to consider them in the cross-section average
Default:1e-06
C++ Type:double
Controllable:No
Description:Maximum axial distance of nodes from the specified axial lengths to consider them in the cross-section average
- 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.
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.