www.mooseframework.org
Classes | Functions
NodalNormalBC.h File Reference

Go to the source code of this file.

Classes

class  NodalNormalBC
 This is a base class to enforce strong boundary condition with a normal defined at a node. More...
 

Functions

template<>
InputParameters validParams< NodalNormalBC > ()
 

Function Documentation

Definition at line 19 of file NodalNormalBC.C.

20 {
22  params.addCoupledVar("nx", "x-component of the normal");
23  params.addCoupledVar("ny", "y-component of the normal");
24  params.addCoupledVar("nz", "z-component of the normal");
25 
26  params.set<std::vector<VariableName>>("nx") = {"nodal_normal_x"};
27  params.set<std::vector<VariableName>>("ny") = {"nodal_normal_y"};
28  params.set<std::vector<VariableName>>("nz") = {"nodal_normal_z"};
29 
30  return params;
31 }
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams< NodalBC >()
Definition: NodalBC.C:23
void addCoupledVar(const std::string &name, const std::string &doc_string)
This method adds a coupled variable name pair.