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 15 of file ContactPressureAux.h.

Constructor & Destructor Documentation

ContactPressureAux::ContactPressureAux ( const InputParameters &  parameters)

Definition at line 25 of file ContactPressureAux.C.

26  : AuxKernel(params),
27  _nodal_area(coupledValue("nodal_area")),
29  getPenetrationLocator(getParam<BoundaryName>("paired_boundary"),
30  getParam<std::vector<BoundaryName>>("boundary")[0],
31  Utility::string_to_enum<Order>(getParam<MooseEnum>("order"))))
32 {
33 }
const PenetrationLocator & _penetration_locator
const VariableValue & _nodal_area
ContactPressureAux::~ContactPressureAux ( )
virtual

Definition at line 35 of file ContactPressureAux.C.

35 {}

Member Function Documentation

Real ContactPressureAux::computeValue ( )
protectedvirtual

Definition at line 38 of file ContactPressureAux.C.

39 {
40  Real value(0);
41  const Real area = _nodal_area[_qp];
42  const PenetrationInfo * pinfo(NULL);
43 
44  const auto it = _penetration_locator._penetration_info.find(_current_node->id());
45  if (it != _penetration_locator._penetration_info.end())
46  pinfo = it->second;
47 
48  if (pinfo && area != 0)
49  value = -(pinfo->_contact_force * pinfo->_normal) / area;
50 
51  return value;
52 }
const PenetrationLocator & _penetration_locator
const VariableValue & _nodal_area

Member Data Documentation

const VariableValue& ContactPressureAux::_nodal_area
protected

Definition at line 25 of file ContactPressureAux.h.

Referenced by computeValue().

const PenetrationLocator& ContactPressureAux::_penetration_locator
protected

Definition at line 26 of file ContactPressureAux.h.

Referenced by computeValue().


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