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 12 of file ThermalContactAuxBCsAction.h.

Constructor & Destructor Documentation

ThermalContactAuxBCsAction::ThermalContactAuxBCsAction ( const InputParameters &  params)

Definition at line 44 of file ThermalContactAuxBCsAction.C.

45  : Action(params)
46 {
47 }
virtual ThermalContactAuxBCsAction::~ThermalContactAuxBCsAction ( )
inlinevirtual

Definition at line 16 of file ThermalContactAuxBCsAction.h.

16 {}

Member Function Documentation

void ThermalContactAuxBCsAction::act ( )
virtual

Definition at line 50 of file ThermalContactAuxBCsAction.C.

Referenced by ~ThermalContactAuxBCsAction().

51 {
52  bool quadrature = getParam<bool>("quadrature");
53 
54  InputParameters params = _factory.getValidParams(getParam<std::string>("gap_aux_type"));
55  params.applyParameters(parameters(), {"variable"});
56  params.set<AuxVariableName>("variable") = ThermalContactAuxVarsAction::getGapValueName(_pars);
57 
58  MultiMooseEnum execute_options = SetupInterface::getExecuteOptions();
59  execute_options = "initial linear";
60  params.set<MultiMooseEnum>("execute_on") = execute_options;
61 
62  params.set<std::vector<BoundaryName>>("boundary") = {getParam<BoundaryName>("slave")};
63  params.set<BoundaryName>("paired_boundary") = getParam<BoundaryName>("master");
64  params.set<VariableName>("paired_variable") = getParam<NonlinearVariableName>("variable");
65  _problem->addAuxKernel(getParam<std::string>("gap_aux_type"), "gap_value_" + name(), params);
66 
67  if (quadrature)
68  {
69  params.set<std::vector<BoundaryName>>("boundary") = {getParam<BoundaryName>("master")};
70  params.set<BoundaryName>("paired_boundary") = getParam<BoundaryName>("slave");
71  _problem->addAuxKernel(
72  getParam<std::string>("gap_aux_type"), "gap_value_master_" + name(), params);
73  }
74 
75  params = _factory.getValidParams("PenetrationAux");
76  params.applyParameters(parameters(), {"variable"});
77  std::string penetration_var_name = quadrature ? "qpoint_penetration" : "penetration";
78  params.set<AuxVariableName>("variable") = penetration_var_name;
79 
80  params.set<MultiMooseEnum>("execute_on") = execute_options;
81 
82  params.set<std::vector<BoundaryName>>("boundary") = {getParam<BoundaryName>("slave")};
83  params.set<BoundaryName>("paired_boundary") = getParam<BoundaryName>("master");
84 
85  _problem->addAuxKernel("PenetrationAux", "penetration_" + name(), params);
86 }
static std::string getGapValueName(const InputParameters &param)

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