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

Constructor & Destructor Documentation

ThermalContactAuxVarsAction::ThermalContactAuxVarsAction ( const InputParameters &  params)

Definition at line 29 of file ThermalContactAuxVarsAction.C.

30  : Action(params)
31 {
32 }

Member Function Documentation

void ThermalContactAuxVarsAction::act ( )
overridevirtual

Definition at line 35 of file ThermalContactAuxVarsAction.C.

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

Definition at line 24 of file ThermalContactAuxVarsAction.h.

25  {
26  return "paired_k_" + param.get<NonlinearVariableName>("variable");
27  }
static std::string ThermalContactAuxVarsAction::getGapValueName ( const InputParameters &  param)
inlinestatic

Definition at line 19 of file ThermalContactAuxVarsAction.h.

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

20  {
21  return "paired_" + param.get<NonlinearVariableName>("variable");
22  }

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