www.mooseframework.org
Public Types | Public Member Functions | Protected Attributes | List of all members
ElementPairLocator Class Reference

This is the ElementPairLocator class. More...

#include <ElementPairLocator.h>

Public Types

typedef std::list< std::pair< const Elem *, const Elem * > > ElementPairList
 

Public Member Functions

 ElementPairLocator (unsigned int interface_id)
 
virtual ~ElementPairLocator ()
 
virtual void reinit ()
 
virtual void update ()
 
const ElementPairListgetElemPairs () const
 
const ElementPairInfogetElemPairInfo (std::pair< const Elem *, const Elem *> elem_pair) const
 

Protected Attributes

const ElementPairList_elem_pairs
 
std::map< std::pair< const Elem *, const Elem * >, ElementPairInfo_element_pair_info
 
unsigned int _interface_id
 

Detailed Description

This is the ElementPairLocator class.

This is a base class that finds the element pairs for ElementElementConstraint

Definition at line 35 of file ElementPairLocator.h.

Member Typedef Documentation

◆ ElementPairList

typedef std::list<std::pair<const Elem *, const Elem *> > ElementPairLocator::ElementPairList

Definition at line 45 of file ElementPairLocator.h.

Constructor & Destructor Documentation

◆ ElementPairLocator()

ElementPairLocator::ElementPairLocator ( unsigned int  interface_id)
inline

Definition at line 38 of file ElementPairLocator.h.

38  : _elem_pairs(NULL)
39  {
40  _interface_id = interface_id;
41  }
const ElementPairList * _elem_pairs
unsigned int _interface_id

◆ ~ElementPairLocator()

virtual ElementPairLocator::~ElementPairLocator ( )
inlinevirtual

Definition at line 43 of file ElementPairLocator.h.

43 {}

Member Function Documentation

◆ getElemPairInfo()

const ElementPairInfo& ElementPairLocator::getElemPairInfo ( std::pair< const Elem *, const Elem *>  elem_pair) const
inline

Definition at line 59 of file ElementPairLocator.h.

Referenced by NonlinearSystemBase::constraintJacobians(), and NonlinearSystemBase::constraintResiduals().

60  {
61  std::map<std::pair<const Elem *, const Elem *>, ElementPairInfo>::const_iterator it =
62  _element_pair_info.find(elem_pair);
63  if (it == _element_pair_info.end())
64  mooseError("Could not find ElemenPairInfo for specified element pair");
65  return it->second;
66  }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
This is the ElementPairInfo class.
std::map< std::pair< const Elem *, const Elem * >, ElementPairInfo > _element_pair_info

◆ getElemPairs()

const ElementPairList& ElementPairLocator::getElemPairs ( ) const
inline

Definition at line 51 of file ElementPairLocator.h.

Referenced by NonlinearSystemBase::constraintJacobians(), and NonlinearSystemBase::constraintResiduals().

52  {
53  if (_elem_pairs == NULL)
54  mooseError("_elem_pairs has not yet been initialized and it needs to be initialized by a "
55  "derived class");
56  return *_elem_pairs;
57  }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
const ElementPairList * _elem_pairs

◆ reinit()

virtual void ElementPairLocator::reinit ( )
inlinevirtual

Definition at line 47 of file ElementPairLocator.h.

Referenced by GeometricSearchData::reinit(), and GeometricSearchData::update().

47 {};

◆ update()

virtual void ElementPairLocator::update ( )
inlinevirtual

Definition at line 49 of file ElementPairLocator.h.

Referenced by GeometricSearchData::update().

49 {};

Member Data Documentation

◆ _elem_pairs

const ElementPairList* ElementPairLocator::_elem_pairs
protected

Definition at line 69 of file ElementPairLocator.h.

Referenced by getElemPairs().

◆ _element_pair_info

std::map<std::pair<const Elem *, const Elem *>, ElementPairInfo> ElementPairLocator::_element_pair_info
protected

Definition at line 70 of file ElementPairLocator.h.

Referenced by getElemPairInfo().

◆ _interface_id

unsigned int ElementPairLocator::_interface_id
protected

Definition at line 71 of file ElementPairLocator.h.

Referenced by ElementPairLocator().


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