www.mooseframework.org
Public Member Functions | List of all members
ThermalContactBCsAction Class Reference

#include <ThermalContactBCsAction.h>

Inheritance diagram for ThermalContactBCsAction:
[legend]

Public Member Functions

 ThermalContactBCsAction (const InputParameters &params)
 
virtual ~ThermalContactBCsAction ()
 
virtual void act ()
 

Detailed Description

Definition at line 12 of file ThermalContactBCsAction.h.

Constructor & Destructor Documentation

ThermalContactBCsAction::ThermalContactBCsAction ( const InputParameters &  params)

Definition at line 54 of file ThermalContactBCsAction.C.

54 : Action(params) {}
virtual ThermalContactBCsAction::~ThermalContactBCsAction ( )
inlinevirtual

Definition at line 16 of file ThermalContactBCsAction.h.

16 {}

Member Function Documentation

void ThermalContactBCsAction::act ( )
virtual

Definition at line 57 of file ThermalContactBCsAction.C.

Referenced by ~ThermalContactBCsAction().

58 {
59  const bool quadrature = getParam<bool>("quadrature");
60 
61  InputParameters params = _factory.getValidParams(getParam<std::string>("type"));
62  params.applyParameters(parameters());
63 
64  if (!quadrature)
65  {
66  params.set<std::vector<VariableName>>("gap_distance") = {"penetration"};
67  params.set<std::vector<VariableName>>("gap_temp") = {
69  }
70  else
71  {
72  params.set<bool>("quadrature") = true;
73  params.set<BoundaryName>("paired_boundary") = getParam<BoundaryName>("master");
74  params.set<bool>("use_displaced_mesh") = true;
75  }
76 
77  params.set<std::vector<BoundaryName>>("boundary") = {getParam<BoundaryName>("slave")};
78  _problem->addBoundaryCondition(getParam<std::string>("type"), "gap_bc_" + name(), params);
79 
80  if (quadrature)
81  {
82  // Swap master and slave for this one
83  params.set<std::vector<BoundaryName>>("boundary") = {getParam<BoundaryName>("master")};
84  params.set<BoundaryName>("paired_boundary") = getParam<BoundaryName>("slave");
85 
86  _problem->addBoundaryCondition(
87  getParam<std::string>("type"), "gap_bc_master_" + name(), params);
88  }
89 }
static std::string getGapValueName(const InputParameters &param)

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