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 40 of file ElementPairLocator.h.

Member Typedef Documentation

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

Definition at line 50 of file ElementPairLocator.h.

Constructor & Destructor Documentation

ElementPairLocator::ElementPairLocator ( unsigned int  interface_id)
inline

Definition at line 43 of file ElementPairLocator.h.

43  : _elem_pairs(NULL)
44  {
45  _interface_id = interface_id;
46  }
const ElementPairList * _elem_pairs
unsigned int _interface_id
virtual ElementPairLocator::~ElementPairLocator ( )
inlinevirtual

Definition at line 48 of file ElementPairLocator.h.

48 {}

Member Function Documentation

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

Definition at line 64 of file ElementPairLocator.h.

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

65  {
66  std::map<std::pair<const Elem *, const Elem *>, ElementPairInfo>::const_iterator it =
67  _element_pair_info.find(elem_pair);
68  if (it == _element_pair_info.end())
69  mooseError("Could not find ElemenPairInfo for specified element pair");
70  return it->second;
71  }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
This is the ElementPairInfo class.
std::map< std::pair< const Elem *, const Elem * >, ElementPairInfo > _element_pair_info
const ElementPairList& ElementPairLocator::getElemPairs ( ) const
inline

Definition at line 56 of file ElementPairLocator.h.

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

57  {
58  if (_elem_pairs == NULL)
59  mooseError("_elem_pairs has not yet been initialized and it needs to be initialized by a "
60  "derived class");
61  return *_elem_pairs;
62  }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
const ElementPairList * _elem_pairs
virtual void ElementPairLocator::reinit ( )
inlinevirtual

Definition at line 52 of file ElementPairLocator.h.

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

52 {};
virtual void ElementPairLocator::update ( )
inlinevirtual

Definition at line 54 of file ElementPairLocator.h.

Referenced by GeometricSearchData::update().

54 {};

Member Data Documentation

const ElementPairList* ElementPairLocator::_elem_pairs
protected

Definition at line 74 of file ElementPairLocator.h.

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

Definition at line 75 of file ElementPairLocator.h.

unsigned int ElementPairLocator::_interface_id
protected

Definition at line 76 of file ElementPairLocator.h.


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