https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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 34 of file ElementPairLocator.h.

Member Typedef Documentation

◆ ElementPairList

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

Definition at line 44 of file ElementPairLocator.h.

Constructor & Destructor Documentation

◆ ElementPairLocator()

ElementPairLocator::ElementPairLocator ( unsigned int  interface_id)
inline

Definition at line 37 of file ElementPairLocator.h.

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

◆ ~ElementPairLocator()

virtual ElementPairLocator::~ElementPairLocator ( )
inlinevirtual

Definition at line 42 of file ElementPairLocator.h.

42{}

Member Function Documentation

◆ getElemPairInfo()

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

Definition at line 58 of file ElementPairLocator.h.

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

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

◆ getElemPairs()

const ElementPairList & ElementPairLocator::getElemPairs ( ) const
inline

Definition at line 50 of file ElementPairLocator.h.

51 {
52 if (_elem_pairs == NULL)
53 mooseError("_elem_pairs has not yet been initialized and it needs to be initialized by a "
54 "derived class");
55 return *_elem_pairs;
56 }

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

◆ reinit()

virtual void ElementPairLocator::reinit ( )
inlinevirtual

Definition at line 46 of file ElementPairLocator.h.

46{}

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

◆ update()

virtual void ElementPairLocator::update ( )
inlinevirtual

Definition at line 48 of file ElementPairLocator.h.

48{}

Referenced by GeometricSearchData::update().

Member Data Documentation

◆ _elem_pairs

const ElementPairList* ElementPairLocator::_elem_pairs
protected

Definition at line 68 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 69 of file ElementPairLocator.h.

Referenced by getElemPairInfo().

◆ _interface_id

unsigned int ElementPairLocator::_interface_id
protected

Definition at line 70 of file ElementPairLocator.h.

Referenced by ElementPairLocator().


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