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

#include <ThermalContactAuxVarsAction.h>

Inheritance diagram for ThermalContactAuxVarsAction:
[legend]

Public Member Functions

 ThermalContactAuxVarsAction (const InputParameters &params)
 
virtual void act () override
 

Static Public Member Functions

static std::string getGapValueName (const InputParameters &param)
 
static std::string getGapConductivityName (const InputParameters &param)
 

Detailed Description

Definition at line 15 of file ThermalContactAuxVarsAction.h.

Constructor & Destructor Documentation

◆ ThermalContactAuxVarsAction()

ThermalContactAuxVarsAction::ThermalContactAuxVarsAction ( const InputParameters &  params)

Definition at line 34 of file ThermalContactAuxVarsAction.C.

35  : Action(params)
36 {
37 }

Member Function Documentation

◆ act()

void ThermalContactAuxVarsAction::act ( )
overridevirtual

Definition at line 40 of file ThermalContactAuxVarsAction.C.

41 {
42  // We need to add variables only once per variable name. However, we don't know how many unique
43  // variable names we will have. So, we'll always add them.
44 
45  MooseEnum order = getParam<MooseEnum>("order");
46  std::string family = "LAGRANGE";
47 
48  std::string penetration_var_name = "penetration";
49 
50  const bool quadrature = getParam<bool>("quadrature");
51  if (quadrature)
52  {
53  order = "CONSTANT";
54  family = "MONOMIAL";
55  penetration_var_name = "qpoint_penetration";
56  }
57 
58  _problem->addAuxVariable(
59  penetration_var_name,
60  FEType(Utility::string_to_enum<Order>(order), Utility::string_to_enum<FEFamily>(family)));
61  _problem->addAuxVariable(
62  getGapValueName(_pars),
63  FEType(Utility::string_to_enum<Order>(order), Utility::string_to_enum<FEFamily>(family)));
64 }
static std::string getGapValueName(const InputParameters &param)

◆ getGapConductivityName()

static std::string ThermalContactAuxVarsAction::getGapConductivityName ( const InputParameters &  param)
inlinestatic

Definition at line 27 of file ThermalContactAuxVarsAction.h.

28  {
29  return "paired_k_" + param.get<NonlinearVariableName>("variable");
30  }

◆ getGapValueName()

static std::string ThermalContactAuxVarsAction::getGapValueName ( const InputParameters &  param)
inlinestatic

Definition at line 22 of file ThermalContactAuxVarsAction.h.

Referenced by ThermalContactAuxBCsAction::act(), ThermalContactMaterialsAction::act(), ThermalContactBCsAction::act(), and act().

23  {
24  return "paired_" + param.get<NonlinearVariableName>("variable");
25  }

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