v0.14.0
Public Member Functions | Protected Attributes | List of all members
SimpleContactProblem::ConvectMasterContactElement Struct Reference

Element used to integrate on slave surfaces. It convects integration points on slaves, so that quantities like gap from master are evaluated at correct points. More...

#include <users_modules/mortar_contact/src/SimpleContact.hpp>

Inheritance diagram for SimpleContactProblem::ConvectMasterContactElement:
[legend]
Collaboration diagram for SimpleContactProblem::ConvectMasterContactElement:
[legend]

Public Member Functions

 ConvectMasterContactElement (MoFEM::Interface &m_field, string spat_pos, string mat_pos, bool newton_cotes=false)
 
boost::shared_ptr< ConvectSlaveIntegrationPtsgetConvectPtr ()
 
int getRule (int order)
 
MoFEMErrorCode setGaussPts (int order)
 
- Public Member Functions inherited from SimpleContactProblem::SimpleContactElement
 SimpleContactElement (MoFEM::Interface &m_field, bool newton_cotes=false)
 
MoFEMErrorCode preProcess ()
 
MoFEMErrorCode postProcess ()
 
int getRule (int order)
 

Protected Attributes

boost::shared_ptr< ConvectSlaveIntegrationPtsconvectPtr
 

Additional Inherited Members

- Public Attributes inherited from SimpleContactProblem::SimpleContactElement
MoFEM::InterfacemField
 
bool newtonCotes
 
SmartPetscObj< Vec > contactStateVec
 
friend ConvectSlaveIntegrationPts
 

Detailed Description

Element used to integrate on slave surfaces. It convects integration points on slaves, so that quantities like gap from master are evaluated at correct points.

Examples
mortar_contact_thermal.cpp, simple_contact.cpp, simple_contact_thermal.cpp, and test_jacobian_of_simple_contact_element.cpp.

Definition at line 181 of file SimpleContact.hpp.

Constructor & Destructor Documentation

◆ ConvectMasterContactElement()

SimpleContactProblem::ConvectMasterContactElement::ConvectMasterContactElement ( MoFEM::Interface m_field,
string  spat_pos,
string  mat_pos,
bool  newton_cotes = false 
)
inline

Definition at line 183 of file SimpleContact.hpp.

185  : SimpleContactElement(m_field, newton_cotes),
186  convectPtr(new ConvectSlaveIntegrationPts(this, spat_pos, mat_pos)) {}

Member Function Documentation

◆ getConvectPtr()

boost::shared_ptr<ConvectSlaveIntegrationPts> SimpleContactProblem::ConvectMasterContactElement::getConvectPtr ( )
inline

Definition at line 188 of file SimpleContact.hpp.

188  {
189  return convectPtr;
190  }

◆ getRule()

int SimpleContactProblem::ConvectMasterContactElement::getRule ( int  order)
inline

Definition at line 192 of file SimpleContact.hpp.

192 { return -1; }

◆ setGaussPts()

MoFEMErrorCode SimpleContactProblem::ConvectMasterContactElement::setGaussPts ( int  order)
virtual

Reimplemented from SimpleContactProblem::SimpleContactElement.

Reimplemented in SimpleContactProblem::ConvectSlaveContactElement.

Definition at line 370 of file SimpleContact.cpp.

370  {
373  CHKERR convectPtr->convectSlaveIntegrationPts<true>();
375 }

Member Data Documentation

◆ convectPtr

boost::shared_ptr<ConvectSlaveIntegrationPts> SimpleContactProblem::ConvectMasterContactElement::convectPtr
protected

Definition at line 197 of file SimpleContact.hpp.


The documentation for this struct was generated from the following files:
SimpleContactProblem::SimpleContactElement::ConvectSlaveIntegrationPts
friend ConvectSlaveIntegrationPts
Definition: SimpleContact.hpp:128
SimpleContactProblem::SimpleContactElement::SimpleContactElement
SimpleContactElement(MoFEM::Interface &m_field, bool newton_cotes=false)
Definition: SimpleContact.hpp:82
order
constexpr int order
Definition: dg_projection.cpp:18
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
SimpleContactProblem::ConvectMasterContactElement::convectPtr
boost::shared_ptr< ConvectSlaveIntegrationPts > convectPtr
Definition: SimpleContact.hpp:197
SimpleContactProblem::SimpleContactElement::setGaussPts
virtual MoFEMErrorCode setGaussPts(int order)
Definition: SimpleContact.cpp:29
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:429
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:359