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

Constructor & Destructor Documentation

ThermalContactMaterialsAction::ThermalContactMaterialsAction ( const InputParameters &  params)

Definition at line 52 of file ThermalContactMaterialsAction.C.

53  : Action(params)
54 {
55 }

Member Function Documentation

void ThermalContactMaterialsAction::act ( )
overridevirtual

Definition at line 58 of file ThermalContactMaterialsAction.C.

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

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