- expressionboolean logic operation expression
C++ Type:std::vector<std::string>
Controllable:No
Description:boolean logic operation expression
- id_nameextra_element_integer_id name
C++ Type:ExtraElementIDName
Controllable:No
Description:extra_element_integer_id name
BooleanComboClusteringUserObject
Description
BooleanComboClusteringUserObject implements the overall mesh walking and clustering process. It takes an expression as a logical function of different heuristic based user objects. It evalutes the expression between two adjacent elements which share at least one common side.
If the expression is true for those two elements then the extra_integer for those two elements are changed. If an element belongs to a cluster, the extra_integer is set to be the same as the element id of the first element in that cluster.
Example Input File
The following input block gives an example how BooleanComboClusteringUserObject can implement two different ThresholdHeuristicUserObject heuristics with boolean logic.
[Mesh<<<{"href": "../../syntax/Mesh/index.html"}>>>]
[generated_mesh]
type = GeneratedMeshGenerator<<<{"description": "Create a line, square, or cube mesh with uniformly spaced or biased elements.", "href": "../meshgenerators/GeneratedMeshGenerator.html"}>>>
dim<<<{"description": "The dimension of the mesh to be generated"}>>> = 2
nx<<<{"description": "Number of elements in the X direction"}>>> = 10
ny<<<{"description": "Number of elements in the Y direction"}>>> = 10
xmin<<<{"description": "Lower X Coordinate of the generated mesh"}>>> = 0
xmax<<<{"description": "Upper X Coordinate of the generated mesh"}>>> = 10
ymin<<<{"description": "Lower Y Coordinate of the generated mesh"}>>> = 0
ymax<<<{"description": "Upper Y Coordinate of the generated mesh"}>>> = 10
[]
[add_eeid]
type = ParsedElementIDMeshGenerator<<<{"description": "Adds extra element integers to the whole mesh.", "href": "../meshgenerators/ParsedElementIDMeshGenerator.html"}>>>
input<<<{"description": "The mesh we want to modify"}>>> = generated_mesh
extra_element_integer_names<<<{"description": "list of extra integer names toto be added in the mesh."}>>> = 'threshold_heuristic' #names of the eeid
values<<<{"description": "Optional list of integer values corresponding to each name in 'extra_element_integer_names'. If not provided, all values will default to -1. If provided, the list must contain the same number of entries as 'extra_element_integer_names', with each value assigned to the respective extra element integer."}>>> = '-1'
[]
[]
[AuxVariables<<<{"href": "../../syntax/AuxVariables/index.html"}>>>]
[metric_var]
order<<<{"description": "Specifies the order of the FE shape function to use for this variable (additional orders not listed are allowed)"}>>> = CONSTANT
family<<<{"description": "Specifies the family of FE shape functions to use for this variable"}>>> = MONOMIAL
[]
[cluster_id_aux]
order<<<{"description": "Specifies the order of the FE shape function to use for this variable (additional orders not listed are allowed)"}>>> = CONSTANT
family<<<{"description": "Specifies the family of FE shape functions to use for this variable"}>>> = MONOMIAL
[]
[]
[AuxKernels<<<{"href": "../../syntax/AuxKernels/index.html"}>>>]
[create_metric]
type = FunctionAux<<<{"description": "Auxiliary Kernel that creates and updates a field variable by sampling a function through space and time.", "href": "../auxkernels/FunctionAux.html"}>>>
variable<<<{"description": "The name of the variable that this object applies to"}>>> = metric_var
function<<<{"description": "The function to use as the value"}>>> = 'sqrt(x*x + y*y)'
execute_on<<<{"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."}>>> = 'TIMESTEP_BEGIN'
[]
[store_element_id]
type=ExtraElementIDAux<<<{"description": "Puts element extra IDs into an aux variable.", "href": "../auxkernels/ExtraElementIDAux.html"}>>>
extra_id_name<<<{"description": "The extra ID name in the mesh"}>>> ="threshold_heuristic"
execute_on<<<{"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."}>>> = 'TIMESTEP_BEGIN'
variable<<<{"description": "The name of the variable that this object applies to"}>>>=cluster_id_aux
[]
[]
[UserObjects<<<{"href": "../../syntax/UserObjects/index.html"}>>>]
[threshold_1]
type = ThresholdHeuristicUserObject<<<{"description": "Clusters elements whose values are less/more than a specified threshold.", "href": "ThresholdHeuristicUserObject.html"}>>>
metric_variable_name<<<{"description": "The name of the variable based on which clustering will be done"}>>> = 'metric_var'
threshold<<<{"description": " The value against which the clustering process is compared."}>>> = 1.1
[]
[threshold_2]
type = ThresholdHeuristicUserObject<<<{"description": "Clusters elements whose values are less/more than a specified threshold.", "href": "ThresholdHeuristicUserObject.html"}>>>
metric_variable_name<<<{"description": "The name of the variable based on which clustering will be done"}>>> = 'metric_var'
threshold<<<{"description": " The value against which the clustering process is compared."}>>> = 1.4
cluster_if_above_threshold<<<{"description": " Cluster elements if the value is more than the threshold"}>>> = false
[]
[boolean_combo]
type = BooleanComboClusteringUserObject<<<{"description": "Takes various heuristic user objects and applies a user defined boolean logic operation on them.", "href": "BooleanComboClusteringUserObject.html"}>>>
expression<<<{"description": "boolean logic operation expression"}>>> = "( threshold_1 and threshold_2 )"
id_name<<<{"description": "extra_element_integer_id name"}>>> = "threshold_heuristic"
[]
[]
[Problem<<<{"href": "../../syntax/Problem/index.html"}>>>]
type = FEProblem
solve = false
[]
[Executioner<<<{"href": "../../syntax/Executioner/index.html"}>>>]
type = Transient
solve = false
dt = 0.1
num_steps = 2
[]
[Outputs<<<{"href": "../../syntax/Outputs/index.html"}>>>]
exodus<<<{"description": "Output the results using the default settings for Exodus output."}>>> = true
[](test/tests/userobjects/clustering/threshold_heuristic/example_input.i)Input 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.