RadialAverage

Perform a radial average of a material property

Given a material property and a radius for averaging, the RadialAverage object computes the spatial average value of the property over the radius.

Applications

This can be used for nonlocal damage models in the TensorMechanics module where the damage_index that is used for computing the damage stress is average over a certain radius . This can help alleviate mesh sensitivity in certain cases. This can be accomplished by running the RadialAverage object on a local damage material property. Then using the NonlocalDamage model in conjunction with the ComputeDamageStress the damage index used for updating the stress is averaged over a certain radius.

Design

The RadialAverage user object is derived from ElementUserObject and works in two stages.

  1. In the element loop (in the execute() method) a list of all quadrature points, their locations, indices, and selected material property value is compiled.

  2. In the finalize() method

    1. the list is communicated in parallel

    2. a KD-tree is filled with all quadrature point entries (utilizing the nanoflann library bundled with libMesh)

    3. a loop over all QPs is performed and at each QP a (radius) radius search in the KD-tree is performed

    4. the results from the search are used to spatially averaged

The "weights" parameter determines the distance based weight function to be used in the averaging process. constant assigns an equal weight to all material points, linear weights each point by (a linear fall-off with distance), and cosine weights each point by .

commentnote

The weights mentioned above currently do not take into account the quadrature point weight.

Input Parameters

  • prop_nameName of the material property to average

    C++ Type:MaterialPropertyName

    Controllable:No

    Description:Name of the material property to average

  • radiusCut-off radius for the averaging

    C++ Type:double

    Controllable:No

    Description:Cut-off radius for the averaging

  • weightslinearDistance based weight function

    Default:linear

    C++ Type:MooseEnum

    Options:constant, linear, cosine

    Controllable:No

    Description:Distance based weight function

Required Parameters

  • blockThe list of blocks (ids or names) that this object will be applied

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

    Controllable:No

    Description:The list of blocks (ids or names) that this object will be applied

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

    Default:TIMESTEP_BEGIN

    C++ Type:ExecFlagEnum

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

    Controllable:No

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

  • 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.

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

  • implicitTrueDetermines whether this object is calculated using an implicit or explicit form

    Default:True

    C++ Type:bool

    Controllable:No

    Description:Determines whether this object is calculated using an implicit or explicit form

  • padding0Padding for communication. This gets added to the radius when determining which QPs to send to other processors. Increase this gradually if inconsistent parallel results occur.

    Default:0

    C++ Type:double

    Controllable:No

    Description:Padding for communication. This gets added to the radius when determining which QPs to send to other processors. Increase this gradually if inconsistent parallel results occur.

  • seed0The seed for the master random number generator

    Default:0

    C++ Type:unsigned int

    Controllable:No

    Description:The seed for the master random number generator

  • 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

References

No citations exist within this document.