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

#include <ContactPressureAux.h>

Inheritance diagram for ContactPressureAux:
[legend]

Public Member Functions

 ContactPressureAux (const InputParameters &parameters)
 
virtual ~ContactPressureAux ()
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const VariableValue & _nodal_area
 
const PenetrationLocator & _penetration_locator
 

Detailed Description

Definition at line 18 of file ContactPressureAux.h.

Constructor & Destructor Documentation

◆ ContactPressureAux()

ContactPressureAux::ContactPressureAux ( const InputParameters &  parameters)

Definition at line 32 of file ContactPressureAux.C.

33  : AuxKernel(params),
34  _nodal_area(coupledValue("nodal_area")),
36  getPenetrationLocator(getParam<BoundaryName>("paired_boundary"),
37  getParam<std::vector<BoundaryName>>("boundary")[0],
38  Utility::string_to_enum<Order>(getParam<MooseEnum>("order"))))
39 {
40 }
const PenetrationLocator & _penetration_locator
const VariableValue & _nodal_area

◆ ~ContactPressureAux()

ContactPressureAux::~ContactPressureAux ( )
virtual

Definition at line 42 of file ContactPressureAux.C.

42 {}

Member Function Documentation

◆ computeValue()

Real ContactPressureAux::computeValue ( )
protectedvirtual

Definition at line 45 of file ContactPressureAux.C.

46 {
47  Real value(0);
48  const Real area = _nodal_area[_qp];
49  const PenetrationInfo * pinfo(NULL);
50 
51  const auto it = _penetration_locator._penetration_info.find(_current_node->id());
52  if (it != _penetration_locator._penetration_info.end())
53  pinfo = it->second;
54 
55  if (pinfo && area != 0)
56  value = -(pinfo->_contact_force * pinfo->_normal) / area;
57 
58  return value;
59 }
const PenetrationLocator & _penetration_locator
const VariableValue & _nodal_area

Member Data Documentation

◆ _nodal_area

const VariableValue& ContactPressureAux::_nodal_area
protected

Definition at line 28 of file ContactPressureAux.h.

Referenced by computeValue().

◆ _penetration_locator

const PenetrationLocator& ContactPressureAux::_penetration_locator
protected

Definition at line 29 of file ContactPressureAux.h.

Referenced by computeValue().


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