Cardinal
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ThresholdHeuristicUserObject Class Reference

#include <ThresholdHeuristicUserObject.h>

Inheritance diagram for ThresholdHeuristicUserObject:
[legend]

Public Member Functions

 ThresholdHeuristicUserObject (const InputParameters &parameters)
 
virtual bool evaluate (libMesh::Elem *base_element, libMesh::Elem *neighbor_elem) const override
 
virtual void execute () override
 
virtual void initialize () override
 
virtual void finalize () override
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

Real getMetricData (const libMesh::Elem *elem) const
 

Protected Attributes

libMesh::MeshBase & _mesh
 Mesh reference. More...
 
const AuxVariableName _metric_variable_name
 Name of the metric variable based on which clustering is done. More...
 
const MooseVariableBase & _metric_variable
 Metric variable. More...
 
AuxiliarySystem & _auxiliary_system
 AuxiliarySystem reference. More...
 
const libMesh::DofMap & _dof_map
 DOF map. More...
 
const unsigned int _metric_variable_index
 Metric variable index. More...
 
NumericVector< Real > & _serialized_metric_solution
 libmesh numeric vector with serialized solutions More...
 

Detailed Description

A clustering heuristic user object which clusters two neighboring elements whose metric variable values are more/less than a threshold.

Constructor & Destructor Documentation

◆ ThresholdHeuristicUserObject()

ThresholdHeuristicUserObject::ThresholdHeuristicUserObject ( const InputParameters &  parameters)

Member Function Documentation

◆ evaluate()

bool ThresholdHeuristicUserObject::evaluate ( libMesh::Elem *  base_element,
libMesh::Elem *  neighbor_elem 
) const
overridevirtual

A purely virtual function which must be overridden in derived classes. It applies the clustering logic for two elements in the derived class

Parameters
[in]base_elementthe current element
[in]neighbor_elemthe current neighbour of base_element
Returns
whether the two elements should be added to a cluster or not

Implements ClusteringUserObjectBase.

◆ execute()

virtual void ClusteringUserObjectBase::execute ( )
inlineoverridevirtualinherited

◆ finalize()

virtual void ClusteringUserObjectBase::finalize ( )
inlineoverridevirtualinherited

◆ getMetricData()

Real ClusteringUserObjectBase::getMetricData ( const libMesh::Elem *  elem) const
protectedinherited

Get the metric data from the auxiliary system for an element.

Parameters
[in]elem
Returns
value of the _metric_variable

◆ initialize()

void ClusteringUserObjectBase::initialize ( )
overridevirtualinherited

◆ validParams()

InputParameters ThresholdHeuristicUserObject::validParams ( )
static

Member Data Documentation

◆ _auxiliary_system

AuxiliarySystem& ClusteringUserObjectBase::_auxiliary_system
protectedinherited

AuxiliarySystem reference.

◆ _dof_map

const libMesh::DofMap& ClusteringUserObjectBase::_dof_map
protectedinherited

DOF map.

◆ _mesh

libMesh::MeshBase& ClusteringUserObjectBase::_mesh
protectedinherited

Mesh reference.

◆ _metric_variable

const MooseVariableBase& ClusteringUserObjectBase::_metric_variable
protectedinherited

Metric variable.

◆ _metric_variable_index

const unsigned int ClusteringUserObjectBase::_metric_variable_index
protectedinherited

Metric variable index.

◆ _metric_variable_name

const AuxVariableName ClusteringUserObjectBase::_metric_variable_name
protectedinherited

Name of the metric variable based on which clustering is done.

◆ _serialized_metric_solution

NumericVector<Real>& ClusteringUserObjectBase::_serialized_metric_solution
protectedinherited

libmesh numeric vector with serialized solutions


The documentation for this class was generated from the following files: