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

#include <ThermalContactMaterialsAction.h>

Inheritance diagram for ThermalContactMaterialsAction:
[legend]

Public Member Functions

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

Detailed Description

Definition at line 15 of file ThermalContactMaterialsAction.h.

Constructor & Destructor Documentation

◆ ThermalContactMaterialsAction()

ThermalContactMaterialsAction::ThermalContactMaterialsAction ( const InputParameters &  params)

Definition at line 57 of file ThermalContactMaterialsAction.C.

58  : Action(params)
59 {
60 }

Member Function Documentation

◆ act()

void ThermalContactMaterialsAction::act ( )
overridevirtual

Definition at line 63 of file ThermalContactMaterialsAction.C.

64 {
65  if (getParam<std::string>("type") != "GapHeatTransfer")
66  return;
67 
68  const std::string type = "GapConductance";
69 
70  InputParameters params = _factory.getValidParams(type);
71  params.applyParameters(parameters(), {"variable"});
72 
73  params.set<std::vector<VariableName>>("variable") = {getParam<NonlinearVariableName>("variable")};
74 
75  const bool quadrature = getParam<bool>("quadrature");
76  if (!quadrature)
77  {
78  params.set<std::vector<VariableName>>("gap_temp") = {
80  params.set<std::vector<VariableName>>("gap_distance") = {"penetration"};
81  }
82  else
83  {
84  params.set<bool>("quadrature") = true;
85  params.set<BoundaryName>("paired_boundary") = getParam<BoundaryName>("master");
86  }
87 
88  params.set<std::vector<BoundaryName>>("boundary") = {getParam<BoundaryName>("slave")};
89 
90  std::string material_name = name() + "_" + "gap_value";
91  _problem->addMaterial(type, material_name, params);
92 
93  if (quadrature)
94  {
95  params.set<BoundaryName>("paired_boundary") = getParam<BoundaryName>("slave");
96  params.set<std::vector<BoundaryName>>("boundary") = {getParam<BoundaryName>("master")};
97  params.set<std::string>("conductivity_name") =
98  getParam<std::string>("conductivity_master_name");
99 
100  std::string master_name;
101  master_name += name() + "_" + "gap_value_master";
102  _problem->addMaterial(type, master_name, params);
103  }
104 }
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: