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

Constructor & Destructor Documentation

◆ ThermalContactBCsAction()

ThermalContactBCsAction::ThermalContactBCsAction ( const InputParameters &  params)

Definition at line 59 of file ThermalContactBCsAction.C.

59 : Action(params) {}

◆ ~ThermalContactBCsAction()

virtual ThermalContactBCsAction::~ThermalContactBCsAction ( )
inlinevirtual

Definition at line 19 of file ThermalContactBCsAction.h.

19 {}

Member Function Documentation

◆ act()

void ThermalContactBCsAction::act ( )
virtual

Definition at line 62 of file ThermalContactBCsAction.C.

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

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