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

#include <ThermalContactAuxBCsAction.h>

Inheritance diagram for ThermalContactAuxBCsAction:
[legend]

Public Member Functions

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

Detailed Description

Definition at line 15 of file ThermalContactAuxBCsAction.h.

Constructor & Destructor Documentation

◆ ThermalContactAuxBCsAction()

ThermalContactAuxBCsAction::ThermalContactAuxBCsAction ( const InputParameters &  params)

Definition at line 49 of file ThermalContactAuxBCsAction.C.

50  : Action(params)
51 {
52 }

◆ ~ThermalContactAuxBCsAction()

virtual ThermalContactAuxBCsAction::~ThermalContactAuxBCsAction ( )
inlinevirtual

Definition at line 19 of file ThermalContactAuxBCsAction.h.

19 {}

Member Function Documentation

◆ act()

void ThermalContactAuxBCsAction::act ( )
virtual

Definition at line 55 of file ThermalContactAuxBCsAction.C.

56 {
57  bool quadrature = getParam<bool>("quadrature");
58 
59  InputParameters params = _factory.getValidParams(getParam<std::string>("gap_aux_type"));
60  params.applyParameters(parameters(), {"variable"});
61  params.set<AuxVariableName>("variable") = ThermalContactAuxVarsAction::getGapValueName(_pars);
62 
63  params.set<ExecFlagEnum>("execute_on", true) = {EXEC_INITIAL, EXEC_LINEAR};
64 
65  params.set<std::vector<BoundaryName>>("boundary") = {getParam<BoundaryName>("slave")};
66  params.set<BoundaryName>("paired_boundary") = getParam<BoundaryName>("master");
67  params.set<VariableName>("paired_variable") = getParam<NonlinearVariableName>("variable");
68  _problem->addAuxKernel(getParam<std::string>("gap_aux_type"), "gap_value_" + name(), params);
69 
70  if (quadrature)
71  {
72  params.set<std::vector<BoundaryName>>("boundary") = {getParam<BoundaryName>("master")};
73  params.set<BoundaryName>("paired_boundary") = getParam<BoundaryName>("slave");
74  _problem->addAuxKernel(
75  getParam<std::string>("gap_aux_type"), "gap_value_master_" + name(), params);
76  }
77 
78  params = _factory.getValidParams("PenetrationAux");
79  params.applyParameters(parameters(), {"variable"});
80  std::string penetration_var_name = quadrature ? "qpoint_penetration" : "penetration";
81  params.set<AuxVariableName>("variable") = penetration_var_name;
82 
83  params.set<ExecFlagEnum>("execute_on", true) = {EXEC_INITIAL, EXEC_LINEAR};
84  ;
85 
86  params.set<std::vector<BoundaryName>>("boundary") = {getParam<BoundaryName>("slave")};
87  params.set<BoundaryName>("paired_boundary") = getParam<BoundaryName>("master");
88 
89  _problem->addAuxKernel("PenetrationAux", "penetration_" + name(), params);
90 }
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: