www.mooseframework.org
AddMortarInterfaceAction.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 // MOOSE includes
17 #include "FEProblem.h"
18 #include "MooseMesh.h"
19 
20 template <>
23 {
25  params.addRequiredParam<BoundaryName>("master", "Master side ID");
26  params.addRequiredParam<BoundaryName>("slave", "Slave side ID");
27  params.addRequiredParam<SubdomainName>("subdomain",
28  "Subdomain name that is the mortar interface");
29 
30  return params;
31 }
32 
34 {
35 }
36 
37 void
39 {
40  std::string iface_name = name();
41 
42  _mesh->addMortarInterface(iface_name,
43  getParam<BoundaryName>("master"),
44  getParam<BoundaryName>("slave"),
45  getParam<SubdomainName>("subdomain"));
46  if (_displaced_mesh)
47  _displaced_mesh->addMortarInterface(iface_name,
48  getParam<BoundaryName>("master"),
49  getParam<BoundaryName>("slave"),
50  getParam<SubdomainName>("subdomain"));
51 }
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for actions.
Definition: Action.h:39
void addRequiredParam(const std::string &name, const std::string &doc_string)
This method adds a parameter and documentation string to the InputParameters object that will be extr...
std::shared_ptr< MooseMesh > & _displaced_mesh
Definition: Action.h:128
AddMortarInterfaceAction(InputParameters parameters)
std::shared_ptr< MooseMesh > & _mesh
Definition: Action.h:127
const std::string & name() const
The name of the action.
Definition: Action.h:51
virtual void act() override
InputParameters validParams< AddMortarInterfaceAction >()
InputParameters validParams< Action >()
Definition: Action.C:23